## LintDiagnostic

# Trait LintDiagnostic

Source

    pub trait LintDiagnostic<'a, G: EmissionGuarantee> {
        // Required method
        fn decorate_lint<'b>(self, diag: &'b mut Diag<'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§

Source

#### fn decorate_lint<'b>(self, diag: &'b mut Diag<'a, G>)

Decorate a lint with the information from this type.

## Implementations on Foreign Types§

Source§

### impl !LintDiagnostic<'_, ()> for BuiltinLintDiag

## Implementors§