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(
12911291 let expn_id = ExpnId { krate, local_id } ;
12921292 HygieneData :: with ( |hygiene_data| {
12931293 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 ) ) ;
12951295 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 ) ) ;
12971297 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 ) ) ;
12991299 } ) ;
13001300 expn_id
13011301}
You can’t perform that action at this time.
0 commit comments