diff options
| author | Ralf Jung <post@ralfj.de> | 2018-10-10 11:31:31 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-10-10 11:31:31 +0200 |
| commit | bc9435d23972aa6d2d7cc05685053b67d84d2108 (patch) | |
| tree | 9485bc0ea927997df07c489a796232d8fb1ce7e1 | |
| parent | 9a9dbfff6e0622e69cb37ba0cda919f619dad1cd (diff) | |
| download | rust-bc9435d23972aa6d2d7cc05685053b67d84d2108.tar.gz rust-bc9435d23972aa6d2d7cc05685053b67d84d2108.zip | |
tidy up
| -rw-r--r-- | src/librustc_mir/interpret/memory.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/memory.rs b/src/librustc_mir/interpret/memory.rs index d9226e7464b..7d3ae19e1a3 100644 --- a/src/librustc_mir/interpret/memory.rs +++ b/src/librustc_mir/interpret/memory.rs @@ -313,7 +313,12 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> { /// 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) } |
