Skip to content

Commit

Permalink
rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 29, 2022
1 parent c4ca406 commit 85e53f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21265dd0d209e7b682f249a3a45034f02d32650b
1536a53ea4798df052dc31a611c2f29c8f529be7
1 change: 0 additions & 1 deletion tests/fail/invalid_bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Make sure we find these even with many checks disabled.
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation


fn main() {
let b = unsafe { std::mem::transmute::<u8, bool>(2) };
let _x = b == std::hint::black_box(true); //~ ERROR: interpreting an invalid 8-bit value as a bool
Expand Down

0 comments on commit 85e53f8

Please sign in to comment.