Skip to content

Commit 7e2a413

Browse files
author
The Miri Conjob Bot
committed
fmt
1 parent 2488797 commit 7e2a413

File tree

1 file changed

+7
-2
lines changed
  • src/borrow_tracker/tree_borrows

1 file changed

+7
-2
lines changed

src/borrow_tracker/tree_borrows/mod.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
183183
) -> InterpResult<'tcx, Option<(AllocId, BorTag)>> {
184184
let this = self.eval_context_mut();
185185
// Ensure we bail out if the pointer goes out-of-bounds (see miri#1050).
186-
this.check_ptr_access_align(place.ptr, ptr_size, Align::ONE, CheckInAllocMsg::InboundsTest)?;
186+
this.check_ptr_access_align(
187+
place.ptr,
188+
ptr_size,
189+
Align::ONE,
190+
CheckInAllocMsg::InboundsTest,
191+
)?;
187192

188193
// It is crucial that this gets called on all code paths, to ensure we track tag creation.
189194
let log_creation = |this: &MiriInterpCx<'mir, 'tcx>,
@@ -209,7 +214,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
209214
// Unlike SB, we *do* a proper retag for size 0 if can identify the allocation.
210215
// After all, the pointer may be lazily initialized outside this initial range.
211216
data
212-
},
217+
}
213218
Err(_) => {
214219
assert_eq!(ptr_size, Size::ZERO); // we did the deref check above, size has to be 0 here
215220
// This pointer doesn't come with an AllocId, so there's no

0 commit comments

Comments
 (0)