File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/tools/miri/tests/pass Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
3636fn 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}
4139fn 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.
You can’t perform that action at this time.
0 commit comments