pub struct Checker<'mir, 'tcx> {
    ccx: &'mir ConstCx<'mir, 'tcx>,
    qualifs: Qualifs<'mir, 'tcx>,
    span: Span,
    local_has_storage_dead: Option<BitSet<Local>>,
    error_emitted: Option<ErrorGuaranteed>,
    secondary_errors: Vec<Diagnostic>,
}

Fields§

§ccx: &'mir ConstCx<'mir, 'tcx>§qualifs: Qualifs<'mir, 'tcx>§span: Span

The span of the current statement.

§local_has_storage_dead: Option<BitSet<Local>>

A set that stores for each local whether it has a StorageDead for it somewhere.

§error_emitted: Option<ErrorGuaranteed>§secondary_errors: Vec<Diagnostic>

Implementations§

Emits an error if an expression cannot be evaluated in the current context.

Emits an error at the given span if an expression cannot be evaluated in the current context.

Methods from Deref<Target = ConstCx<'mir, 'tcx>>§

Returns the kind of const context this Item represents (const, static, etc.).

Panics if this Item is not const.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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: 488 bytes