make Alloc::check_bounds_ptr private; you should use Memory::check_bounds_ptr instead

This commit is contained in:
Ralf Jung 2018-12-26 13:18:24 +01:00
parent 73dcb52198
commit fd69e6e910

View File

@ -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> {