pub trait IntoDiagnostic<'a, T: EmissionGuarantee = ErrorGuaranteed> {
fn into_diagnostic(self, handler: &'a Handler) -> DiagnosticBuilder<'a, T>;
}
Expand description
Trait implemented by error types. This should not be implemented manually. Instead, use
#[derive(Diagnostic)]
– see rustc_macros::Diagnostic.
Required Methods§
sourcefn into_diagnostic(self, handler: &'a Handler) -> DiagnosticBuilder<'a, T>
fn into_diagnostic(self, handler: &'a Handler) -> DiagnosticBuilder<'a, T>
Write out as a diagnostic out of Handler
.