about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-10 21:54:44 +0200
committerRalf Jung <post@ralfj.de>2024-08-12 10:36:45 +0200
commit8b18c6bdd3d61dda5fe8c4ed378286abec2a9bc4 (patch)
treebe5f2820f67073ad3795056001655402fbc563ad /compiler
parent04ba50e8233042f810206c2cd18aace50961e247 (diff)
downloadrust-8b18c6bdd3d61dda5fe8c4ed378286abec2a9bc4.tar.gz
rust-8b18c6bdd3d61dda5fe8c4ed378286abec2a9bc4.zip
miri weak memory emulation: initialize store buffer only on atomic writes; pre-fill with previous value
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_const_eval/src/interpret/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs
index 2e5d0ae7736..b0a583f136f 100644
--- a/compiler/rustc_const_eval/src/interpret/memory.rs
+++ b/compiler/rustc_const_eval/src/interpret/memory.rs
@@ -1011,7 +1011,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
     ///
     /// We do this so Miri's allocation access tracking does not show the validation
     /// reads as spurious accesses.
-    pub(super) fn run_for_validation<R>(&self, f: impl FnOnce() -> R) -> R {
+    pub fn run_for_validation<R>(&self, f: impl FnOnce() -> R) -> R {
         // This deliberately uses `==` on `bool` to follow the pattern
         // `assert!(val.replace(new) == old)`.
         assert!(