Auto merge of #1720 - RalfJung:rustup, r=RalfJung

rustup

Prevent MIR optimizations from removing this read.
This commit is contained in:
bors 2021-02-23 08:24:35 +00:00
commit e29f137941
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
e7c23ab933ebc1f205c3b59f4ebc85d40f67d404
a4e595db8f12f9ee926256745d757004b850703f

View file

@ -17,6 +17,6 @@ fn main() {
assert_eq!(byte, 0);
}
let v = unsafe { *z.offset(first_undef) };
if v == 0 {}
if v == 0 { println!("it is zero"); }
//~^ ERROR this operation requires initialized memory
}