From 55c9839b3cc548ed61a3c759858cc9e2e9d39245 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Thu, 15 Aug 2019 08:58:45 +0000 Subject: [PATCH] Rename check_in_alloc to check_inbounds_alloc --- src/operator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator.rs b/src/operator.rs index f047f4f4fa..acf1db2977 100644 --- a/src/operator.rs +++ b/src/operator.rs @@ -35,7 +35,7 @@ impl<'mir, 'tcx> EvalContextExt<'tcx> for super::MiriEvalContext<'mir, 'tcx> { #[inline] fn pointer_inbounds(&self, ptr: Pointer) -> InterpResult<'tcx> { let (size, _align) = self.memory().get_size_and_align(ptr.alloc_id, AllocCheck::Live)?; - ptr.check_in_alloc(size, CheckInAllocMsg::InboundsTest) + ptr.check_inbounds_alloc(size, CheckInAllocMsg::InboundsTest) } fn binary_ptr_op(