Re-exports§
pub use self::Level::*;
Modules§
- builtin
- Some lints that are built in to the compiler.
Macros§
- declare_
lint - Declares a static item of type
&'static Lint. - declare_
lint_ pass - Declares a type named
$namewhich implementsLintPass. To the right of=>a comma separated list ofLintstatics is given. - declare_
tool_ lint - fcw
- impl_
lint_ pass - Implements
LintPass for $tywith the given list ofLintstatics. - pluralize
Structs§
- Edition
Fcw - Future
Incompatible Info - Extra information for a future incompatibility lint.
- Lint
- Specification of a single lint.
- LintId
- Identifies a lint known to the compiler.
- Release
Fcw - Stable
Lint Expectation Id - The [
HirId] that the lint expectation is attached to. This id is stable and can be cached. The additional index ensures that nodes with several expectations can correctly match diagnostics to the individual expectation. - Unstable
Lint Expectation Id - Used for lints emitted during the
EarlyLintPass. This id is not hash stable and should not be cached.
Enums§
- Applicability
- Indicates the confidence in the correctness of a suggestion.
- Deprecated
Since Kind - Edition
- The edition of the compiler. (See RFC 2052.)
- Future
Incompatibility Reason - The reason for future incompatibility
- Level
- Setting for how to handle a lint.
- Lint
Expectation Id - Each lint expectation has a
LintExpectationIdassigned by theLintLevelsBuilder. Expected diagnostics get the lint levelExpectwhich stores theLintExpectationIdto match it with the actual expectation later on.
Traits§
Functions§
- listify
- Grammatical tool for displaying messages to end users in a nice form.