[][src]Module rustc_mir::const_eval

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Structs

CompileTimeInterpreterInternal

Enums

ConstEvalErrorInternal

Constants

DETECTOR_SNAPSHOT_PERIODInternal

The number of steps between loop detector snapshots. Should be a power of two for performance reasons.

STEPS_UNTIL_DETECTOR_ENABLEDInternal

Number of steps until the detector even starts doing anything. Also, a warning is shown to the user when this number is reached.

Functions

const_eval_providerInternal
const_eval_raw_providerInternal
const_fieldInternal

Extracts a field of a (variant of a) const.

const_variant_indexInternal
error_to_const_errorInternal

Turn an interpreter error into something to report to the user. As a side-effect, if RUSTC_CTFE_BACKTRACE is set, this prints the backtrace. Should be called only if the error is actually going to to be reported!

eval_body_using_ecxInternal
mk_eval_cxInternal

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.

note_on_undefined_behavior_errorInternal
op_to_constInternal
validate_and_turn_into_constInternal

Type Definitions

CompileTimeEvalContextInternal