Enum stable_mir::error::CompilerError
source · pub enum CompilerError<T> {
Failed,
Interrupted(T),
Skipped,
}
Expand description
An error type used to represent an error that has already been reported by the compiler.
Variants§
Failed
Compilation failed, either due to normal errors or ICE.
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 for CompilerError<T>where
T: Debug,
impl<T> Debug for CompilerError<T>where
T: Debug,
source§impl<T> Display for CompilerError<T>where
T: Display,
impl<T> Display for CompilerError<T>where
T: Display,
source§impl<T> Error for CompilerError<T>
impl<T> Error for CompilerError<T>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: PartialEq> PartialEq for CompilerError<T>
impl<T: PartialEq> PartialEq 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> StructuralPartialEq for CompilerError<T>
Auto Trait Implementations§
impl<T> Freeze for CompilerError<T>where
T: Freeze,
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.