Skip to content

Commit 1236d57

Browse files
committed
Don't invalidate one byte beyond the end
1 parent 665866d commit 1236d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
844844
}
845845

846846
// Forget all the relocations.
847-
alloc.relocations.remove_range(first ..= last);
847+
alloc.relocations.remove_range(first .. last);
848848

849849
Ok(())
850850
}

0 commit comments

Comments
 (0)