Re-exportsยง
pub(crate) use std::borrow::Cow;๐pub(crate) use std::fmt::Display;๐pub(crate) use rustc_ast::attr::version::RustcVersion;๐pub(crate) use rustc_data_structures::fx::FxIndexSet;๐pub(crate) use StableCompare;๐pub(crate) use StableHash;๐pub(crate) use StableHashCtxt;๐pub(crate) use StableHasher;๐pub(crate) use DiagArgValue;๐pub(crate) use IntoDiagArg;๐pub(crate) use rustc_hir_id::HirId;๐pub(crate) use Decodable;๐pub(crate) use Encodable;๐pub(crate) use StableHash;๐pub(crate) use rustc_span::edition::Edition;๐pub(crate) use AttrId;๐pub(crate) use Ident;๐pub(crate) use Symbol;๐pub(crate) use sym;๐pub(crate) use Deserialize;๐pub(crate) use Deserialize;๐pub(crate) use Serialize;๐pub(crate) use Serialize;๐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
HirIdthat 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 - 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.