Change not(ndebug) to debug_assertions

The name of this directive changed in rust-lang/rust#22980.
This commit is contained in:
Matt Brubeck 2015-06-01 13:48:38 -07:00
parent 83a0b78221
commit b78b33b7f5
4 changed files with 14 additions and 14 deletions

View file

@ -26,7 +26,7 @@ pub struct Scope;
#[macro_export]
macro_rules! layout_debug_scope(
($($arg:tt)*) => (
if cfg!(not(ndebug)) {
if cfg!(debug_assertions) {
layout_debug::Scope::new(format!($($arg)*))
} else {
layout_debug::Scope
@ -76,7 +76,7 @@ impl Scope {
}
}
#[cfg(not(ndebug))]
#[cfg(debug_assertions)]
impl Drop for Scope {
fn drop(&mut self) {
STATE_KEY.with(|ref r| {