Skip to content

Commit 1afb803

Browse files
brsonthestinger
authored andcommitted
std::rt: Enforce sanity a while longer
I'm not comfortable turning off rtassert! yet
1 parent 7abdde8 commit 1afb803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/rt/util.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ use unstable::atomics::{AtomicInt, INIT_ATOMIC_INT, SeqCst};
2020
use unstable::running_on_valgrind;
2121

2222
// Indicates whether we should perform expensive sanity checks, including rtassert!
23-
pub static ENFORCE_SANITY: bool = !cfg!(rtopt) || cfg!(rtdebug) || cfg!(rtassert);
23+
// XXX: Once the runtime matures remove the `true` below to turn off rtassert, etc.
24+
pub static ENFORCE_SANITY: bool = true || !cfg!(rtopt) || cfg!(rtdebug) || cfg!(rtassert);
2425

2526
/// Get the number of cores available
2627
pub fn num_cpus() -> uint {

0 commit comments

Comments
 (0)