Skip to content

Commit 3aed207

Browse files
committed
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 rust-lang#16106
1 parent 692077b commit 3aed207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustrt/at_exit_imp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn init() {
3131
let state: Box<Queue> = box Exclusive::new(Vec::new());
3232
unsafe {
3333
rtassert!(!RUNNING.load(atomics::SeqCst));
34-
rtassert!(QUEUE.swap(mem::transmute(state), atomics::SeqCst) == 0);
34+
assert!(QUEUE.swap(mem::transmute(state), atomics::SeqCst) == 0);
3535
}
3636
}
3737

0 commit comments

Comments
 (0)