@@ -53,9 +53,9 @@ use crate::{
53
53
visibility:: { RawVisibility , Visibility } ,
54
54
AdtId , AstId , AstIdWithPath , ConstLoc , CrateRootModuleId , EnumLoc , EnumVariantId ,
55
55
ExternBlockLoc , ExternCrateId , ExternCrateLoc , FunctionId , FunctionLoc , ImplLoc , Intern ,
56
- ItemContainerId , LocalModuleId , Macro2Id , Macro2Loc , MacroExpander , MacroId , MacroRulesId ,
57
- MacroRulesLoc , ModuleDefId , ModuleId , ProcMacroId , ProcMacroLoc , StaticLoc , StructLoc ,
58
- TraitAliasLoc , TraitLoc , TypeAliasLoc , UnionLoc , UnresolvedMacro , UseId , UseLoc ,
56
+ ItemContainerId , LocalModuleId , Lookup , Macro2Id , Macro2Loc , MacroExpander , MacroId ,
57
+ MacroRulesId , MacroRulesLoc , ModuleDefId , ModuleId , ProcMacroId , ProcMacroLoc , StaticLoc ,
58
+ StructLoc , TraitAliasLoc , TraitLoc , TypeAliasLoc , UnionLoc , UnresolvedMacro , UseId , UseLoc ,
59
59
} ;
60
60
61
61
static GLOB_RECURSION_LIMIT : Limit = Limit :: new ( 100 ) ;
@@ -1461,7 +1461,7 @@ impl DefCollector<'_> {
1461
1461
let mut diagnosed_extern_crates = FxHashSet :: default ( ) ;
1462
1462
for directive in & self . unresolved_imports {
1463
1463
if let ImportSource :: ExternCrate { id } = directive. import . source {
1464
- let item_tree_id = self . db . lookup_intern_extern_crate ( id ) . id ;
1464
+ let item_tree_id = id . lookup ( self . db ) . id ;
1465
1465
let item_tree = item_tree_id. item_tree ( self . db ) ;
1466
1466
let extern_crate = & item_tree[ item_tree_id. value ] ;
1467
1467
@@ -1482,7 +1482,7 @@ impl DefCollector<'_> {
1482
1482
) {
1483
1483
continue ;
1484
1484
}
1485
- let item_tree_id = self . db . lookup_intern_use ( id ) . id ;
1485
+ let item_tree_id = id . lookup ( self . db ) . id ;
1486
1486
self . def_map . diagnostics . push ( DefDiagnostic :: unresolved_import (
1487
1487
directive. module_id ,
1488
1488
item_tree_id,
0 commit comments