@@ -9,7 +9,7 @@ use rustc_ast as ast;
9
9
use rustc_data_structures:: fx:: FxHashSet ;
10
10
use rustc_hir as hir;
11
11
use rustc_hir:: def:: { DefKind , Res } ;
12
- use rustc_hir:: def_id:: { DefId , LocalDefId } ;
12
+ use rustc_hir:: def_id:: { DefId , DefIdSet , LocalDefId } ;
13
13
use rustc_hir:: Mutability ;
14
14
use rustc_metadata:: creader:: { CStore , LoadedMacro } ;
15
15
use rustc_middle:: ty:: { self , TyCtxt } ;
@@ -45,7 +45,7 @@ pub(crate) fn try_inline(
45
45
res : Res ,
46
46
name : Symbol ,
47
47
attrs : Option < & [ ast:: Attribute ] > ,
48
- visited : & mut FxHashSet < DefId > ,
48
+ visited : & mut DefIdSet ,
49
49
) -> Option < Vec < clean:: Item > > {
50
50
let did = res. opt_def_id ( ) ?;
51
51
if did. is_local ( ) {
@@ -163,7 +163,7 @@ pub(crate) fn try_inline_glob(
163
163
cx : & mut DocContext < ' _ > ,
164
164
res : Res ,
165
165
current_mod : LocalDefId ,
166
- visited : & mut FxHashSet < DefId > ,
166
+ visited : & mut DefIdSet ,
167
167
inlined_names : & mut FxHashSet < ( ItemType , Symbol ) > ,
168
168
) -> Option < Vec < clean:: Item > > {
169
169
let did = res. opt_def_id ( ) ?;
@@ -568,11 +568,7 @@ pub(crate) fn build_impl(
568
568
) ) ;
569
569
}
570
570
571
- fn build_module (
572
- cx : & mut DocContext < ' _ > ,
573
- did : DefId ,
574
- visited : & mut FxHashSet < DefId > ,
575
- ) -> clean:: Module {
571
+ fn build_module ( cx : & mut DocContext < ' _ > , did : DefId , visited : & mut DefIdSet ) -> clean:: Module {
576
572
let items = build_module_items ( cx, did, visited, & mut FxHashSet :: default ( ) , None ) ;
577
573
578
574
let span = clean:: Span :: new ( cx. tcx . def_span ( did) ) ;
@@ -582,9 +578,9 @@ fn build_module(
582
578
fn build_module_items (
583
579
cx : & mut DocContext < ' _ > ,
584
580
did : DefId ,
585
- visited : & mut FxHashSet < DefId > ,
581
+ visited : & mut DefIdSet ,
586
582
inlined_names : & mut FxHashSet < ( ItemType , Symbol ) > ,
587
- allowed_def_ids : Option < & FxHashSet < DefId > > ,
583
+ allowed_def_ids : Option < & DefIdSet > ,
588
584
) -> Vec < clean:: Item > {
589
585
let mut items = Vec :: new ( ) ;
590
586
0 commit comments