mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Change not(ndebug) to debug_assertions
The name of this directive changed in rust-lang/rust#22980.
This commit is contained in:
parent
83a0b78221
commit
b78b33b7f5
4 changed files with 14 additions and 14 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue