99// tidy-alphabetical-start
1010#![ allow( internal_features) ]
1111#![ allow( rustc:: diagnostic_outside_of_impl) ]
12- #![ allow( rustc:: potential_query_instability) ]
1312#![ allow( rustc:: untranslatable_diagnostic) ]
1413#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
1514#![ doc( rust_logo) ]
@@ -1022,7 +1021,7 @@ pub struct Resolver<'ra, 'tcx> {
10221021 graph_root : Module < ' ra > ,
10231022
10241023 prelude : Option < Module < ' ra > > ,
1025- extern_prelude : FxHashMap < Ident , ExternPreludeEntry < ' ra > > ,
1024+ extern_prelude : FxIndexMap < Ident , ExternPreludeEntry < ' ra > > ,
10261025
10271026 /// N.B., this is used only for better diagnostics, not name resolution itself.
10281027 field_names : LocalDefIdMap < Vec < Ident > > ,
@@ -1055,7 +1054,7 @@ pub struct Resolver<'ra, 'tcx> {
10551054 extra_lifetime_params_map : NodeMap < Vec < ( Ident , NodeId , LifetimeRes ) > > ,
10561055
10571056 /// `CrateNum` resolutions of `extern crate` items.
1058- extern_crate_map : FxHashMap < LocalDefId , CrateNum > ,
1057+ extern_crate_map : FxIndexMap < LocalDefId , CrateNum > ,
10591058 module_children : LocalDefIdMap < Vec < ModChild > > ,
10601059 trait_map : NodeMap < Vec < TraitCandidate > > ,
10611060
@@ -1078,7 +1077,7 @@ pub struct Resolver<'ra, 'tcx> {
10781077 /// some AST passes can generate identifiers that only resolve to local or
10791078 /// lang items.
10801079 empty_module : Module < ' ra > ,
1081- module_map : FxHashMap < DefId , Module < ' ra > > ,
1080+ module_map : FxIndexMap < DefId , Module < ' ra > > ,
10821081 binding_parent_modules : FxHashMap < NameBinding < ' ra > , Module < ' ra > > ,
10831082
10841083 underscore_disambiguator : u32 ,
@@ -1114,15 +1113,15 @@ pub struct Resolver<'ra, 'tcx> {
11141113 macro_names : FxHashSet < Ident > ,
11151114 builtin_macros : FxHashMap < Symbol , BuiltinMacroState > ,
11161115 registered_tools : & ' tcx RegisteredTools ,
1117- macro_use_prelude : FxHashMap < Symbol , NameBinding < ' ra > > ,
1116+ macro_use_prelude : FxIndexMap < Symbol , NameBinding < ' ra > > ,
11181117 macro_map : FxHashMap < DefId , MacroData > ,
11191118 dummy_ext_bang : Lrc < SyntaxExtension > ,
11201119 dummy_ext_derive : Lrc < SyntaxExtension > ,
11211120 non_macro_attr : MacroData ,
11221121 local_macro_def_scopes : FxHashMap < LocalDefId , Module < ' ra > > ,
11231122 ast_transform_scopes : FxHashMap < LocalExpnId , Module < ' ra > > ,
1124- unused_macros : FxHashMap < LocalDefId , ( NodeId , Ident ) > ,
1125- unused_macro_rules : FxHashMap < ( LocalDefId , usize ) , ( Ident , Span ) > ,
1123+ unused_macros : FxIndexMap < LocalDefId , ( NodeId , Ident ) > ,
1124+ unused_macro_rules : FxIndexMap < ( LocalDefId , usize ) , ( Ident , Span ) > ,
11261125 proc_macro_stubs : FxHashSet < LocalDefId > ,
11271126 /// Traces collected during macro resolution and validated when it's complete.
11281127 single_segment_macro_resolutions :
@@ -1234,7 +1233,7 @@ impl<'ra> ResolverArenas<'ra> {
12341233 expn_id : ExpnId ,
12351234 span : Span ,
12361235 no_implicit_prelude : bool ,
1237- module_map : & mut FxHashMap < DefId , Module < ' ra > > ,
1236+ module_map : & mut FxIndexMap < DefId , Module < ' ra > > ,
12381237 module_self_bindings : & mut FxHashMap < Module < ' ra > , NameBinding < ' ra > > ,
12391238 ) -> Module < ' ra > {
12401239 let module = Module ( Interned :: new_unchecked ( self . modules . alloc ( ModuleData :: new (
@@ -1379,7 +1378,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
13791378 arenas : & ' ra ResolverArenas < ' ra > ,
13801379 ) -> Resolver < ' ra , ' tcx > {
13811380 let root_def_id = CRATE_DEF_ID . to_def_id ( ) ;
1382- let mut module_map = FxHashMap :: default ( ) ;
1381+ let mut module_map = FxIndexMap :: default ( ) ;
13831382 let mut module_self_bindings = FxHashMap :: default ( ) ;
13841383 let graph_root = arenas. new_module (
13851384 None ,
@@ -1396,7 +1395,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
13961395 ExpnId :: root ( ) ,
13971396 DUMMY_SP ,
13981397 true ,
1399- & mut FxHashMap :: default ( ) ,
1398+ & mut FxIndexMap :: default ( ) ,
14001399 & mut FxHashMap :: default ( ) ,
14011400 ) ;
14021401
@@ -1412,7 +1411,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
14121411 let mut invocation_parents = FxHashMap :: default ( ) ;
14131412 invocation_parents. insert ( LocalExpnId :: ROOT , InvocationParent :: ROOT ) ;
14141413
1415- let mut extern_prelude: FxHashMap < Ident , ExternPreludeEntry < ' _ > > = tcx
1414+ let mut extern_prelude: FxIndexMap < Ident , ExternPreludeEntry < ' _ > > = tcx
14161415 . sess
14171416 . opts
14181417 . externs
@@ -1512,7 +1511,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
15121511 macro_names : FxHashSet :: default ( ) ,
15131512 builtin_macros : Default :: default ( ) ,
15141513 registered_tools,
1515- macro_use_prelude : FxHashMap :: default ( ) ,
1514+ macro_use_prelude : FxIndexMap :: default ( ) ,
15161515 macro_map : FxHashMap :: default ( ) ,
15171516 dummy_ext_bang : Lrc :: new ( SyntaxExtension :: dummy_bang ( edition) ) ,
15181517 dummy_ext_derive : Lrc :: new ( SyntaxExtension :: dummy_derive ( edition) ) ,
0 commit comments