Re-exportsΒ§
use rustc_abi::BackendRepr;πuse rustc_abi::FieldIdx;πuse rustc_abi::VariantIdx;πuse rustc_data_structures::fx::FxHashMap;πuse rustc_data_structures::fx::FxHashSet;πuse rustc_middle::mir;πuse rustc_middle::mir::interpret::EvalToValTreeResult;πuse rustc_middle::mir::interpret::GlobalId;πuse rustc_middle::mir::interpret::ValTreeCreationError;πuse rustc_middle::traits::ObligationCause;πuse rustc_middle::ty::layout::LayoutCx;πuse rustc_middle::ty::layout::TyAndLayout;πuse rustc_middle::ty;πuse rustc_middle::ty::Ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_span::DUMMY_SP;πuse rustc_span::bug;πuse tracing::debug;πuse tracing::instrument;πuse tracing::instrument;πuse tracing::trace;πuse super::VALTREE_MAX_NODES;πuse super::eval_queries::mk_eval_cx_to_read_const_val;πuse super::eval_queries::op_to_const;πuse super::machine::CompileTimeInterpCx;πuse crate::const_eval::CanAccessMutGlobal;πuse crate::interpret::ImmTy;πuse crate::interpret::Immediate;πuse crate::interpret::InternKind;πuse crate::interpret::MPlaceTy;πuse crate::interpret::MemPlaceMeta;πuse crate::interpret::MemoryKind;πuse crate::interpret::PlaceTy;πuse crate::interpret::Projectable;πuse crate::interpret::Scalar;πuse crate::interpret::intern_const_alloc_recursive;π
FunctionsΒ§
- branches π
- const_
to_ πvaltree_ inner - create_
valtree_ πplace - dump_
place π - eval_
to_ πvaltree - Evaluates a constant and turns it into a type-level constant value.
- reconstruct_
place_ πmeta - Valtrees donβt store the
MemPlaceMetathat all dynamically sized values have in the interpreter. This function reconstructs it. - slice_
branches π - valtree_
into_ πmplace - valtree_
to_ const_ value - Converts a
ValTreeto aConstValue, which is needed after mir construction has finished. - valtree_
to_ πref - Put a valtree into memory and return a reference to that.