9
9
// tidy-alphabetical-start
10
10
#![ allow( internal_features) ]
11
11
#![ allow( rustc:: diagnostic_outside_of_impl) ]
12
- #![ allow( rustc:: potential_query_instability) ]
13
12
#![ allow( rustc:: untranslatable_diagnostic) ]
14
13
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
15
14
#![ doc( rust_logo) ]
@@ -1022,7 +1021,7 @@ pub struct Resolver<'ra, 'tcx> {
1022
1021
graph_root : Module < ' ra > ,
1023
1022
1024
1023
prelude : Option < Module < ' ra > > ,
1025
- extern_prelude : FxHashMap < Ident , ExternPreludeEntry < ' ra > > ,
1024
+ extern_prelude : FxIndexMap < Ident , ExternPreludeEntry < ' ra > > ,
1026
1025
1027
1026
/// N.B., this is used only for better diagnostics, not name resolution itself.
1028
1027
field_names : LocalDefIdMap < Vec < Ident > > ,
@@ -1055,7 +1054,7 @@ pub struct Resolver<'ra, 'tcx> {
1055
1054
extra_lifetime_params_map : NodeMap < Vec < ( Ident , NodeId , LifetimeRes ) > > ,
1056
1055
1057
1056
/// `CrateNum` resolutions of `extern crate` items.
1058
- extern_crate_map : FxHashMap < LocalDefId , CrateNum > ,
1057
+ extern_crate_map : FxIndexMap < LocalDefId , CrateNum > ,
1059
1058
module_children : LocalDefIdMap < Vec < ModChild > > ,
1060
1059
trait_map : NodeMap < Vec < TraitCandidate > > ,
1061
1060
@@ -1078,7 +1077,7 @@ pub struct Resolver<'ra, 'tcx> {
1078
1077
/// some AST passes can generate identifiers that only resolve to local or
1079
1078
/// lang items.
1080
1079
empty_module : Module < ' ra > ,
1081
- module_map : FxHashMap < DefId , Module < ' ra > > ,
1080
+ module_map : FxIndexMap < DefId , Module < ' ra > > ,
1082
1081
binding_parent_modules : FxHashMap < NameBinding < ' ra > , Module < ' ra > > ,
1083
1082
1084
1083
underscore_disambiguator : u32 ,
@@ -1114,16 +1113,16 @@ pub struct Resolver<'ra, 'tcx> {
1114
1113
macro_names : FxHashSet < Ident > ,
1115
1114
builtin_macros : FxHashMap < Symbol , BuiltinMacroState > ,
1116
1115
registered_tools : & ' tcx RegisteredTools ,
1117
- macro_use_prelude : FxHashMap < Symbol , NameBinding < ' ra > > ,
1116
+ macro_use_prelude : FxIndexMap < Symbol , NameBinding < ' ra > > ,
1118
1117
macro_map : FxHashMap < DefId , MacroData > ,
1119
1118
dummy_ext_bang : Lrc < SyntaxExtension > ,
1120
1119
dummy_ext_derive : Lrc < SyntaxExtension > ,
1121
1120
non_macro_attr : MacroData ,
1122
1121
local_macro_def_scopes : FxHashMap < LocalDefId , Module < ' ra > > ,
1123
1122
ast_transform_scopes : FxHashMap < LocalExpnId , Module < ' ra > > ,
1124
- unused_macros : FxHashMap < LocalDefId , ( NodeId , Ident ) > ,
1123
+ unused_macros : FxIndexMap < LocalDefId , ( NodeId , Ident ) > ,
1125
1124
/// 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 ) > > ,
1127
1126
proc_macro_stubs : FxHashSet < LocalDefId > ,
1128
1127
/// Traces collected during macro resolution and validated when it's complete.
1129
1128
single_segment_macro_resolutions :
@@ -1235,7 +1234,7 @@ impl<'ra> ResolverArenas<'ra> {
1235
1234
expn_id : ExpnId ,
1236
1235
span : Span ,
1237
1236
no_implicit_prelude : bool ,
1238
- module_map : & mut FxHashMap < DefId , Module < ' ra > > ,
1237
+ module_map : & mut FxIndexMap < DefId , Module < ' ra > > ,
1239
1238
module_self_bindings : & mut FxHashMap < Module < ' ra > , NameBinding < ' ra > > ,
1240
1239
) -> Module < ' ra > {
1241
1240
let module = Module ( Interned :: new_unchecked ( self . modules . alloc ( ModuleData :: new (
@@ -1380,7 +1379,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1380
1379
arenas : & ' ra ResolverArenas < ' ra > ,
1381
1380
) -> Resolver < ' ra , ' tcx > {
1382
1381
let root_def_id = CRATE_DEF_ID . to_def_id ( ) ;
1383
- let mut module_map = FxHashMap :: default ( ) ;
1382
+ let mut module_map = FxIndexMap :: default ( ) ;
1384
1383
let mut module_self_bindings = FxHashMap :: default ( ) ;
1385
1384
let graph_root = arenas. new_module (
1386
1385
None ,
@@ -1397,7 +1396,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1397
1396
ExpnId :: root ( ) ,
1398
1397
DUMMY_SP ,
1399
1398
true ,
1400
- & mut FxHashMap :: default ( ) ,
1399
+ & mut FxIndexMap :: default ( ) ,
1401
1400
& mut FxHashMap :: default ( ) ,
1402
1401
) ;
1403
1402
@@ -1413,7 +1412,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1413
1412
let mut invocation_parents = FxHashMap :: default ( ) ;
1414
1413
invocation_parents. insert ( LocalExpnId :: ROOT , InvocationParent :: ROOT ) ;
1415
1414
1416
- let mut extern_prelude: FxHashMap < Ident , ExternPreludeEntry < ' _ > > = tcx
1415
+ let mut extern_prelude: FxIndexMap < Ident , ExternPreludeEntry < ' _ > > = tcx
1417
1416
. sess
1418
1417
. opts
1419
1418
. externs
@@ -1513,7 +1512,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1513
1512
macro_names : FxHashSet :: default ( ) ,
1514
1513
builtin_macros : Default :: default ( ) ,
1515
1514
registered_tools,
1516
- macro_use_prelude : FxHashMap :: default ( ) ,
1515
+ macro_use_prelude : FxIndexMap :: default ( ) ,
1517
1516
macro_map : FxHashMap :: default ( ) ,
1518
1517
dummy_ext_bang : Lrc :: new ( SyntaxExtension :: dummy_bang ( edition) ) ,
1519
1518
dummy_ext_derive : Lrc :: new ( SyntaxExtension :: dummy_derive ( edition) ) ,
0 commit comments