diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-12-21 12:30:36 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2024-01-04 13:48:57 +0100 |
| commit | 5449638d7d6b4f78b1f1fd6963eff35dd1a9705a (patch) | |
| tree | 76ac898848675275485ddb4e78b2b8fcc0272820 /compiler/rustc_codegen_ssa/src | |
| parent | 7d4f2ee8172f065b20065ebbbf9ac9ee86a3c358 (diff) | |
| download | rust-5449638d7d6b4f78b1f1fd6963eff35dd1a9705a.tar.gz rust-5449638d7d6b4f78b1f1fd6963eff35dd1a9705a.zip | |
Make iteration order of supported_target_features query stable
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/target_features.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs index 031fcc0adb1..b6bb1607a09 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -1,8 +1,8 @@ use crate::errors; use rustc_ast::ast; use rustc_attr::InstructionSetAttr; -use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxIndexSet; +use rustc_data_structures::unord::UnordMap; use rustc_errors::Applicability; use rustc_hir::def::DefKind; use rustc_hir::def_id::DefId; @@ -18,7 +18,7 @@ use rustc_span::Span; pub fn from_target_feature( tcx: TyCtxt<'_>, attr: &ast::Attribute, - supported_target_features: &FxHashMap<String, Option<Symbol>>, + supported_target_features: &UnordMap<String, Option<Symbol>>, target_features: &mut Vec<Symbol>, ) { let Some(list) = attr.meta_item_list() else { return }; |
