summary refs log tree commit diff
path: root/src/test/run-make/debug-assertions
AgeCommit message (Collapse)AuthorLines
2016-06-05Enable the overflow-related tests for MIRJames Miller-1/+0
2016-04-28Add opt-level=s and opt-level=z tests to the existing tests that confirm properBrandon Edens-0/+4
compiler of other opt-levels.
2016-03-17Add #[rustc_no_mir] to make tests pass with -Z orbit.Eduard Burtescu-0/+2
2015-03-05rustc: Add a debug_assertions #[cfg] directiveAlex Crichton-0/+63
This commit is an implementation of [RFC 563][rfc] which adds a new `cfg(debug_assertions)` directive which is specially recognized and calculated by the compiler. The flag is turned off at any optimization level greater than 1 and may also be explicitly controlled through the `-C debug-assertions` flag. [rfc]: https://github.com/rust-lang/rfcs/pull/563 The `debug_assert!` and `debug_assert_eq!` macros now respect this instead of the `ndebug` variable and `ndebug` no longer holds any meaning to the standard library. Code which was previously relying on `not(ndebug)` to gate expensive code should be updated to rely on `debug_assertions` instead. Closes #22492 [breaking-change]