Skip to content

Commit 5135e1a

Browse files
Make iteration order of supported_target_features query stable
1 parent b2e5a7b commit 5135e1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::errors;
22
use rustc_ast::ast;
33
use rustc_attr::InstructionSetAttr;
4-
use rustc_data_structures::fx::FxHashMap;
54
use rustc_data_structures::fx::FxIndexSet;
5+
use rustc_data_structures::unord::UnordMap;
66
use rustc_errors::Applicability;
77
use rustc_hir::def::DefKind;
88
use rustc_hir::def_id::DefId;
@@ -18,7 +18,7 @@ use rustc_span::Span;
1818
pub fn from_target_feature(
1919
tcx: TyCtxt<'_>,
2020
attr: &ast::Attribute,
21-
supported_target_features: &FxHashMap<String, Option<Symbol>>,
21+
supported_target_features: &UnordMap<String, Option<Symbol>>,
2222
target_features: &mut Vec<Symbol>,
2323
) {
2424
let Some(list) = attr.meta_item_list() else { return };

compiler/rustc_middle/src/query/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ rustc_queries! {
20822082
desc { "computing autoderef types for `{}`", goal.value.value }
20832083
}
20842084

2085-
query supported_target_features(_: CrateNum) -> &'tcx FxHashMap<String, Option<Symbol>> {
2085+
query supported_target_features(_: CrateNum) -> &'tcx UnordMap<String, Option<Symbol>> {
20862086
arena_cache
20872087
eval_always
20882088
desc { "looking up supported target features" }

0 commit comments

Comments
 (0)