File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
crates/cli-support/src/webidl Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1088,7 +1088,12 @@ impl<'a> Context<'a> {
1088
1088
) -> Result < ( ) , Error > {
1089
1089
let import = self . determine_import ( import, & type_. name ) ?;
1090
1090
log:: debug!( "inserting import id {:x?}: {}" , type_. id, type_. name) ;
1091
- assert ! ( self . aux. internal_refs. insert( type_. id, Referenceable :: Import ( import. clone( ) ) ) . is_none( ) ) ;
1091
+ let parent = Referenceable :: Import ( import. clone ( ) ) ;
1092
+ match self . aux . internal_refs . insert ( type_. id , parent) {
1093
+ Some ( Referenceable :: Struct ( _) ) => unreachable ! ( ) ,
1094
+ Some ( Referenceable :: Import ( previous) ) => assert_eq ! ( previous, import) ,
1095
+ None => ( ) ,
1096
+ }
1092
1097
1093
1098
let ( import_id, _id) = match self . function_imports . get ( type_. instanceof_shim ) {
1094
1099
Some ( pair) => * pair,
You can’t perform that action at this time.
0 commit comments