Re-exportsยง
use rustc_hir::def_id::CRATE_DEF_ID;๐use rustc_hir::def_id::LocalDefId;๐use rustc_infer::infer::TyCtxtInferExt;๐use rustc_infer::traits::Obligation;๐use rustc_infer::traits::ObligationCause;๐use rustc_middle::mir::interpret::AllocInit;๐use rustc_middle::mir::interpret::Allocation;๐use rustc_middle::mir::interpret::GlobalAlloc;๐use rustc_middle::mir::interpret::InterpResult;๐use rustc_middle::mir::interpret::Pointer;๐use rustc_middle::ty::layout::TyAndLayout;๐use rustc_middle::ty::PolyExistentialPredicate;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::ty::TypeVisitable;๐use rustc_middle::ty::TypeVisitableExt;๐use rustc_middle::mir;๐use rustc_middle::ty;๐use rustc_span::span_bug;๐use rustc_trait_selection::traits::ObligationCtxt;๐use tracing::debug;๐use super::InterpCx;๐use super::MPlaceTy;๐use super::MemoryKind;๐use super::interp_ok;๐use super::throw_inval;๐use crate::const_eval::CompileTimeInterpCx;๐use crate::const_eval::CompileTimeMachine;๐use crate::const_eval::InterpretationResult;๐use crate::interpret::Machine;๐
Traitsยง
- Entered
Trace Span - A marker trait returned by crate::interpret::Machine::enter_trace_span, identifying either a
real tracing::span::EnteredSpan in case tracing is enabled, or the dummy type
()when tracing is disabled. Also see crate::enter_trace_span! below.
Functionsยง
- create_
static_ ๐alloc - ensure_
monomorphic_ ๐enough - Checks whether a type contains generic parameters which must be instantiated.
- type_
implements_ ๐dyn_ trait - Checks if a type implements predicates.
Calls
ensure_monomorphic_enoughontyandtrait_tyfor you.