Skip to main content

Crate rustc_lint_defs

Crate rustc_lint_defs 

Source

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 $name which implements LintPass. To the right of => a comma separated list of Lint statics is given.
declare_tool_lint
fcw
impl_lint_pass
Implements LintPass for $ty with the given list of Lint statics.
pluralize

Structsยง

EditionFcw
FutureIncompatibleInfo
Extra information for a future incompatibility lint.
Lint
Specification of a single lint.
LintId
Identifies a lint known to the compiler.
ReleaseFcw
StableLintExpectationId
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.
UnstableLintExpectationId
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.
DeprecatedSinceKind
FutureIncompatibilityReason
The reason for future incompatibility
Level
Setting for how to handle a lint.
LintExpectationId
Each lint expectation has a LintExpectationId assigned by the LintLevelsBuilder. Expected diagnostics get the lint level Expect which stores the LintExpectationId to match it with the actual expectation later on.

Traitsยง

LintPass

Functionsยง

listify
Grammatical tool for displaying messages to end users in a nice form.

Type Aliasesยง

LintVec
RegisteredTools