From d694dc43f4e4c459f908b8ded939fa1fc359ad9a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 8 Nov 2018 08:29:55 +0100 Subject: [PATCH] bump Rust version --- rust-version | 2 +- tests/compile-fail/validity/invalid_bool.rs | 2 +- tests/compile-fail/validity/invalid_char.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-version b/rust-version index 48887947cdf..0ad81587241 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -nightly-2018-11-07 +nightly-2018-11-08 diff --git a/tests/compile-fail/validity/invalid_bool.rs b/tests/compile-fail/validity/invalid_bool.rs index af4ad67a4f0..ce464616195 100644 --- a/tests/compile-fail/validity/invalid_bool.rs +++ b/tests/compile-fail/validity/invalid_bool.rs @@ -1,3 +1,3 @@ fn main() { - let _b = unsafe { std::mem::transmute::(2) }; //~ ERROR encountered 2, but expected something in the range 0..=1 + let _b = unsafe { std::mem::transmute::(2) }; //~ ERROR encountered 2, but expected something less or equal to 1 } diff --git a/tests/compile-fail/validity/invalid_char.rs b/tests/compile-fail/validity/invalid_char.rs index 3ff0ed60f66..0d75ad9d289 100644 --- a/tests/compile-fail/validity/invalid_char.rs +++ b/tests/compile-fail/validity/invalid_char.rs @@ -1,6 +1,6 @@ fn main() { assert!(std::char::from_u32(-1_i32 as u32).is_none()); - let _ = match unsafe { std::mem::transmute::(-1) } { //~ ERROR encountered 4294967295, but expected something in the range 0..=1114111 + let _ = match unsafe { std::mem::transmute::(-1) } { //~ ERROR encountered 4294967295, but expected something less or equal to 1114111 'a' => {true}, 'b' => {false}, _ => {true}, -- 2.44.0