aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-06-01 13:48:38 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-06-01 13:48:38 -0700
commitb78b33b7f5ca276c532868c1328a1afba8e6919a (patch)
tree1d0018d3d4a479bbbfd793eaaa6d69cdf73eebaf /components/layout/layout_debug.rs
parent83a0b7822181b26862f26fd0cd1da02da7ea6210 (diff)
downloadservo-b78b33b7f5ca276c532868c1328a1afba8e6919a.tar.gz
servo-b78b33b7f5ca276c532868c1328a1afba8e6919a.zip
Change not(ndebug) to debug_assertions
The name of this directive changed in rust-lang/rust#22980.
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs
index e9e5c585e68..26e62780f92 100644
--- a/components/layout/layout_debug.rs
+++ b/components/layout/layout_debug.rs
@@ -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| {