Struct rustc_const_eval::transform::promote_consts::Validator [−][src]
Expand description
Checks whether locals that appear in a promotion context (Candidate
) are actually promotable.
This wraps an Item
, and has access to all fields of that Item
via Deref
coercion.
Fields
ccx: &'a ConstCx<'a, 'tcx>
temps: &'a IndexVec<Local, TempState>
Implementations
fn validate_call(
&self,
callee: &Operand<'tcx>,
args: &[Operand<'tcx>]
) -> Result<(), Unpromotable>
Methods from Deref<Target = ConstCx<'a, 'tcx>>
Returns the kind of const context this Item
represents (const
, static
, etc.).
Panics if this Item
is not const.
Trait Implementations
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for Validator<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for Validator<'a, 'tcx>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes