From dec8166abc6675627819723b10301e395f3876d5 Mon Sep 17 00:00:00 2001 From: Markus Westerlind Date: Thu, 30 Jan 2020 10:27:50 +0100 Subject: [PATCH] Use Vec::append --- src/librustc_mir/transform/simplify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/transform/simplify.rs b/src/librustc_mir/transform/simplify.rs index d589c03761a..813091b7f95 100644 --- a/src/librustc_mir/transform/simplify.rs +++ b/src/librustc_mir/transform/simplify.rs @@ -124,7 +124,7 @@ pub fn simplify(mut self) { } 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;