@@ -8,7 +8,7 @@ use rustc_ast::tokenstream::TokenStream;
88use rustc_ast:: visit:: { AssocCtxt , Visitor } ;
99use rustc_ast:: { self as ast, Attribute , HasAttrs , Item , NodeId , PatKind } ;
1010use rustc_attr:: { self as attr, Deprecation , Stability } ;
11- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11+ use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
1212use rustc_data_structures:: sync:: { self , Lrc } ;
1313use rustc_errors:: { Applicability , DiagnosticBuilder , ErrorGuaranteed , MultiSpan , PResult } ;
1414use rustc_lint_defs:: builtin:: PROC_MACRO_BACK_COMPAT ;
@@ -985,7 +985,7 @@ pub struct ExtCtxt<'a> {
985985 /// Error recovery mode entered when expansion is stuck
986986 /// (or during eager expansion, but that's a hack).
987987 pub force_mode : bool ,
988- pub expansions : FxHashMap < Span , Vec < String > > ,
988+ pub expansions : FxIndexMap < Span , Vec < String > > ,
989989 /// Used for running pre-expansion lints on freshly loaded modules.
990990 pub ( super ) lint_store : LintStoreExpandDyn < ' a > ,
991991 /// Used for storing lints generated during expansion, like `NAMED_ARGUMENTS_USED_POSITIONALLY`
@@ -1020,7 +1020,7 @@ impl<'a> ExtCtxt<'a> {
10201020 is_trailing_mac : false ,
10211021 } ,
10221022 force_mode : false ,
1023- expansions : FxHashMap :: default ( ) ,
1023+ expansions : FxIndexMap :: default ( ) ,
10241024 expanded_inert_attrs : MarkedAttrs :: new ( ) ,
10251025 buffered_early_lint : vec ! [ ] ,
10261026 }
0 commit comments