diff --git a/src/step.rs b/src/step.rs index 9e04d583a2..839f666f62 100644 --- a/src/step.rs +++ b/src/step.rs @@ -141,6 +141,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { self.deallocate_local(old_val)?; } + EndRegion(..) => {} + // Defined to do nothing. These are added by optimization passes, to avoid changing the // size of MIR constantly. Nop => {}