]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/nll/invalidation.rs
moving some variants from InterpError to EvalErrorPanic
[rust.git] / src / librustc_mir / borrow_check / nll / invalidation.rs
index c7b4a403052591d4bdd808731f4fe6194d404f88..51a00d2f0eb6416a3d9cf4f1d01bd15f6be296ff 100644 (file)
@@ -207,8 +207,8 @@ fn visit_terminator_kind(
                 cleanup: _,
             } => {
                 self.consume_operand(location, cond);
-                use rustc::mir::interpret::InterpError::BoundsCheck;
-                if let BoundsCheck { ref len, ref index } = *msg {
+                use rustc::mir::interpret::{InterpError::Panic, EvalErrorPanic::BoundsCheck};
+                if let Panic(BoundsCheck { ref len, ref index }) = *msg {
                     self.consume_operand(location, len);
                     self.consume_operand(location, index);
                 }