Skip to content

Commit 00d8eb4

Browse files
committed
Change CrateConfig from FxIndexSet to FxHashSet.
Because its order doesn't matter. This is well demonstrated by `to_crate_config`, which creates a `CrateConfig` from an `FxHashSet`.
1 parent d74c0f4 commit 00d8eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_session/src/parse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::lint::{
99
builtin::UNSTABLE_SYNTAX_PRE_EXPANSION, BufferedEarlyLint, BuiltinLintDiagnostics, Lint, LintId,
1010
};
1111
use rustc_ast::node_id::NodeId;
12-
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexSet};
12+
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1313
use rustc_data_structures::sync::{AppendOnlyVec, Lock, Lrc};
1414
use rustc_errors::{emitter::SilentEmitter, Handler};
1515
use rustc_errors::{
@@ -27,7 +27,7 @@ use std::str;
2727

2828
/// The set of keys (and, optionally, values) that define the compilation
2929
/// environment of the crate, used to drive conditional compilation.
30-
pub type CrateConfig = FxIndexSet<(Symbol, Option<Symbol>)>;
30+
pub type CrateConfig = FxHashSet<(Symbol, Option<Symbol>)>;
3131
pub type CrateCheckConfig = CheckCfg<Symbol>;
3232

3333
/// Collected spans during parsing for places where a certain feature was
@@ -237,7 +237,7 @@ impl ParseSess {
237237
Self {
238238
span_diagnostic: handler,
239239
unstable_features: UnstableFeatures::from_environment(None),
240-
config: FxIndexSet::default(),
240+
config: FxHashSet::default(),
241241
check_config: CrateCheckConfig::default(),
242242
edition: ExpnId::root().expn_data().edition,
243243
raw_identifier_spans: Default::default(),

0 commit comments

Comments
 (0)