Skip to content

Commit 39bc8f5

Browse files
committed
Auto merge of #57129 - RalfJung:check-bounds, r=oli-obk
make Alloc::check_bounds_ptr private; you should use Memory::check_bounds_ptr instead r? @oli-obk
2 parents a1bad57 + fd69e6e commit 39bc8f5

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
@@ -137,7 +137,7 @@ impl<'tcx, Tag, Extra> Allocation<Tag, Extra> {
137137
/// of an allocation (i.e., at the first *inaccessible* location) *is* considered
138138
/// in-bounds! This follows C's/LLVM's rules.
139139
/// If you want to check bounds before doing a memory access, better use `check_bounds`.
140-
pub fn check_bounds_ptr(
140+
fn check_bounds_ptr(
141141
&self,
142142
ptr: Pointer<Tag>,
143143
) -> EvalResult<'tcx> {

0 commit comments

Comments
 (0)