Skip to content

Commit e02129f

Browse files
committed
Use IndexSet for deterministic order
1 parent af0a464 commit e02129f

File tree

1 file changed

+2
-3
lines changed
  • compiler/rustc_mir_transform/src/inline

1 file changed

+2
-3
lines changed

compiler/rustc_mir_transform/src/inline/cycle.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
2-
use rustc_data_structures::sso::SsoHashSet;
1+
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexSet};
32
use rustc_data_structures::stack::ensure_sufficient_stack;
43
use rustc_hir::def_id::{DefId, LocalDefId};
54
use rustc_middle::mir::TerminatorKind;
@@ -153,7 +152,7 @@ crate fn mir_inliner_callees<'tcx>(
153152
// Functions from other crates and MIR shims
154153
_ => tcx.instance_mir(instance),
155154
};
156-
let mut calls = SsoHashSet::new();
155+
let mut calls = FxIndexSet::default();
157156
for bb_data in body.basic_blocks() {
158157
let terminator = bb_data.terminator();
159158
if let TerminatorKind::Call { func, .. } = &terminator.kind {

0 commit comments

Comments
 (0)