Skip to content

Commit

Permalink
Auto merge of #57129 - RalfJung:check-bounds, r=oli-obk
Browse files Browse the repository at this point in the history
make Alloc::check_bounds_ptr private; you should use Memory::check_bounds_ptr instead

r? @oli-obk
  • Loading branch information
bors committed Dec 27, 2018
2 parents a1bad57 + fd69e6e commit 39bc8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/interpret/allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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> {
Expand Down

0 comments on commit 39bc8f5

Please sign in to comment.