Trait rustc_errors::LintDiagnostic
source · pub trait LintDiagnostic<'a, G: EmissionGuarantee> {
// Required methods
fn decorate_lint<'b>(self, diag: &'b mut Diag<'a, G>);
fn msg(&self) -> DiagMessage;
}
Expand description
Trait implemented by lint types. This should not be implemented manually. Instead, use
#[derive(LintDiagnostic)]
– see rustc_macros::LintDiagnostic.
Required Methods§
sourcefn decorate_lint<'b>(self, diag: &'b mut Diag<'a, G>)
fn decorate_lint<'b>(self, diag: &'b mut Diag<'a, G>)
Decorate and emit a lint.