Auto merge of #1720 - RalfJung:rustup, r=RalfJung
rustup Prevent MIR optimizations from removing this read.
This commit is contained in:
commit
e29f137941
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
e7c23ab933ebc1f205c3b59f4ebc85d40f67d404
|
||||
a4e595db8f12f9ee926256745d757004b850703f
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue