Skip to content

Commit

Permalink
make Alloc::check_bounds_ptr private; you should use Memory::check_bo…
Browse files Browse the repository at this point in the history
…unds_ptr instead
  • Loading branch information
RalfJung committed Dec 26, 2018
1 parent 73dcb52 commit fd69e6e
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 @@ -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> {
Expand Down

0 comments on commit fd69e6e

Please sign in to comment.