diff options
Diffstat (limited to 'compiler/rustc_mir/src/monomorphize/partitioning/merging.rs')
| -rw-r--r-- | compiler/rustc_mir/src/monomorphize/partitioning/merging.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/monomorphize/partitioning/merging.rs b/compiler/rustc_mir/src/monomorphize/partitioning/merging.rs index 5107e697263..cbe36665790 100644 --- a/compiler/rustc_mir/src/monomorphize/partitioning/merging.rs +++ b/compiler/rustc_mir/src/monomorphize/partitioning/merging.rs @@ -46,7 +46,7 @@ pub fn merge_codegen_units<'tcx>( // Record that `second_smallest` now contains all the stuff that was in // `smallest` before. let mut consumed_cgu_names = cgu_contents.remove(&smallest.name()).unwrap(); - cgu_contents.get_mut(&second_smallest.name()).unwrap().extend(consumed_cgu_names.drain(..)); + cgu_contents.get_mut(&second_smallest.name()).unwrap().append(&mut consumed_cgu_names); debug!( "CodegenUnit {} merged into CodegenUnit {}", |
