@@ -9,7 +9,7 @@ use rustc_ast as ast;
99use rustc_data_structures:: fx:: FxHashSet ;
1010use rustc_hir as hir;
1111use rustc_hir:: def:: { DefKind , Res } ;
12- use rustc_hir:: def_id:: { DefId , LocalDefId } ;
12+ use rustc_hir:: def_id:: { DefId , DefIdSet , LocalDefId } ;
1313use rustc_hir:: Mutability ;
1414use rustc_metadata:: creader:: { CStore , LoadedMacro } ;
1515use rustc_middle:: ty:: { self , TyCtxt } ;
@@ -45,7 +45,7 @@ pub(crate) fn try_inline(
4545 res : Res ,
4646 name : Symbol ,
4747 attrs : Option < & [ ast:: Attribute ] > ,
48- visited : & mut FxHashSet < DefId > ,
48+ visited : & mut DefIdSet ,
4949) -> Option < Vec < clean:: Item > > {
5050 let did = res. opt_def_id ( ) ?;
5151 if did. is_local ( ) {
@@ -163,7 +163,7 @@ pub(crate) fn try_inline_glob(
163163 cx : & mut DocContext < ' _ > ,
164164 res : Res ,
165165 current_mod : LocalDefId ,
166- visited : & mut FxHashSet < DefId > ,
166+ visited : & mut DefIdSet ,
167167 inlined_names : & mut FxHashSet < ( ItemType , Symbol ) > ,
168168) -> Option < Vec < clean:: Item > > {
169169 let did = res. opt_def_id ( ) ?;
@@ -568,11 +568,7 @@ pub(crate) fn build_impl(
568568 ) ) ;
569569}
570570
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 {
576572 let items = build_module_items ( cx, did, visited, & mut FxHashSet :: default ( ) , None ) ;
577573
578574 let span = clean:: Span :: new ( cx. tcx . def_span ( did) ) ;
@@ -582,9 +578,9 @@ fn build_module(
582578fn build_module_items (
583579 cx : & mut DocContext < ' _ > ,
584580 did : DefId ,
585- visited : & mut FxHashSet < DefId > ,
581+ visited : & mut DefIdSet ,
586582 inlined_names : & mut FxHashSet < ( ItemType , Symbol ) > ,
587- allowed_def_ids : Option < & FxHashSet < DefId > > ,
583+ allowed_def_ids : Option < & DefIdSet > ,
588584) -> Vec < clean:: Item > {
589585 let mut items = Vec :: new ( ) ;
590586
0 commit comments