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:
Alex Crichton 2014-07-30 07:08:42 -07:00
parent 20658f7ec5
commit ecac4d2e6c

View File

@ -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);
}
}