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 IntoDiagnostic, AddToDiagnostic, or DecorateLint impl, or a #[derive(Diagnostic)], #[derive(Subdiagnostic)], #[derive(DecorateLint)] expansion.

More details on diagnostics implementations can be found here.