<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/run-make/debug-assertions/debug.rs, branch 1.22.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.22.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.22.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2016-06-05T11:02:24+00:00</updated>
<entry>
<title>Enable the overflow-related tests for MIR</title>
<updated>2016-06-05T11:02:24+00:00</updated>
<author>
<name>James Miller</name>
<email>james@aatch.net</email>
</author>
<published>2016-04-28T12:08:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bcdb2602f8c4f6952f47c78cf41db0ad8223b929'/>
<id>urn:sha1:bcdb2602f8c4f6952f47c78cf41db0ad8223b929</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add #[rustc_no_mir] to make tests pass with -Z orbit.</title>
<updated>2016-03-17T20:48:07+00:00</updated>
<author>
<name>Eduard Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2016-03-10T19:20:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=473f804491772fe9a31f4096c3ec8da121fc8294'/>
<id>urn:sha1:473f804491772fe9a31f4096c3ec8da121fc8294</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: Add a debug_assertions #[cfg] directive</title>
<updated>2015-03-05T22:51:38+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-02T22:51:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5d834551cd5a7e7d89ac9f2ae642a93409ed989'/>
<id>urn:sha1:d5d834551cd5a7e7d89ac9f2ae642a93409ed989</id>
<content type='text'>
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]
</content>
</entry>
</feed>
