pub trait IntoDiagnostic<'a, T: EmissionGuarantee = ErrorGuaranteed> {
    // Required method
    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§

source

fn into_diagnostic(self, handler: &'a Handler) -> DiagnosticBuilder<'a, T>

Write out as a diagnostic out of Handler.

Implementations on Foreign Types§

source§

impl<'a, T, E> IntoDiagnostic<'a, E> for Spanned<T>where T: IntoDiagnostic<'a, E>, E: EmissionGuarantee,

source§

fn into_diagnostic(self, handler: &'a Handler) -> DiagnosticBuilder<'a, E>

source§

impl IntoDiagnostic<'_, !> for TargetDataLayoutErrors<'_>

Implementors§