make Alloc::check_bounds_ptr private; you should use Memory::check_bounds_ptr instead
This commit is contained in:
parent
73dcb52198
commit
fd69e6e910
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user