about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-05 07:30:43 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-06 10:35:57 +1000
commit22d4c798ece4f0c9c839325fe279140565a08957 (patch)
tree3b56619f62a14d2e215aebb2b8fecb432b46b6bc /compiler
parent142075a9fb86e19de36a4583c1bdfed969cca236 (diff)
downloadrust-22d4c798ece4f0c9c839325fe279140565a08957.tar.gz
rust-22d4c798ece4f0c9c839325fe279140565a08957.zip
Use `iter()` instead of `iter_mut()` in one place.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_monomorphize/src/partitioning.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs
index 14d5e068638..4abdce52088 100644
--- a/compiler/rustc_monomorphize/src/partitioning.rs
+++ b/compiler/rustc_monomorphize/src/partitioning.rs
@@ -460,7 +460,7 @@ fn internalize_symbols<'tcx>(
     let single_codegen_unit = codegen_units.len() == 1;
 
     if !single_codegen_unit {
-        for cgu in codegen_units.iter_mut() {
+        for cgu in codegen_units.iter() {
             for item in cgu.items().keys() {
                 // If there is more than one codegen unit, we need to keep track
                 // in which codegen units each monomorphization is placed.