From e5e26991e8116f7ebfeab5e131be8c6da2181257 Mon Sep 17 00:00:00 2001 From: Camille Gillot Date: Fri, 26 Sep 2025 00:10:21 +0000 Subject: [PATCH] Use SsoHashMap in MirPatch. --- compiler/rustc_mir_transform/src/patch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_mir_transform/src/patch.rs b/compiler/rustc_mir_transform/src/patch.rs index d831ab50b1ac0..bee63d5a726c4 100644 --- a/compiler/rustc_mir_transform/src/patch.rs +++ b/compiler/rustc_mir_transform/src/patch.rs @@ -1,4 +1,4 @@ -use rustc_data_structures::fx::FxHashMap; +use rustc_data_structures::sso::SsoHashMap; use rustc_index::Idx; use rustc_middle::mir::*; use rustc_middle::ty::Ty; @@ -10,7 +10,7 @@ use tracing::debug; /// and replacement of terminators, and then apply the queued changes all at /// once with `apply`. This is useful for MIR transformation passes. pub(crate) struct MirPatch<'tcx> { - term_patch_map: FxHashMap>, + term_patch_map: SsoHashMap>, new_blocks: Vec>, new_statements: Vec<(Location, StatementKind<'tcx>)>, new_locals: Vec>,