@@ -8,7 +8,7 @@ use crate::lint::{
88} ;
99use crate :: SessionDiagnostic ;
1010use rustc_ast:: node_id:: NodeId ;
11- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11+ use rustc_data_structures:: fx:: { FxHashMap , FxHashSet , FxIndexSet } ;
1212use rustc_data_structures:: sync:: { Lock , Lrc } ;
1313use rustc_errors:: { emitter:: SilentEmitter , ColorConfig , Handler } ;
1414use rustc_errors:: {
@@ -25,7 +25,7 @@ use std::str;
2525
2626/// The set of keys (and, optionally, values) that define the compilation
2727/// 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 > ) > ;
2929pub type CrateCheckConfig = CheckCfg < Symbol > ;
3030
3131/// Collected spans during parsing for places where a certain feature was
@@ -241,7 +241,7 @@ impl ParseSess {
241241 Self {
242242 span_diagnostic : handler,
243243 unstable_features : UnstableFeatures :: from_environment ( None ) ,
244- config : FxHashSet :: default ( ) ,
244+ config : FxIndexSet :: default ( ) ,
245245 check_config : CrateCheckConfig :: default ( ) ,
246246 edition : ExpnId :: root ( ) . expn_data ( ) . edition ,
247247 raw_identifier_spans : Lock :: new ( Vec :: new ( ) ) ,
0 commit comments