Skip to content

Commit 22d4c79

Browse files
committed
Use iter() instead of iter_mut() in one place.
1 parent 142075a commit 22d4c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_monomorphize/src/partitioning.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ fn internalize_symbols<'tcx>(
460460
let single_codegen_unit = codegen_units.len() == 1;
461461

462462
if !single_codegen_unit {
463-
for cgu in codegen_units.iter_mut() {
463+
for cgu in codegen_units.iter() {
464464
for item in cgu.items().keys() {
465465
// If there is more than one codegen unit, we need to keep track
466466
// in which codegen units each monomorphization is placed.

0 commit comments

Comments
 (0)