Crate rustc_lint_defs[−][src]

Re-exports

pub use self::Level::*;

Modules

Some lints that are built in to the compiler.

This module contains all the defined non-keyword Symbols.

Macros

Declares a static item of type &'static Lint.

Declares a type named $name which implements LintPass. To the right of => a comma separated list of Lint statics is given.

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

Declares a static LintArray and return it as an expression.

Structs

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

Extra information for a future incompatibility lint.

Specification of a single lint.

Identifies a lint known to the compiler.

A collection of Spans.

Identifies an AST node.

A compressed span.

When hashing something that ends up affecting properties like symbol names, we want these symbol names to be calculated independently of other factors like what architecture you’re compiling from.

An interned string.

Enums

Indicates the confidence in the correctness of a suggestion.

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

The reason for future incompatibility

Represents a json value

Setting for how to handle a lint.

Traits

Something that implements HashStable<CTX> can be hashed in a way that is stable across multiple compilation sessions.

Implement this for types that can be turned into stable keys like, for example, for DefId that can be converted to a DefPathHash. This is used for bringing maps into a predictable order before hashing them.

Type Definitions