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 { /// 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, ) -> EvalResult<'tcx> {