diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-08-19 10:10:27 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-08-24 15:46:04 -0700 |
| commit | bbe347cee79df9cb68ee490ba957e515e3da70a1 (patch) | |
| tree | 56fed45fa67e130e4749d78a9d70223ff6161eb2 /src/libstd | |
| parent | 2690b513506dad53d0b86b20f8b73bc420dfb3a2 (diff) | |
| download | rust-bbe347cee79df9cb68ee490ba957e515e3da70a1.tar.gz rust-bbe347cee79df9cb68ee490ba957e515e3da70a1.zip | |
std::rt: Enforce sanity a while longer
I'm not comfortable turning off rtassert! yet
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rt/util.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs index c3f5b11a930..9113f03ffee 100644 --- a/src/libstd/rt/util.rs +++ b/src/libstd/rt/util.rs @@ -20,7 +20,8 @@ use unstable::atomics::{AtomicInt, INIT_ATOMIC_INT, SeqCst}; use unstable::running_on_valgrind; // Indicates whether we should perform expensive sanity checks, including rtassert! -pub static ENFORCE_SANITY: bool = !cfg!(rtopt) || cfg!(rtdebug) || cfg!(rtassert); +// XXX: Once the runtime matures remove the `true` below to turn off rtassert, etc. +pub static ENFORCE_SANITY: bool = true || !cfg!(rtopt) || cfg!(rtdebug) || cfg!(rtassert); /// Get the number of cores available pub fn num_cpus() -> uint { |
