Use Vec::append

This commit is contained in:
Markus Westerlind 2020-01-30 10:27:50 +01:00
parent 851a701f90
commit dec8166abc

View File

@ -124,7 +124,7 @@ impl<'a, 'tcx> CfgSimplifier<'a, 'tcx> {
}
let data = &mut self.basic_blocks[bb];
data.statements.extend(new_stmts.drain(..));
data.statements.append(&mut new_stmts);
data.terminator = Some(terminator);
changed |= inner_changed;