@@ -8,7 +8,7 @@ use crate::lint::{
8
8
} ;
9
9
use crate :: SessionDiagnostic ;
10
10
use rustc_ast:: node_id:: NodeId ;
11
- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11
+ use rustc_data_structures:: fx:: { FxHashMap , FxHashSet , FxIndexSet } ;
12
12
use rustc_data_structures:: sync:: { Lock , Lrc } ;
13
13
use rustc_errors:: { emitter:: SilentEmitter , ColorConfig , Handler } ;
14
14
use rustc_errors:: {
@@ -25,7 +25,7 @@ use std::str;
25
25
26
26
/// The set of keys (and, optionally, values) that define the compilation
27
27
/// environment of the crate, used to drive conditional compilation.
28
- pub type CrateConfig = FxHashSet < ( Symbol , Option < Symbol > ) > ;
28
+ pub type CrateConfig = FxIndexSet < ( Symbol , Option < Symbol > ) > ;
29
29
pub type CrateCheckConfig = CheckCfg < Symbol > ;
30
30
31
31
/// Collected spans during parsing for places where a certain feature was
@@ -241,7 +241,7 @@ impl ParseSess {
241
241
Self {
242
242
span_diagnostic : handler,
243
243
unstable_features : UnstableFeatures :: from_environment ( None ) ,
244
- config : FxHashSet :: default ( ) ,
244
+ config : FxIndexSet :: default ( ) ,
245
245
check_config : CrateCheckConfig :: default ( ) ,
246
246
edition : ExpnId :: root ( ) . expn_data ( ) . edition ,
247
247
raw_identifier_spans : Lock :: new ( Vec :: new ( ) ) ,
0 commit comments