Trait rustc_ap_rustc_session::SessionDiagnostic [−][src]
pub trait SessionDiagnostic<'a> {
#[must_use]
fn into_diagnostic(self, sess: &'a Session) -> DiagnosticBuilder<'a>;
}Expand description
Trait implemented by error types. This should not be implemented manually. Instead, use
#[derive(SessionDiagnostic)] – see rustc_macros::SessionDiagnostic.
Required methods
#[must_use]fn into_diagnostic(self, sess: &'a Session) -> DiagnosticBuilder<'a>[src]
#[must_use]fn into_diagnostic(self, sess: &'a Session) -> DiagnosticBuilder<'a>[src]Write out as a diagnostic out of sess.