diff options
| author | yukang <moorekang@gmail.com> | 2024-02-11 19:50:50 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2024-02-14 18:36:37 +0800 |
| commit | 3f27e4b3ea35c87c1e8a6b9b8a3c7e122f6299de (patch) | |
| tree | ec5e00a1b03dfa35e7da6b6bff274552468206a2 /compiler/rustc_monomorphize | |
| parent | b381d3ab27f788f990551100c4425bb782d26d76 (diff) | |
| download | rust-3f27e4b3ea35c87c1e8a6b9b8a3c7e122f6299de.tar.gz rust-3f27e4b3ea35c87c1e8a6b9b8a3c7e122f6299de.zip | |
clean up potential_query_instability with FxIndexMap and UnordMap
Diffstat (limited to 'compiler/rustc_monomorphize')
| -rw-r--r-- | compiler/rustc_monomorphize/src/partitioning.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs index 5cfebcaa5a5..8bebc30e435 100644 --- a/compiler/rustc_monomorphize/src/partitioning.rs +++ b/compiler/rustc_monomorphize/src/partitioning.rs @@ -368,7 +368,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().extend(cgu_src.items_mut().drain(..)); cgu_dst.compute_size_estimate(); // Record that `cgu_dst` now contains all the stuff that was in @@ -407,7 +407,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().extend(smallest.items_mut().drain(..)); second_smallest.compute_size_estimate(); // Don't update `cgu_contents`, that's only for incremental builds. |
