UNKNOWN_LINTS in rustc_lint::builtin - Rust
Description: The `unknown_lints` lint detects unrecognized lint attributes.

Skip to main content

## UNKNOWN_LINTS

# Static UNKNOWN_LINTS

Source

    pub static UNKNOWN_LINTS: &'static Lint

Expand description

The `unknown_lints` lint detects unrecognized lint attributes.

#### §Example

    #![allow(not_a_real_lint)]

{{produces}}

#### §Explanation

It is usually a mistake to specify a lint that does not exist. Check the spelling, and check the lint listing for the correct name. Also consider if you are using an old version of the compiler, and the lint is only available in a newer version.