@@ -33,7 +33,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap, FxIndexSet};
33
33
use rustc_data_structures:: intern:: Interned ;
34
34
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
35
35
use rustc_data_structures:: steal:: Steal ;
36
- use rustc_data_structures:: unord:: UnordMap ;
36
+ use rustc_data_structures:: unord:: { UnordMap , UnordSet } ;
37
37
use rustc_errors:: { Diag , ErrorGuaranteed } ;
38
38
use rustc_hir:: LangItem ;
39
39
use rustc_hir:: def:: { CtorKind , CtorOf , DefKind , DocLinkResMap , LifetimeRes , Res } ;
@@ -176,11 +176,11 @@ pub struct ResolverOutputs {
176
176
pub ast_lowering : ResolverAstLowering ,
177
177
}
178
178
179
- #[ derive( Debug ) ]
179
+ #[ derive( Debug , HashStable ) ]
180
180
pub struct ResolverGlobalCtxt {
181
181
pub visibilities_for_hashing : Vec < ( LocalDefId , Visibility ) > ,
182
182
/// 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 > ,
184
184
pub effective_visibilities : EffectiveVisibilities ,
185
185
pub extern_crate_map : UnordMap < LocalDefId , CrateNum > ,
186
186
pub maybe_unused_trait_imports : FxIndexSet < LocalDefId > ,
@@ -196,8 +196,8 @@ pub struct ResolverGlobalCtxt {
196
196
pub confused_type_with_std_module : FxIndexMap < Span , Span > ,
197
197
pub doc_link_resolutions : FxIndexMap < LocalDefId , DocLinkResMap > ,
198
198
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 > ,
201
201
}
202
202
203
203
/// Resolutions that should only be used for lowering.
@@ -243,7 +243,7 @@ pub struct DelegationFnSig {
243
243
pub target_feature : bool ,
244
244
}
245
245
246
- #[ derive( Clone , Copy , Debug ) ]
246
+ #[ derive( Clone , Copy , Debug , HashStable ) ]
247
247
pub struct MainDefinition {
248
248
pub res : Res < ast:: NodeId > ,
249
249
pub is_import : bool ,
0 commit comments