Skip to main content

Module alloc

Module alloc 

Source
Expand description

Memory allocation implementation for rustc_public.

This module is responsible for constructing stable components. All operations requiring rustc queries must be delegated to rustc_public_bridge::alloc to maintain stability guarantees.

Re-exportsยง

use rustc_abi::Align; ๐Ÿ”’
use rustc_middle::mir::ConstValue; ๐Ÿ”’
use rustc_middle::mir::interpret::AllocRange; ๐Ÿ”’
use rustc_public_bridge::bridge::Error as _; ๐Ÿ”’
use rustc_public_bridge::context::CompilerCtxt; ๐Ÿ”’
use rustc_public_bridge::Tables; ๐Ÿ”’
use rustc_public_bridge::alloc; ๐Ÿ”’
use super::Error; ๐Ÿ”’
use super::compiler_interface::BridgeTys; ๐Ÿ”’
use super::mir::Mutability; ๐Ÿ”’
use super::ty::Allocation; ๐Ÿ”’
use super::ty::ProvenanceMap; ๐Ÿ”’

Functionsยง

allocation_filter ๐Ÿ”’
Creates an Allocation only from information within the AllocRange.
new_allocation ๐Ÿ”’
new_empty_allocation ๐Ÿ”’
Creates new empty Allocation from given Align.
try_new_allocation ๐Ÿ”’