rustc_lint::internal

Static DIAGNOSTIC_OUTSIDE_OF_IMPL

Source
pub static DIAGNOSTIC_OUTSIDE_OF_IMPL: &Lint
Expand description

The diagnostic_outside_of_impl lint detects calls to functions annotated with #[rustc_lint_diagnostics] that are outside an Diagnostic, Subdiagnostic, or LintDiagnostic impl (either hand-written or derived).

More details on diagnostics implementations can be found here.