Crate rustc_lint_defs
source ·Re-exports§
pub use self::Level::*;
Modules§
- Some lints that are built in to the compiler.
Macros§
- Declares a static item of type
&'static Lint. - Declares a type named
$namewhich implementsLintPass. To the right of=>a comma separated list ofLintstatics is given. - Implements
LintPass for $tywith the given list ofLintstatics.
Structs§
- Lints that are buffered up early on in the
Sessionbefore theLintLevelsis calculated. - Extra information for a future incompatibility lint.
- Specification of a single lint.
- Identifies a lint known to the compiler.
Enums§
- Indicates the confidence in the correctness of a suggestion.
- The reason for future incompatibility
- Setting for how to handle a lint.
- Each lint expectation has a
LintExpectationIdassigned by theLintLevelsBuilder. Expected diagnostics get the lint levelExpectwhich stores theLintExpectationIdto match it with the actual expectation later on.