Enum rustc_middle::mir::interpret::UnsupportedOpInfo [−][src]
pub enum UnsupportedOpInfo {
Unsupported(String),
NoMirFor(DefId),
ReadPointerAsBytes,
ReadBytesAsPointer,
ThreadLocalStatic(DefId),
ReadExternStatic(DefId),
}Expand description
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)Expand description
Free-form case. Only for errors that are never caught!
NoMirFor(DefId)Expand description
Could not find MIR for a function.
Expand description
Encountered a pointer where we needed raw bytes.
Expand description
Encountered raw bytes where we needed a pointer.
ThreadLocalStatic(DefId)Expand description
Accessing thread local statics
ReadExternStatic(DefId)Expand description
Accessing an unsupported extern static.
Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,