We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0628c70 commit 0d9a524Copy full SHA for 0d9a524
src/concurrency/data_race.rs
@@ -717,7 +717,7 @@ pub trait EvalContextExt<'tcx>: MiriInterpCxExt<'tcx> {
717
// The program didn't actually do a read, so suppress the memory access hooks.
718
// This is also a very special exception where we just ignore an error -- if this read
719
// was UB e.g. because the memory is uninitialized, we don't want to know!
720
- let old_val = this.run_for_validation(|this| this.read_scalar(dest)).discard_err();
+ let old_val = this.run_for_validation_mut(|this| this.read_scalar(dest)).discard_err();
721
this.allow_data_races_mut(move |this| this.write_scalar(val, dest))?;
722
this.validate_atomic_store(dest, atomic)?;
723
this.buffered_atomic_write(val, dest, atomic, old_val)
0 commit comments