pub trait SessionDiagnostic<'a> {
    fn into_diagnostic(
        self,
        sess: &'a Session
    ) -> DiagnosticBuilder<'a, ErrorGuaranteed>; }
Expand description

Trait implemented by error types. This should not be implemented manually. Instead, use #[derive(SessionDiagnostic)] – see rustc_macros::SessionDiagnostic.

Required methods

Write out as a diagnostic out of sess.

Implementors