Skip to main content

Module provenance_map

Module provenance_map 

Source
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ยง

PointerFrag
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.
ProvenanceCopy
A partial, owned list of provenance to transfer into another allocation.
ProvenanceMap
Stores the provenance information of pointers stored in memory.