Skip to content

Commit 2940da9

Browse files
committed
bump Rust
1 parent 146ee66 commit 2940da9

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ff4a2533a0720f9cdd86e02eafa3725f07aa7752
1+
033013cab3a861224fd55f494c8be1cb0349eb49

tests/compile-fail/invalid_enum_discriminant.rs renamed to tests/compile-fail/invalid_enum_tag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Make sure we find these even with many checks disabled.
33
// compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
44

5-
// error-pattern: enum value has invalid discriminant: 0x0000002a
5+
// error-pattern: enum value has invalid tag: 0x0000002a
66

77
use std::mem;
88

tests/compile-fail/validity/invalid_enum_discriminant.rs renamed to tests/compile-fail/validity/invalid_enum_tag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ pub enum Foo {
44
}
55

66
fn main() {
7-
let _f = unsafe { std::mem::transmute::<i32, Foo>(42) }; //~ ERROR encountered 0x0000002a, but expected a valid enum discriminant
7+
let _f = unsafe { std::mem::transmute::<i32, Foo>(42) }; //~ ERROR encountered 0x0000002a, but expected a valid enum tag
88
}

tests/compile-fail/validity/transmute_through_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ enum Bool { True }
33

44
fn evil(x: &mut Bool) {
55
let x = x as *mut _ as *mut u32;
6-
unsafe { *x = 44; } // out-of-bounds enum discriminant
6+
unsafe { *x = 44; } // out-of-bounds enum tag
77
}
88

99
fn main() {
1010
let mut x = Bool::True;
1111
evil(&mut x);
1212
let _y = x; // reading this ought to be enough to trigger validation
13-
//~^ ERROR encountered 0x0000002c, but expected a valid enum discriminant
13+
//~^ ERROR encountered 0x0000002c, but expected a valid enum tag
1414
}

tests/run-pass/panic/catch_panic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore-windows: Unwind panicking does not currently work on Windows
2-
// normalize-stderr-test "[^ ]*libcore/(macros|mem)/mod.rs[0-9:]*" -> "$$LOC"
2+
// normalize-stderr-test "[^ ]*libcore/[a-z/]+.rs[0-9:]*" -> "$$LOC"
33
#![feature(never_type)]
44
#![allow(unconditional_panic)]
55
use std::panic::{catch_unwind, AssertUnwindSafe};
@@ -75,7 +75,7 @@ fn main() {
7575
// Assertion and debug assertion
7676
test(None, |_old_val| { assert!(false); loop {} });
7777
test(None, |_old_val| { debug_assert!(false); loop {} });
78-
test(None, |_old_val| { unsafe { (1 as *const i32).read() }; loop {} }); // trigger debug-assertion in libstd
78+
test(None, |_old_val| { unsafe { std::char::from_u32_unchecked(0xFD10000); } loop {} }); // trigger debug-assertion in libstd
7979

8080
eprintln!("Success!"); // Make sure we get this in stderr
8181
}

tests/run-pass/panic/catch_panic.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ thread 'main' panicked at 'assertion failed: false', $DIR/catch_panic.rs:76:29
2222
Caught panic message (&str): assertion failed: false
2323
thread 'main' panicked at 'assertion failed: false', $DIR/catch_panic.rs:77:29
2424
Caught panic message (&str): assertion failed: false
25-
thread 'main' panicked at 'attempt to copy from unaligned or null pointer', $LOC
26-
Caught panic message (String): attempt to copy from unaligned or null pointer
25+
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', $LOC
26+
Caught panic message (String): called `Option::unwrap()` on a `None` value
2727
Success!

tests/run-pass/specialization.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(incomplete_features)]
12
#![feature(specialization)]
23

34
trait IsUnit {

0 commit comments

Comments
 (0)