Skip to main content

Module eval_queries

Module eval_queries 

Source

Re-exportsยง

use std::sync::atomic::Ordering::Relaxed; ๐Ÿ”’
use either::Left; ๐Ÿ”’
use either::Right; ๐Ÿ”’
use rustc_abi as abi; ๐Ÿ”’
use rustc_abi::BackendRepr; ๐Ÿ”’
use rustc_hir::def::DefKind; ๐Ÿ”’
use rustc_middle::mir::interpret::AllocId; ๐Ÿ”’
use rustc_middle::mir::interpret::ErrorHandled; ๐Ÿ”’
use rustc_middle::mir::interpret::InterpErrorInfo; ๐Ÿ”’
use rustc_middle::mir::interpret::ReportedErrorInfo; ๐Ÿ”’
use rustc_middle::mir; ๐Ÿ”’
use rustc_middle::mir::ConstAlloc; ๐Ÿ”’
use rustc_middle::mir::ConstValue; ๐Ÿ”’
use rustc_middle::query::TyCtxtAt; ๐Ÿ”’
use rustc_middle::throw_inval; ๐Ÿ”’
use rustc_middle::ty::layout::HasTypingEnv; ๐Ÿ”’
use rustc_middle::ty::layout::TyAndLayout; ๐Ÿ”’
use rustc_middle::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use rustc_middle::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_middle::ty::TypeVisitable; ๐Ÿ”’
use rustc_span::def_id::LocalDefId; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::trace; ๐Ÿ”’
use super::CanAccessMutGlobal; ๐Ÿ”’
use super::CompileTimeInterpCx; ๐Ÿ”’
use super::CompileTimeMachine; ๐Ÿ”’
use crate::const_eval::CheckAlignment; ๐Ÿ”’
use crate::interpret::CtfeValidationMode; ๐Ÿ”’
use crate::interpret::GlobalId; ๐Ÿ”’
use crate::interpret::Immediate; ๐Ÿ”’
use crate::interpret::InternError; ๐Ÿ”’
use crate::interpret::InternKind; ๐Ÿ”’
use crate::interpret::InterpCx; ๐Ÿ”’
use crate::interpret::InterpErrorKind; ๐Ÿ”’
use crate::interpret::InterpResult; ๐Ÿ”’
use crate::interpret::MPlaceTy; ๐Ÿ”’
use crate::interpret::MemoryKind; ๐Ÿ”’
use crate::interpret::OpTy; ๐Ÿ”’
use crate::interpret::RefTracking; ๐Ÿ”’
use crate::interpret::ReturnContinuation; ๐Ÿ”’
use crate::interpret::create_static_alloc; ๐Ÿ”’
use crate::interpret::ensure_monomorphic_enough; ๐Ÿ”’
use crate::interpret::intern_const_alloc_recursive; ๐Ÿ”’
use crate::interpret::interp_ok; ๐Ÿ”’
use crate::interpret::throw_exhaust; ๐Ÿ”’
use crate::CTRL_C_RECEIVED; ๐Ÿ”’
use crate::diagnostics; ๐Ÿ”’

Traitsยง

InterpretationResult

Functionsยง

const_validate_mplace ๐Ÿ”’
eval_body_using_ecx ๐Ÿ”’
eval_in_interpreter ๐Ÿ”’
eval_static_initializer_provider
eval_to_allocation_raw_provider
eval_to_const_value_raw_provider
eval_trivial_const_using_ecx ๐Ÿ”’
intern_and_validate ๐Ÿ”’
mk_eval_cx_for_const_val
Create an interpreter context to inspect the given ConstValue. Returns both the context and an OpTy that represents the constant.
mk_eval_cx_to_read_const_val ๐Ÿ”’
The InterpCx is only meant to be used to do field and index projections into constants for simd_shuffle and const patterns in match arms.
op_to_const ๐Ÿ”’
This function converts an interpreter value into a MIR constant.
report_eval_error ๐Ÿ”’
report_validation_error ๐Ÿ”’
retry_codegen_mode_with_postanalysis ๐Ÿ”’
setup_for_eval ๐Ÿ”’
turn_into_const_value ๐Ÿ”’