mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
rustrt: Don't conditionally init the at_exit QUEUE
This initialization should happen unconditionally, but the rtassert! macro is gated on the ENFORCE_SANITY define Closes #16106
This commit is contained in:
parent
20658f7ec5
commit
ecac4d2e6c
@ -31,7 +31,7 @@ pub fn init() {
|
||||
let state: Box<Queue> = box Exclusive::new(Vec::new());
|
||||
unsafe {
|
||||
rtassert!(!RUNNING.load(atomics::SeqCst));
|
||||
rtassert!(QUEUE.swap(mem::transmute(state), atomics::SeqCst) == 0);
|
||||
assert!(QUEUE.swap(mem::transmute(state), atomics::SeqCst) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user