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,16 +1113,16 @@ 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 ) > ,
1123+ unused_macros : FxIndexMap < LocalDefId , ( NodeId , Ident ) > ,
11251124 /// A map from the macro to all its potentially unused arms.
1126- unused_macro_rules : FxIndexMap < LocalDefId , FxHashMap < usize , ( Ident , Span ) > > ,
1125+ unused_macro_rules : FxIndexMap < LocalDefId , FxIndexMap < usize , ( Ident , Span ) > > ,
11271126 proc_macro_stubs : FxHashSet < LocalDefId > ,
11281127 /// Traces collected during macro resolution and validated when it's complete.
11291128 single_segment_macro_resolutions :
@@ -1235,7 +1234,7 @@ impl<'ra> ResolverArenas<'ra> {
12351234 expn_id : ExpnId ,
12361235 span : Span ,
12371236 no_implicit_prelude : bool ,
1238- module_map : & mut FxHashMap < DefId , Module < ' ra > > ,
1237+ module_map : & mut FxIndexMap < DefId , Module < ' ra > > ,
12391238 module_self_bindings : & mut FxHashMap < Module < ' ra > , NameBinding < ' ra > > ,
12401239 ) -> Module < ' ra > {
12411240 let module = Module ( Interned :: new_unchecked ( self . modules . alloc ( ModuleData :: new (
@@ -1380,7 +1379,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
13801379 arenas : & ' ra ResolverArenas < ' ra > ,
13811380 ) -> Resolver < ' ra , ' tcx > {
13821381 let root_def_id = CRATE_DEF_ID . to_def_id ( ) ;
1383- let mut module_map = FxHashMap :: default ( ) ;
1382+ let mut module_map = FxIndexMap :: default ( ) ;
13841383 let mut module_self_bindings = FxHashMap :: default ( ) ;
13851384 let graph_root = arenas. new_module (
13861385 None ,
@@ -1397,7 +1396,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
13971396 ExpnId :: root ( ) ,
13981397 DUMMY_SP ,
13991398 true ,
1400- & mut FxHashMap :: default ( ) ,
1399+ & mut FxIndexMap :: default ( ) ,
14011400 & mut FxHashMap :: default ( ) ,
14021401 ) ;
14031402
@@ -1413,7 +1412,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
14131412 let mut invocation_parents = FxHashMap :: default ( ) ;
14141413 invocation_parents. insert ( LocalExpnId :: ROOT , InvocationParent :: ROOT ) ;
14151414
1416- let mut extern_prelude: FxHashMap < Ident , ExternPreludeEntry < ' _ > > = tcx
1415+ let mut extern_prelude: FxIndexMap < Ident , ExternPreludeEntry < ' _ > > = tcx
14171416 . sess
14181417 . opts
14191418 . externs
@@ -1513,7 +1512,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
15131512 macro_names : FxHashSet :: default ( ) ,
15141513 builtin_macros : Default :: default ( ) ,
15151514 registered_tools,
1516- macro_use_prelude : FxHashMap :: default ( ) ,
1515+ macro_use_prelude : FxIndexMap :: default ( ) ,
15171516 macro_map : FxHashMap :: default ( ) ,
15181517 dummy_ext_bang : Lrc :: new ( SyntaxExtension :: dummy_bang ( edition) ) ,
15191518 dummy_ext_derive : Lrc :: new ( SyntaxExtension :: dummy_derive ( edition) ) ,
0 commit comments