Skip to content

Commit 69299cd

Browse files
committed
We actually have the allocation available... it can't be dangling
1 parent 021bc35 commit 69299cd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc/mir/interpret/allocation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
536536
// Check non-NULL/Undef, extract offset
537537

538538
// check this is not NULL -- which we can ensure only if this is in-bounds
539-
// of some (potentially dead) allocation.
540539
let size = Size::from_bytes(self.bytes.len() as u64);
541540
if ptr.offset > size {
542541
return err!(PointerOutOfBounds {

0 commit comments

Comments
 (0)