We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f7005 commit 6101dddCopy full SHA for 6101ddd
compiler/rustc_span/src/hygiene.rs
@@ -1279,9 +1279,9 @@ pub fn register_expn_id(
1279
let _old_data = hygiene_data.foreign_expn_data.insert(expn_id, data);
1280
debug_assert!(_old_data.is_none() || cfg!(parallel_compiler));
1281
let _old_hash = hygiene_data.foreign_expn_hashes.insert(expn_id, hash);
1282
- debug_assert!(_old_hash.is_none() || cfg!(parallel_compiler));
+ debug_assert!(_old_hash.is_none() || _old_hash == Some(hash));
1283
let _old_id = hygiene_data.expn_hash_to_expn_id.insert(hash, expn_id);
1284
- debug_assert!(_old_id.is_none() || cfg!(parallel_compiler));
+ debug_assert!(_old_id.is_none() || _old_id == Some(expn_id));
1285
});
1286
expn_id
1287
}
0 commit comments