about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-12-26 13:18:24 +0100
committerRalf Jung <post@ralfj.de>2018-12-26 13:18:24 +0100
commitfd69e6e910006b584ab359c8d085f9b19a3f53f2 (patch)
tree5e675a9a9f745b9dd9d8a579abc06280a1650fe7 /src
parent73dcb52198d2e4949439a5f8d5e0233d6d05ccaf (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.rs2
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> {