Skip to content

Commit dec8166

Browse files
author
Markus Westerlind
committed
Use Vec::append
1 parent 851a701 commit dec8166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/simplify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl<'a, 'tcx> CfgSimplifier<'a, 'tcx> {
124124
}
125125

126126
let data = &mut self.basic_blocks[bb];
127-
data.statements.extend(new_stmts.drain(..));
127+
data.statements.append(&mut new_stmts);
128128
data.terminator = Some(terminator);
129129

130130
changed |= inner_changed;

0 commit comments

Comments
 (0)