about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-07-30 07:08:42 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-07-31 07:30:53 -0700
commitecac4d2e6ce6dd1803fa2fc150b65cb974654131 (patch)
tree1d3dc6e9529d1bb2f07695eb7a5489283b7811d5
parent20658f7ec509d5925b731dcc25067ce72a17a913 (diff)
downloadrust-ecac4d2e6ce6dd1803fa2fc150b65cb974654131.tar.gz
rust-ecac4d2e6ce6dd1803fa2fc150b65cb974654131.zip
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
-rw-r--r--src/librustrt/at_exit_imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustrt/at_exit_imp.rs b/src/librustrt/at_exit_imp.rs
index c9188e81975..9e4c4229676 100644
--- a/src/librustrt/at_exit_imp.rs
+++ b/src/librustrt/at_exit_imp.rs
@@ -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);
     }
 }