Use iter() instead of iter_mut() in one place.

This commit is contained in:
Nicholas Nethercote 2023-07-05 07:30:43 +10:00
parent 142075a9fb
commit 22d4c798ec

View File

@ -460,7 +460,7 @@ fn internalize_symbols<'tcx>(
let single_codegen_unit = codegen_units.len() == 1; let single_codegen_unit = codegen_units.len() == 1;
if !single_codegen_unit { if !single_codegen_unit {
for cgu in codegen_units.iter_mut() { for cgu in codegen_units.iter() {
for item in cgu.items().keys() { for item in cgu.items().keys() {
// If there is more than one codegen unit, we need to keep track // If there is more than one codegen unit, we need to keep track
// in which codegen units each monomorphization is placed. // in which codegen units each monomorphization is placed.