@@ -33,7 +33,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet};
3333use rustc_data_structures:: intern:: Interned ;
3434use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
3535use rustc_data_structures:: steal:: Steal ;
36- use rustc_data_structures:: unord:: UnordMap ;
36+ use rustc_data_structures:: unord:: { UnordMap , UnordSet } ;
3737use rustc_errors:: { Diag , ErrorGuaranteed } ;
3838use rustc_hir:: LangItem ;
3939use rustc_hir:: def:: { CtorKind , CtorOf , DefKind , DocLinkResMap , LifetimeRes , Res } ;
@@ -176,11 +176,11 @@ pub struct ResolverOutputs {
176176 pub ast_lowering : ResolverAstLowering ,
177177}
178178
179- #[ derive( Debug ) ]
179+ #[ derive( Debug , HashStable ) ]
180180pub struct ResolverGlobalCtxt {
181181 pub visibilities_for_hashing : Vec < ( LocalDefId , Visibility ) > ,
182182 /// Item with a given `LocalDefId` was defined during macro expansion with ID `ExpnId`.
183- pub expn_that_defined : FxHashMap < LocalDefId , ExpnId > ,
183+ pub expn_that_defined : UnordMap < LocalDefId , ExpnId > ,
184184 pub effective_visibilities : EffectiveVisibilities ,
185185 pub extern_crate_map : UnordMap < LocalDefId , CrateNum > ,
186186 pub maybe_unused_trait_imports : FxIndexSet < LocalDefId > ,
@@ -196,8 +196,8 @@ pub struct ResolverGlobalCtxt {
196196 pub confused_type_with_std_module : FxIndexMap < Span , Span > ,
197197 pub doc_link_resolutions : FxIndexMap < LocalDefId , DocLinkResMap > ,
198198 pub doc_link_traits_in_scope : FxIndexMap < LocalDefId , Vec < DefId > > ,
199- pub all_macro_rules : FxHashSet < Symbol > ,
200- pub stripped_cfg_items : Steal < Vec < StrippedCfgItem > > ,
199+ pub all_macro_rules : UnordSet < Symbol > ,
200+ pub stripped_cfg_items : Vec < StrippedCfgItem > ,
201201}
202202
203203/// Resolutions that should only be used for lowering.
@@ -243,7 +243,7 @@ pub struct DelegationFnSig {
243243 pub target_feature : bool ,
244244}
245245
246- #[ derive( Clone , Copy , Debug ) ]
246+ #[ derive( Clone , Copy , Debug , HashStable ) ]
247247pub struct MainDefinition {
248248 pub res : Res < ast:: NodeId > ,
249249 pub is_import : bool ,
0 commit comments