@@ -53,9 +53,9 @@ use crate::{
5353 visibility:: { RawVisibility , Visibility } ,
5454 AdtId , AstId , AstIdWithPath , ConstLoc , CrateRootModuleId , EnumLoc , EnumVariantId ,
5555 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 ,
5959} ;
6060
6161static GLOB_RECURSION_LIMIT : Limit = Limit :: new ( 100 ) ;
@@ -1461,7 +1461,7 @@ impl DefCollector<'_> {
14611461 let mut diagnosed_extern_crates = FxHashSet :: default ( ) ;
14621462 for directive in & self . unresolved_imports {
14631463 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 ;
14651465 let item_tree = item_tree_id. item_tree ( self . db ) ;
14661466 let extern_crate = & item_tree[ item_tree_id. value ] ;
14671467
@@ -1482,7 +1482,7 @@ impl DefCollector<'_> {
14821482 ) {
14831483 continue ;
14841484 }
1485- let item_tree_id = self . db . lookup_intern_use ( id ) . id ;
1485+ let item_tree_id = id . lookup ( self . db ) . id ;
14861486 self . def_map . diagnostics . push ( DefDiagnostic :: unresolved_import (
14871487 directive. module_id ,
14881488 item_tree_id,
0 commit comments