diff --git a/src/librustc_mir/transform/generator.rs b/src/librustc_mir/transform/generator.rs index 414d91a18be..267e77ba481 100644 --- a/src/librustc_mir/transform/generator.rs +++ b/src/librustc_mir/transform/generator.rs @@ -1128,10 +1128,6 @@ fn create_cases<'tcx>( Rvalue::Use(Operand::Move(resume_arg.into())), )), }); - statements.push(Statement { - source_info, - kind: StatementKind::StorageDead(resume_arg), - }); } // Then jump to the real target