We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
iter()
iter_mut()
1 parent 142075a commit 22d4c79Copy full SHA for 22d4c79
compiler/rustc_monomorphize/src/partitioning.rs
@@ -460,7 +460,7 @@ fn internalize_symbols<'tcx>(
460
let single_codegen_unit = codegen_units.len() == 1;
461
462
if !single_codegen_unit {
463
- for cgu in codegen_units.iter_mut() {
+ for cgu in codegen_units.iter() {
464
for item in cgu.items().keys() {
465
// If there is more than one codegen unit, we need to keep track
466
// in which codegen units each monomorphization is placed.
0 commit comments