File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1291,11 +1291,11 @@ pub fn register_expn_id(
1291
1291
let expn_id = ExpnId { krate, local_id } ;
1292
1292
HygieneData :: with ( |hygiene_data| {
1293
1293
let _old_data = hygiene_data. foreign_expn_data . insert ( expn_id, data) ;
1294
- debug_assert ! ( _old_data. is_none( ) ) ;
1294
+ debug_assert ! ( _old_data. is_none( ) || cfg! ( parallel_compiler ) ) ;
1295
1295
let _old_hash = hygiene_data. foreign_expn_hashes . insert ( expn_id, hash) ;
1296
- debug_assert ! ( _old_hash. is_none( ) ) ;
1296
+ debug_assert ! ( _old_hash. is_none( ) || _old_hash == Some ( hash ) ) ;
1297
1297
let _old_id = hygiene_data. expn_hash_to_expn_id . insert ( hash, expn_id) ;
1298
- debug_assert ! ( _old_id. is_none( ) ) ;
1298
+ debug_assert ! ( _old_id. is_none( ) || _old_id == Some ( expn_id ) ) ;
1299
1299
} ) ;
1300
1300
expn_id
1301
1301
}
You can’t perform that action at this time.
0 commit comments