Skip to content

Commit 016fb48

Browse files
committed
remove a no-longer-needed work-around
1 parent 644faf4 commit 016fb48

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/tools/miri/tests/pass/0weak_memory_consistency.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@ unsafe impl<T> Sync for EvilSend<T> {}
3434
// We can't create static items because we need to run each test
3535
// multiple times
3636
fn static_atomic(val: i32) -> &'static AtomicI32 {
37-
let ret = Box::leak(Box::new(AtomicI32::new(val)));
38-
ret.store(val, Relaxed); // work around https://github.com/rust-lang/miri/issues/2164
39-
ret
37+
Box::leak(Box::new(AtomicI32::new(val)))
4038
}
4139
fn static_atomic_bool(val: bool) -> &'static AtomicBool {
42-
let ret = Box::leak(Box::new(AtomicBool::new(val)));
43-
ret.store(val, Relaxed); // work around https://github.com/rust-lang/miri/issues/2164
44-
ret
40+
Box::leak(Box::new(AtomicBool::new(val)))
4541
}
4642

4743
// Spins until it acquires a pre-determined value.

0 commit comments

Comments
 (0)