Trait rustc_session::session::SessionDiagnostic
source · [−]pub trait SessionDiagnostic<'a, T: EmissionGuarantee = ErrorGuaranteed> {
fn into_diagnostic(self, sess: &'a ParseSess) -> DiagnosticBuilder<'a, T>;
}
Expand description
Trait implemented by error types. This should not be implemented manually. Instead, use
#[derive(SessionDiagnostic)]
– see rustc_macros::SessionDiagnostic.
Required Methods
fn into_diagnostic(self, sess: &'a ParseSess) -> DiagnosticBuilder<'a, T>
fn into_diagnostic(self, sess: &'a ParseSess) -> DiagnosticBuilder<'a, T>
Write out as a diagnostic out of sess
.