Trait rustc_typeck::lint::EarlyLintPass
[−]
[src]
pub trait EarlyLintPass: LintPass { fn check_ident(&mut self, &EarlyContext, Span, Ident) { ... } fn check_crate(&mut self, &EarlyContext, &Crate) { ... } fn check_crate_post(&mut self, &EarlyContext, &Crate) { ... } fn check_mod(&mut self, &EarlyContext, &Mod, Span, NodeId) { ... } fn check_mod_post(&mut self, &EarlyContext, &Mod, Span, NodeId) { ... } fn check_foreign_item(&mut self, &EarlyContext, &ForeignItem) { ... } fn check_foreign_item_post(&mut self, &EarlyContext, &ForeignItem) { ... } fn check_item(&mut self, &EarlyContext, &Item) { ... } fn check_item_post(&mut self, &EarlyContext, &Item) { ... } fn check_local(&mut self, &EarlyContext, &Local) { ... } fn check_block(&mut self, &EarlyContext, &Block) { ... } fn check_block_post(&mut self, &EarlyContext, &Block) { ... } fn check_stmt(&mut self, &EarlyContext, &Stmt) { ... } fn check_arm(&mut self, &EarlyContext, &Arm) { ... } fn check_pat(&mut self, &EarlyContext, &Pat) { ... } fn check_expr(&mut self, &EarlyContext, &Expr) { ... } fn check_expr_post(&mut self, &EarlyContext, &Expr) { ... } fn check_ty(&mut self, &EarlyContext, &Ty) { ... } fn check_generics(&mut self, &EarlyContext, &Generics) { ... } fn check_fn(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId) { ... } fn check_fn_post(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId) { ... } fn check_trait_item(&mut self, &EarlyContext, &TraitItem) { ... } fn check_trait_item_post(&mut self, &EarlyContext, &TraitItem) { ... } fn check_impl_item(&mut self, &EarlyContext, &ImplItem) { ... } fn check_impl_item_post(&mut self, &EarlyContext, &ImplItem) { ... } fn check_struct_def(&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId) { ... } fn check_struct_def_post(&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId) { ... } fn check_struct_field(&mut self, &EarlyContext, &StructField) { ... } fn check_variant(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics) { ... } fn check_variant_post(&mut self,
&EarlyContext,
&Spanned<Variant_>,
&Generics) { ... } fn check_lifetime(&mut self, &EarlyContext, &Lifetime) { ... } fn check_lifetime_def(&mut self, &EarlyContext, &LifetimeDef) { ... } fn check_path(&mut self, &EarlyContext, &Path, NodeId) { ... } fn check_path_list_item(&mut self, &EarlyContext, &Spanned<PathListItem_>) { ... } fn check_attribute(&mut self, &EarlyContext, &Attribute) { ... } fn enter_lint_attrs(&mut self, &EarlyContext, &[Attribute]) { ... } fn exit_lint_attrs(&mut self, &EarlyContext, &[Attribute]) { ... } }
🔬 This is a nightly-only experimental API. (
rustc_private
)Provided Methods
fn check_ident(&mut self, &EarlyContext, Span, Ident)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_crate(&mut self, &EarlyContext, &Crate)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_crate_post(&mut self, &EarlyContext, &Crate)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_mod(&mut self, &EarlyContext, &Mod, Span, NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_mod_post(&mut self, &EarlyContext, &Mod, Span, NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_foreign_item(&mut self, &EarlyContext, &ForeignItem)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_foreign_item_post(&mut self, &EarlyContext, &ForeignItem)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_item(&mut self, &EarlyContext, &Item)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_item_post(&mut self, &EarlyContext, &Item)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_local(&mut self, &EarlyContext, &Local)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_block(&mut self, &EarlyContext, &Block)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_block_post(&mut self, &EarlyContext, &Block)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_stmt(&mut self, &EarlyContext, &Stmt)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_arm(&mut self, &EarlyContext, &Arm)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_pat(&mut self, &EarlyContext, &Pat)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_expr(&mut self, &EarlyContext, &Expr)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_expr_post(&mut self, &EarlyContext, &Expr)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_ty(&mut self, &EarlyContext, &Ty)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_generics(&mut self, &EarlyContext, &Generics)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_fn(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_fn_post(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_trait_item(&mut self, &EarlyContext, &TraitItem)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_trait_item_post(&mut self, &EarlyContext, &TraitItem)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_impl_item(&mut self, &EarlyContext, &ImplItem)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_impl_item_post(&mut self, &EarlyContext, &ImplItem)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_struct_def(&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId)
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_struct_def_post(&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId)
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_struct_field(&mut self, &EarlyContext, &StructField)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_variant(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_variant_post(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_lifetime(&mut self, &EarlyContext, &Lifetime)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_lifetime_def(&mut self, &EarlyContext, &LifetimeDef)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_path(&mut self, &EarlyContext, &Path, NodeId)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_path_list_item(&mut self, &EarlyContext, &Spanned<PathListItem_>)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn check_attribute(&mut self, &EarlyContext, &Attribute)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn enter_lint_attrs(&mut self, &EarlyContext, &[Attribute])
🔬 This is a nightly-only experimental API. (
rustc_private
)Called when entering a syntax node that can have lint attributes such
as #[allow(...)]
. Called with all the attributes of that node.
fn exit_lint_attrs(&mut self, &EarlyContext, &[Attribute])
🔬 This is a nightly-only experimental API. (
rustc_private
)Counterpart to enter_lint_attrs
.