pub fn inspect_with_undef_and_ptr_outside_interpreter(&self, range: Range<usize>) -> &[u8] {
&self.bytes[range]
}
+
+ /// View the undef mask.
+ pub fn undef_mask(&self) -> &UndefMask {
+ &self.undef_mask
+ }
}
impl<'tcx> rustc_serialize::UseSpecializedDecodable for &'tcx Allocation {}
}
relocations.push((i, target_id));
}
- if alloc.undef_mask.is_range_defined(i, i + Size::from_bytes(1)).is_ok() {
+ if alloc.undef_mask().is_range_defined(i, i + Size::from_bytes(1)).is_ok() {
// this `as usize` is fine, since `i` came from a `usize`
let i = i.bytes() as usize;