Update indexmap
and use IndexMap::append
This commit is contained in:
parent
0a34ce49ce
commit
ce67e68cce
3 changed files with 5 additions and 5 deletions
|
@ -371,7 +371,7 @@ fn merge_codegen_units<'tcx>(
|
|||
// Move the items from `cgu_src` to `cgu_dst`. Some of them may be
|
||||
// duplicate inlined items, in which case the destination CGU is
|
||||
// unaffected. Recalculate size estimates afterwards.
|
||||
cgu_dst.items_mut().extend(cgu_src.items_mut().drain(..));
|
||||
cgu_dst.items_mut().append(cgu_src.items_mut());
|
||||
cgu_dst.compute_size_estimate();
|
||||
|
||||
// Record that `cgu_dst` now contains all the stuff that was in
|
||||
|
@ -410,7 +410,7 @@ fn merge_codegen_units<'tcx>(
|
|||
// Move the items from `smallest` to `second_smallest`. Some of them
|
||||
// may be duplicate inlined items, in which case the destination CGU is
|
||||
// unaffected. Recalculate size estimates afterwards.
|
||||
second_smallest.items_mut().extend(smallest.items_mut().drain(..));
|
||||
second_smallest.items_mut().append(smallest.items_mut());
|
||||
second_smallest.compute_size_estimate();
|
||||
|
||||
// Don't update `cgu_contents`, that's only for incremental builds.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue