@@ -9,7 +9,7 @@ use rustc_hir as hir;
9
9
use rustc_hir:: def:: { DefKind , Res } ;
10
10
use rustc_hir:: def_id:: DefId ;
11
11
use rustc_hir:: Mutability ;
12
- use rustc_metadata:: creader:: LoadedMacro ;
12
+ use rustc_metadata:: creader:: { CStore , LoadedMacro } ;
13
13
use rustc_middle:: ty:: { self , TyCtxt } ;
14
14
use rustc_span:: hygiene:: MacroKind ;
15
15
use rustc_span:: symbol:: { kw, sym, Symbol } ;
@@ -179,7 +179,7 @@ crate fn record_extern_fqn(cx: &mut DocContext<'_>, did: DefId, kind: ItemType)
179
179
let fqn = if let ItemType :: Macro = kind {
180
180
// Check to see if it is a macro 2.0 or built-in macro
181
181
if matches ! (
182
- cx. enter_resolver ( |r| r . cstore ( ) . load_macro_untracked( did, cx. sess( ) ) ) ,
182
+ CStore :: from_tcx ( cx. tcx ) . load_macro_untracked( did, cx. sess( ) ) ,
183
183
LoadedMacro :: MacroDef ( def, _)
184
184
if matches!( & def. kind, ast:: ItemKind :: MacroDef ( ast_def)
185
185
if !ast_def. macro_rules)
@@ -558,7 +558,7 @@ fn build_macro(
558
558
import_def_id : Option < DefId > ,
559
559
) -> clean:: ItemKind {
560
560
let imported_from = cx. tcx . crate_name ( def_id. krate ) ;
561
- match cx. enter_resolver ( |r| r . cstore ( ) . load_macro_untracked ( def_id, cx. sess ( ) ) ) {
561
+ match CStore :: from_tcx ( cx. tcx ) . load_macro_untracked ( def_id, cx. sess ( ) ) {
562
562
LoadedMacro :: MacroDef ( item_def, _) => {
563
563
if let ast:: ItemKind :: MacroDef ( ref def) = item_def. kind {
564
564
clean:: MacroItem ( clean:: Macro {
0 commit comments