pub enum CompileError<DE>where
DE: Error + 'static,{
Module(ModuleError),
Syntax(SyntaxError),
Meta(MetaEvalError),
Elab(ElabError),
Check(CheckError),
MirLower(LowerError),
Codegen(CodegenError),
Driver(DE),
}Expand description
Error produced while compiling a source file through the full pipeline.
Variants§
Module(ModuleError)
Module resolution failed.
Syntax(SyntaxError)
Parsing failed.
Meta(MetaEvalError)
Meta expansion failed.
Elab(ElabError)
Type elaboration failed.
Check(CheckError)
Semantic checking failed.
MirLower(LowerError)
HIR-to-MIR lowering failed.
Codegen(CodegenError)
Rust code generation failed.
Driver(DE)
Driver hook callback failed.
Trait Implementations§
Source§impl<DE> Debug for CompileError<DE>
impl<DE> Debug for CompileError<DE>
Source§impl<DE> Display for CompileError<DE>
impl<DE> Display for CompileError<DE>
Source§impl<DE> Error for CompileError<DE>
impl<DE> Error for CompileError<DE>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DE> From<CheckError> for CompileError<DE>where
DE: Error + 'static,
impl<DE> From<CheckError> for CompileError<DE>where
DE: Error + 'static,
Source§fn from(source: CheckError) -> Self
fn from(source: CheckError) -> Self
Converts to this type from the input type.
Source§impl<DE> From<CodegenError> for CompileError<DE>where
DE: Error + 'static,
impl<DE> From<CodegenError> for CompileError<DE>where
DE: Error + 'static,
Source§fn from(source: CodegenError) -> Self
fn from(source: CodegenError) -> Self
Converts to this type from the input type.
Source§impl<DE> From<LowerError> for CompileError<DE>where
DE: Error + 'static,
impl<DE> From<LowerError> for CompileError<DE>where
DE: Error + 'static,
Source§fn from(source: LowerError) -> Self
fn from(source: LowerError) -> Self
Converts to this type from the input type.
Source§impl<DE> From<MetaEvalError> for CompileError<DE>where
DE: Error + 'static,
impl<DE> From<MetaEvalError> for CompileError<DE>where
DE: Error + 'static,
Source§fn from(source: MetaEvalError) -> Self
fn from(source: MetaEvalError) -> Self
Converts to this type from the input type.
Source§impl<DE> From<ModuleError> for CompileError<DE>where
DE: Error + 'static,
impl<DE> From<ModuleError> for CompileError<DE>where
DE: Error + 'static,
Source§fn from(source: ModuleError) -> Self
fn from(source: ModuleError) -> Self
Converts to this type from the input type.
Source§impl<DE> From<SyntaxError> for CompileError<DE>where
DE: Error + 'static,
impl<DE> From<SyntaxError> for CompileError<DE>where
DE: Error + 'static,
Source§fn from(source: SyntaxError) -> Self
fn from(source: SyntaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<DE> Freeze for CompileError<DE>where
DE: Freeze,
impl<DE> !RefUnwindSafe for CompileError<DE>
impl<DE> Send for CompileError<DE>where
DE: Send,
impl<DE> Sync for CompileError<DE>where
DE: Sync,
impl<DE> Unpin for CompileError<DE>where
DE: Unpin,
impl<DE> !UnwindSafe for CompileError<DE>
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