diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-02-21 15:15:16 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-03-01 10:19:26 +0100 |
| commit | ee8bc5b0b21ab1aac0e9db76f94aadca1076f969 (patch) | |
| tree | 1099304f2b834f25ee4ad32863fc81fb635c29c1 /compiler/rustc_session/src | |
| parent | b0202d9c2c03e62cf72554af4a537969b463d3e8 (diff) | |
| download | rust-ee8bc5b0b21ab1aac0e9db76f94aadca1076f969.tar.gz rust-ee8bc5b0b21ab1aac0e9db76f94aadca1076f969.zip | |
Use FxIndexSet instead of FxHashSet for asm_target_features query.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index 446ba63ed1c..0ef3b026ab0 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -11,7 +11,7 @@ use crate::{filesearch, lint}; pub use rustc_ast::attr::MarkedAttrs; pub use rustc_ast::Attribute; use rustc_data_structures::flock; -use rustc_data_structures::fx::{FxHashMap, FxHashSet}; +use rustc_data_structures::fx::{FxHashMap, FxIndexSet}; use rustc_data_structures::jobserver::{self, Client}; use rustc_data_structures::profiling::{duration_to_secs_str, SelfProfiler, SelfProfilerRef}; use rustc_data_structures::sync::{ @@ -207,10 +207,10 @@ pub struct Session { pub asm_arch: Option<InlineAsmArch>, /// Set of enabled features for the current target. - pub target_features: FxHashSet<Symbol>, + pub target_features: FxIndexSet<Symbol>, /// Set of enabled features for the current target, including unstable ones. - pub unstable_target_features: FxHashSet<Symbol>, + pub unstable_target_features: FxIndexSet<Symbol>, } pub struct PerfStats { @@ -1484,8 +1484,8 @@ pub fn build_session( ctfe_backtrace, miri_unleashed_features: Lock::new(Default::default()), asm_arch, - target_features: FxHashSet::default(), - unstable_target_features: FxHashSet::default(), + target_features: Default::default(), + unstable_target_features: Default::default(), }; validate_commandline_args_with_session_available(&sess); |
