Trait rustc_errors::DecorateLint
source · pub trait DecorateLint<'a, G: EmissionGuarantee> {
fn decorate_lint(self, diag: LintDiagnosticBuilder<'a, G>);
}
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(self, diag: LintDiagnosticBuilder<'a, G>)
fn decorate_lint(self, diag: LintDiagnosticBuilder<'a, G>)
Decorate and emit a lint.