diff options
| author | Ralf Jung <post@ralfj.de> | 2018-12-26 13:18:24 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-12-26 13:18:24 +0100 |
| commit | fd69e6e910006b584ab359c8d085f9b19a3f53f2 (patch) | |
| tree | 5e675a9a9f745b9dd9d8a579abc06280a1650fe7 /src | |
| parent | 73dcb52198d2e4949439a5f8d5e0233d6d05ccaf (diff) | |
make Alloc::check_bounds_ptr private; you should use Memory::check_bounds_ptr instead
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/mir/interpret/allocation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/interpret/allocation.rs b/src/librustc/mir/interpret/allocation.rs index ab3bc4cdf9f..d2921619d2a 100644 --- a/src/librustc/mir/interpret/allocation.rs +++ b/src/librustc/mir/interpret/allocation.rs @@ -147,7 +147,7 @@ impl<'tcx, Tag, Extra> Allocation<Tag, Extra> { /// of an allocation (i.e., at the first *inaccessible* location) *is* considered /// in-bounds! This follows C's/LLVM's rules. /// If you want to check bounds before doing a memory access, better use `check_bounds`. - pub fn check_bounds_ptr( + fn check_bounds_ptr( &self, ptr: Pointer<Tag>, ) -> EvalResult<'tcx> { |
