]> git.lizzy.rs Git - rust.git/commitdiff
tidy up
authorRalf Jung <post@ralfj.de>
Wed, 10 Oct 2018 09:31:31 +0000 (11:31 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 10 Oct 2018 09:31:31 +0000 (11:31 +0200)
src/librustc_mir/interpret/memory.rs

index d9226e7464b4062a70e229e50487441dab72c8e7..7d3ae19e1a30c69cf519d60f633a86c17c779616 100644 (file)
@@ -313,7 +313,12 @@ pub fn check_bounds_ptr(&self, ptr: Pointer<M::PointerTag>, access: bool) -> Eva
 
     /// Check if the memory range beginning at `ptr` and of size `Size` is "in-bounds".
     #[inline(always)]
-    pub fn check_bounds(&self, ptr: Pointer<M::PointerTag>, size: Size, access: bool) -> EvalResult<'tcx> {
+    pub fn check_bounds(
+        &self,
+        ptr: Pointer<M::PointerTag>,
+        size: Size,
+        access: bool
+    ) -> EvalResult<'tcx> {
         // if ptr.offset is in bounds, then so is ptr (because offset checks for overflow)
         self.check_bounds_ptr(ptr.offset(size, &*self)?, access)
     }