Skip to content

Commit

Permalink
Auto merge of #1210 - RalfJung:rustup-validity, r=RalfJung
Browse files Browse the repository at this point in the history
rustup: adjust error message

This is the Miri side of rust-lang/rust#69762
  • Loading branch information
bors committed Mar 9, 2020
2 parents f2ed1ab + 5040cb7 commit 676c4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7a3700c37132385e8e965c18e73d0a09f9146335
3dbade652ed8ebac70f903e01f51cd92c4e4302c
2 changes: 1 addition & 1 deletion tests/compile-fail/slice-too-big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ use std::mem;

fn main() { unsafe {
let ptr = Box::into_raw(Box::new(0u8));
let _x: &[u8] = mem::transmute((ptr, usize::MAX)); //~ ERROR: invalid slice: total size is bigger than largest supported object
let _x: &[u8] = mem::transmute((ptr, usize::MAX)); //~ ERROR: invalid reference metadata: slice is bigger than largest supported object
} }

0 comments on commit 676c4f8

Please sign in to comment.