about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-01-28 20:53:28 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-02-13 21:03:34 +0000
commit4de3a3af4afd30fc86ba1c5a1681f571d530d16a (patch)
treedd6ab7065879f59c7518c1248f0aa4b99965ab71 /compiler/rustc_codegen_ssa/src
parenta84bb95a1f65bfe25038f188763a18e096a86ab2 (diff)
downloadrust-4de3a3af4afd30fc86ba1c5a1681f571d530d16a.tar.gz
rust-4de3a3af4afd30fc86ba1c5a1681f571d530d16a.zip
Bump `indexmap`
`swap` has been deprecated in favour of `swap_remove` - the behaviour
is the same though.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index ee1d548b231..241b0a15f78 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -106,7 +106,8 @@ fn asm_target_features(tcx: TyCtxt<'_>, did: DefId) -> &FxIndexSet<Symbol> {
         match attrs.instruction_set {
             None => {}
             Some(InstructionSetAttr::ArmA32) => {
-                target_features.remove(&sym::thumb_mode);
+                // FIXME(#120456) - is `swap_remove` correct?
+                target_features.swap_remove(&sym::thumb_mode);
             }
             Some(InstructionSetAttr::ArmT32) => {
                 target_features.insert(sym::thumb_mode);