Skip to content

Commit 047eaf1

Browse files
committed
Rustup to rustc 1.42.0-nightly (9ae6cedb8 2019-12-23)
1 parent d89f307 commit 047eaf1

3 files changed

+22
-28
lines changed

patches/0017-Fix-libtest-compilation.patch

+5-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ index 8b76080..9e65de2 100644
1212
--- a/src/libtest/lib.rs
1313
+++ b/src/libtest/lib.rs
1414
@@ -52,7 +52,7 @@ use std::fmt;
15-
env,
16-
io,
15+
use std::{
16+
env, io,
1717
io::prelude::Write,
1818
- panic::{self, catch_unwind, AssertUnwindSafe, PanicInfo},
1919
+ panic::{self, PanicInfo},
@@ -79,15 +79,12 @@ index 8b76080..9e65de2 100644
7979
let exec_time = start.map(|start| {
8080
let duration = start.elapsed();
8181
TestExecTime(duration)
82-
@@ -1688,10 +1676,10 @@ fn spawn_test_subprocess(desc: TestDesc, report_time: bool, monitor_ch: Sender<M
82+
@@ -1688,7 +1676,7 @@ fn spawn_test_subprocess(desc: TestDesc, report_time: bool, monitor_ch: Sender<M
8383
monitor_ch.send(message).unwrap();
8484
}
8585

86-
fn run_test_in_spawned_subprocess(
87-
desc: TestDesc,
88-
- testfn: Box<dyn FnOnce() + Send>,
89-
+ testfn: Box<impl FnOnce() + Send + 'static>,
90-
) -> ! {
86+
-fn run_test_in_spawned_subprocess(desc: TestDesc, testfn: Box<dyn FnOnce() + Send>) -> ! {
87+
+fn run_test_in_spawned_subprocess(desc: TestDesc, testfn: Box<impl FnOnce() + Send + 'static>) -> ! {
9188
let builtin_panic_hook = panic::take_hook();
9289
let record_result = Arc::new(move |panic_info: Option<&'_ PanicInfo<'_>>| {
9390
let test_result = match panic_info {

patches/0023-core-Ignore-failing-tests.patch

+15-15
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ index a17c094..5bb11d2 100644
137137
#[test]
138138
+#[ignore]
139139
fn from_str_issue7588() {
140-
let u : Option<u8> = u8::from_str_radix("1000", 10).ok();
140+
let u: Option<u8> = u8::from_str_radix("1000", 10).ok();
141141
assert_eq!(u, None);
142142
@@ -613,11 +614,9 @@ test_impl_try_from_signed_to_unsigned_err! { test_try_i64u32, i64, u32 }
143143
test_impl_try_from_signed_to_unsigned_err! { test_try_i128u8, i128, u8 }
@@ -152,21 +152,21 @@ index a17c094..5bb11d2 100644
152152
cfg_block! {
153153
#[cfg(target_pointer_width = "16")] {
154154
@@ -640,6 +639,7 @@ macro_rules! test_float {
155-
($modname: ident, $fty: ty, $inf: expr, $neginf: expr, $nan: expr) => { mod $modname {
156-
// FIXME(nagisa): these tests should test for sign of -0.0
157-
#[test]
158-
+ #[ignore]
159-
fn min() {
160-
assert_eq!((0.0 as $fty).min(0.0), 0.0);
161-
assert_eq!((-0.0 as $fty).min(-0.0), -0.0);
155+
mod $modname {
156+
// FIXME(nagisa): these tests should test for sign of -0.0
157+
#[test]
158+
+ #[ignore]
159+
fn min() {
160+
assert_eq!((0.0 as $fty).min(0.0), 0.0);
161+
assert_eq!((-0.0 as $fty).min(-0.0), -0.0);
162162
@@ -662,6 +662,7 @@ macro_rules! test_float {
163-
assert!(($nan as $fty).min($nan).is_nan());
164-
}
165-
#[test]
166-
+ #[ignore]
167-
fn max() {
168-
assert_eq!((0.0 as $fty).max(0.0), 0.0);
169-
assert_eq!((-0.0 as $fty).max(-0.0), -0.0);
163+
assert!(($nan as $fty).min($nan).is_nan());
164+
}
165+
#[test]
166+
+ #[ignore]
167+
fn max() {
168+
assert_eq!((0.0 as $fty).max(0.0), 0.0);
169+
assert_eq!((-0.0 as $fty).max(-0.0), -0.0);
170170
diff --git a/src/libcore/tests/time.rs b/src/libcore/tests/time.rs
171171
index fac70c4..9107a02 100644
172172
--- a/src/libcore/tests/time.rs

patches/0024-libstd-Revert-arg-initialization-on-linux-to-not-req.patch

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ diff --git a/src/libstd/sys/unix/args.rs b/src/libstd/sys/unix/args.rs
1212
index 2ed1585..b4b021a 100644
1313
--- a/src/libstd/sys/unix/args.rs
1414
+++ b/src/libstd/sys/unix/args.rs
15-
@@ -83,10 +83,7 @@ mod imp {
15+
@@ -83,7 +83,7 @@ mod imp {
1616
// On Linux-GNU, we rely on `ARGV_INIT_ARRAY` below to initialize
1717
// `ARGC` and `ARGV`. But in Miri that does not actually happen so we
1818
// still initialize here.
19-
- #[cfg(any(
20-
- miri,
21-
- not(all(target_os = "linux", target_env = "gnu"))
22-
- ))]
19+
- #[cfg(any(miri, not(all(target_os = "linux", target_env = "gnu"))))]
2320
+ // `#[link_section]` is not yet supported by cg_clif
2421
really_init(_argc, _argv);
2522
}

0 commit comments

Comments
 (0)