Module early

Source
Expand description

Implementation of the early lint pass.

The early lint pass works on AST nodes after macro expansion and name resolution, just before AST lowering. These lints are for purely syntactical lints.

Modulesยง

diagnostics ๐Ÿ”’

Macrosยง

impl_early_lint_pass ๐Ÿ”’
lint_callback ๐Ÿ”’

Structsยง

EarlyContextAndPass
Implements the AST traversal for early lint passes. T provides the check_* methods.
RuntimeCombinedEarlyLintPass ๐Ÿ”’

Traitsยง

EarlyCheckNode
Early lints work on different nodes - either on the crate root, or on freshly loaded modules. This trait generalizes over those nodes.

Functionsยง

check_ast_node
check_ast_node_inner ๐Ÿ”’