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

pub trait LateLintPass<'a, 'tcx>: LintPass {
    fn check_param(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Param) { ... }
fn check_body(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Body) { ... }
fn check_body_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Body) { ... }
fn check_name(&mut self, _: &LateContext<'a, 'tcx>, _: Span, _: Name) { ... }
fn check_crate(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Crate) { ... }
fn check_crate_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Crate) { ... }
fn check_mod(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx Mod,
        _: Span,
        _: HirId
    ) { ... }
fn check_mod_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx Mod,
        _: Span,
        _: HirId
    ) { ... }
fn check_foreign_item(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx ForeignItem
    ) { ... }
fn check_foreign_item_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx ForeignItem
    ) { ... }
fn check_item(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Item) { ... }
fn check_item_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Item) { ... }
fn check_local(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Local) { ... }
fn check_block(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Block) { ... }
fn check_block_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Block) { ... }
fn check_stmt(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Stmt) { ... }
fn check_arm(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Arm) { ... }
fn check_pat(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Pat) { ... }
fn check_expr(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Expr) { ... }
fn check_expr_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Expr) { ... }
fn check_ty(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Ty) { ... }
fn check_generic_param(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx GenericParam
    ) { ... }
fn check_generics(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Generics) { ... }
fn check_where_predicate(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx WherePredicate
    ) { ... }
fn check_poly_trait_ref(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx PolyTraitRef,
        _: TraitBoundModifier
    ) { ... }
fn check_fn(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: FnKind<'tcx>,
        _: &'tcx FnDecl,
        _: &'tcx Body,
        _: Span,
        _: HirId
    ) { ... }
fn check_fn_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: FnKind<'tcx>,
        _: &'tcx FnDecl,
        _: &'tcx Body,
        _: Span,
        _: HirId
    ) { ... }
fn check_trait_item(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx TraitItem
    ) { ... }
fn check_trait_item_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx TraitItem
    ) { ... }
fn check_impl_item(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx ImplItem) { ... }
fn check_impl_item_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx ImplItem
    ) { ... }
fn check_struct_def(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx VariantData
    ) { ... }
fn check_struct_def_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx VariantData
    ) { ... }
fn check_struct_field(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx StructField
    ) { ... }
fn check_variant(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Variant) { ... }
fn check_variant_post(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx Variant
    ) { ... }
fn check_lifetime(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Lifetime) { ... }
fn check_path(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Path, _: HirId) { ... }
fn check_attribute(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Attribute) { ... }
fn enter_lint_attrs(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx [Attribute]
    ) { ... }
fn exit_lint_attrs(
        &mut self,
        _: &LateContext<'a, 'tcx>,
        _: &'tcx [Attribute]
    ) { ... } }
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Provided methods

fn check_param(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Param)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_body(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Body)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_body_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Body)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_name(&mut self, _: &LateContext<'a, 'tcx>, _: Span, _: Name)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_crate(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Crate)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_crate_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Crate)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_mod(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx Mod,
    _: Span,
    _: HirId
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_mod_post(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx Mod,
    _: Span,
    _: HirId
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_foreign_item(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx ForeignItem
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_foreign_item_post(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx ForeignItem
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_item(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Item)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_item_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Item)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_local(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Local)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_block(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Block)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_block_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Block)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_stmt(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Stmt)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_arm(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Arm)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_pat(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Pat)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_expr(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Expr)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_expr_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Expr)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_ty(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Ty)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_generic_param(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx GenericParam
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_generics(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Generics)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_where_predicate(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx WherePredicate
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_poly_trait_ref(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx PolyTraitRef,
    _: TraitBoundModifier
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_fn(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: FnKind<'tcx>,
    _: &'tcx FnDecl,
    _: &'tcx Body,
    _: Span,
    _: HirId
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_fn_post(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: FnKind<'tcx>,
    _: &'tcx FnDecl,
    _: &'tcx Body,
    _: Span,
    _: HirId
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_trait_item(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx TraitItem)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_trait_item_post(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx TraitItem
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_impl_item(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx ImplItem)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_impl_item_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx ImplItem)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_struct_def(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx VariantData)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_struct_def_post(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx VariantData
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_struct_field(
    &mut self,
    _: &LateContext<'a, 'tcx>,
    _: &'tcx StructField
)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_variant(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Variant)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_variant_post(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Variant)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_lifetime(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Lifetime)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_path(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Path, _: HirId)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn check_attribute(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Attribute)

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn enter_lint_attrs(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx [Attribute])

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn exit_lint_attrs(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx [Attribute])

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Implementors

impl<'a, 'tcx> LateLintPass<'a, 'tcx> for HardwiredLints[src]

impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TyTyKind[src]

impl<'a, 'tcx, '_> LateLintPass<'a, 'tcx> for LateLintPassObjects<'_>[src]

Loading content...