Expand description
Internal memory allocator implementation for rustc_public.
This module handles all direct interactions with rustc queries and performs
the actual memory allocations. The stable interface in rustc_public::alloc
delegates all query-related operations to this implementation.
Re-exportsยง
use rustc_abi::Size;๐use rustc_abi::TyAndLayout;๐use rustc_middle::mir::interpret::AllocId;๐use rustc_middle::mir::interpret::AllocInit;๐use rustc_middle::mir::interpret::AllocRange;๐use rustc_middle::mir::interpret::Allocation;๐use rustc_middle::mir::interpret::ConstAllocation;๐use rustc_middle::mir::interpret::Pointer;๐use rustc_middle::mir::interpret::Scalar;๐use rustc_middle::mir::interpret::alloc_range;๐use rustc_middle::ty::layout::HasTypingEnv;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::layout;๐use super::CompilerCtxt;๐use super::Tables;๐use crate::bridge::Allocation as _;๐use crate::Bridge;๐use crate::Error;๐
Functionsยง
- allocation_
filter - Creates an
Allocationonly from information within theAllocRange. - create_
ty_ and_ layout - try_
new_ indirect - try_
new_ scalar - try_
new_ slice