about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-05-30 12:05:56 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-05-31 10:22:45 +0200
commit1236d57d841a8bd66c47202b8dddd13e269c8e6e (patch)
tree4e6b96d3b0e7e44a194b7acb5fd57c7895937e04
parent665866d3981b4fe0b52a0ef6cab5952a34d5f412 (diff)
downloadrust-1236d57d841a8bd66c47202b8dddd13e269c8e6e.tar.gz
rust-1236d57d841a8bd66c47202b8dddd13e269c8e6e.zip
Don't invalidate one byte beyond the end
-rw-r--r--src/librustc_mir/interpret/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/memory.rs b/src/librustc_mir/interpret/memory.rs
index 912fc64d342..387eeb64c46 100644
--- a/src/librustc_mir/interpret/memory.rs
+++ b/src/librustc_mir/interpret/memory.rs
@@ -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(())
     }