We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e414d25 commit 2af5f22Copy full SHA for 2af5f22
compiler/rustc_monomorphize/src/partitioning.rs
@@ -340,9 +340,7 @@ fn merge_codegen_units<'tcx>(
340
341
// Move the mono-items from `smallest` to `second_smallest`
342
second_smallest.modify_size_estimate(smallest.size_estimate());
343
- for (k, v) in smallest.items_mut().drain() {
344
- second_smallest.items_mut().insert(k, v);
345
- }
+ second_smallest.items_mut().extend(smallest.items_mut().drain());
346
347
// Record that `second_smallest` now contains all the stuff that was
348
// in `smallest` before.
0 commit comments