From 4211d7e1a0083456dfdb9ad466907ed17ed23cd4 Mon Sep 17 00:00:00 2001 From: Christian Poveda Date: Thu, 20 Jun 2019 16:58:57 -0500 Subject: [PATCH 1/2] Update tag methods to match Machine changes --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 061b07478a..9072f141f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -508,21 +508,21 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> { id: AllocId, alloc: Cow<'b, Allocation>, kind: Option>, - memory_extra: &Self::MemoryExtra, + memory: &Memory<'mir, 'tcx, Self>, ) -> (Cow<'b, Allocation>, Self::PointerTag) { let kind = kind.expect("we set our STATIC_KIND so this cannot be None"); let alloc = alloc.into_owned(); let (extra, base_tag) = Stacks::new_allocation( id, Size::from_bytes(alloc.bytes.len() as u64), - Rc::clone(memory_extra), + Rc::clone(&memory.extra), kind, ); if kind != MiriMemoryKind::Static.into() { assert!(alloc.relocations.is_empty(), "Only statics can come initialized with inner pointers"); // Now we can rely on the inner pointers being static, too. } - let mut memory_extra = memory_extra.borrow_mut(); + let mut memory_extra = memory.extra.borrow_mut(); let alloc: Allocation = Allocation { bytes: alloc.bytes, relocations: Relocations::from_presorted( @@ -543,9 +543,9 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> { #[inline(always)] fn tag_static_base_pointer( id: AllocId, - memory_extra: &Self::MemoryExtra, + memory: &Memory<'mir, 'tcx, Self>, ) -> Self::PointerTag { - memory_extra.borrow_mut().static_base_ptr(id) + memory.extra.borrow_mut().static_base_ptr(id) } #[inline(always)] From ef59fc420fad34801871e538e5e54c8ba8056c61 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 21 Jun 2019 12:36:19 +0200 Subject: [PATCH 2/2] Update rust-version --- rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-version b/rust-version index 9d2a877223..f09338fca1 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -374c63e0fc356eb61b1966cb6026a2a49fe9226d +56a12b2ad058f22f1ef090713df15598525ba4a4