mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-23 18:35:32 +00:00
Auto merge of #60937 - RalfJung:miri, r=oli-obk
update Miri r? @oli-obk
This commit is contained in:
@@ -613,7 +613,9 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tc
|
||||
trace!("{:?} is now live", local);
|
||||
|
||||
let local_val = LocalValue::Uninitialized;
|
||||
// StorageLive *always* kills the value that's currently stored
|
||||
// StorageLive *always* kills the value that's currently stored.
|
||||
// However, we do not error if the variable already is live;
|
||||
// see <https://github.com/rust-lang/rust/issues/42371>.
|
||||
Ok(mem::replace(&mut self.frame_mut().locals[local].value, local_val))
|
||||
}
|
||||
|
||||
|
||||
Submodule src/tools/miri updated: bc0c76d861...37b2eea714
Reference in New Issue
Block a user