mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
Update for changes in rustc.
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
use byteorder::{ReadBytesExt, WriteBytesExt, LittleEndian, BigEndian};
|
||||
use std::collections::Bound::{Included, Excluded};
|
||||
use std::collections::{btree_map, BTreeMap, HashMap, HashSet, VecDeque};
|
||||
use std::{fmt, iter, ptr, mem, io};
|
||||
|
||||
@@ -710,7 +709,7 @@ fn relocations(&self, ptr: Pointer, size: u64)
|
||||
{
|
||||
let start = ptr.offset.saturating_sub(self.pointer_size() - 1);
|
||||
let end = ptr.offset + size;
|
||||
Ok(self.get(ptr.alloc_id)?.relocations.range(Included(&start), Excluded(&end)))
|
||||
Ok(self.get(ptr.alloc_id)?.relocations.range(start..end))
|
||||
}
|
||||
|
||||
fn clear_relocations(&mut self, ptr: Pointer, size: u64) -> EvalResult<'tcx, ()> {
|
||||
|
||||
Reference in New Issue
Block a user