rust/mk
Alex Crichton d5d834551c rustc: Add a debug_assertions #[cfg] directive
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]
2015-03-05 14:51:38 -08:00
..
cfg bitrig integration 2015-02-11 14:49:06 -08:00
clean.mk
crates.mk Separate most of rustc::lint::builtin into a separate crate. 2015-02-28 15:33:59 +11:00
ctags.mk
debuggers.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
dist.mk Upgrade rust-installer 2015-02-12 20:36:17 -08:00
docs.mk std: Deprecate std::old_io::fs 2015-03-04 15:59:30 -08:00
grammar.mk Add a LALR grammar for Rust with testing support 2015-01-20 18:47:17 -08:00
host.mk
install.mk Remove duplicated configuration for android 2015-02-10 21:53:33 +09:00
llvm.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
main.mk Rollup merge of #22292 - brson:alpha2, r=alexcrichton 2015-02-15 18:42:47 +05:30
perf.mk
platform.mk PR review fixes 2015-02-11 14:49:10 -08:00
prepare.mk iOS: fixed install phase 2015-01-12 10:09:47 +02:00
reconfig.mk
rt.mk Remove duplicated configuration for android 2015-02-10 21:53:33 +09:00
rustllvm.mk
snap.mk
stage0.mk
target.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
tests.mk rustc: Add a debug_assertions #[cfg] directive 2015-03-05 14:51:38 -08:00
util.mk