Expand description
Store the provenance for each byte in the range, with a more efficient representation for the common case where PTR_SIZE consecutive bytes have the same provenance.
Re-exportsยง
use std::cmp;๐use std::ops::Range;๐use std::ops::RangeBounds;๐use rustc_abi::HasDataLayout;๐use rustc_abi::Size;๐use rustc_data_structures::sorted_map::SortedMap;๐use rustc_macros::StableHash;๐use rustc_serialize::Decodable;๐use rustc_serialize::Decoder;๐use rustc_serialize::Encodable;๐use rustc_serialize::Encoder;๐use tracing::trace;๐use super::AllocRange;๐use super::CtfeProvenance;๐use super::Provenance;๐use super::alloc_range;๐use crate::mir::interpret::AllocError;๐use crate::mir::interpret::AllocResult;๐
Structsยง
- Pointer
Frag - A pointer fragment represents one byte of a pointer. If the bytes are re-assembled in their original order, the pointer can be used again. Wildcard provenance is allowed to have index 0 everywhere.
- Provenance
Copy - A partial, owned list of provenance to transfer into another allocation.
- Provenance
Map - Stores the provenance information of pointers stored in memory.