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> {}
34
34
// We can't create static items because we need to run each test
35
35
// multiple times
36
36
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) ) )
40
38
}
41
39
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) ) )
45
41
}
46
42
47
43
// Spins until it acquires a pre-determined value.
You can’t perform that action at this time.
0 commit comments