Don't invalidate one byte beyond the end
This commit is contained in:
parent
665866d398
commit
1236d57d84
1 changed files with 1 additions and 1 deletions
|
@ -844,7 +844,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
|
|||
}
|
||||
|
||||
// Forget all the relocations.
|
||||
alloc.relocations.remove_range(first ..= last);
|
||||
alloc.relocations.remove_range(first .. last);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue