From 5ecb2d93564f5674378f348635488410aba3cff5 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 14 Sep 2019 01:01:37 -0300 Subject: [PATCH] Place projection field is now Box<[PlaceElem<'tcx>]> --- rust-version | 2 +- src/helpers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust-version b/rust-version index b0af10f44a..60ef1e36f7 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -eb48d6bdee6c655d71f26594d47d232adf3e4e93 +b35ebac96102cd12406d9d87827b0838d129c278 diff --git a/src/helpers.rs b/src/helpers.rs index 3eafb28b89..ad30040c2d 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -71,7 +71,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx /// Get the `Place` for a local fn local_place(&mut self, local: mir::Local) -> InterpResult<'tcx, PlaceTy<'tcx, Tag>> { let this = self.eval_context_mut(); - let place = mir::Place { base: mir::PlaceBase::Local(local), projection: None }; + let place = mir::Place { base: mir::PlaceBase::Local(local), projection: Box::new([]) }; this.eval_place(&place) }