rustc_lint_defs - Rust (original) (raw)

Crate rustc_lint_defs

Source

Re-exports§

pub use self::[Level](enum.Level.html "enum rustc_lint_defs::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

impl_lint_pass

Implements LintPass for $ty with the given list of Lint statics.

pluralize

Structs§

AmbiguityErrorDiag

BufferedEarlyLint

Lints that are buffered up early on in the Session before theLintLevels is calculated.

FutureIncompatibleInfo

Extra information for a future incompatibility lint.

Lint

Specification of a single lint.

LintBuffer

LintId

Identifies a lint known to the compiler.

Enums§

Applicability

Indicates the confidence in the correctness of a suggestion.

BuiltinLintDiag

DeprecatedSinceKind

Edition

The edition of the compiler. (See RFC 2052.)

ElidedLifetimeResolution

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 LintExpectationIdto 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