Expand description
An interpreter for MIR used in CTFE and by miri.
Re-exportsΒ§
use std::io::Read;πuse std::io::Write;πuse std::num::NonZero;πuse std::fmt;πuse std::io;πuse rustc_abi::AddressSpace;πuse rustc_abi::Align;πuse rustc_abi::Endian;πuse rustc_abi::HasDataLayout;πuse rustc_abi::Size;πuse rustc_ast::Mutability;πuse rustc_data_structures::fx::FxHashMap;πuse rustc_data_structures::sharded::ShardedHashMap;πuse rustc_data_structures::sync::AtomicU64;πuse rustc_data_structures::sync::Lock;πuse rustc_hir::def::DefKind;πuse rustc_hir::def_id::DefId;πuse rustc_hir::def_id::LocalDefId;πuse rustc_macros::StableHash;πuse rustc_macros::TyDecodable;πuse rustc_macros::TyEncodable;πuse rustc_macros::TypeFoldable;πuse rustc_macros::TypeVisitable;πuse rustc_serialize::Decodable;πuse rustc_serialize::Encodable;πuse rustc_span::bug;πuse tracing::debug;πuse tracing::trace;πpub use err_exhaust;pub use err_inval;pub use err_machine_stop;pub use err_ub;pub use err_ub_format;pub use err_unsup;pub use err_unsup_format;pub use throw_exhaust;pub use throw_inval;pub use throw_machine_stop;pub use throw_ub;pub use throw_ub_format;pub use throw_unsup;pub use throw_unsup_format;pub use self::allocation::AllocBytes;pub use self::allocation::AllocError;pub use self::allocation::AllocInit;pub use self::allocation::AllocRange;pub use self::allocation::AllocResult;pub use self::allocation::Allocation;pub use self::allocation::ConstAllocation;pub use self::allocation::InitChunk;pub use self::allocation::InitChunkIter;pub use self::allocation::alloc_range;pub use self::error::BadBytesAccess;pub use self::error::CheckAlignMsg;pub use self::error::CheckInAllocMsg;pub use self::error::ErrorHandled;pub use self::error::EvalStaticInitializerRawResult;pub use self::error::EvalToAllocationRawResult;pub use self::error::EvalToConstValueResult;pub use self::error::EvalToValTreeResult;pub use self::error::InterpErrorInfo;pub use self::error::InterpErrorKind;pub use self::error::InterpResult;pub use self::error::InvalidMetaKind;pub use self::error::InvalidProgramInfo;pub use self::error::MachineStopType;pub use self::error::Misalignment;pub use self::error::ReportedErrorInfo;pub use self::error::ResourceExhaustionInfo;pub use self::error::UndefinedBehaviorInfo;pub use self::error::UnsupportedOpInfo;pub use self::error::ValTreeCreationError;pub use self::error::interp_ok;pub use self::pointer::CtfeProvenance;pub use self::pointer::Pointer;pub use self::pointer::PointerArithmetic;pub use self::pointer::Provenance;pub use self::value::Scalar;use crate::mir;πuse crate::ty::codec::TyDecoder;πuse crate::ty::codec::TyEncoder;πuse crate::ty::print::with_no_trimmed_paths;πuse crate::ty::print::with_no_trimmed_paths;πuse crate::ty;πuse crate::ty::Instance;πuse crate::ty::Ty;πuse crate::ty::TyCtxt;π
ModulesΒ§
- allocation π
- The virtual memory representation of the MIR interpreter.
- error π
- pointer π
- queries π
- value π
StructsΒ§
- Alloc
Decoding Session - Alloc
Decoding State - AllocId
- Alloc
Map π - Global
Id - Uniquely identifies one of the following:
EnumsΒ§
- Alloc
Discriminant π - Global
Alloc - An allocation in the global (tcx-managed) memory can be either a function pointer, a static, or a βrealβ allocation with some data in it.
- State π