Trait rustc::lint::LateLintPass [] [src]

pub trait LateLintPass: LintPass {
    fn check_name(&mut self, _: &LateContext, _: Span, _: Name) { ... }
    fn check_crate(&mut self, _: &LateContext, _: &Crate) { ... }
    fn check_crate_post(&mut self, _: &LateContext, _: &Crate) { ... }
    fn check_mod(&mut self, _: &LateContext, _: &Mod, _: Span, _: NodeId) { ... }
    fn check_mod_post(&mut self, _: &LateContext, _: &Mod, _: Span, _: NodeId) { ... }
    fn check_foreign_item(&mut self, _: &LateContext, _: &ForeignItem) { ... }
    fn check_foreign_item_post(&mut self, _: &LateContext, _: &ForeignItem) { ... }
    fn check_item(&mut self, _: &LateContext, _: &Item) { ... }
    fn check_item_post(&mut self, _: &LateContext, _: &Item) { ... }
    fn check_local(&mut self, _: &LateContext, _: &Local) { ... }
    fn check_block(&mut self, _: &LateContext, _: &Block) { ... }
    fn check_block_post(&mut self, _: &LateContext, _: &Block) { ... }
    fn check_stmt(&mut self, _: &LateContext, _: &Stmt) { ... }
    fn check_arm(&mut self, _: &LateContext, _: &Arm) { ... }
    fn check_pat(&mut self, _: &LateContext, _: &Pat) { ... }
    fn check_decl(&mut self, _: &LateContext, _: &Decl) { ... }
    fn check_expr(&mut self, _: &LateContext, _: &Expr) { ... }
    fn check_expr_post(&mut self, _: &LateContext, _: &Expr) { ... }
    fn check_ty(&mut self, _: &LateContext, _: &Ty) { ... }
    fn check_generics(&mut self, _: &LateContext, _: &Generics) { ... }
    fn check_fn(&mut self, _: &LateContext, _: FnKind, _: &FnDecl, _: &Block, _: Span, _: NodeId) { ... }
    fn check_fn_post(&mut self, _: &LateContext, _: FnKind, _: &FnDecl, _: &Block, _: Span, _: NodeId) { ... }
    fn check_trait_item(&mut self, _: &LateContext, _: &TraitItem) { ... }
    fn check_trait_item_post(&mut self, _: &LateContext, _: &TraitItem) { ... }
    fn check_impl_item(&mut self, _: &LateContext, _: &ImplItem) { ... }
    fn check_impl_item_post(&mut self, _: &LateContext, _: &ImplItem) { ... }
    fn check_struct_def(&mut self, _: &LateContext, _: &VariantData, _: Name, _: &Generics, _: NodeId) { ... }
    fn check_struct_def_post(&mut self, _: &LateContext, _: &VariantData, _: Name, _: &Generics, _: NodeId) { ... }
    fn check_struct_field(&mut self, _: &LateContext, _: &StructField) { ... }
    fn check_variant(&mut self, _: &LateContext, _: &Variant, _: &Generics) { ... }
    fn check_variant_post(&mut self, _: &LateContext, _: &Variant, _: &Generics) { ... }
    fn check_lifetime(&mut self, _: &LateContext, _: &Lifetime) { ... }
    fn check_lifetime_def(&mut self, _: &LateContext, _: &LifetimeDef) { ... }
    fn check_explicit_self(&mut self, _: &LateContext, _: &ExplicitSelf) { ... }
    fn check_path(&mut self, _: &LateContext, _: &Path, _: NodeId) { ... }
    fn check_path_list_item(&mut self, _: &LateContext, _: &PathListItem) { ... }
    fn check_attribute(&mut self, _: &LateContext, _: &Attribute) { ... }
    fn enter_lint_attrs(&mut self, _: &LateContext, _: &[Attribute]) { ... }
    fn exit_lint_attrs(&mut self, _: &LateContext, _: &[Attribute]) { ... }
}
Unstable (rustc_private)

Trait for types providing lint checks.

Each check method checks a single syntax node, and should not invoke methods recursively (unlike Visitor). By default they do nothing.

Provided Methods

fn check_name(&mut self, _: &LateContext, _: Span, _: Name)

Unstable (rustc_private)

fn check_crate(&mut self, _: &LateContext, _: &Crate)

Unstable (rustc_private)

fn check_crate_post(&mut self, _: &LateContext, _: &Crate)

Unstable (rustc_private)

fn check_mod(&mut self, _: &LateContext, _: &Mod, _: Span, _: NodeId)

Unstable (rustc_private)

fn check_mod_post(&mut self, _: &LateContext, _: &Mod, _: Span, _: NodeId)

Unstable (rustc_private)

fn check_foreign_item(&mut self, _: &LateContext, _: &ForeignItem)

Unstable (rustc_private)

fn check_foreign_item_post(&mut self, _: &LateContext, _: &ForeignItem)

Unstable (rustc_private)

fn check_item(&mut self, _: &LateContext, _: &Item)

Unstable (rustc_private)

fn check_item_post(&mut self, _: &LateContext, _: &Item)

Unstable (rustc_private)

fn check_local(&mut self, _: &LateContext, _: &Local)

Unstable (rustc_private)

fn check_block(&mut self, _: &LateContext, _: &Block)

Unstable (rustc_private)

fn check_block_post(&mut self, _: &LateContext, _: &Block)

Unstable (rustc_private)

fn check_stmt(&mut self, _: &LateContext, _: &Stmt)

Unstable (rustc_private)

fn check_arm(&mut self, _: &LateContext, _: &Arm)

Unstable (rustc_private)

fn check_pat(&mut self, _: &LateContext, _: &Pat)

Unstable (rustc_private)

fn check_decl(&mut self, _: &LateContext, _: &Decl)

Unstable (rustc_private)

fn check_expr(&mut self, _: &LateContext, _: &Expr)

Unstable (rustc_private)

fn check_expr_post(&mut self, _: &LateContext, _: &Expr)

Unstable (rustc_private)

fn check_ty(&mut self, _: &LateContext, _: &Ty)

Unstable (rustc_private)

fn check_generics(&mut self, _: &LateContext, _: &Generics)

Unstable (rustc_private)

fn check_fn(&mut self, _: &LateContext, _: FnKind, _: &FnDecl, _: &Block, _: Span, _: NodeId)

Unstable (rustc_private)

fn check_fn_post(&mut self, _: &LateContext, _: FnKind, _: &FnDecl, _: &Block, _: Span, _: NodeId)

Unstable (rustc_private)

fn check_trait_item(&mut self, _: &LateContext, _: &TraitItem)

Unstable (rustc_private)

fn check_trait_item_post(&mut self, _: &LateContext, _: &TraitItem)

Unstable (rustc_private)

fn check_impl_item(&mut self, _: &LateContext, _: &ImplItem)

Unstable (rustc_private)

fn check_impl_item_post(&mut self, _: &LateContext, _: &ImplItem)

Unstable (rustc_private)

fn check_struct_def(&mut self, _: &LateContext, _: &VariantData, _: Name, _: &Generics, _: NodeId)

Unstable (rustc_private)

fn check_struct_def_post(&mut self, _: &LateContext, _: &VariantData, _: Name, _: &Generics, _: NodeId)

Unstable (rustc_private)

fn check_struct_field(&mut self, _: &LateContext, _: &StructField)

Unstable (rustc_private)

fn check_variant(&mut self, _: &LateContext, _: &Variant, _: &Generics)

Unstable (rustc_private)

fn check_variant_post(&mut self, _: &LateContext, _: &Variant, _: &Generics)

Unstable (rustc_private)

fn check_lifetime(&mut self, _: &LateContext, _: &Lifetime)

Unstable (rustc_private)

fn check_lifetime_def(&mut self, _: &LateContext, _: &LifetimeDef)

Unstable (rustc_private)

fn check_explicit_self(&mut self, _: &LateContext, _: &ExplicitSelf)

Unstable (rustc_private)

fn check_path(&mut self, _: &LateContext, _: &Path, _: NodeId)

Unstable (rustc_private)

fn check_path_list_item(&mut self, _: &LateContext, _: &PathListItem)

Unstable (rustc_private)

fn check_attribute(&mut self, _: &LateContext, _: &Attribute)

Unstable (rustc_private)

fn enter_lint_attrs(&mut self, _: &LateContext, _: &[Attribute])

Unstable (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, _: &LateContext, _: &[Attribute])

Unstable (rustc_private)

Counterpart to enter_lint_attrs.

Implementors