[−][src]Struct rustc_mir::transform::validate::Validator

pub struct Validator {
    pub when: String,
    pub mir_phase: MirPhase,
}

Fields

when: String

Describes at which point in the pipeline this validation is happening.

mir_phase: MirPhase

The phase for which we are upholding the dialect. If the given phase forbids a specific element, this validator will now emit errors if that specific element is encountered. Note that phases that change the dialect cause all following phases to check the invariants of the new dialect. A phase that changes dialects never checks the new invariants itself.

Trait Implementations

impl<'tcx> MirPass<'tcx> for Validator[src]

Auto Trait Implementations

impl RefUnwindSafe for Validator

impl Send for Validator

impl Sync for Validator

impl Unpin for Validator

impl UnwindSafe for Validator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]