We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e67d6 commit 5364c86Copy full SHA for 5364c86
1 file changed
compiler/rustc_middle/src/mir/patch.rs
@@ -171,8 +171,8 @@ impl<'tcx> MirPatch<'tcx> {
171
delta += 1;
172
}
173
174
- for (stmt, target) in stmts_and_targets.iter().rev() {
175
- body[*target].statements.insert(0, stmt.clone());
+ for (stmt, target) in stmts_and_targets.into_iter().rev() {
+ body[target].statements.insert(0, stmt);
176
177
178
0 commit comments