Skip to content

Commit 4862a57

Browse files
authored
Merge pull request #4245 from RalfJung/rustup
Rustup
2 parents 999bbec + 0e7a549 commit 4862a57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4ac032f857b46037b55c1fc0fa702450aad37f43
1+
d5b4c2e4f19b6d7037371cdaecc3cc2c701c68df

src/concurrency/data_race.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ pub trait EvalContextExt<'tcx>: MiriInterpCxExt<'tcx> {
717717
// The program didn't actually do a read, so suppress the memory access hooks.
718718
// This is also a very special exception where we just ignore an error -- if this read
719719
// 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();
720+
let old_val = this.run_for_validation_mut(|this| this.read_scalar(dest)).discard_err();
721721
this.allow_data_races_mut(move |this| this.write_scalar(val, dest))?;
722722
this.validate_atomic_store(dest, atomic)?;
723723
this.buffered_atomic_write(val, dest, atomic, old_val)

0 commit comments

Comments
 (0)