Skip to content

Commit bc9435d

Browse files
committed
tidy up
1 parent 9a9dbff commit bc9435d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustc_mir/interpret/memory.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,12 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
313313

314314
/// Check if the memory range beginning at `ptr` and of size `Size` is "in-bounds".
315315
#[inline(always)]
316-
pub fn check_bounds(&self, ptr: Pointer<M::PointerTag>, size: Size, access: bool) -> EvalResult<'tcx> {
316+
pub fn check_bounds(
317+
&self,
318+
ptr: Pointer<M::PointerTag>,
319+
size: Size,
320+
access: bool
321+
) -> EvalResult<'tcx> {
317322
// if ptr.offset is in bounds, then so is ptr (because offset checks for overflow)
318323
self.check_bounds_ptr(ptr.offset(size, &*self)?, access)
319324
}

0 commit comments

Comments
 (0)