mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -529,7 +529,7 @@ impl ScriptTask {
|
|||
}
|
||||
|
||||
// Needed for debug assertions about whether GC is running.
|
||||
if !cfg!(ndebug) {
|
||||
if cfg!(debug_assertions) {
|
||||
unsafe {
|
||||
JS_SetGCCallback(runtime.rt(),
|
||||
Some(debug_gc_callback as unsafe extern "C" fn(*mut JSRuntime, JSGCStatus)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue