[−][src]Enum rustc_middle::mir::interpret::InvalidProgramInfo

pub enum InvalidProgramInfo<'tcx> {
    TooGeneric,
    ReferencedConstant,
    AlreadyReported(ErrorReported),
    Layout(LayoutError<'tcx>),
    TransmuteSizeDiff(Ty<'tcx>, Ty<'tcx>),
}

Error information for when the program we executed turned out not to actually be a valid program. This cannot happen in stand-alone Miri, but it can happen during CTFE/ConstProp where we work on generic code or execution does not have all information available.

Variants

TooGeneric

Resolution can fail if we are in a too generic context.

ReferencedConstant

Cannot compute this constant because it depends on another one which already produced an error.

AlreadyReported(ErrorReported)

Abort in case errors are already reported.

Layout(LayoutError<'tcx>)

An error occurred during layout computation.

TransmuteSizeDiff(Ty<'tcx>, Ty<'tcx>)

An invalid transmute happened.

Trait Implementations

impl<'_> Display for InvalidProgramInfo<'_>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for InvalidProgramInfo<'tcx>

impl<'tcx> !Send for InvalidProgramInfo<'tcx>

impl<'tcx> !Sync for InvalidProgramInfo<'tcx>

impl<'tcx> Unpin for InvalidProgramInfo<'tcx>

impl<'tcx> !UnwindSafe for InvalidProgramInfo<'tcx>

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<'a, T> Captures<'a> 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> MaybeResult<T> for T[src]

type Error = !

impl<T> ToString for T where
    T: Display + ?Sized, 
[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]