From f14ebd1142ec6fb319e17b1ef8bf5b2db710f8ef Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Tue, 20 Jun 2017 19:35:46 +0900 Subject: [PATCH] handle EndRegion as no-op --- src/step.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/step.rs b/src/step.rs index 9e04d583a22..839f666f621 100644 --- a/src/step.rs +++ b/src/step.rs @@ -141,6 +141,8 @@ fn statement(&mut self, stmt: &mir::Statement<'tcx>) -> EvalResult<'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 => {} -- GitLab