@@ -8,7 +8,7 @@ use rustc_ast::tokenstream::TokenStream;
8
8
use rustc_ast:: visit:: { AssocCtxt , Visitor } ;
9
9
use rustc_ast:: { self as ast, Attribute , HasAttrs , Item , NodeId , PatKind } ;
10
10
use rustc_attr:: { self as attr, Deprecation , Stability } ;
11
- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11
+ use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
12
12
use rustc_data_structures:: sync:: { self , Lrc } ;
13
13
use rustc_errors:: { Applicability , DiagnosticBuilder , ErrorGuaranteed , MultiSpan , PResult } ;
14
14
use rustc_lint_defs:: builtin:: PROC_MACRO_BACK_COMPAT ;
@@ -985,7 +985,7 @@ pub struct ExtCtxt<'a> {
985
985
/// Error recovery mode entered when expansion is stuck
986
986
/// (or during eager expansion, but that's a hack).
987
987
pub force_mode : bool ,
988
- pub expansions : FxHashMap < Span , Vec < String > > ,
988
+ pub expansions : FxIndexMap < Span , Vec < String > > ,
989
989
/// Used for running pre-expansion lints on freshly loaded modules.
990
990
pub ( super ) lint_store : LintStoreExpandDyn < ' a > ,
991
991
/// Used for storing lints generated during expansion, like `NAMED_ARGUMENTS_USED_POSITIONALLY`
@@ -1020,7 +1020,7 @@ impl<'a> ExtCtxt<'a> {
1020
1020
is_trailing_mac : false ,
1021
1021
} ,
1022
1022
force_mode : false ,
1023
- expansions : FxHashMap :: default ( ) ,
1023
+ expansions : FxIndexMap :: default ( ) ,
1024
1024
expanded_inert_attrs : MarkedAttrs :: new ( ) ,
1025
1025
buffered_early_lint : vec ! [ ] ,
1026
1026
}
0 commit comments