[−][src]Trait rustc_lint::EarlyLintPass

pub trait EarlyLintPass: LintPass {
    pub fn check_param(&mut self, _: &EarlyContext<'_>, _: &Param) { ... }
pub fn check_ident(&mut self, _: &EarlyContext<'_>, _: Ident) { ... }
pub fn check_crate(&mut self, _: &EarlyContext<'_>, _: &Crate) { ... }
pub fn check_crate_post(&mut self, _: &EarlyContext<'_>, _: &Crate) { ... }
pub fn check_mod(
        &mut self,
        _: &EarlyContext<'_>,
        _: &Mod,
        _: Span,
        _: NodeId
    ) { ... }
pub fn check_mod_post(
        &mut self,
        _: &EarlyContext<'_>,
        _: &Mod,
        _: Span,
        _: NodeId
    ) { ... }
pub fn check_foreign_item(&mut self, _: &EarlyContext<'_>, _: &ForeignItem) { ... }
pub fn check_foreign_item_post(
        &mut self,
        _: &EarlyContext<'_>,
        _: &ForeignItem
    ) { ... }
pub fn check_item(&mut self, _: &EarlyContext<'_>, _: &Item) { ... }
pub fn check_item_post(&mut self, _: &EarlyContext<'_>, _: &Item) { ... }
pub fn check_local(&mut self, _: &EarlyContext<'_>, _: &Local) { ... }
pub fn check_block(&mut self, _: &EarlyContext<'_>, _: &Block) { ... }
pub fn check_block_post(&mut self, _: &EarlyContext<'_>, _: &Block) { ... }
pub fn check_stmt(&mut self, _: &EarlyContext<'_>, _: &Stmt) { ... }
pub fn check_arm(&mut self, _: &EarlyContext<'_>, _: &Arm) { ... }
pub fn check_pat(&mut self, _: &EarlyContext<'_>, _: &Pat) { ... }
pub fn check_anon_const(&mut self, _: &EarlyContext<'_>, _: &AnonConst) { ... }
pub fn check_pat_post(&mut self, _: &EarlyContext<'_>, _: &Pat) { ... }
pub fn check_expr(&mut self, _: &EarlyContext<'_>, _: &Expr) { ... }
pub fn check_expr_post(&mut self, _: &EarlyContext<'_>, _: &Expr) { ... }
pub fn check_ty(&mut self, _: &EarlyContext<'_>, _: &Ty) { ... }
pub fn check_generic_arg(&mut self, _: &EarlyContext<'_>, _: &GenericArg) { ... }
pub fn check_generic_param(
        &mut self,
        _: &EarlyContext<'_>,
        _: &GenericParam
    ) { ... }
pub fn check_generics(&mut self, _: &EarlyContext<'_>, _: &Generics) { ... }
pub fn check_where_predicate(
        &mut self,
        _: &EarlyContext<'_>,
        _: &WherePredicate
    ) { ... }
pub fn check_poly_trait_ref(
        &mut self,
        _: &EarlyContext<'_>,
        _: &PolyTraitRef,
        _: &TraitBoundModifier
    ) { ... }
pub fn check_fn(
        &mut self,
        _: &EarlyContext<'_>,
        _: FnKind<'_>,
        _: Span,
        _: NodeId
    ) { ... }
pub fn check_fn_post(
        &mut self,
        _: &EarlyContext<'_>,
        _: FnKind<'_>,
        _: Span,
        _: NodeId
    ) { ... }
pub fn check_trait_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem) { ... }
pub fn check_trait_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem) { ... }
pub fn check_impl_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem) { ... }
pub fn check_impl_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem) { ... }
pub fn check_struct_def(&mut self, _: &EarlyContext<'_>, _: &VariantData) { ... }
pub fn check_struct_def_post(
        &mut self,
        _: &EarlyContext<'_>,
        _: &VariantData
    ) { ... }
pub fn check_struct_field(&mut self, _: &EarlyContext<'_>, _: &StructField) { ... }
pub fn check_variant(&mut self, _: &EarlyContext<'_>, _: &Variant) { ... }
pub fn check_variant_post(&mut self, _: &EarlyContext<'_>, _: &Variant) { ... }
pub fn check_lifetime(&mut self, _: &EarlyContext<'_>, _: &Lifetime) { ... }
pub fn check_path(&mut self, _: &EarlyContext<'_>, _: &Path, _: NodeId) { ... }
pub fn check_attribute(&mut self, _: &EarlyContext<'_>, _: &Attribute) { ... }
pub fn check_mac_def(
        &mut self,
        _: &EarlyContext<'_>,
        _: &MacroDef,
        _: NodeId
    ) { ... }
pub fn check_mac(&mut self, _: &EarlyContext<'_>, _: &MacCall) { ... }
pub fn enter_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute]) { ... }
pub fn exit_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute]) { ... } }

Provided methods

pub fn check_param(&mut self, _: &EarlyContext<'_>, _: &Param)[src]

pub fn check_ident(&mut self, _: &EarlyContext<'_>, _: Ident)[src]

pub fn check_crate(&mut self, _: &EarlyContext<'_>, _: &Crate)[src]

pub fn check_crate_post(&mut self, _: &EarlyContext<'_>, _: &Crate)[src]

pub fn check_mod(&mut self, _: &EarlyContext<'_>, _: &Mod, _: Span, _: NodeId)[src]

pub fn check_mod_post(
    &mut self,
    _: &EarlyContext<'_>,
    _: &Mod,
    _: Span,
    _: NodeId
)
[src]

pub fn check_foreign_item(&mut self, _: &EarlyContext<'_>, _: &ForeignItem)[src]

pub fn check_foreign_item_post(&mut self, _: &EarlyContext<'_>, _: &ForeignItem)[src]

pub fn check_item(&mut self, _: &EarlyContext<'_>, _: &Item)[src]

pub fn check_item_post(&mut self, _: &EarlyContext<'_>, _: &Item)[src]

pub fn check_local(&mut self, _: &EarlyContext<'_>, _: &Local)[src]

pub fn check_block(&mut self, _: &EarlyContext<'_>, _: &Block)[src]

pub fn check_block_post(&mut self, _: &EarlyContext<'_>, _: &Block)[src]

pub fn check_stmt(&mut self, _: &EarlyContext<'_>, _: &Stmt)[src]

pub fn check_arm(&mut self, _: &EarlyContext<'_>, _: &Arm)[src]

pub fn check_pat(&mut self, _: &EarlyContext<'_>, _: &Pat)[src]

pub fn check_anon_const(&mut self, _: &EarlyContext<'_>, _: &AnonConst)[src]

pub fn check_pat_post(&mut self, _: &EarlyContext<'_>, _: &Pat)[src]

pub fn check_expr(&mut self, _: &EarlyContext<'_>, _: &Expr)[src]

pub fn check_expr_post(&mut self, _: &EarlyContext<'_>, _: &Expr)[src]

pub fn check_ty(&mut self, _: &EarlyContext<'_>, _: &Ty)[src]

pub fn check_generic_arg(&mut self, _: &EarlyContext<'_>, _: &GenericArg)[src]

pub fn check_generic_param(&mut self, _: &EarlyContext<'_>, _: &GenericParam)[src]

pub fn check_generics(&mut self, _: &EarlyContext<'_>, _: &Generics)[src]

pub fn check_where_predicate(
    &mut self,
    _: &EarlyContext<'_>,
    _: &WherePredicate
)
[src]

pub fn check_poly_trait_ref(
    &mut self,
    _: &EarlyContext<'_>,
    _: &PolyTraitRef,
    _: &TraitBoundModifier
)
[src]

pub fn check_fn(
    &mut self,
    _: &EarlyContext<'_>,
    _: FnKind<'_>,
    _: Span,
    _: NodeId
)
[src]

pub fn check_fn_post(
    &mut self,
    _: &EarlyContext<'_>,
    _: FnKind<'_>,
    _: Span,
    _: NodeId
)
[src]

pub fn check_trait_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]

pub fn check_trait_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]

pub fn check_impl_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]

pub fn check_impl_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]

pub fn check_struct_def(&mut self, _: &EarlyContext<'_>, _: &VariantData)[src]

pub fn check_struct_def_post(&mut self, _: &EarlyContext<'_>, _: &VariantData)[src]

pub fn check_struct_field(&mut self, _: &EarlyContext<'_>, _: &StructField)[src]

pub fn check_variant(&mut self, _: &EarlyContext<'_>, _: &Variant)[src]

pub fn check_variant_post(&mut self, _: &EarlyContext<'_>, _: &Variant)[src]

pub fn check_lifetime(&mut self, _: &EarlyContext<'_>, _: &Lifetime)[src]

pub fn check_path(&mut self, _: &EarlyContext<'_>, _: &Path, _: NodeId)[src]

pub fn check_attribute(&mut self, _: &EarlyContext<'_>, _: &Attribute)[src]

pub fn check_mac_def(&mut self, _: &EarlyContext<'_>, _: &MacroDef, _: NodeId)[src]

pub fn check_mac(&mut self, _: &EarlyContext<'_>, _: &MacCall)[src]

pub fn enter_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute])[src]

pub fn exit_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute])[src]

Loading content...

Implementors

impl EarlyLintPass for AnonymousParameters[src]

impl EarlyLintPass for DeprecatedAttr[src]

impl EarlyLintPass for EllipsisInclusiveRangePatterns[src]

impl EarlyLintPass for IncompleteFeatures[src]

impl EarlyLintPass for KeywordIdents[src]

impl EarlyLintPass for UnsafeCode[src]

impl EarlyLintPass for UnusedDocComment[src]

impl EarlyLintPass for WhileTrue[src]

impl EarlyLintPass for DefaultHashTypes[src]

impl EarlyLintPass for LintPassImpl[src]

impl EarlyLintPass for NonAsciiIdents[src]

impl EarlyLintPass for NonCamelCaseTypes[src]

impl EarlyLintPass for RedundantSemicolons[src]

impl EarlyLintPass for BuiltinCombinedEarlyLintPass[src]

impl EarlyLintPass for BuiltinCombinedPreExpansionLintPass[src]

impl EarlyLintPass for UnusedBraces[src]

impl EarlyLintPass for UnusedImportBraces[src]

impl EarlyLintPass for UnusedParens[src]

impl<'_> EarlyLintPass for EarlyLintPassObjects<'_>[src]

Loading content...