[][src]Trait rustc_ap_rustc_session::SessionDiagnostic

pub trait SessionDiagnostic<'a> {
#[must_use]    pub fn into_diagnostic(self, sess: &'a Session) -> DiagnosticBuilder<'a>;
}

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

Required methods

#[must_use]pub fn into_diagnostic(self, sess: &'a Session) -> DiagnosticBuilder<'a>[src]

Write out as a diagnostic out of sess.

Loading content...

Implementors

Loading content...