@@ -46,7 +46,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet};
4646use rustc_data_structures:: intern:: Interned ;
4747use rustc_data_structures:: steal:: Steal ;
4848use rustc_data_structures:: sync:: FreezeReadGuard ;
49- use rustc_data_structures:: unord:: { UnordMap , UnordSet } ;
49+ use rustc_data_structures:: unord:: UnordMap ;
5050use rustc_errors:: { Applicability , Diag , ErrCode , ErrorGuaranteed } ;
5151use rustc_expand:: base:: { DeriveResolution , SyntaxExtension , SyntaxExtensionKind } ;
5252use rustc_feature:: BUILTIN_ATTRIBUTES ;
@@ -57,6 +57,7 @@ use rustc_hir::def::{
5757use rustc_hir:: def_id:: { CRATE_DEF_ID , CrateNum , DefId , LOCAL_CRATE , LocalDefId , LocalDefIdMap } ;
5858use rustc_hir:: definitions:: DisambiguatorState ;
5959use rustc_hir:: { PrimTy , TraitCandidate } ;
60+ use rustc_index:: bit_set:: DenseBitSet ;
6061use rustc_metadata:: creader:: { CStore , CrateLoader } ;
6162use rustc_middle:: metadata:: ModChild ;
6263use rustc_middle:: middle:: privacy:: EffectiveVisibilities ;
@@ -1135,7 +1136,7 @@ pub struct Resolver<'ra, 'tcx> {
11351136 ast_transform_scopes : FxHashMap < LocalExpnId , Module < ' ra > > ,
11361137 unused_macros : FxIndexMap < LocalDefId , ( NodeId , Ident ) > ,
11371138 /// A map from the macro to all its potentially unused arms.
1138- unused_macro_rules : FxIndexMap < NodeId , UnordSet < usize > > ,
1139+ unused_macro_rules : FxIndexMap < NodeId , DenseBitSet < usize > > ,
11391140 proc_macro_stubs : FxHashSet < LocalDefId > ,
11401141 /// Traces collected during macro resolution and validated when it's complete.
11411142 single_segment_macro_resolutions :
0 commit comments