Enum stable_mir::CompilerError
source · pub enum CompilerError<T> {
ICE,
CompilationFailed,
Interrupted(T),
Skipped,
}
Expand description
An error type used to represent an error that has already been reported by the compiler.
Variants§
ICE
Internal compiler error (I.e.: Compiler crashed).
CompilationFailed
Compilation failed.
Interrupted(T)
Compilation was interrupted.
Skipped
Compilation skipped. This happens when users invoke rustc to retrieve information such as –version.
Trait Implementations§
source§impl<T: Clone> Clone for CompilerError<T>
impl<T: Clone> Clone for CompilerError<T>
source§fn clone(&self) -> CompilerError<T>
fn clone(&self) -> CompilerError<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for CompilerError<T>
impl<T: Debug> Debug for CompilerError<T>
source§impl<T: PartialEq> PartialEq<CompilerError<T>> for CompilerError<T>
impl<T: PartialEq> PartialEq<CompilerError<T>> for CompilerError<T>
source§fn eq(&self, other: &CompilerError<T>) -> bool
fn eq(&self, other: &CompilerError<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for CompilerError<T>
impl<T: Eq> Eq for CompilerError<T>
impl<T> StructuralEq for CompilerError<T>
impl<T> StructuralPartialEq for CompilerError<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CompilerError<T>where T: RefUnwindSafe,
impl<T> Send for CompilerError<T>where T: Send,
impl<T> Sync for CompilerError<T>where T: Sync,
impl<T> Unpin for CompilerError<T>where T: Unpin,
impl<T> UnwindSafe for CompilerError<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.