servo: Merge #6245 - Change not(ndebug) to debug_assertions (from mbrubeck:ndebug); r=SimonSapin
The name of this directive changed in rust-lang/rust#22980. Source-Repo: https://github.com/servo/servo Source-Revision: c724444ccb85551b5a0a581d673875ec9bce3d1f
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user