[−][src]Enum rustc_middle::mir::interpret::error::UnsupportedOpInfo

pub enum UnsupportedOpInfo {
    Unsupported(String),
    NoMirFor(DefId),
    ReadPointerAsBytes,
    ReadBytesAsPointer,
    ThreadLocalStatic(DefId),
    ReadExternStatic(DefId),
}

Error information for when the program did something that might (or might not) be correct to do according to the Rust spec, but due to limitations in the interpreter, the operation could not be carried out. These limitations can differ between CTFE and the Miri engine, e.g., CTFE does not support dereferencing pointers at integral addresses.

Variants

Unsupported(String)

Free-form case. Only for errors that are never caught!

NoMirFor(DefId)

Could not find MIR for a function.

ReadPointerAsBytes

Encountered a pointer where we needed raw bytes.

ReadBytesAsPointer

Encountered raw bytes where we needed a pointer.

ThreadLocalStatic(DefId)

Accessing thread local statics

ReadExternStatic(DefId)

Accessing an unsupported extern static.

Trait Implementations

impl Display for UnsupportedOpInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for UnsupportedOpInfo

impl Send for UnsupportedOpInfo

impl Sync for UnsupportedOpInfo

impl Unpin for UnsupportedOpInfo

impl UnwindSafe for UnsupportedOpInfo

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]