Skip to content

Commit fd69e6e

Browse files
committed
make Alloc::check_bounds_ptr private; you should use Memory::check_bounds_ptr instead
1 parent 73dcb52 commit fd69e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/interpret/allocation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<'tcx, Tag, Extra> Allocation<Tag, Extra> {
147147
/// of an allocation (i.e., at the first *inaccessible* location) *is* considered
148148
/// in-bounds! This follows C's/LLVM's rules.
149149
/// If you want to check bounds before doing a memory access, better use `check_bounds`.
150-
pub fn check_bounds_ptr(
150+
fn check_bounds_ptr(
151151
&self,
152152
ptr: Pointer<Tag>,
153153
) -> EvalResult<'tcx> {

0 commit comments

Comments
 (0)