Skip to main content

rustc_lint/
lib.rs

1//! Lints, aka compiler warnings.
2//!
3//! A 'lint' check is a kind of miscellaneous constraint that a user _might_
4//! want to enforce, but might reasonably want to permit as well, on a
5//! module-by-module basis. They contrast with static constraints enforced by
6//! other phases of the compiler, which are generally required to hold in order
7//! to compile the program at all.
8//!
9//! Most lints can be written as [`LintPass`] instances. These run after
10//! all other analyses. The `LintPass`es built into rustc are defined
11//! within [rustc_session::lint::builtin],
12//! which has further comments on how to add such a lint.
13//! rustc can also load external lint plugins, as is done for Clippy.
14//!
15//! See <https://rustc-dev-guide.rust-lang.org/diagnostics.html> for an
16//! overview of how lints are implemented.
17//!
18//! ## Note
19//!
20//! This API is completely unstable and subject to change.
21
22// tidy-alphabetical-start
23#![feature(deref_patterns)]
24#![feature(iter_order_by)]
25#![feature(option_into_flat_iter)]
26#![feature(titlecase)]
27#![feature(try_blocks)]
28// tidy-alphabetical-end
29
30mod async_closures;
31mod async_fn_in_trait;
32mod autorefs;
33pub mod builtin;
34mod c_void_returns;
35mod context;
36mod dangling;
37mod default_could_be_derived;
38mod deref_into_dyn_supertrait;
39mod diagnostics;
40mod disallowed_pass_by_ref;
41mod drop_forget_useless;
42mod early;
43mod enum_intrinsics_non_enums;
44mod expect;
45mod for_loops_over_fallibles;
46mod foreign_modules;
47mod function_cast_as_integer;
48mod gpukernel_abi;
49mod if_let_rescope;
50mod impl_trait_overcaptures;
51mod implicit_provenance_casts;
52mod interior_mutable_consts;
53mod internal;
54mod invalid_from_utf8;
55mod late;
56mod let_underscore;
57mod levels;
58pub mod lifetime_syntax;
59mod macro_expr_fragment_specifier_2024_migration;
60mod map_unit_fn;
61mod multiple_supertrait_upcastable;
62mod non_ascii_idents;
63mod non_fmt_panic;
64mod non_local_def;
65mod nonstandard_style;
66mod noop_method_call;
67mod opaque_hidden_inferred_bound;
68mod passes;
69mod precedence;
70mod ptr_nulls;
71mod raw_borrows_via_references;
72mod redundant_semicolon;
73mod reference_casting;
74mod runtime_symbols;
75mod shadowed_into_iter;
76mod static_mut_refs;
77mod traits;
78mod transmute;
79mod types;
80mod unit_bindings;
81mod unqualified_local_imports;
82pub mod unused;
83mod utils;
84
85// Ferrocene addition
86// NOTE: used by rustc_interface.
87pub mod ferrocene;
88
89use async_closures::AsyncClosureUsage;
90use async_fn_in_trait::AsyncFnInTrait;
91use autorefs::*;
92use builtin::*;
93use c_void_returns::*;
94use dangling::*;
95use default_could_be_derived::DefaultCouldBeDerived;
96use deref_into_dyn_supertrait::*;
97use disallowed_pass_by_ref::*;
98use drop_forget_useless::*;
99use enum_intrinsics_non_enums::EnumIntrinsicsNonEnums;
100use for_loops_over_fallibles::*;
101use function_cast_as_integer::*;
102use gpukernel_abi::*;
103use if_let_rescope::IfLetRescope;
104use impl_trait_overcaptures::ImplTraitOvercaptures;
105use implicit_provenance_casts::ImplicitProvenanceCasts;
106use interior_mutable_consts::*;
107use internal::*;
108use invalid_from_utf8::*;
109use let_underscore::*;
110use lifetime_syntax::*;
111use macro_expr_fragment_specifier_2024_migration::*;
112use map_unit_fn::*;
113use multiple_supertrait_upcastable::*;
114use non_ascii_idents::*;
115use non_fmt_panic::NonPanicFmt;
116use non_local_def::*;
117use nonstandard_style::*;
118use noop_method_call::*;
119use opaque_hidden_inferred_bound::*;
120use precedence::*;
121use ptr_nulls::*;
122use raw_borrows_via_references::*;
123use redundant_semicolon::*;
124use reference_casting::*;
125use runtime_symbols::*;
126use rustc_data_structures::unord::UnordSet;
127use rustc_hir::def_id::LocalModId;
128use rustc_middle::query::Providers;
129use rustc_middle::ty::TyCtxt;
130use shadowed_into_iter::ShadowedIntoIter;
131pub use shadowed_into_iter::{ARRAY_INTO_ITER, BOXED_SLICE_INTO_ITER};
132use static_mut_refs::*;
133use traits::*;
134use transmute::CheckTransmutes;
135use types::*;
136use unit_bindings::*;
137use unqualified_local_imports::*;
138use unused::must_use::*;
139use unused::*;
140
141#[rustfmt::skip]
142pub use builtin::MissingDoc;
143pub use context::{CheckLintNameResult, EarlyContext, LateContext, LintContext, LintStore};
144pub use early::diagnostics::DiagAndSess;
145pub use early::{EarlyCheckNode, check_ast_node};
146pub use late::{check_crate, late_lint_mod, unerased_lint_store};
147pub use levels::LintLevelsBuilder;
148pub use passes::{EarlyLintPass, LateLintPass};
149pub use rustc_errors::BufferedEarlyLint;
150pub use rustc_session::lint::Level::{self, *};
151pub use rustc_session::lint::{FutureIncompatibleInfo, Lint, LintId, LintPass, LintVec};
152
153pub fn provide(providers: &mut Providers) {
154    levels::provide(providers);
155    expect::provide(providers);
156    foreign_modules::provide(providers);
157    *providers = Providers { lint_mod, ..*providers };
158}
159
160fn lint_mod(tcx: TyCtxt<'_>, mod_id: LocalModId) {
161    late_lint_mod(tcx, mod_id, BuiltinCombinedLateLintModPass::new());
162}
163
164#[allow(non_snake_case)]
pub struct BuiltinCombinedPreExpansionLintPass {
    KeywordIdents: KeywordIdents,
}
impl BuiltinCombinedPreExpansionLintPass {
    pub fn new() -> Self { Self { KeywordIdents: KeywordIdents } }
    pub fn lint_vec() -> crate::LintVec {
        let mut lints = Vec::new();
        lints.extend_from_slice(&KeywordIdents::lint_vec());
        lints
    }
}
impl crate::EarlyLintPass for BuiltinCombinedPreExpansionLintPass {
    fn check_param(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Param) {
        { self.KeywordIdents.check_param(context, a); };
    }
    fn check_ident(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_span::Ident) {
        { self.KeywordIdents.check_ident(context, a); };
    }
    fn check_crate(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Crate) {
        { self.KeywordIdents.check_crate(context, a); };
    }
    fn check_crate_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Crate) {
        { self.KeywordIdents.check_crate_post(context, a); };
    }
    fn check_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Item) {
        { self.KeywordIdents.check_item(context, a); };
    }
    fn check_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Item) {
        { self.KeywordIdents.check_item_post(context, a); };
    }
    fn check_local(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Local) {
        { self.KeywordIdents.check_local(context, a); };
    }
    fn check_block(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Block) {
        { self.KeywordIdents.check_block(context, a); };
    }
    fn check_stmt(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Stmt) {
        { self.KeywordIdents.check_stmt(context, a); };
    }
    fn check_arm(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Arm) {
        { self.KeywordIdents.check_arm(context, a); };
    }
    fn check_pat(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Pat) {
        { self.KeywordIdents.check_pat(context, a); };
    }
    fn check_pat_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Pat) {
        { self.KeywordIdents.check_pat_post(context, a); };
    }
    fn check_expr(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Expr) {
        { self.KeywordIdents.check_expr(context, a); };
    }
    fn check_expr_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Expr) {
        { self.KeywordIdents.check_expr_post(context, a); };
    }
    fn check_ty(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Ty) {
        { self.KeywordIdents.check_ty(context, a); };
    }
    fn check_generic_arg(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::GenericArg) {
        { self.KeywordIdents.check_generic_arg(context, a); };
    }
    fn check_generic_param(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::GenericParam) {
        { self.KeywordIdents.check_generic_param(context, a); };
    }
    fn check_generics(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Generics) {
        { self.KeywordIdents.check_generics(context, a); };
    }
    fn check_poly_trait_ref(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::PolyTraitRef) {
        { self.KeywordIdents.check_poly_trait_ref(context, a); };
    }
    fn check_fn(&mut self, context: &crate::EarlyContext<'_>,
        a: rustc_ast::visit::FnKind<'_>, c: rustc_span::Span,
        d_: rustc_ast::NodeId) {
        { self.KeywordIdents.check_fn(context, a, c, d_); };
    }
    fn check_trait_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        { self.KeywordIdents.check_trait_item(context, a); };
    }
    fn check_trait_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        { self.KeywordIdents.check_trait_item_post(context, a); };
    }
    fn check_impl_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        { self.KeywordIdents.check_impl_item(context, a); };
    }
    fn check_impl_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        { self.KeywordIdents.check_impl_item_post(context, a); };
    }
    fn check_variant(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Variant) {
        { self.KeywordIdents.check_variant(context, a); };
    }
    fn check_attribute(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Attribute) {
        { self.KeywordIdents.check_attribute(context, a); };
    }
    fn check_attributes(&mut self, context: &crate::EarlyContext<'_>,
        a: &[rustc_ast::Attribute]) {
        { self.KeywordIdents.check_attributes(context, a); };
    }
    fn check_attributes_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &[rustc_ast::Attribute]) {
        { self.KeywordIdents.check_attributes_post(context, a); };
    }
    fn check_mac_def(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::MacroDef) {
        { self.KeywordIdents.check_mac_def(context, a); };
    }
    fn check_mac(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::MacCall) {
        { self.KeywordIdents.check_mac(context, a); };
    }
    fn check_where_predicate(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::WherePredicate) {
        { self.KeywordIdents.check_where_predicate(context, a); };
    }
    fn check_where_predicate_post(&mut self,
        context: &crate::EarlyContext<'_>, a: &rustc_ast::WherePredicate) {
        { self.KeywordIdents.check_where_predicate_post(context, a); };
    }
}
#[allow(rustc :: lint_pass_impl_without_macro)]
impl crate::LintPass for BuiltinCombinedPreExpansionLintPass {
    fn name(&self) -> &'static str {
        ::core::panicking::panic("explicit panic")
    }
    fn get_lints(&self) -> LintVec {
        ::core::panicking::panic("explicit panic")
    }
}early_lint_methods!(
165    declare_combined_early_lint_pass,
166    [
167        pub BuiltinCombinedPreExpansionLintPass,
168        [
169            // tidy-alphabetical-start
170            KeywordIdents: KeywordIdents,
171            // tidy-alphabetical-end
172        ]
173    ]
174);
175
176#[allow(non_snake_case)]
pub struct BuiltinCombinedEarlyLintPass {
    AnonymousParameters: AnonymousParameters,
    DoubleNegations: DoubleNegations,
    EllipsisInclusiveRangePatterns: EllipsisInclusiveRangePatterns,
    Expr2024: Expr2024,
    IncompleteInternalFeatures: IncompleteInternalFeatures,
    NonAsciiIdents: NonAsciiIdents,
    NonCamelCaseTypes: NonCamelCaseTypes,
    Precedence: Precedence,
    RedundantSemicolons: RedundantSemicolons,
    SpecialModuleName: SpecialModuleName,
    UnsafeCode: UnsafeCode,
    UnusedBraces: UnusedBraces,
    UnusedDocComment: UnusedDocComment,
    UnusedImportBraces: UnusedImportBraces,
    UnusedParens: UnusedParens,
    WhileTrue: WhileTrue,
}
impl BuiltinCombinedEarlyLintPass {
    pub fn new() -> Self {
        Self {
            AnonymousParameters: AnonymousParameters,
            DoubleNegations: DoubleNegations,
            EllipsisInclusiveRangePatterns: EllipsisInclusiveRangePatterns::default(),
            Expr2024: Expr2024,
            IncompleteInternalFeatures: IncompleteInternalFeatures,
            NonAsciiIdents: NonAsciiIdents,
            NonCamelCaseTypes: NonCamelCaseTypes,
            Precedence: Precedence,
            RedundantSemicolons: RedundantSemicolons,
            SpecialModuleName: SpecialModuleName,
            UnsafeCode: UnsafeCode,
            UnusedBraces: UnusedBraces,
            UnusedDocComment: UnusedDocComment,
            UnusedImportBraces: UnusedImportBraces,
            UnusedParens: UnusedParens::default(),
            WhileTrue: WhileTrue,
        }
    }
    pub fn lint_vec() -> crate::LintVec {
        let mut lints = Vec::new();
        lints.extend_from_slice(&AnonymousParameters::lint_vec());
        lints.extend_from_slice(&DoubleNegations::lint_vec());
        lints.extend_from_slice(&EllipsisInclusiveRangePatterns::lint_vec());
        lints.extend_from_slice(&Expr2024::lint_vec());
        lints.extend_from_slice(&IncompleteInternalFeatures::lint_vec());
        lints.extend_from_slice(&NonAsciiIdents::lint_vec());
        lints.extend_from_slice(&NonCamelCaseTypes::lint_vec());
        lints.extend_from_slice(&Precedence::lint_vec());
        lints.extend_from_slice(&RedundantSemicolons::lint_vec());
        lints.extend_from_slice(&SpecialModuleName::lint_vec());
        lints.extend_from_slice(&UnsafeCode::lint_vec());
        lints.extend_from_slice(&UnusedBraces::lint_vec());
        lints.extend_from_slice(&UnusedDocComment::lint_vec());
        lints.extend_from_slice(&UnusedImportBraces::lint_vec());
        lints.extend_from_slice(&UnusedParens::lint_vec());
        lints.extend_from_slice(&WhileTrue::lint_vec());
        lints
    }
}
impl crate::EarlyLintPass for BuiltinCombinedEarlyLintPass {
    fn check_param(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Param) {
        {
            self.AnonymousParameters.check_param(context, a);
            self.DoubleNegations.check_param(context, a);
            self.EllipsisInclusiveRangePatterns.check_param(context, a);
            self.Expr2024.check_param(context, a);
            self.IncompleteInternalFeatures.check_param(context, a);
            self.NonAsciiIdents.check_param(context, a);
            self.NonCamelCaseTypes.check_param(context, a);
            self.Precedence.check_param(context, a);
            self.RedundantSemicolons.check_param(context, a);
            self.SpecialModuleName.check_param(context, a);
            self.UnsafeCode.check_param(context, a);
            self.UnusedBraces.check_param(context, a);
            self.UnusedDocComment.check_param(context, a);
            self.UnusedImportBraces.check_param(context, a);
            self.UnusedParens.check_param(context, a);
            self.WhileTrue.check_param(context, a);
        };
    }
    fn check_ident(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_span::Ident) {
        {
            self.AnonymousParameters.check_ident(context, a);
            self.DoubleNegations.check_ident(context, a);
            self.EllipsisInclusiveRangePatterns.check_ident(context, a);
            self.Expr2024.check_ident(context, a);
            self.IncompleteInternalFeatures.check_ident(context, a);
            self.NonAsciiIdents.check_ident(context, a);
            self.NonCamelCaseTypes.check_ident(context, a);
            self.Precedence.check_ident(context, a);
            self.RedundantSemicolons.check_ident(context, a);
            self.SpecialModuleName.check_ident(context, a);
            self.UnsafeCode.check_ident(context, a);
            self.UnusedBraces.check_ident(context, a);
            self.UnusedDocComment.check_ident(context, a);
            self.UnusedImportBraces.check_ident(context, a);
            self.UnusedParens.check_ident(context, a);
            self.WhileTrue.check_ident(context, a);
        };
    }
    fn check_crate(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Crate) {
        {
            self.AnonymousParameters.check_crate(context, a);
            self.DoubleNegations.check_crate(context, a);
            self.EllipsisInclusiveRangePatterns.check_crate(context, a);
            self.Expr2024.check_crate(context, a);
            self.IncompleteInternalFeatures.check_crate(context, a);
            self.NonAsciiIdents.check_crate(context, a);
            self.NonCamelCaseTypes.check_crate(context, a);
            self.Precedence.check_crate(context, a);
            self.RedundantSemicolons.check_crate(context, a);
            self.SpecialModuleName.check_crate(context, a);
            self.UnsafeCode.check_crate(context, a);
            self.UnusedBraces.check_crate(context, a);
            self.UnusedDocComment.check_crate(context, a);
            self.UnusedImportBraces.check_crate(context, a);
            self.UnusedParens.check_crate(context, a);
            self.WhileTrue.check_crate(context, a);
        };
    }
    fn check_crate_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Crate) {
        {
            self.AnonymousParameters.check_crate_post(context, a);
            self.DoubleNegations.check_crate_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_crate_post(context, a);
            self.Expr2024.check_crate_post(context, a);
            self.IncompleteInternalFeatures.check_crate_post(context, a);
            self.NonAsciiIdents.check_crate_post(context, a);
            self.NonCamelCaseTypes.check_crate_post(context, a);
            self.Precedence.check_crate_post(context, a);
            self.RedundantSemicolons.check_crate_post(context, a);
            self.SpecialModuleName.check_crate_post(context, a);
            self.UnsafeCode.check_crate_post(context, a);
            self.UnusedBraces.check_crate_post(context, a);
            self.UnusedDocComment.check_crate_post(context, a);
            self.UnusedImportBraces.check_crate_post(context, a);
            self.UnusedParens.check_crate_post(context, a);
            self.WhileTrue.check_crate_post(context, a);
        };
    }
    fn check_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Item) {
        {
            self.AnonymousParameters.check_item(context, a);
            self.DoubleNegations.check_item(context, a);
            self.EllipsisInclusiveRangePatterns.check_item(context, a);
            self.Expr2024.check_item(context, a);
            self.IncompleteInternalFeatures.check_item(context, a);
            self.NonAsciiIdents.check_item(context, a);
            self.NonCamelCaseTypes.check_item(context, a);
            self.Precedence.check_item(context, a);
            self.RedundantSemicolons.check_item(context, a);
            self.SpecialModuleName.check_item(context, a);
            self.UnsafeCode.check_item(context, a);
            self.UnusedBraces.check_item(context, a);
            self.UnusedDocComment.check_item(context, a);
            self.UnusedImportBraces.check_item(context, a);
            self.UnusedParens.check_item(context, a);
            self.WhileTrue.check_item(context, a);
        };
    }
    fn check_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Item) {
        {
            self.AnonymousParameters.check_item_post(context, a);
            self.DoubleNegations.check_item_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_item_post(context, a);
            self.Expr2024.check_item_post(context, a);
            self.IncompleteInternalFeatures.check_item_post(context, a);
            self.NonAsciiIdents.check_item_post(context, a);
            self.NonCamelCaseTypes.check_item_post(context, a);
            self.Precedence.check_item_post(context, a);
            self.RedundantSemicolons.check_item_post(context, a);
            self.SpecialModuleName.check_item_post(context, a);
            self.UnsafeCode.check_item_post(context, a);
            self.UnusedBraces.check_item_post(context, a);
            self.UnusedDocComment.check_item_post(context, a);
            self.UnusedImportBraces.check_item_post(context, a);
            self.UnusedParens.check_item_post(context, a);
            self.WhileTrue.check_item_post(context, a);
        };
    }
    fn check_local(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Local) {
        {
            self.AnonymousParameters.check_local(context, a);
            self.DoubleNegations.check_local(context, a);
            self.EllipsisInclusiveRangePatterns.check_local(context, a);
            self.Expr2024.check_local(context, a);
            self.IncompleteInternalFeatures.check_local(context, a);
            self.NonAsciiIdents.check_local(context, a);
            self.NonCamelCaseTypes.check_local(context, a);
            self.Precedence.check_local(context, a);
            self.RedundantSemicolons.check_local(context, a);
            self.SpecialModuleName.check_local(context, a);
            self.UnsafeCode.check_local(context, a);
            self.UnusedBraces.check_local(context, a);
            self.UnusedDocComment.check_local(context, a);
            self.UnusedImportBraces.check_local(context, a);
            self.UnusedParens.check_local(context, a);
            self.WhileTrue.check_local(context, a);
        };
    }
    fn check_block(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Block) {
        {
            self.AnonymousParameters.check_block(context, a);
            self.DoubleNegations.check_block(context, a);
            self.EllipsisInclusiveRangePatterns.check_block(context, a);
            self.Expr2024.check_block(context, a);
            self.IncompleteInternalFeatures.check_block(context, a);
            self.NonAsciiIdents.check_block(context, a);
            self.NonCamelCaseTypes.check_block(context, a);
            self.Precedence.check_block(context, a);
            self.RedundantSemicolons.check_block(context, a);
            self.SpecialModuleName.check_block(context, a);
            self.UnsafeCode.check_block(context, a);
            self.UnusedBraces.check_block(context, a);
            self.UnusedDocComment.check_block(context, a);
            self.UnusedImportBraces.check_block(context, a);
            self.UnusedParens.check_block(context, a);
            self.WhileTrue.check_block(context, a);
        };
    }
    fn check_stmt(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Stmt) {
        {
            self.AnonymousParameters.check_stmt(context, a);
            self.DoubleNegations.check_stmt(context, a);
            self.EllipsisInclusiveRangePatterns.check_stmt(context, a);
            self.Expr2024.check_stmt(context, a);
            self.IncompleteInternalFeatures.check_stmt(context, a);
            self.NonAsciiIdents.check_stmt(context, a);
            self.NonCamelCaseTypes.check_stmt(context, a);
            self.Precedence.check_stmt(context, a);
            self.RedundantSemicolons.check_stmt(context, a);
            self.SpecialModuleName.check_stmt(context, a);
            self.UnsafeCode.check_stmt(context, a);
            self.UnusedBraces.check_stmt(context, a);
            self.UnusedDocComment.check_stmt(context, a);
            self.UnusedImportBraces.check_stmt(context, a);
            self.UnusedParens.check_stmt(context, a);
            self.WhileTrue.check_stmt(context, a);
        };
    }
    fn check_arm(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Arm) {
        {
            self.AnonymousParameters.check_arm(context, a);
            self.DoubleNegations.check_arm(context, a);
            self.EllipsisInclusiveRangePatterns.check_arm(context, a);
            self.Expr2024.check_arm(context, a);
            self.IncompleteInternalFeatures.check_arm(context, a);
            self.NonAsciiIdents.check_arm(context, a);
            self.NonCamelCaseTypes.check_arm(context, a);
            self.Precedence.check_arm(context, a);
            self.RedundantSemicolons.check_arm(context, a);
            self.SpecialModuleName.check_arm(context, a);
            self.UnsafeCode.check_arm(context, a);
            self.UnusedBraces.check_arm(context, a);
            self.UnusedDocComment.check_arm(context, a);
            self.UnusedImportBraces.check_arm(context, a);
            self.UnusedParens.check_arm(context, a);
            self.WhileTrue.check_arm(context, a);
        };
    }
    fn check_pat(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Pat) {
        {
            self.AnonymousParameters.check_pat(context, a);
            self.DoubleNegations.check_pat(context, a);
            self.EllipsisInclusiveRangePatterns.check_pat(context, a);
            self.Expr2024.check_pat(context, a);
            self.IncompleteInternalFeatures.check_pat(context, a);
            self.NonAsciiIdents.check_pat(context, a);
            self.NonCamelCaseTypes.check_pat(context, a);
            self.Precedence.check_pat(context, a);
            self.RedundantSemicolons.check_pat(context, a);
            self.SpecialModuleName.check_pat(context, a);
            self.UnsafeCode.check_pat(context, a);
            self.UnusedBraces.check_pat(context, a);
            self.UnusedDocComment.check_pat(context, a);
            self.UnusedImportBraces.check_pat(context, a);
            self.UnusedParens.check_pat(context, a);
            self.WhileTrue.check_pat(context, a);
        };
    }
    fn check_pat_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Pat) {
        {
            self.AnonymousParameters.check_pat_post(context, a);
            self.DoubleNegations.check_pat_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_pat_post(context, a);
            self.Expr2024.check_pat_post(context, a);
            self.IncompleteInternalFeatures.check_pat_post(context, a);
            self.NonAsciiIdents.check_pat_post(context, a);
            self.NonCamelCaseTypes.check_pat_post(context, a);
            self.Precedence.check_pat_post(context, a);
            self.RedundantSemicolons.check_pat_post(context, a);
            self.SpecialModuleName.check_pat_post(context, a);
            self.UnsafeCode.check_pat_post(context, a);
            self.UnusedBraces.check_pat_post(context, a);
            self.UnusedDocComment.check_pat_post(context, a);
            self.UnusedImportBraces.check_pat_post(context, a);
            self.UnusedParens.check_pat_post(context, a);
            self.WhileTrue.check_pat_post(context, a);
        };
    }
    fn check_expr(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Expr) {
        {
            self.AnonymousParameters.check_expr(context, a);
            self.DoubleNegations.check_expr(context, a);
            self.EllipsisInclusiveRangePatterns.check_expr(context, a);
            self.Expr2024.check_expr(context, a);
            self.IncompleteInternalFeatures.check_expr(context, a);
            self.NonAsciiIdents.check_expr(context, a);
            self.NonCamelCaseTypes.check_expr(context, a);
            self.Precedence.check_expr(context, a);
            self.RedundantSemicolons.check_expr(context, a);
            self.SpecialModuleName.check_expr(context, a);
            self.UnsafeCode.check_expr(context, a);
            self.UnusedBraces.check_expr(context, a);
            self.UnusedDocComment.check_expr(context, a);
            self.UnusedImportBraces.check_expr(context, a);
            self.UnusedParens.check_expr(context, a);
            self.WhileTrue.check_expr(context, a);
        };
    }
    fn check_expr_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Expr) {
        {
            self.AnonymousParameters.check_expr_post(context, a);
            self.DoubleNegations.check_expr_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_expr_post(context, a);
            self.Expr2024.check_expr_post(context, a);
            self.IncompleteInternalFeatures.check_expr_post(context, a);
            self.NonAsciiIdents.check_expr_post(context, a);
            self.NonCamelCaseTypes.check_expr_post(context, a);
            self.Precedence.check_expr_post(context, a);
            self.RedundantSemicolons.check_expr_post(context, a);
            self.SpecialModuleName.check_expr_post(context, a);
            self.UnsafeCode.check_expr_post(context, a);
            self.UnusedBraces.check_expr_post(context, a);
            self.UnusedDocComment.check_expr_post(context, a);
            self.UnusedImportBraces.check_expr_post(context, a);
            self.UnusedParens.check_expr_post(context, a);
            self.WhileTrue.check_expr_post(context, a);
        };
    }
    fn check_ty(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Ty) {
        {
            self.AnonymousParameters.check_ty(context, a);
            self.DoubleNegations.check_ty(context, a);
            self.EllipsisInclusiveRangePatterns.check_ty(context, a);
            self.Expr2024.check_ty(context, a);
            self.IncompleteInternalFeatures.check_ty(context, a);
            self.NonAsciiIdents.check_ty(context, a);
            self.NonCamelCaseTypes.check_ty(context, a);
            self.Precedence.check_ty(context, a);
            self.RedundantSemicolons.check_ty(context, a);
            self.SpecialModuleName.check_ty(context, a);
            self.UnsafeCode.check_ty(context, a);
            self.UnusedBraces.check_ty(context, a);
            self.UnusedDocComment.check_ty(context, a);
            self.UnusedImportBraces.check_ty(context, a);
            self.UnusedParens.check_ty(context, a);
            self.WhileTrue.check_ty(context, a);
        };
    }
    fn check_generic_arg(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::GenericArg) {
        {
            self.AnonymousParameters.check_generic_arg(context, a);
            self.DoubleNegations.check_generic_arg(context, a);
            self.EllipsisInclusiveRangePatterns.check_generic_arg(context, a);
            self.Expr2024.check_generic_arg(context, a);
            self.IncompleteInternalFeatures.check_generic_arg(context, a);
            self.NonAsciiIdents.check_generic_arg(context, a);
            self.NonCamelCaseTypes.check_generic_arg(context, a);
            self.Precedence.check_generic_arg(context, a);
            self.RedundantSemicolons.check_generic_arg(context, a);
            self.SpecialModuleName.check_generic_arg(context, a);
            self.UnsafeCode.check_generic_arg(context, a);
            self.UnusedBraces.check_generic_arg(context, a);
            self.UnusedDocComment.check_generic_arg(context, a);
            self.UnusedImportBraces.check_generic_arg(context, a);
            self.UnusedParens.check_generic_arg(context, a);
            self.WhileTrue.check_generic_arg(context, a);
        };
    }
    fn check_generic_param(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::GenericParam) {
        {
            self.AnonymousParameters.check_generic_param(context, a);
            self.DoubleNegations.check_generic_param(context, a);
            self.EllipsisInclusiveRangePatterns.check_generic_param(context,
                a);
            self.Expr2024.check_generic_param(context, a);
            self.IncompleteInternalFeatures.check_generic_param(context, a);
            self.NonAsciiIdents.check_generic_param(context, a);
            self.NonCamelCaseTypes.check_generic_param(context, a);
            self.Precedence.check_generic_param(context, a);
            self.RedundantSemicolons.check_generic_param(context, a);
            self.SpecialModuleName.check_generic_param(context, a);
            self.UnsafeCode.check_generic_param(context, a);
            self.UnusedBraces.check_generic_param(context, a);
            self.UnusedDocComment.check_generic_param(context, a);
            self.UnusedImportBraces.check_generic_param(context, a);
            self.UnusedParens.check_generic_param(context, a);
            self.WhileTrue.check_generic_param(context, a);
        };
    }
    fn check_generics(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Generics) {
        {
            self.AnonymousParameters.check_generics(context, a);
            self.DoubleNegations.check_generics(context, a);
            self.EllipsisInclusiveRangePatterns.check_generics(context, a);
            self.Expr2024.check_generics(context, a);
            self.IncompleteInternalFeatures.check_generics(context, a);
            self.NonAsciiIdents.check_generics(context, a);
            self.NonCamelCaseTypes.check_generics(context, a);
            self.Precedence.check_generics(context, a);
            self.RedundantSemicolons.check_generics(context, a);
            self.SpecialModuleName.check_generics(context, a);
            self.UnsafeCode.check_generics(context, a);
            self.UnusedBraces.check_generics(context, a);
            self.UnusedDocComment.check_generics(context, a);
            self.UnusedImportBraces.check_generics(context, a);
            self.UnusedParens.check_generics(context, a);
            self.WhileTrue.check_generics(context, a);
        };
    }
    fn check_poly_trait_ref(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::PolyTraitRef) {
        {
            self.AnonymousParameters.check_poly_trait_ref(context, a);
            self.DoubleNegations.check_poly_trait_ref(context, a);
            self.EllipsisInclusiveRangePatterns.check_poly_trait_ref(context,
                a);
            self.Expr2024.check_poly_trait_ref(context, a);
            self.IncompleteInternalFeatures.check_poly_trait_ref(context, a);
            self.NonAsciiIdents.check_poly_trait_ref(context, a);
            self.NonCamelCaseTypes.check_poly_trait_ref(context, a);
            self.Precedence.check_poly_trait_ref(context, a);
            self.RedundantSemicolons.check_poly_trait_ref(context, a);
            self.SpecialModuleName.check_poly_trait_ref(context, a);
            self.UnsafeCode.check_poly_trait_ref(context, a);
            self.UnusedBraces.check_poly_trait_ref(context, a);
            self.UnusedDocComment.check_poly_trait_ref(context, a);
            self.UnusedImportBraces.check_poly_trait_ref(context, a);
            self.UnusedParens.check_poly_trait_ref(context, a);
            self.WhileTrue.check_poly_trait_ref(context, a);
        };
    }
    fn check_fn(&mut self, context: &crate::EarlyContext<'_>,
        a: rustc_ast::visit::FnKind<'_>, c: rustc_span::Span,
        d_: rustc_ast::NodeId) {
        {
            self.AnonymousParameters.check_fn(context, a, c, d_);
            self.DoubleNegations.check_fn(context, a, c, d_);
            self.EllipsisInclusiveRangePatterns.check_fn(context, a, c, d_);
            self.Expr2024.check_fn(context, a, c, d_);
            self.IncompleteInternalFeatures.check_fn(context, a, c, d_);
            self.NonAsciiIdents.check_fn(context, a, c, d_);
            self.NonCamelCaseTypes.check_fn(context, a, c, d_);
            self.Precedence.check_fn(context, a, c, d_);
            self.RedundantSemicolons.check_fn(context, a, c, d_);
            self.SpecialModuleName.check_fn(context, a, c, d_);
            self.UnsafeCode.check_fn(context, a, c, d_);
            self.UnusedBraces.check_fn(context, a, c, d_);
            self.UnusedDocComment.check_fn(context, a, c, d_);
            self.UnusedImportBraces.check_fn(context, a, c, d_);
            self.UnusedParens.check_fn(context, a, c, d_);
            self.WhileTrue.check_fn(context, a, c, d_);
        };
    }
    fn check_trait_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.AnonymousParameters.check_trait_item(context, a);
            self.DoubleNegations.check_trait_item(context, a);
            self.EllipsisInclusiveRangePatterns.check_trait_item(context, a);
            self.Expr2024.check_trait_item(context, a);
            self.IncompleteInternalFeatures.check_trait_item(context, a);
            self.NonAsciiIdents.check_trait_item(context, a);
            self.NonCamelCaseTypes.check_trait_item(context, a);
            self.Precedence.check_trait_item(context, a);
            self.RedundantSemicolons.check_trait_item(context, a);
            self.SpecialModuleName.check_trait_item(context, a);
            self.UnsafeCode.check_trait_item(context, a);
            self.UnusedBraces.check_trait_item(context, a);
            self.UnusedDocComment.check_trait_item(context, a);
            self.UnusedImportBraces.check_trait_item(context, a);
            self.UnusedParens.check_trait_item(context, a);
            self.WhileTrue.check_trait_item(context, a);
        };
    }
    fn check_trait_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.AnonymousParameters.check_trait_item_post(context, a);
            self.DoubleNegations.check_trait_item_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_trait_item_post(context,
                a);
            self.Expr2024.check_trait_item_post(context, a);
            self.IncompleteInternalFeatures.check_trait_item_post(context, a);
            self.NonAsciiIdents.check_trait_item_post(context, a);
            self.NonCamelCaseTypes.check_trait_item_post(context, a);
            self.Precedence.check_trait_item_post(context, a);
            self.RedundantSemicolons.check_trait_item_post(context, a);
            self.SpecialModuleName.check_trait_item_post(context, a);
            self.UnsafeCode.check_trait_item_post(context, a);
            self.UnusedBraces.check_trait_item_post(context, a);
            self.UnusedDocComment.check_trait_item_post(context, a);
            self.UnusedImportBraces.check_trait_item_post(context, a);
            self.UnusedParens.check_trait_item_post(context, a);
            self.WhileTrue.check_trait_item_post(context, a);
        };
    }
    fn check_impl_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.AnonymousParameters.check_impl_item(context, a);
            self.DoubleNegations.check_impl_item(context, a);
            self.EllipsisInclusiveRangePatterns.check_impl_item(context, a);
            self.Expr2024.check_impl_item(context, a);
            self.IncompleteInternalFeatures.check_impl_item(context, a);
            self.NonAsciiIdents.check_impl_item(context, a);
            self.NonCamelCaseTypes.check_impl_item(context, a);
            self.Precedence.check_impl_item(context, a);
            self.RedundantSemicolons.check_impl_item(context, a);
            self.SpecialModuleName.check_impl_item(context, a);
            self.UnsafeCode.check_impl_item(context, a);
            self.UnusedBraces.check_impl_item(context, a);
            self.UnusedDocComment.check_impl_item(context, a);
            self.UnusedImportBraces.check_impl_item(context, a);
            self.UnusedParens.check_impl_item(context, a);
            self.WhileTrue.check_impl_item(context, a);
        };
    }
    fn check_impl_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.AnonymousParameters.check_impl_item_post(context, a);
            self.DoubleNegations.check_impl_item_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_impl_item_post(context,
                a);
            self.Expr2024.check_impl_item_post(context, a);
            self.IncompleteInternalFeatures.check_impl_item_post(context, a);
            self.NonAsciiIdents.check_impl_item_post(context, a);
            self.NonCamelCaseTypes.check_impl_item_post(context, a);
            self.Precedence.check_impl_item_post(context, a);
            self.RedundantSemicolons.check_impl_item_post(context, a);
            self.SpecialModuleName.check_impl_item_post(context, a);
            self.UnsafeCode.check_impl_item_post(context, a);
            self.UnusedBraces.check_impl_item_post(context, a);
            self.UnusedDocComment.check_impl_item_post(context, a);
            self.UnusedImportBraces.check_impl_item_post(context, a);
            self.UnusedParens.check_impl_item_post(context, a);
            self.WhileTrue.check_impl_item_post(context, a);
        };
    }
    fn check_variant(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Variant) {
        {
            self.AnonymousParameters.check_variant(context, a);
            self.DoubleNegations.check_variant(context, a);
            self.EllipsisInclusiveRangePatterns.check_variant(context, a);
            self.Expr2024.check_variant(context, a);
            self.IncompleteInternalFeatures.check_variant(context, a);
            self.NonAsciiIdents.check_variant(context, a);
            self.NonCamelCaseTypes.check_variant(context, a);
            self.Precedence.check_variant(context, a);
            self.RedundantSemicolons.check_variant(context, a);
            self.SpecialModuleName.check_variant(context, a);
            self.UnsafeCode.check_variant(context, a);
            self.UnusedBraces.check_variant(context, a);
            self.UnusedDocComment.check_variant(context, a);
            self.UnusedImportBraces.check_variant(context, a);
            self.UnusedParens.check_variant(context, a);
            self.WhileTrue.check_variant(context, a);
        };
    }
    fn check_attribute(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Attribute) {
        {
            self.AnonymousParameters.check_attribute(context, a);
            self.DoubleNegations.check_attribute(context, a);
            self.EllipsisInclusiveRangePatterns.check_attribute(context, a);
            self.Expr2024.check_attribute(context, a);
            self.IncompleteInternalFeatures.check_attribute(context, a);
            self.NonAsciiIdents.check_attribute(context, a);
            self.NonCamelCaseTypes.check_attribute(context, a);
            self.Precedence.check_attribute(context, a);
            self.RedundantSemicolons.check_attribute(context, a);
            self.SpecialModuleName.check_attribute(context, a);
            self.UnsafeCode.check_attribute(context, a);
            self.UnusedBraces.check_attribute(context, a);
            self.UnusedDocComment.check_attribute(context, a);
            self.UnusedImportBraces.check_attribute(context, a);
            self.UnusedParens.check_attribute(context, a);
            self.WhileTrue.check_attribute(context, a);
        };
    }
    fn check_attributes(&mut self, context: &crate::EarlyContext<'_>,
        a: &[rustc_ast::Attribute]) {
        {
            self.AnonymousParameters.check_attributes(context, a);
            self.DoubleNegations.check_attributes(context, a);
            self.EllipsisInclusiveRangePatterns.check_attributes(context, a);
            self.Expr2024.check_attributes(context, a);
            self.IncompleteInternalFeatures.check_attributes(context, a);
            self.NonAsciiIdents.check_attributes(context, a);
            self.NonCamelCaseTypes.check_attributes(context, a);
            self.Precedence.check_attributes(context, a);
            self.RedundantSemicolons.check_attributes(context, a);
            self.SpecialModuleName.check_attributes(context, a);
            self.UnsafeCode.check_attributes(context, a);
            self.UnusedBraces.check_attributes(context, a);
            self.UnusedDocComment.check_attributes(context, a);
            self.UnusedImportBraces.check_attributes(context, a);
            self.UnusedParens.check_attributes(context, a);
            self.WhileTrue.check_attributes(context, a);
        };
    }
    fn check_attributes_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &[rustc_ast::Attribute]) {
        {
            self.AnonymousParameters.check_attributes_post(context, a);
            self.DoubleNegations.check_attributes_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_attributes_post(context,
                a);
            self.Expr2024.check_attributes_post(context, a);
            self.IncompleteInternalFeatures.check_attributes_post(context, a);
            self.NonAsciiIdents.check_attributes_post(context, a);
            self.NonCamelCaseTypes.check_attributes_post(context, a);
            self.Precedence.check_attributes_post(context, a);
            self.RedundantSemicolons.check_attributes_post(context, a);
            self.SpecialModuleName.check_attributes_post(context, a);
            self.UnsafeCode.check_attributes_post(context, a);
            self.UnusedBraces.check_attributes_post(context, a);
            self.UnusedDocComment.check_attributes_post(context, a);
            self.UnusedImportBraces.check_attributes_post(context, a);
            self.UnusedParens.check_attributes_post(context, a);
            self.WhileTrue.check_attributes_post(context, a);
        };
    }
    fn check_mac_def(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::MacroDef) {
        {
            self.AnonymousParameters.check_mac_def(context, a);
            self.DoubleNegations.check_mac_def(context, a);
            self.EllipsisInclusiveRangePatterns.check_mac_def(context, a);
            self.Expr2024.check_mac_def(context, a);
            self.IncompleteInternalFeatures.check_mac_def(context, a);
            self.NonAsciiIdents.check_mac_def(context, a);
            self.NonCamelCaseTypes.check_mac_def(context, a);
            self.Precedence.check_mac_def(context, a);
            self.RedundantSemicolons.check_mac_def(context, a);
            self.SpecialModuleName.check_mac_def(context, a);
            self.UnsafeCode.check_mac_def(context, a);
            self.UnusedBraces.check_mac_def(context, a);
            self.UnusedDocComment.check_mac_def(context, a);
            self.UnusedImportBraces.check_mac_def(context, a);
            self.UnusedParens.check_mac_def(context, a);
            self.WhileTrue.check_mac_def(context, a);
        };
    }
    fn check_mac(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::MacCall) {
        {
            self.AnonymousParameters.check_mac(context, a);
            self.DoubleNegations.check_mac(context, a);
            self.EllipsisInclusiveRangePatterns.check_mac(context, a);
            self.Expr2024.check_mac(context, a);
            self.IncompleteInternalFeatures.check_mac(context, a);
            self.NonAsciiIdents.check_mac(context, a);
            self.NonCamelCaseTypes.check_mac(context, a);
            self.Precedence.check_mac(context, a);
            self.RedundantSemicolons.check_mac(context, a);
            self.SpecialModuleName.check_mac(context, a);
            self.UnsafeCode.check_mac(context, a);
            self.UnusedBraces.check_mac(context, a);
            self.UnusedDocComment.check_mac(context, a);
            self.UnusedImportBraces.check_mac(context, a);
            self.UnusedParens.check_mac(context, a);
            self.WhileTrue.check_mac(context, a);
        };
    }
    fn check_where_predicate(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::WherePredicate) {
        {
            self.AnonymousParameters.check_where_predicate(context, a);
            self.DoubleNegations.check_where_predicate(context, a);
            self.EllipsisInclusiveRangePatterns.check_where_predicate(context,
                a);
            self.Expr2024.check_where_predicate(context, a);
            self.IncompleteInternalFeatures.check_where_predicate(context, a);
            self.NonAsciiIdents.check_where_predicate(context, a);
            self.NonCamelCaseTypes.check_where_predicate(context, a);
            self.Precedence.check_where_predicate(context, a);
            self.RedundantSemicolons.check_where_predicate(context, a);
            self.SpecialModuleName.check_where_predicate(context, a);
            self.UnsafeCode.check_where_predicate(context, a);
            self.UnusedBraces.check_where_predicate(context, a);
            self.UnusedDocComment.check_where_predicate(context, a);
            self.UnusedImportBraces.check_where_predicate(context, a);
            self.UnusedParens.check_where_predicate(context, a);
            self.WhileTrue.check_where_predicate(context, a);
        };
    }
    fn check_where_predicate_post(&mut self,
        context: &crate::EarlyContext<'_>, a: &rustc_ast::WherePredicate) {
        {
            self.AnonymousParameters.check_where_predicate_post(context, a);
            self.DoubleNegations.check_where_predicate_post(context, a);
            self.EllipsisInclusiveRangePatterns.check_where_predicate_post(context,
                a);
            self.Expr2024.check_where_predicate_post(context, a);
            self.IncompleteInternalFeatures.check_where_predicate_post(context,
                a);
            self.NonAsciiIdents.check_where_predicate_post(context, a);
            self.NonCamelCaseTypes.check_where_predicate_post(context, a);
            self.Precedence.check_where_predicate_post(context, a);
            self.RedundantSemicolons.check_where_predicate_post(context, a);
            self.SpecialModuleName.check_where_predicate_post(context, a);
            self.UnsafeCode.check_where_predicate_post(context, a);
            self.UnusedBraces.check_where_predicate_post(context, a);
            self.UnusedDocComment.check_where_predicate_post(context, a);
            self.UnusedImportBraces.check_where_predicate_post(context, a);
            self.UnusedParens.check_where_predicate_post(context, a);
            self.WhileTrue.check_where_predicate_post(context, a);
        };
    }
}
#[allow(rustc :: lint_pass_impl_without_macro)]
impl crate::LintPass for BuiltinCombinedEarlyLintPass {
    fn name(&self) -> &'static str {
        ::core::panicking::panic("explicit panic")
    }
    fn get_lints(&self) -> LintVec {
        ::core::panicking::panic("explicit panic")
    }
}early_lint_methods!(
177    declare_combined_early_lint_pass,
178    [
179        pub BuiltinCombinedEarlyLintPass,
180        [
181            // tidy-alphabetical-start
182            AnonymousParameters: AnonymousParameters,
183            DoubleNegations: DoubleNegations,
184            EllipsisInclusiveRangePatterns: EllipsisInclusiveRangePatterns::default(),
185            Expr2024: Expr2024,
186            IncompleteInternalFeatures: IncompleteInternalFeatures,
187            NonAsciiIdents: NonAsciiIdents,
188            NonCamelCaseTypes: NonCamelCaseTypes,
189            Precedence: Precedence,
190            RedundantSemicolons: RedundantSemicolons,
191            SpecialModuleName: SpecialModuleName,
192            UnsafeCode: UnsafeCode,
193            UnusedBraces: UnusedBraces,
194            UnusedDocComment: UnusedDocComment,
195            UnusedImportBraces: UnusedImportBraces,
196            UnusedParens: UnusedParens::default(),
197            WhileTrue: WhileTrue,
198            // tidy-alphabetical-end
199        ]
200    ]
201);
202
203#[allow(non_snake_case)]
struct InternalCombinedEarlyLintPass {
    BadUseOfFindAttr: BadUseOfFindAttr,
    ImplicitSysrootCrateImport: ImplicitSysrootCrateImport,
    LintPassImpl: LintPassImpl,
}
impl InternalCombinedEarlyLintPass {
    fn new() -> Self {
        Self {
            BadUseOfFindAttr: BadUseOfFindAttr,
            ImplicitSysrootCrateImport: ImplicitSysrootCrateImport,
            LintPassImpl: LintPassImpl,
        }
    }
    fn lint_vec() -> crate::LintVec {
        let mut lints = Vec::new();
        lints.extend_from_slice(&BadUseOfFindAttr::lint_vec());
        lints.extend_from_slice(&ImplicitSysrootCrateImport::lint_vec());
        lints.extend_from_slice(&LintPassImpl::lint_vec());
        lints
    }
}
impl crate::EarlyLintPass for InternalCombinedEarlyLintPass {
    fn check_param(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Param) {
        {
            self.BadUseOfFindAttr.check_param(context, a);
            self.ImplicitSysrootCrateImport.check_param(context, a);
            self.LintPassImpl.check_param(context, a);
        };
    }
    fn check_ident(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_span::Ident) {
        {
            self.BadUseOfFindAttr.check_ident(context, a);
            self.ImplicitSysrootCrateImport.check_ident(context, a);
            self.LintPassImpl.check_ident(context, a);
        };
    }
    fn check_crate(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Crate) {
        {
            self.BadUseOfFindAttr.check_crate(context, a);
            self.ImplicitSysrootCrateImport.check_crate(context, a);
            self.LintPassImpl.check_crate(context, a);
        };
    }
    fn check_crate_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Crate) {
        {
            self.BadUseOfFindAttr.check_crate_post(context, a);
            self.ImplicitSysrootCrateImport.check_crate_post(context, a);
            self.LintPassImpl.check_crate_post(context, a);
        };
    }
    fn check_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Item) {
        {
            self.BadUseOfFindAttr.check_item(context, a);
            self.ImplicitSysrootCrateImport.check_item(context, a);
            self.LintPassImpl.check_item(context, a);
        };
    }
    fn check_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Item) {
        {
            self.BadUseOfFindAttr.check_item_post(context, a);
            self.ImplicitSysrootCrateImport.check_item_post(context, a);
            self.LintPassImpl.check_item_post(context, a);
        };
    }
    fn check_local(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Local) {
        {
            self.BadUseOfFindAttr.check_local(context, a);
            self.ImplicitSysrootCrateImport.check_local(context, a);
            self.LintPassImpl.check_local(context, a);
        };
    }
    fn check_block(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Block) {
        {
            self.BadUseOfFindAttr.check_block(context, a);
            self.ImplicitSysrootCrateImport.check_block(context, a);
            self.LintPassImpl.check_block(context, a);
        };
    }
    fn check_stmt(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Stmt) {
        {
            self.BadUseOfFindAttr.check_stmt(context, a);
            self.ImplicitSysrootCrateImport.check_stmt(context, a);
            self.LintPassImpl.check_stmt(context, a);
        };
    }
    fn check_arm(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Arm) {
        {
            self.BadUseOfFindAttr.check_arm(context, a);
            self.ImplicitSysrootCrateImport.check_arm(context, a);
            self.LintPassImpl.check_arm(context, a);
        };
    }
    fn check_pat(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Pat) {
        {
            self.BadUseOfFindAttr.check_pat(context, a);
            self.ImplicitSysrootCrateImport.check_pat(context, a);
            self.LintPassImpl.check_pat(context, a);
        };
    }
    fn check_pat_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Pat) {
        {
            self.BadUseOfFindAttr.check_pat_post(context, a);
            self.ImplicitSysrootCrateImport.check_pat_post(context, a);
            self.LintPassImpl.check_pat_post(context, a);
        };
    }
    fn check_expr(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Expr) {
        {
            self.BadUseOfFindAttr.check_expr(context, a);
            self.ImplicitSysrootCrateImport.check_expr(context, a);
            self.LintPassImpl.check_expr(context, a);
        };
    }
    fn check_expr_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Expr) {
        {
            self.BadUseOfFindAttr.check_expr_post(context, a);
            self.ImplicitSysrootCrateImport.check_expr_post(context, a);
            self.LintPassImpl.check_expr_post(context, a);
        };
    }
    fn check_ty(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Ty) {
        {
            self.BadUseOfFindAttr.check_ty(context, a);
            self.ImplicitSysrootCrateImport.check_ty(context, a);
            self.LintPassImpl.check_ty(context, a);
        };
    }
    fn check_generic_arg(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::GenericArg) {
        {
            self.BadUseOfFindAttr.check_generic_arg(context, a);
            self.ImplicitSysrootCrateImport.check_generic_arg(context, a);
            self.LintPassImpl.check_generic_arg(context, a);
        };
    }
    fn check_generic_param(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::GenericParam) {
        {
            self.BadUseOfFindAttr.check_generic_param(context, a);
            self.ImplicitSysrootCrateImport.check_generic_param(context, a);
            self.LintPassImpl.check_generic_param(context, a);
        };
    }
    fn check_generics(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Generics) {
        {
            self.BadUseOfFindAttr.check_generics(context, a);
            self.ImplicitSysrootCrateImport.check_generics(context, a);
            self.LintPassImpl.check_generics(context, a);
        };
    }
    fn check_poly_trait_ref(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::PolyTraitRef) {
        {
            self.BadUseOfFindAttr.check_poly_trait_ref(context, a);
            self.ImplicitSysrootCrateImport.check_poly_trait_ref(context, a);
            self.LintPassImpl.check_poly_trait_ref(context, a);
        };
    }
    fn check_fn(&mut self, context: &crate::EarlyContext<'_>,
        a: rustc_ast::visit::FnKind<'_>, c: rustc_span::Span,
        d_: rustc_ast::NodeId) {
        {
            self.BadUseOfFindAttr.check_fn(context, a, c, d_);
            self.ImplicitSysrootCrateImport.check_fn(context, a, c, d_);
            self.LintPassImpl.check_fn(context, a, c, d_);
        };
    }
    fn check_trait_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.BadUseOfFindAttr.check_trait_item(context, a);
            self.ImplicitSysrootCrateImport.check_trait_item(context, a);
            self.LintPassImpl.check_trait_item(context, a);
        };
    }
    fn check_trait_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.BadUseOfFindAttr.check_trait_item_post(context, a);
            self.ImplicitSysrootCrateImport.check_trait_item_post(context, a);
            self.LintPassImpl.check_trait_item_post(context, a);
        };
    }
    fn check_impl_item(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.BadUseOfFindAttr.check_impl_item(context, a);
            self.ImplicitSysrootCrateImport.check_impl_item(context, a);
            self.LintPassImpl.check_impl_item(context, a);
        };
    }
    fn check_impl_item_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::AssocItem) {
        {
            self.BadUseOfFindAttr.check_impl_item_post(context, a);
            self.ImplicitSysrootCrateImport.check_impl_item_post(context, a);
            self.LintPassImpl.check_impl_item_post(context, a);
        };
    }
    fn check_variant(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Variant) {
        {
            self.BadUseOfFindAttr.check_variant(context, a);
            self.ImplicitSysrootCrateImport.check_variant(context, a);
            self.LintPassImpl.check_variant(context, a);
        };
    }
    fn check_attribute(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::Attribute) {
        {
            self.BadUseOfFindAttr.check_attribute(context, a);
            self.ImplicitSysrootCrateImport.check_attribute(context, a);
            self.LintPassImpl.check_attribute(context, a);
        };
    }
    fn check_attributes(&mut self, context: &crate::EarlyContext<'_>,
        a: &[rustc_ast::Attribute]) {
        {
            self.BadUseOfFindAttr.check_attributes(context, a);
            self.ImplicitSysrootCrateImport.check_attributes(context, a);
            self.LintPassImpl.check_attributes(context, a);
        };
    }
    fn check_attributes_post(&mut self, context: &crate::EarlyContext<'_>,
        a: &[rustc_ast::Attribute]) {
        {
            self.BadUseOfFindAttr.check_attributes_post(context, a);
            self.ImplicitSysrootCrateImport.check_attributes_post(context, a);
            self.LintPassImpl.check_attributes_post(context, a);
        };
    }
    fn check_mac_def(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::MacroDef) {
        {
            self.BadUseOfFindAttr.check_mac_def(context, a);
            self.ImplicitSysrootCrateImport.check_mac_def(context, a);
            self.LintPassImpl.check_mac_def(context, a);
        };
    }
    fn check_mac(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::MacCall) {
        {
            self.BadUseOfFindAttr.check_mac(context, a);
            self.ImplicitSysrootCrateImport.check_mac(context, a);
            self.LintPassImpl.check_mac(context, a);
        };
    }
    fn check_where_predicate(&mut self, context: &crate::EarlyContext<'_>,
        a: &rustc_ast::WherePredicate) {
        {
            self.BadUseOfFindAttr.check_where_predicate(context, a);
            self.ImplicitSysrootCrateImport.check_where_predicate(context, a);
            self.LintPassImpl.check_where_predicate(context, a);
        };
    }
    fn check_where_predicate_post(&mut self,
        context: &crate::EarlyContext<'_>, a: &rustc_ast::WherePredicate) {
        {
            self.BadUseOfFindAttr.check_where_predicate_post(context, a);
            self.ImplicitSysrootCrateImport.check_where_predicate_post(context,
                a);
            self.LintPassImpl.check_where_predicate_post(context, a);
        };
    }
}
#[allow(rustc :: lint_pass_impl_without_macro)]
impl crate::LintPass for InternalCombinedEarlyLintPass {
    fn name(&self) -> &'static str {
        ::core::panicking::panic("explicit panic")
    }
    fn get_lints(&self) -> LintVec {
        ::core::panicking::panic("explicit panic")
    }
}early_lint_methods!(
204    declare_combined_early_lint_pass,
205    [
206        InternalCombinedEarlyLintPass,
207        [
208            // tidy-alphabetical-start
209            BadUseOfFindAttr: BadUseOfFindAttr,
210            ImplicitSysrootCrateImport: ImplicitSysrootCrateImport,
211            LintPassImpl: LintPassImpl,
212            // tidy-alphabetical-end
213        ]
214    ]
215);
216
217#[allow(non_snake_case)]
struct BuiltinCombinedLateLintModPass {
    LintUnvalidated: LintUnvalidated,
    AsmLabels: AsmLabels,
    AsyncClosureUsage: AsyncClosureUsage,
    AsyncFnInTrait: AsyncFnInTrait,
    CVoidReturns: CVoidReturns,
    CheckTransmutes: CheckTransmutes,
    DanglingPointers: DanglingPointers,
    DefaultCouldBeDerived: DefaultCouldBeDerived,
    DerefIntoDynSupertrait: DerefIntoDynSupertrait,
    DerefNullPtr: DerefNullPtr,
    DropForgetUseless: DropForgetUseless,
    DropTraitConstraints: DropTraitConstraints,
    EnumIntrinsicsNonEnums: EnumIntrinsicsNonEnums,
    ExplicitOutlivesRequirements: ExplicitOutlivesRequirements,
    ForLoopsOverFallibles: ForLoopsOverFallibles,
    FunctionCastsAsInteger: FunctionCastsAsInteger,
    IfLetRescope: IfLetRescope,
    ImplTraitOvercaptures: ImplTraitOvercaptures,
    ImplicitAutorefs: ImplicitAutorefs,
    ImplicitProvenanceCasts: ImplicitProvenanceCasts,
    ImproperCTypesLint: ImproperCTypesLint,
    ImproperGpuKernelLint: ImproperGpuKernelLint,
    InteriorMutableConsts: InteriorMutableConsts,
    InternalEqTraitMethodImpls: InternalEqTraitMethodImpls,
    InvalidAtomicOrdering: InvalidAtomicOrdering,
    InvalidFromUtf8: InvalidFromUtf8,
    InvalidNoMangleItems: InvalidNoMangleItems,
    InvalidReferenceCasting: InvalidReferenceCasting,
    InvalidValue: InvalidValue,
    LetUnderscore: LetUnderscore,
    LifetimeSyntax: LifetimeSyntax,
    MapUnitFn: MapUnitFn,
    MissingCopyImplementations: MissingCopyImplementations,
    MissingDebugImplementations: MissingDebugImplementations,
    MissingDoc: MissingDoc,
    MultipleSupertraitUpcastable: MultipleSupertraitUpcastable,
    MutableTransmutes: MutableTransmutes,
    NonLocalDefinitions: NonLocalDefinitions,
    NonPanicFmt: NonPanicFmt,
    NonShorthandFieldPatterns: NonShorthandFieldPatterns,
    NonSnakeCase: NonSnakeCase,
    NonUpperCaseGlobals: NonUpperCaseGlobals,
    NoopMethodCall: NoopMethodCall,
    OpaqueHiddenInferredBound: OpaqueHiddenInferredBound,
    PathStatements: PathStatements,
    PtrNullChecks: PtrNullChecks,
    RawBorrowsViaReferences: RawBorrowsViaReferences,
    RuntimeSymbols: RuntimeSymbols,
    ShadowedIntoIter: ShadowedIntoIter,
    StaticMutRefs: StaticMutRefs,
    TrivialConstraints: TrivialConstraints,
    TypeAliasBounds: TypeAliasBounds,
    TypeLimits: TypeLimits,
    UngatedAsyncFnTrackCaller: UngatedAsyncFnTrackCaller,
    UnitBindings: UnitBindings,
    UnqualifiedLocalImports: UnqualifiedLocalImports,
    UnreachablePub: UnreachablePub,
    UnstableFeatures: UnstableFeatures,
    UnusedAllocation: UnusedAllocation,
    UnusedResults: UnusedResults,
    VariantSizeDifferences: VariantSizeDifferences,
}
impl BuiltinCombinedLateLintModPass {
    fn new() -> Self {
        Self {
            LintUnvalidated: LintUnvalidated,
            AsmLabels: AsmLabels,
            AsyncClosureUsage: AsyncClosureUsage,
            AsyncFnInTrait: AsyncFnInTrait,
            CVoidReturns: CVoidReturns,
            CheckTransmutes: CheckTransmutes,
            DanglingPointers: DanglingPointers,
            DefaultCouldBeDerived: DefaultCouldBeDerived,
            DerefIntoDynSupertrait: DerefIntoDynSupertrait,
            DerefNullPtr: DerefNullPtr,
            DropForgetUseless: DropForgetUseless,
            DropTraitConstraints: DropTraitConstraints,
            EnumIntrinsicsNonEnums: EnumIntrinsicsNonEnums,
            ExplicitOutlivesRequirements: ExplicitOutlivesRequirements,
            ForLoopsOverFallibles: ForLoopsOverFallibles,
            FunctionCastsAsInteger: FunctionCastsAsInteger,
            IfLetRescope: IfLetRescope::default(),
            ImplTraitOvercaptures: ImplTraitOvercaptures,
            ImplicitAutorefs: ImplicitAutorefs,
            ImplicitProvenanceCasts: ImplicitProvenanceCasts,
            ImproperCTypesLint: ImproperCTypesLint,
            ImproperGpuKernelLint: ImproperGpuKernelLint,
            InteriorMutableConsts: InteriorMutableConsts,
            InternalEqTraitMethodImpls: InternalEqTraitMethodImpls,
            InvalidAtomicOrdering: InvalidAtomicOrdering,
            InvalidFromUtf8: InvalidFromUtf8,
            InvalidNoMangleItems: InvalidNoMangleItems,
            InvalidReferenceCasting: InvalidReferenceCasting,
            InvalidValue: InvalidValue,
            LetUnderscore: LetUnderscore,
            LifetimeSyntax: LifetimeSyntax,
            MapUnitFn: MapUnitFn,
            MissingCopyImplementations: MissingCopyImplementations,
            MissingDebugImplementations: MissingDebugImplementations,
            MissingDoc: MissingDoc,
            MultipleSupertraitUpcastable: MultipleSupertraitUpcastable,
            MutableTransmutes: MutableTransmutes,
            NonLocalDefinitions: NonLocalDefinitions::default(),
            NonPanicFmt: NonPanicFmt,
            NonShorthandFieldPatterns: NonShorthandFieldPatterns,
            NonSnakeCase: NonSnakeCase,
            NonUpperCaseGlobals: NonUpperCaseGlobals,
            NoopMethodCall: NoopMethodCall,
            OpaqueHiddenInferredBound: OpaqueHiddenInferredBound,
            PathStatements: PathStatements,
            PtrNullChecks: PtrNullChecks,
            RawBorrowsViaReferences: RawBorrowsViaReferences,
            RuntimeSymbols: RuntimeSymbols,
            ShadowedIntoIter: ShadowedIntoIter,
            StaticMutRefs: StaticMutRefs,
            TrivialConstraints: TrivialConstraints,
            TypeAliasBounds: TypeAliasBounds,
            TypeLimits: TypeLimits::new(),
            UngatedAsyncFnTrackCaller: UngatedAsyncFnTrackCaller,
            UnitBindings: UnitBindings,
            UnqualifiedLocalImports: UnqualifiedLocalImports,
            UnreachablePub: UnreachablePub,
            UnstableFeatures: UnstableFeatures,
            UnusedAllocation: UnusedAllocation,
            UnusedResults: UnusedResults,
            VariantSizeDifferences: VariantSizeDifferences,
        }
    }
    fn lint_vec() -> crate::LintVec {
        let mut lints = Vec::new();
        lints.extend_from_slice(&LintUnvalidated::lint_vec());
        lints.extend_from_slice(&AsmLabels::lint_vec());
        lints.extend_from_slice(&AsyncClosureUsage::lint_vec());
        lints.extend_from_slice(&AsyncFnInTrait::lint_vec());
        lints.extend_from_slice(&CVoidReturns::lint_vec());
        lints.extend_from_slice(&CheckTransmutes::lint_vec());
        lints.extend_from_slice(&DanglingPointers::lint_vec());
        lints.extend_from_slice(&DefaultCouldBeDerived::lint_vec());
        lints.extend_from_slice(&DerefIntoDynSupertrait::lint_vec());
        lints.extend_from_slice(&DerefNullPtr::lint_vec());
        lints.extend_from_slice(&DropForgetUseless::lint_vec());
        lints.extend_from_slice(&DropTraitConstraints::lint_vec());
        lints.extend_from_slice(&EnumIntrinsicsNonEnums::lint_vec());
        lints.extend_from_slice(&ExplicitOutlivesRequirements::lint_vec());
        lints.extend_from_slice(&ForLoopsOverFallibles::lint_vec());
        lints.extend_from_slice(&FunctionCastsAsInteger::lint_vec());
        lints.extend_from_slice(&IfLetRescope::lint_vec());
        lints.extend_from_slice(&ImplTraitOvercaptures::lint_vec());
        lints.extend_from_slice(&ImplicitAutorefs::lint_vec());
        lints.extend_from_slice(&ImplicitProvenanceCasts::lint_vec());
        lints.extend_from_slice(&ImproperCTypesLint::lint_vec());
        lints.extend_from_slice(&ImproperGpuKernelLint::lint_vec());
        lints.extend_from_slice(&InteriorMutableConsts::lint_vec());
        lints.extend_from_slice(&InternalEqTraitMethodImpls::lint_vec());
        lints.extend_from_slice(&InvalidAtomicOrdering::lint_vec());
        lints.extend_from_slice(&InvalidFromUtf8::lint_vec());
        lints.extend_from_slice(&InvalidNoMangleItems::lint_vec());
        lints.extend_from_slice(&InvalidReferenceCasting::lint_vec());
        lints.extend_from_slice(&InvalidValue::lint_vec());
        lints.extend_from_slice(&LetUnderscore::lint_vec());
        lints.extend_from_slice(&LifetimeSyntax::lint_vec());
        lints.extend_from_slice(&MapUnitFn::lint_vec());
        lints.extend_from_slice(&MissingCopyImplementations::lint_vec());
        lints.extend_from_slice(&MissingDebugImplementations::lint_vec());
        lints.extend_from_slice(&MissingDoc::lint_vec());
        lints.extend_from_slice(&MultipleSupertraitUpcastable::lint_vec());
        lints.extend_from_slice(&MutableTransmutes::lint_vec());
        lints.extend_from_slice(&NonLocalDefinitions::lint_vec());
        lints.extend_from_slice(&NonPanicFmt::lint_vec());
        lints.extend_from_slice(&NonShorthandFieldPatterns::lint_vec());
        lints.extend_from_slice(&NonSnakeCase::lint_vec());
        lints.extend_from_slice(&NonUpperCaseGlobals::lint_vec());
        lints.extend_from_slice(&NoopMethodCall::lint_vec());
        lints.extend_from_slice(&OpaqueHiddenInferredBound::lint_vec());
        lints.extend_from_slice(&PathStatements::lint_vec());
        lints.extend_from_slice(&PtrNullChecks::lint_vec());
        lints.extend_from_slice(&RawBorrowsViaReferences::lint_vec());
        lints.extend_from_slice(&RuntimeSymbols::lint_vec());
        lints.extend_from_slice(&ShadowedIntoIter::lint_vec());
        lints.extend_from_slice(&StaticMutRefs::lint_vec());
        lints.extend_from_slice(&TrivialConstraints::lint_vec());
        lints.extend_from_slice(&TypeAliasBounds::lint_vec());
        lints.extend_from_slice(&TypeLimits::lint_vec());
        lints.extend_from_slice(&UngatedAsyncFnTrackCaller::lint_vec());
        lints.extend_from_slice(&UnitBindings::lint_vec());
        lints.extend_from_slice(&UnqualifiedLocalImports::lint_vec());
        lints.extend_from_slice(&UnreachablePub::lint_vec());
        lints.extend_from_slice(&UnstableFeatures::lint_vec());
        lints.extend_from_slice(&UnusedAllocation::lint_vec());
        lints.extend_from_slice(&UnusedResults::lint_vec());
        lints.extend_from_slice(&VariantSizeDifferences::lint_vec());
        lints
    }
}
impl<'tcx> crate::LateLintPass<'tcx> for BuiltinCombinedLateLintModPass {
    fn check_body(&mut self, context: &crate::LateContext<'tcx>,
        a: &rustc_hir::Body<'tcx>) {
        {
            self.LintUnvalidated.check_body(context, a);
            self.AsmLabels.check_body(context, a);
            self.AsyncClosureUsage.check_body(context, a);
            self.AsyncFnInTrait.check_body(context, a);
            self.CVoidReturns.check_body(context, a);
            self.CheckTransmutes.check_body(context, a);
            self.DanglingPointers.check_body(context, a);
            self.DefaultCouldBeDerived.check_body(context, a);
            self.DerefIntoDynSupertrait.check_body(context, a);
            self.DerefNullPtr.check_body(context, a);
            self.DropForgetUseless.check_body(context, a);
            self.DropTraitConstraints.check_body(context, a);
            self.EnumIntrinsicsNonEnums.check_body(context, a);
            self.ExplicitOutlivesRequirements.check_body(context, a);
            self.ForLoopsOverFallibles.check_body(context, a);
            self.FunctionCastsAsInteger.check_body(context, a);
            self.IfLetRescope.check_body(context, a);
            self.ImplTraitOvercaptures.check_body(context, a);
            self.ImplicitAutorefs.check_body(context, a);
            self.ImplicitProvenanceCasts.check_body(context, a);
            self.ImproperCTypesLint.check_body(context, a);
            self.ImproperGpuKernelLint.check_body(context, a);
            self.InteriorMutableConsts.check_body(context, a);
            self.InternalEqTraitMethodImpls.check_body(context, a);
            self.InvalidAtomicOrdering.check_body(context, a);
            self.InvalidFromUtf8.check_body(context, a);
            self.InvalidNoMangleItems.check_body(context, a);
            self.InvalidReferenceCasting.check_body(context, a);
            self.InvalidValue.check_body(context, a);
            self.LetUnderscore.check_body(context, a);
            self.LifetimeSyntax.check_body(context, a);
            self.MapUnitFn.check_body(context, a);
            self.MissingCopyImplementations.check_body(context, a);
            self.MissingDebugImplementations.check_body(context, a);
            self.MissingDoc.check_body(context, a);
            self.MultipleSupertraitUpcastable.check_body(context, a);
            self.MutableTransmutes.check_body(context, a);
            self.NonLocalDefinitions.check_body(context, a);
            self.NonPanicFmt.check_body(context, a);
            self.NonShorthandFieldPatterns.check_body(context, a);
            self.NonSnakeCase.check_body(context, a);
            self.NonUpperCaseGlobals.check_body(context, a);
            self.NoopMethodCall.check_body(context, a);
            self.OpaqueHiddenInferredBound.check_body(context, a);
            self.PathStatements.check_body(context, a);
            self.PtrNullChecks.check_body(context, a);
            self.RawBorrowsViaReferences.check_body(context, a);
            self.RuntimeSymbols.check_body(context, a);
            self.ShadowedIntoIter.check_body(context, a);
            self.StaticMutRefs.check_body(context, a);
            self.TrivialConstraints.check_body(context, a);
            self.TypeAliasBounds.check_body(context, a);
            self.TypeLimits.check_body(context, a);
            self.UngatedAsyncFnTrackCaller.check_body(context, a);
            self.UnitBindings.check_body(context, a);
            self.UnqualifiedLocalImports.check_body(context, a);
            self.UnreachablePub.check_body(context, a);
            self.UnstableFeatures.check_body(context, a);
            self.UnusedAllocation.check_body(context, a);
            self.UnusedResults.check_body(context, a);
            self.VariantSizeDifferences.check_body(context, a);
        };
    }
    fn check_body_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &rustc_hir::Body<'tcx>) {
        {
            self.LintUnvalidated.check_body_post(context, a);
            self.AsmLabels.check_body_post(context, a);
            self.AsyncClosureUsage.check_body_post(context, a);
            self.AsyncFnInTrait.check_body_post(context, a);
            self.CVoidReturns.check_body_post(context, a);
            self.CheckTransmutes.check_body_post(context, a);
            self.DanglingPointers.check_body_post(context, a);
            self.DefaultCouldBeDerived.check_body_post(context, a);
            self.DerefIntoDynSupertrait.check_body_post(context, a);
            self.DerefNullPtr.check_body_post(context, a);
            self.DropForgetUseless.check_body_post(context, a);
            self.DropTraitConstraints.check_body_post(context, a);
            self.EnumIntrinsicsNonEnums.check_body_post(context, a);
            self.ExplicitOutlivesRequirements.check_body_post(context, a);
            self.ForLoopsOverFallibles.check_body_post(context, a);
            self.FunctionCastsAsInteger.check_body_post(context, a);
            self.IfLetRescope.check_body_post(context, a);
            self.ImplTraitOvercaptures.check_body_post(context, a);
            self.ImplicitAutorefs.check_body_post(context, a);
            self.ImplicitProvenanceCasts.check_body_post(context, a);
            self.ImproperCTypesLint.check_body_post(context, a);
            self.ImproperGpuKernelLint.check_body_post(context, a);
            self.InteriorMutableConsts.check_body_post(context, a);
            self.InternalEqTraitMethodImpls.check_body_post(context, a);
            self.InvalidAtomicOrdering.check_body_post(context, a);
            self.InvalidFromUtf8.check_body_post(context, a);
            self.InvalidNoMangleItems.check_body_post(context, a);
            self.InvalidReferenceCasting.check_body_post(context, a);
            self.InvalidValue.check_body_post(context, a);
            self.LetUnderscore.check_body_post(context, a);
            self.LifetimeSyntax.check_body_post(context, a);
            self.MapUnitFn.check_body_post(context, a);
            self.MissingCopyImplementations.check_body_post(context, a);
            self.MissingDebugImplementations.check_body_post(context, a);
            self.MissingDoc.check_body_post(context, a);
            self.MultipleSupertraitUpcastable.check_body_post(context, a);
            self.MutableTransmutes.check_body_post(context, a);
            self.NonLocalDefinitions.check_body_post(context, a);
            self.NonPanicFmt.check_body_post(context, a);
            self.NonShorthandFieldPatterns.check_body_post(context, a);
            self.NonSnakeCase.check_body_post(context, a);
            self.NonUpperCaseGlobals.check_body_post(context, a);
            self.NoopMethodCall.check_body_post(context, a);
            self.OpaqueHiddenInferredBound.check_body_post(context, a);
            self.PathStatements.check_body_post(context, a);
            self.PtrNullChecks.check_body_post(context, a);
            self.RawBorrowsViaReferences.check_body_post(context, a);
            self.RuntimeSymbols.check_body_post(context, a);
            self.ShadowedIntoIter.check_body_post(context, a);
            self.StaticMutRefs.check_body_post(context, a);
            self.TrivialConstraints.check_body_post(context, a);
            self.TypeAliasBounds.check_body_post(context, a);
            self.TypeLimits.check_body_post(context, a);
            self.UngatedAsyncFnTrackCaller.check_body_post(context, a);
            self.UnitBindings.check_body_post(context, a);
            self.UnqualifiedLocalImports.check_body_post(context, a);
            self.UnreachablePub.check_body_post(context, a);
            self.UnstableFeatures.check_body_post(context, a);
            self.UnusedAllocation.check_body_post(context, a);
            self.UnusedResults.check_body_post(context, a);
            self.VariantSizeDifferences.check_body_post(context, a);
        };
    }
    fn check_crate(&mut self, context: &crate::LateContext<'tcx>) {
        {
            self.LintUnvalidated.check_crate(context);
            self.AsmLabels.check_crate(context);
            self.AsyncClosureUsage.check_crate(context);
            self.AsyncFnInTrait.check_crate(context);
            self.CVoidReturns.check_crate(context);
            self.CheckTransmutes.check_crate(context);
            self.DanglingPointers.check_crate(context);
            self.DefaultCouldBeDerived.check_crate(context);
            self.DerefIntoDynSupertrait.check_crate(context);
            self.DerefNullPtr.check_crate(context);
            self.DropForgetUseless.check_crate(context);
            self.DropTraitConstraints.check_crate(context);
            self.EnumIntrinsicsNonEnums.check_crate(context);
            self.ExplicitOutlivesRequirements.check_crate(context);
            self.ForLoopsOverFallibles.check_crate(context);
            self.FunctionCastsAsInteger.check_crate(context);
            self.IfLetRescope.check_crate(context);
            self.ImplTraitOvercaptures.check_crate(context);
            self.ImplicitAutorefs.check_crate(context);
            self.ImplicitProvenanceCasts.check_crate(context);
            self.ImproperCTypesLint.check_crate(context);
            self.ImproperGpuKernelLint.check_crate(context);
            self.InteriorMutableConsts.check_crate(context);
            self.InternalEqTraitMethodImpls.check_crate(context);
            self.InvalidAtomicOrdering.check_crate(context);
            self.InvalidFromUtf8.check_crate(context);
            self.InvalidNoMangleItems.check_crate(context);
            self.InvalidReferenceCasting.check_crate(context);
            self.InvalidValue.check_crate(context);
            self.LetUnderscore.check_crate(context);
            self.LifetimeSyntax.check_crate(context);
            self.MapUnitFn.check_crate(context);
            self.MissingCopyImplementations.check_crate(context);
            self.MissingDebugImplementations.check_crate(context);
            self.MissingDoc.check_crate(context);
            self.MultipleSupertraitUpcastable.check_crate(context);
            self.MutableTransmutes.check_crate(context);
            self.NonLocalDefinitions.check_crate(context);
            self.NonPanicFmt.check_crate(context);
            self.NonShorthandFieldPatterns.check_crate(context);
            self.NonSnakeCase.check_crate(context);
            self.NonUpperCaseGlobals.check_crate(context);
            self.NoopMethodCall.check_crate(context);
            self.OpaqueHiddenInferredBound.check_crate(context);
            self.PathStatements.check_crate(context);
            self.PtrNullChecks.check_crate(context);
            self.RawBorrowsViaReferences.check_crate(context);
            self.RuntimeSymbols.check_crate(context);
            self.ShadowedIntoIter.check_crate(context);
            self.StaticMutRefs.check_crate(context);
            self.TrivialConstraints.check_crate(context);
            self.TypeAliasBounds.check_crate(context);
            self.TypeLimits.check_crate(context);
            self.UngatedAsyncFnTrackCaller.check_crate(context);
            self.UnitBindings.check_crate(context);
            self.UnqualifiedLocalImports.check_crate(context);
            self.UnreachablePub.check_crate(context);
            self.UnstableFeatures.check_crate(context);
            self.UnusedAllocation.check_crate(context);
            self.UnusedResults.check_crate(context);
            self.VariantSizeDifferences.check_crate(context);
        };
    }
    fn check_crate_post(&mut self, context: &crate::LateContext<'tcx>) {
        {
            self.LintUnvalidated.check_crate_post(context);
            self.AsmLabels.check_crate_post(context);
            self.AsyncClosureUsage.check_crate_post(context);
            self.AsyncFnInTrait.check_crate_post(context);
            self.CVoidReturns.check_crate_post(context);
            self.CheckTransmutes.check_crate_post(context);
            self.DanglingPointers.check_crate_post(context);
            self.DefaultCouldBeDerived.check_crate_post(context);
            self.DerefIntoDynSupertrait.check_crate_post(context);
            self.DerefNullPtr.check_crate_post(context);
            self.DropForgetUseless.check_crate_post(context);
            self.DropTraitConstraints.check_crate_post(context);
            self.EnumIntrinsicsNonEnums.check_crate_post(context);
            self.ExplicitOutlivesRequirements.check_crate_post(context);
            self.ForLoopsOverFallibles.check_crate_post(context);
            self.FunctionCastsAsInteger.check_crate_post(context);
            self.IfLetRescope.check_crate_post(context);
            self.ImplTraitOvercaptures.check_crate_post(context);
            self.ImplicitAutorefs.check_crate_post(context);
            self.ImplicitProvenanceCasts.check_crate_post(context);
            self.ImproperCTypesLint.check_crate_post(context);
            self.ImproperGpuKernelLint.check_crate_post(context);
            self.InteriorMutableConsts.check_crate_post(context);
            self.InternalEqTraitMethodImpls.check_crate_post(context);
            self.InvalidAtomicOrdering.check_crate_post(context);
            self.InvalidFromUtf8.check_crate_post(context);
            self.InvalidNoMangleItems.check_crate_post(context);
            self.InvalidReferenceCasting.check_crate_post(context);
            self.InvalidValue.check_crate_post(context);
            self.LetUnderscore.check_crate_post(context);
            self.LifetimeSyntax.check_crate_post(context);
            self.MapUnitFn.check_crate_post(context);
            self.MissingCopyImplementations.check_crate_post(context);
            self.MissingDebugImplementations.check_crate_post(context);
            self.MissingDoc.check_crate_post(context);
            self.MultipleSupertraitUpcastable.check_crate_post(context);
            self.MutableTransmutes.check_crate_post(context);
            self.NonLocalDefinitions.check_crate_post(context);
            self.NonPanicFmt.check_crate_post(context);
            self.NonShorthandFieldPatterns.check_crate_post(context);
            self.NonSnakeCase.check_crate_post(context);
            self.NonUpperCaseGlobals.check_crate_post(context);
            self.NoopMethodCall.check_crate_post(context);
            self.OpaqueHiddenInferredBound.check_crate_post(context);
            self.PathStatements.check_crate_post(context);
            self.PtrNullChecks.check_crate_post(context);
            self.RawBorrowsViaReferences.check_crate_post(context);
            self.RuntimeSymbols.check_crate_post(context);
            self.ShadowedIntoIter.check_crate_post(context);
            self.StaticMutRefs.check_crate_post(context);
            self.TrivialConstraints.check_crate_post(context);
            self.TypeAliasBounds.check_crate_post(context);
            self.TypeLimits.check_crate_post(context);
            self.UngatedAsyncFnTrackCaller.check_crate_post(context);
            self.UnitBindings.check_crate_post(context);
            self.UnqualifiedLocalImports.check_crate_post(context);
            self.UnreachablePub.check_crate_post(context);
            self.UnstableFeatures.check_crate_post(context);
            self.UnusedAllocation.check_crate_post(context);
            self.UnusedResults.check_crate_post(context);
            self.VariantSizeDifferences.check_crate_post(context);
        };
    }
    fn check_mod(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Mod<'tcx>, b: rustc_hir::HirId) {
        {
            self.LintUnvalidated.check_mod(context, a, b);
            self.AsmLabels.check_mod(context, a, b);
            self.AsyncClosureUsage.check_mod(context, a, b);
            self.AsyncFnInTrait.check_mod(context, a, b);
            self.CVoidReturns.check_mod(context, a, b);
            self.CheckTransmutes.check_mod(context, a, b);
            self.DanglingPointers.check_mod(context, a, b);
            self.DefaultCouldBeDerived.check_mod(context, a, b);
            self.DerefIntoDynSupertrait.check_mod(context, a, b);
            self.DerefNullPtr.check_mod(context, a, b);
            self.DropForgetUseless.check_mod(context, a, b);
            self.DropTraitConstraints.check_mod(context, a, b);
            self.EnumIntrinsicsNonEnums.check_mod(context, a, b);
            self.ExplicitOutlivesRequirements.check_mod(context, a, b);
            self.ForLoopsOverFallibles.check_mod(context, a, b);
            self.FunctionCastsAsInteger.check_mod(context, a, b);
            self.IfLetRescope.check_mod(context, a, b);
            self.ImplTraitOvercaptures.check_mod(context, a, b);
            self.ImplicitAutorefs.check_mod(context, a, b);
            self.ImplicitProvenanceCasts.check_mod(context, a, b);
            self.ImproperCTypesLint.check_mod(context, a, b);
            self.ImproperGpuKernelLint.check_mod(context, a, b);
            self.InteriorMutableConsts.check_mod(context, a, b);
            self.InternalEqTraitMethodImpls.check_mod(context, a, b);
            self.InvalidAtomicOrdering.check_mod(context, a, b);
            self.InvalidFromUtf8.check_mod(context, a, b);
            self.InvalidNoMangleItems.check_mod(context, a, b);
            self.InvalidReferenceCasting.check_mod(context, a, b);
            self.InvalidValue.check_mod(context, a, b);
            self.LetUnderscore.check_mod(context, a, b);
            self.LifetimeSyntax.check_mod(context, a, b);
            self.MapUnitFn.check_mod(context, a, b);
            self.MissingCopyImplementations.check_mod(context, a, b);
            self.MissingDebugImplementations.check_mod(context, a, b);
            self.MissingDoc.check_mod(context, a, b);
            self.MultipleSupertraitUpcastable.check_mod(context, a, b);
            self.MutableTransmutes.check_mod(context, a, b);
            self.NonLocalDefinitions.check_mod(context, a, b);
            self.NonPanicFmt.check_mod(context, a, b);
            self.NonShorthandFieldPatterns.check_mod(context, a, b);
            self.NonSnakeCase.check_mod(context, a, b);
            self.NonUpperCaseGlobals.check_mod(context, a, b);
            self.NoopMethodCall.check_mod(context, a, b);
            self.OpaqueHiddenInferredBound.check_mod(context, a, b);
            self.PathStatements.check_mod(context, a, b);
            self.PtrNullChecks.check_mod(context, a, b);
            self.RawBorrowsViaReferences.check_mod(context, a, b);
            self.RuntimeSymbols.check_mod(context, a, b);
            self.ShadowedIntoIter.check_mod(context, a, b);
            self.StaticMutRefs.check_mod(context, a, b);
            self.TrivialConstraints.check_mod(context, a, b);
            self.TypeAliasBounds.check_mod(context, a, b);
            self.TypeLimits.check_mod(context, a, b);
            self.UngatedAsyncFnTrackCaller.check_mod(context, a, b);
            self.UnitBindings.check_mod(context, a, b);
            self.UnqualifiedLocalImports.check_mod(context, a, b);
            self.UnreachablePub.check_mod(context, a, b);
            self.UnstableFeatures.check_mod(context, a, b);
            self.UnusedAllocation.check_mod(context, a, b);
            self.UnusedResults.check_mod(context, a, b);
            self.VariantSizeDifferences.check_mod(context, a, b);
        };
    }
    fn check_foreign_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::ForeignItem<'tcx>) {
        {
            self.LintUnvalidated.check_foreign_item(context, a);
            self.AsmLabels.check_foreign_item(context, a);
            self.AsyncClosureUsage.check_foreign_item(context, a);
            self.AsyncFnInTrait.check_foreign_item(context, a);
            self.CVoidReturns.check_foreign_item(context, a);
            self.CheckTransmutes.check_foreign_item(context, a);
            self.DanglingPointers.check_foreign_item(context, a);
            self.DefaultCouldBeDerived.check_foreign_item(context, a);
            self.DerefIntoDynSupertrait.check_foreign_item(context, a);
            self.DerefNullPtr.check_foreign_item(context, a);
            self.DropForgetUseless.check_foreign_item(context, a);
            self.DropTraitConstraints.check_foreign_item(context, a);
            self.EnumIntrinsicsNonEnums.check_foreign_item(context, a);
            self.ExplicitOutlivesRequirements.check_foreign_item(context, a);
            self.ForLoopsOverFallibles.check_foreign_item(context, a);
            self.FunctionCastsAsInteger.check_foreign_item(context, a);
            self.IfLetRescope.check_foreign_item(context, a);
            self.ImplTraitOvercaptures.check_foreign_item(context, a);
            self.ImplicitAutorefs.check_foreign_item(context, a);
            self.ImplicitProvenanceCasts.check_foreign_item(context, a);
            self.ImproperCTypesLint.check_foreign_item(context, a);
            self.ImproperGpuKernelLint.check_foreign_item(context, a);
            self.InteriorMutableConsts.check_foreign_item(context, a);
            self.InternalEqTraitMethodImpls.check_foreign_item(context, a);
            self.InvalidAtomicOrdering.check_foreign_item(context, a);
            self.InvalidFromUtf8.check_foreign_item(context, a);
            self.InvalidNoMangleItems.check_foreign_item(context, a);
            self.InvalidReferenceCasting.check_foreign_item(context, a);
            self.InvalidValue.check_foreign_item(context, a);
            self.LetUnderscore.check_foreign_item(context, a);
            self.LifetimeSyntax.check_foreign_item(context, a);
            self.MapUnitFn.check_foreign_item(context, a);
            self.MissingCopyImplementations.check_foreign_item(context, a);
            self.MissingDebugImplementations.check_foreign_item(context, a);
            self.MissingDoc.check_foreign_item(context, a);
            self.MultipleSupertraitUpcastable.check_foreign_item(context, a);
            self.MutableTransmutes.check_foreign_item(context, a);
            self.NonLocalDefinitions.check_foreign_item(context, a);
            self.NonPanicFmt.check_foreign_item(context, a);
            self.NonShorthandFieldPatterns.check_foreign_item(context, a);
            self.NonSnakeCase.check_foreign_item(context, a);
            self.NonUpperCaseGlobals.check_foreign_item(context, a);
            self.NoopMethodCall.check_foreign_item(context, a);
            self.OpaqueHiddenInferredBound.check_foreign_item(context, a);
            self.PathStatements.check_foreign_item(context, a);
            self.PtrNullChecks.check_foreign_item(context, a);
            self.RawBorrowsViaReferences.check_foreign_item(context, a);
            self.RuntimeSymbols.check_foreign_item(context, a);
            self.ShadowedIntoIter.check_foreign_item(context, a);
            self.StaticMutRefs.check_foreign_item(context, a);
            self.TrivialConstraints.check_foreign_item(context, a);
            self.TypeAliasBounds.check_foreign_item(context, a);
            self.TypeLimits.check_foreign_item(context, a);
            self.UngatedAsyncFnTrackCaller.check_foreign_item(context, a);
            self.UnitBindings.check_foreign_item(context, a);
            self.UnqualifiedLocalImports.check_foreign_item(context, a);
            self.UnreachablePub.check_foreign_item(context, a);
            self.UnstableFeatures.check_foreign_item(context, a);
            self.UnusedAllocation.check_foreign_item(context, a);
            self.UnusedResults.check_foreign_item(context, a);
            self.VariantSizeDifferences.check_foreign_item(context, a);
        };
    }
    fn check_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Item<'tcx>) {
        {
            self.LintUnvalidated.check_item(context, a);
            self.AsmLabels.check_item(context, a);
            self.AsyncClosureUsage.check_item(context, a);
            self.AsyncFnInTrait.check_item(context, a);
            self.CVoidReturns.check_item(context, a);
            self.CheckTransmutes.check_item(context, a);
            self.DanglingPointers.check_item(context, a);
            self.DefaultCouldBeDerived.check_item(context, a);
            self.DerefIntoDynSupertrait.check_item(context, a);
            self.DerefNullPtr.check_item(context, a);
            self.DropForgetUseless.check_item(context, a);
            self.DropTraitConstraints.check_item(context, a);
            self.EnumIntrinsicsNonEnums.check_item(context, a);
            self.ExplicitOutlivesRequirements.check_item(context, a);
            self.ForLoopsOverFallibles.check_item(context, a);
            self.FunctionCastsAsInteger.check_item(context, a);
            self.IfLetRescope.check_item(context, a);
            self.ImplTraitOvercaptures.check_item(context, a);
            self.ImplicitAutorefs.check_item(context, a);
            self.ImplicitProvenanceCasts.check_item(context, a);
            self.ImproperCTypesLint.check_item(context, a);
            self.ImproperGpuKernelLint.check_item(context, a);
            self.InteriorMutableConsts.check_item(context, a);
            self.InternalEqTraitMethodImpls.check_item(context, a);
            self.InvalidAtomicOrdering.check_item(context, a);
            self.InvalidFromUtf8.check_item(context, a);
            self.InvalidNoMangleItems.check_item(context, a);
            self.InvalidReferenceCasting.check_item(context, a);
            self.InvalidValue.check_item(context, a);
            self.LetUnderscore.check_item(context, a);
            self.LifetimeSyntax.check_item(context, a);
            self.MapUnitFn.check_item(context, a);
            self.MissingCopyImplementations.check_item(context, a);
            self.MissingDebugImplementations.check_item(context, a);
            self.MissingDoc.check_item(context, a);
            self.MultipleSupertraitUpcastable.check_item(context, a);
            self.MutableTransmutes.check_item(context, a);
            self.NonLocalDefinitions.check_item(context, a);
            self.NonPanicFmt.check_item(context, a);
            self.NonShorthandFieldPatterns.check_item(context, a);
            self.NonSnakeCase.check_item(context, a);
            self.NonUpperCaseGlobals.check_item(context, a);
            self.NoopMethodCall.check_item(context, a);
            self.OpaqueHiddenInferredBound.check_item(context, a);
            self.PathStatements.check_item(context, a);
            self.PtrNullChecks.check_item(context, a);
            self.RawBorrowsViaReferences.check_item(context, a);
            self.RuntimeSymbols.check_item(context, a);
            self.ShadowedIntoIter.check_item(context, a);
            self.StaticMutRefs.check_item(context, a);
            self.TrivialConstraints.check_item(context, a);
            self.TypeAliasBounds.check_item(context, a);
            self.TypeLimits.check_item(context, a);
            self.UngatedAsyncFnTrackCaller.check_item(context, a);
            self.UnitBindings.check_item(context, a);
            self.UnqualifiedLocalImports.check_item(context, a);
            self.UnreachablePub.check_item(context, a);
            self.UnstableFeatures.check_item(context, a);
            self.UnusedAllocation.check_item(context, a);
            self.UnusedResults.check_item(context, a);
            self.VariantSizeDifferences.check_item(context, a);
        };
    }
    fn check_item_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Item<'tcx>) {
        {
            self.LintUnvalidated.check_item_post(context, a);
            self.AsmLabels.check_item_post(context, a);
            self.AsyncClosureUsage.check_item_post(context, a);
            self.AsyncFnInTrait.check_item_post(context, a);
            self.CVoidReturns.check_item_post(context, a);
            self.CheckTransmutes.check_item_post(context, a);
            self.DanglingPointers.check_item_post(context, a);
            self.DefaultCouldBeDerived.check_item_post(context, a);
            self.DerefIntoDynSupertrait.check_item_post(context, a);
            self.DerefNullPtr.check_item_post(context, a);
            self.DropForgetUseless.check_item_post(context, a);
            self.DropTraitConstraints.check_item_post(context, a);
            self.EnumIntrinsicsNonEnums.check_item_post(context, a);
            self.ExplicitOutlivesRequirements.check_item_post(context, a);
            self.ForLoopsOverFallibles.check_item_post(context, a);
            self.FunctionCastsAsInteger.check_item_post(context, a);
            self.IfLetRescope.check_item_post(context, a);
            self.ImplTraitOvercaptures.check_item_post(context, a);
            self.ImplicitAutorefs.check_item_post(context, a);
            self.ImplicitProvenanceCasts.check_item_post(context, a);
            self.ImproperCTypesLint.check_item_post(context, a);
            self.ImproperGpuKernelLint.check_item_post(context, a);
            self.InteriorMutableConsts.check_item_post(context, a);
            self.InternalEqTraitMethodImpls.check_item_post(context, a);
            self.InvalidAtomicOrdering.check_item_post(context, a);
            self.InvalidFromUtf8.check_item_post(context, a);
            self.InvalidNoMangleItems.check_item_post(context, a);
            self.InvalidReferenceCasting.check_item_post(context, a);
            self.InvalidValue.check_item_post(context, a);
            self.LetUnderscore.check_item_post(context, a);
            self.LifetimeSyntax.check_item_post(context, a);
            self.MapUnitFn.check_item_post(context, a);
            self.MissingCopyImplementations.check_item_post(context, a);
            self.MissingDebugImplementations.check_item_post(context, a);
            self.MissingDoc.check_item_post(context, a);
            self.MultipleSupertraitUpcastable.check_item_post(context, a);
            self.MutableTransmutes.check_item_post(context, a);
            self.NonLocalDefinitions.check_item_post(context, a);
            self.NonPanicFmt.check_item_post(context, a);
            self.NonShorthandFieldPatterns.check_item_post(context, a);
            self.NonSnakeCase.check_item_post(context, a);
            self.NonUpperCaseGlobals.check_item_post(context, a);
            self.NoopMethodCall.check_item_post(context, a);
            self.OpaqueHiddenInferredBound.check_item_post(context, a);
            self.PathStatements.check_item_post(context, a);
            self.PtrNullChecks.check_item_post(context, a);
            self.RawBorrowsViaReferences.check_item_post(context, a);
            self.RuntimeSymbols.check_item_post(context, a);
            self.ShadowedIntoIter.check_item_post(context, a);
            self.StaticMutRefs.check_item_post(context, a);
            self.TrivialConstraints.check_item_post(context, a);
            self.TypeAliasBounds.check_item_post(context, a);
            self.TypeLimits.check_item_post(context, a);
            self.UngatedAsyncFnTrackCaller.check_item_post(context, a);
            self.UnitBindings.check_item_post(context, a);
            self.UnqualifiedLocalImports.check_item_post(context, a);
            self.UnreachablePub.check_item_post(context, a);
            self.UnstableFeatures.check_item_post(context, a);
            self.UnusedAllocation.check_item_post(context, a);
            self.UnusedResults.check_item_post(context, a);
            self.VariantSizeDifferences.check_item_post(context, a);
        };
    }
    fn check_local(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::LetStmt<'tcx>) {
        {
            self.LintUnvalidated.check_local(context, a);
            self.AsmLabels.check_local(context, a);
            self.AsyncClosureUsage.check_local(context, a);
            self.AsyncFnInTrait.check_local(context, a);
            self.CVoidReturns.check_local(context, a);
            self.CheckTransmutes.check_local(context, a);
            self.DanglingPointers.check_local(context, a);
            self.DefaultCouldBeDerived.check_local(context, a);
            self.DerefIntoDynSupertrait.check_local(context, a);
            self.DerefNullPtr.check_local(context, a);
            self.DropForgetUseless.check_local(context, a);
            self.DropTraitConstraints.check_local(context, a);
            self.EnumIntrinsicsNonEnums.check_local(context, a);
            self.ExplicitOutlivesRequirements.check_local(context, a);
            self.ForLoopsOverFallibles.check_local(context, a);
            self.FunctionCastsAsInteger.check_local(context, a);
            self.IfLetRescope.check_local(context, a);
            self.ImplTraitOvercaptures.check_local(context, a);
            self.ImplicitAutorefs.check_local(context, a);
            self.ImplicitProvenanceCasts.check_local(context, a);
            self.ImproperCTypesLint.check_local(context, a);
            self.ImproperGpuKernelLint.check_local(context, a);
            self.InteriorMutableConsts.check_local(context, a);
            self.InternalEqTraitMethodImpls.check_local(context, a);
            self.InvalidAtomicOrdering.check_local(context, a);
            self.InvalidFromUtf8.check_local(context, a);
            self.InvalidNoMangleItems.check_local(context, a);
            self.InvalidReferenceCasting.check_local(context, a);
            self.InvalidValue.check_local(context, a);
            self.LetUnderscore.check_local(context, a);
            self.LifetimeSyntax.check_local(context, a);
            self.MapUnitFn.check_local(context, a);
            self.MissingCopyImplementations.check_local(context, a);
            self.MissingDebugImplementations.check_local(context, a);
            self.MissingDoc.check_local(context, a);
            self.MultipleSupertraitUpcastable.check_local(context, a);
            self.MutableTransmutes.check_local(context, a);
            self.NonLocalDefinitions.check_local(context, a);
            self.NonPanicFmt.check_local(context, a);
            self.NonShorthandFieldPatterns.check_local(context, a);
            self.NonSnakeCase.check_local(context, a);
            self.NonUpperCaseGlobals.check_local(context, a);
            self.NoopMethodCall.check_local(context, a);
            self.OpaqueHiddenInferredBound.check_local(context, a);
            self.PathStatements.check_local(context, a);
            self.PtrNullChecks.check_local(context, a);
            self.RawBorrowsViaReferences.check_local(context, a);
            self.RuntimeSymbols.check_local(context, a);
            self.ShadowedIntoIter.check_local(context, a);
            self.StaticMutRefs.check_local(context, a);
            self.TrivialConstraints.check_local(context, a);
            self.TypeAliasBounds.check_local(context, a);
            self.TypeLimits.check_local(context, a);
            self.UngatedAsyncFnTrackCaller.check_local(context, a);
            self.UnitBindings.check_local(context, a);
            self.UnqualifiedLocalImports.check_local(context, a);
            self.UnreachablePub.check_local(context, a);
            self.UnstableFeatures.check_local(context, a);
            self.UnusedAllocation.check_local(context, a);
            self.UnusedResults.check_local(context, a);
            self.VariantSizeDifferences.check_local(context, a);
        };
    }
    fn check_block(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Block<'tcx>) {
        {
            self.LintUnvalidated.check_block(context, a);
            self.AsmLabels.check_block(context, a);
            self.AsyncClosureUsage.check_block(context, a);
            self.AsyncFnInTrait.check_block(context, a);
            self.CVoidReturns.check_block(context, a);
            self.CheckTransmutes.check_block(context, a);
            self.DanglingPointers.check_block(context, a);
            self.DefaultCouldBeDerived.check_block(context, a);
            self.DerefIntoDynSupertrait.check_block(context, a);
            self.DerefNullPtr.check_block(context, a);
            self.DropForgetUseless.check_block(context, a);
            self.DropTraitConstraints.check_block(context, a);
            self.EnumIntrinsicsNonEnums.check_block(context, a);
            self.ExplicitOutlivesRequirements.check_block(context, a);
            self.ForLoopsOverFallibles.check_block(context, a);
            self.FunctionCastsAsInteger.check_block(context, a);
            self.IfLetRescope.check_block(context, a);
            self.ImplTraitOvercaptures.check_block(context, a);
            self.ImplicitAutorefs.check_block(context, a);
            self.ImplicitProvenanceCasts.check_block(context, a);
            self.ImproperCTypesLint.check_block(context, a);
            self.ImproperGpuKernelLint.check_block(context, a);
            self.InteriorMutableConsts.check_block(context, a);
            self.InternalEqTraitMethodImpls.check_block(context, a);
            self.InvalidAtomicOrdering.check_block(context, a);
            self.InvalidFromUtf8.check_block(context, a);
            self.InvalidNoMangleItems.check_block(context, a);
            self.InvalidReferenceCasting.check_block(context, a);
            self.InvalidValue.check_block(context, a);
            self.LetUnderscore.check_block(context, a);
            self.LifetimeSyntax.check_block(context, a);
            self.MapUnitFn.check_block(context, a);
            self.MissingCopyImplementations.check_block(context, a);
            self.MissingDebugImplementations.check_block(context, a);
            self.MissingDoc.check_block(context, a);
            self.MultipleSupertraitUpcastable.check_block(context, a);
            self.MutableTransmutes.check_block(context, a);
            self.NonLocalDefinitions.check_block(context, a);
            self.NonPanicFmt.check_block(context, a);
            self.NonShorthandFieldPatterns.check_block(context, a);
            self.NonSnakeCase.check_block(context, a);
            self.NonUpperCaseGlobals.check_block(context, a);
            self.NoopMethodCall.check_block(context, a);
            self.OpaqueHiddenInferredBound.check_block(context, a);
            self.PathStatements.check_block(context, a);
            self.PtrNullChecks.check_block(context, a);
            self.RawBorrowsViaReferences.check_block(context, a);
            self.RuntimeSymbols.check_block(context, a);
            self.ShadowedIntoIter.check_block(context, a);
            self.StaticMutRefs.check_block(context, a);
            self.TrivialConstraints.check_block(context, a);
            self.TypeAliasBounds.check_block(context, a);
            self.TypeLimits.check_block(context, a);
            self.UngatedAsyncFnTrackCaller.check_block(context, a);
            self.UnitBindings.check_block(context, a);
            self.UnqualifiedLocalImports.check_block(context, a);
            self.UnreachablePub.check_block(context, a);
            self.UnstableFeatures.check_block(context, a);
            self.UnusedAllocation.check_block(context, a);
            self.UnusedResults.check_block(context, a);
            self.VariantSizeDifferences.check_block(context, a);
        };
    }
    fn check_block_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Block<'tcx>) {
        {
            self.LintUnvalidated.check_block_post(context, a);
            self.AsmLabels.check_block_post(context, a);
            self.AsyncClosureUsage.check_block_post(context, a);
            self.AsyncFnInTrait.check_block_post(context, a);
            self.CVoidReturns.check_block_post(context, a);
            self.CheckTransmutes.check_block_post(context, a);
            self.DanglingPointers.check_block_post(context, a);
            self.DefaultCouldBeDerived.check_block_post(context, a);
            self.DerefIntoDynSupertrait.check_block_post(context, a);
            self.DerefNullPtr.check_block_post(context, a);
            self.DropForgetUseless.check_block_post(context, a);
            self.DropTraitConstraints.check_block_post(context, a);
            self.EnumIntrinsicsNonEnums.check_block_post(context, a);
            self.ExplicitOutlivesRequirements.check_block_post(context, a);
            self.ForLoopsOverFallibles.check_block_post(context, a);
            self.FunctionCastsAsInteger.check_block_post(context, a);
            self.IfLetRescope.check_block_post(context, a);
            self.ImplTraitOvercaptures.check_block_post(context, a);
            self.ImplicitAutorefs.check_block_post(context, a);
            self.ImplicitProvenanceCasts.check_block_post(context, a);
            self.ImproperCTypesLint.check_block_post(context, a);
            self.ImproperGpuKernelLint.check_block_post(context, a);
            self.InteriorMutableConsts.check_block_post(context, a);
            self.InternalEqTraitMethodImpls.check_block_post(context, a);
            self.InvalidAtomicOrdering.check_block_post(context, a);
            self.InvalidFromUtf8.check_block_post(context, a);
            self.InvalidNoMangleItems.check_block_post(context, a);
            self.InvalidReferenceCasting.check_block_post(context, a);
            self.InvalidValue.check_block_post(context, a);
            self.LetUnderscore.check_block_post(context, a);
            self.LifetimeSyntax.check_block_post(context, a);
            self.MapUnitFn.check_block_post(context, a);
            self.MissingCopyImplementations.check_block_post(context, a);
            self.MissingDebugImplementations.check_block_post(context, a);
            self.MissingDoc.check_block_post(context, a);
            self.MultipleSupertraitUpcastable.check_block_post(context, a);
            self.MutableTransmutes.check_block_post(context, a);
            self.NonLocalDefinitions.check_block_post(context, a);
            self.NonPanicFmt.check_block_post(context, a);
            self.NonShorthandFieldPatterns.check_block_post(context, a);
            self.NonSnakeCase.check_block_post(context, a);
            self.NonUpperCaseGlobals.check_block_post(context, a);
            self.NoopMethodCall.check_block_post(context, a);
            self.OpaqueHiddenInferredBound.check_block_post(context, a);
            self.PathStatements.check_block_post(context, a);
            self.PtrNullChecks.check_block_post(context, a);
            self.RawBorrowsViaReferences.check_block_post(context, a);
            self.RuntimeSymbols.check_block_post(context, a);
            self.ShadowedIntoIter.check_block_post(context, a);
            self.StaticMutRefs.check_block_post(context, a);
            self.TrivialConstraints.check_block_post(context, a);
            self.TypeAliasBounds.check_block_post(context, a);
            self.TypeLimits.check_block_post(context, a);
            self.UngatedAsyncFnTrackCaller.check_block_post(context, a);
            self.UnitBindings.check_block_post(context, a);
            self.UnqualifiedLocalImports.check_block_post(context, a);
            self.UnreachablePub.check_block_post(context, a);
            self.UnstableFeatures.check_block_post(context, a);
            self.UnusedAllocation.check_block_post(context, a);
            self.UnusedResults.check_block_post(context, a);
            self.VariantSizeDifferences.check_block_post(context, a);
        };
    }
    fn check_stmt(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Stmt<'tcx>) {
        {
            self.LintUnvalidated.check_stmt(context, a);
            self.AsmLabels.check_stmt(context, a);
            self.AsyncClosureUsage.check_stmt(context, a);
            self.AsyncFnInTrait.check_stmt(context, a);
            self.CVoidReturns.check_stmt(context, a);
            self.CheckTransmutes.check_stmt(context, a);
            self.DanglingPointers.check_stmt(context, a);
            self.DefaultCouldBeDerived.check_stmt(context, a);
            self.DerefIntoDynSupertrait.check_stmt(context, a);
            self.DerefNullPtr.check_stmt(context, a);
            self.DropForgetUseless.check_stmt(context, a);
            self.DropTraitConstraints.check_stmt(context, a);
            self.EnumIntrinsicsNonEnums.check_stmt(context, a);
            self.ExplicitOutlivesRequirements.check_stmt(context, a);
            self.ForLoopsOverFallibles.check_stmt(context, a);
            self.FunctionCastsAsInteger.check_stmt(context, a);
            self.IfLetRescope.check_stmt(context, a);
            self.ImplTraitOvercaptures.check_stmt(context, a);
            self.ImplicitAutorefs.check_stmt(context, a);
            self.ImplicitProvenanceCasts.check_stmt(context, a);
            self.ImproperCTypesLint.check_stmt(context, a);
            self.ImproperGpuKernelLint.check_stmt(context, a);
            self.InteriorMutableConsts.check_stmt(context, a);
            self.InternalEqTraitMethodImpls.check_stmt(context, a);
            self.InvalidAtomicOrdering.check_stmt(context, a);
            self.InvalidFromUtf8.check_stmt(context, a);
            self.InvalidNoMangleItems.check_stmt(context, a);
            self.InvalidReferenceCasting.check_stmt(context, a);
            self.InvalidValue.check_stmt(context, a);
            self.LetUnderscore.check_stmt(context, a);
            self.LifetimeSyntax.check_stmt(context, a);
            self.MapUnitFn.check_stmt(context, a);
            self.MissingCopyImplementations.check_stmt(context, a);
            self.MissingDebugImplementations.check_stmt(context, a);
            self.MissingDoc.check_stmt(context, a);
            self.MultipleSupertraitUpcastable.check_stmt(context, a);
            self.MutableTransmutes.check_stmt(context, a);
            self.NonLocalDefinitions.check_stmt(context, a);
            self.NonPanicFmt.check_stmt(context, a);
            self.NonShorthandFieldPatterns.check_stmt(context, a);
            self.NonSnakeCase.check_stmt(context, a);
            self.NonUpperCaseGlobals.check_stmt(context, a);
            self.NoopMethodCall.check_stmt(context, a);
            self.OpaqueHiddenInferredBound.check_stmt(context, a);
            self.PathStatements.check_stmt(context, a);
            self.PtrNullChecks.check_stmt(context, a);
            self.RawBorrowsViaReferences.check_stmt(context, a);
            self.RuntimeSymbols.check_stmt(context, a);
            self.ShadowedIntoIter.check_stmt(context, a);
            self.StaticMutRefs.check_stmt(context, a);
            self.TrivialConstraints.check_stmt(context, a);
            self.TypeAliasBounds.check_stmt(context, a);
            self.TypeLimits.check_stmt(context, a);
            self.UngatedAsyncFnTrackCaller.check_stmt(context, a);
            self.UnitBindings.check_stmt(context, a);
            self.UnqualifiedLocalImports.check_stmt(context, a);
            self.UnreachablePub.check_stmt(context, a);
            self.UnstableFeatures.check_stmt(context, a);
            self.UnusedAllocation.check_stmt(context, a);
            self.UnusedResults.check_stmt(context, a);
            self.VariantSizeDifferences.check_stmt(context, a);
        };
    }
    fn check_arm(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Arm<'tcx>) {
        {
            self.LintUnvalidated.check_arm(context, a);
            self.AsmLabels.check_arm(context, a);
            self.AsyncClosureUsage.check_arm(context, a);
            self.AsyncFnInTrait.check_arm(context, a);
            self.CVoidReturns.check_arm(context, a);
            self.CheckTransmutes.check_arm(context, a);
            self.DanglingPointers.check_arm(context, a);
            self.DefaultCouldBeDerived.check_arm(context, a);
            self.DerefIntoDynSupertrait.check_arm(context, a);
            self.DerefNullPtr.check_arm(context, a);
            self.DropForgetUseless.check_arm(context, a);
            self.DropTraitConstraints.check_arm(context, a);
            self.EnumIntrinsicsNonEnums.check_arm(context, a);
            self.ExplicitOutlivesRequirements.check_arm(context, a);
            self.ForLoopsOverFallibles.check_arm(context, a);
            self.FunctionCastsAsInteger.check_arm(context, a);
            self.IfLetRescope.check_arm(context, a);
            self.ImplTraitOvercaptures.check_arm(context, a);
            self.ImplicitAutorefs.check_arm(context, a);
            self.ImplicitProvenanceCasts.check_arm(context, a);
            self.ImproperCTypesLint.check_arm(context, a);
            self.ImproperGpuKernelLint.check_arm(context, a);
            self.InteriorMutableConsts.check_arm(context, a);
            self.InternalEqTraitMethodImpls.check_arm(context, a);
            self.InvalidAtomicOrdering.check_arm(context, a);
            self.InvalidFromUtf8.check_arm(context, a);
            self.InvalidNoMangleItems.check_arm(context, a);
            self.InvalidReferenceCasting.check_arm(context, a);
            self.InvalidValue.check_arm(context, a);
            self.LetUnderscore.check_arm(context, a);
            self.LifetimeSyntax.check_arm(context, a);
            self.MapUnitFn.check_arm(context, a);
            self.MissingCopyImplementations.check_arm(context, a);
            self.MissingDebugImplementations.check_arm(context, a);
            self.MissingDoc.check_arm(context, a);
            self.MultipleSupertraitUpcastable.check_arm(context, a);
            self.MutableTransmutes.check_arm(context, a);
            self.NonLocalDefinitions.check_arm(context, a);
            self.NonPanicFmt.check_arm(context, a);
            self.NonShorthandFieldPatterns.check_arm(context, a);
            self.NonSnakeCase.check_arm(context, a);
            self.NonUpperCaseGlobals.check_arm(context, a);
            self.NoopMethodCall.check_arm(context, a);
            self.OpaqueHiddenInferredBound.check_arm(context, a);
            self.PathStatements.check_arm(context, a);
            self.PtrNullChecks.check_arm(context, a);
            self.RawBorrowsViaReferences.check_arm(context, a);
            self.RuntimeSymbols.check_arm(context, a);
            self.ShadowedIntoIter.check_arm(context, a);
            self.StaticMutRefs.check_arm(context, a);
            self.TrivialConstraints.check_arm(context, a);
            self.TypeAliasBounds.check_arm(context, a);
            self.TypeLimits.check_arm(context, a);
            self.UngatedAsyncFnTrackCaller.check_arm(context, a);
            self.UnitBindings.check_arm(context, a);
            self.UnqualifiedLocalImports.check_arm(context, a);
            self.UnreachablePub.check_arm(context, a);
            self.UnstableFeatures.check_arm(context, a);
            self.UnusedAllocation.check_arm(context, a);
            self.UnusedResults.check_arm(context, a);
            self.VariantSizeDifferences.check_arm(context, a);
        };
    }
    fn check_pat(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Pat<'tcx>) {
        {
            self.LintUnvalidated.check_pat(context, a);
            self.AsmLabels.check_pat(context, a);
            self.AsyncClosureUsage.check_pat(context, a);
            self.AsyncFnInTrait.check_pat(context, a);
            self.CVoidReturns.check_pat(context, a);
            self.CheckTransmutes.check_pat(context, a);
            self.DanglingPointers.check_pat(context, a);
            self.DefaultCouldBeDerived.check_pat(context, a);
            self.DerefIntoDynSupertrait.check_pat(context, a);
            self.DerefNullPtr.check_pat(context, a);
            self.DropForgetUseless.check_pat(context, a);
            self.DropTraitConstraints.check_pat(context, a);
            self.EnumIntrinsicsNonEnums.check_pat(context, a);
            self.ExplicitOutlivesRequirements.check_pat(context, a);
            self.ForLoopsOverFallibles.check_pat(context, a);
            self.FunctionCastsAsInteger.check_pat(context, a);
            self.IfLetRescope.check_pat(context, a);
            self.ImplTraitOvercaptures.check_pat(context, a);
            self.ImplicitAutorefs.check_pat(context, a);
            self.ImplicitProvenanceCasts.check_pat(context, a);
            self.ImproperCTypesLint.check_pat(context, a);
            self.ImproperGpuKernelLint.check_pat(context, a);
            self.InteriorMutableConsts.check_pat(context, a);
            self.InternalEqTraitMethodImpls.check_pat(context, a);
            self.InvalidAtomicOrdering.check_pat(context, a);
            self.InvalidFromUtf8.check_pat(context, a);
            self.InvalidNoMangleItems.check_pat(context, a);
            self.InvalidReferenceCasting.check_pat(context, a);
            self.InvalidValue.check_pat(context, a);
            self.LetUnderscore.check_pat(context, a);
            self.LifetimeSyntax.check_pat(context, a);
            self.MapUnitFn.check_pat(context, a);
            self.MissingCopyImplementations.check_pat(context, a);
            self.MissingDebugImplementations.check_pat(context, a);
            self.MissingDoc.check_pat(context, a);
            self.MultipleSupertraitUpcastable.check_pat(context, a);
            self.MutableTransmutes.check_pat(context, a);
            self.NonLocalDefinitions.check_pat(context, a);
            self.NonPanicFmt.check_pat(context, a);
            self.NonShorthandFieldPatterns.check_pat(context, a);
            self.NonSnakeCase.check_pat(context, a);
            self.NonUpperCaseGlobals.check_pat(context, a);
            self.NoopMethodCall.check_pat(context, a);
            self.OpaqueHiddenInferredBound.check_pat(context, a);
            self.PathStatements.check_pat(context, a);
            self.PtrNullChecks.check_pat(context, a);
            self.RawBorrowsViaReferences.check_pat(context, a);
            self.RuntimeSymbols.check_pat(context, a);
            self.ShadowedIntoIter.check_pat(context, a);
            self.StaticMutRefs.check_pat(context, a);
            self.TrivialConstraints.check_pat(context, a);
            self.TypeAliasBounds.check_pat(context, a);
            self.TypeLimits.check_pat(context, a);
            self.UngatedAsyncFnTrackCaller.check_pat(context, a);
            self.UnitBindings.check_pat(context, a);
            self.UnqualifiedLocalImports.check_pat(context, a);
            self.UnreachablePub.check_pat(context, a);
            self.UnstableFeatures.check_pat(context, a);
            self.UnusedAllocation.check_pat(context, a);
            self.UnusedResults.check_pat(context, a);
            self.VariantSizeDifferences.check_pat(context, a);
        };
    }
    fn check_lit(&mut self, context: &crate::LateContext<'tcx>,
        hir_id: rustc_hir::HirId, a: rustc_hir::Lit, is_negated_pat: bool) {
        {
            self.LintUnvalidated.check_lit(context, hir_id, a,
                is_negated_pat);
            self.AsmLabels.check_lit(context, hir_id, a, is_negated_pat);
            self.AsyncClosureUsage.check_lit(context, hir_id, a,
                is_negated_pat);
            self.AsyncFnInTrait.check_lit(context, hir_id, a, is_negated_pat);
            self.CVoidReturns.check_lit(context, hir_id, a, is_negated_pat);
            self.CheckTransmutes.check_lit(context, hir_id, a,
                is_negated_pat);
            self.DanglingPointers.check_lit(context, hir_id, a,
                is_negated_pat);
            self.DefaultCouldBeDerived.check_lit(context, hir_id, a,
                is_negated_pat);
            self.DerefIntoDynSupertrait.check_lit(context, hir_id, a,
                is_negated_pat);
            self.DerefNullPtr.check_lit(context, hir_id, a, is_negated_pat);
            self.DropForgetUseless.check_lit(context, hir_id, a,
                is_negated_pat);
            self.DropTraitConstraints.check_lit(context, hir_id, a,
                is_negated_pat);
            self.EnumIntrinsicsNonEnums.check_lit(context, hir_id, a,
                is_negated_pat);
            self.ExplicitOutlivesRequirements.check_lit(context, hir_id, a,
                is_negated_pat);
            self.ForLoopsOverFallibles.check_lit(context, hir_id, a,
                is_negated_pat);
            self.FunctionCastsAsInteger.check_lit(context, hir_id, a,
                is_negated_pat);
            self.IfLetRescope.check_lit(context, hir_id, a, is_negated_pat);
            self.ImplTraitOvercaptures.check_lit(context, hir_id, a,
                is_negated_pat);
            self.ImplicitAutorefs.check_lit(context, hir_id, a,
                is_negated_pat);
            self.ImplicitProvenanceCasts.check_lit(context, hir_id, a,
                is_negated_pat);
            self.ImproperCTypesLint.check_lit(context, hir_id, a,
                is_negated_pat);
            self.ImproperGpuKernelLint.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InteriorMutableConsts.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InternalEqTraitMethodImpls.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InvalidAtomicOrdering.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InvalidFromUtf8.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InvalidNoMangleItems.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InvalidReferenceCasting.check_lit(context, hir_id, a,
                is_negated_pat);
            self.InvalidValue.check_lit(context, hir_id, a, is_negated_pat);
            self.LetUnderscore.check_lit(context, hir_id, a, is_negated_pat);
            self.LifetimeSyntax.check_lit(context, hir_id, a, is_negated_pat);
            self.MapUnitFn.check_lit(context, hir_id, a, is_negated_pat);
            self.MissingCopyImplementations.check_lit(context, hir_id, a,
                is_negated_pat);
            self.MissingDebugImplementations.check_lit(context, hir_id, a,
                is_negated_pat);
            self.MissingDoc.check_lit(context, hir_id, a, is_negated_pat);
            self.MultipleSupertraitUpcastable.check_lit(context, hir_id, a,
                is_negated_pat);
            self.MutableTransmutes.check_lit(context, hir_id, a,
                is_negated_pat);
            self.NonLocalDefinitions.check_lit(context, hir_id, a,
                is_negated_pat);
            self.NonPanicFmt.check_lit(context, hir_id, a, is_negated_pat);
            self.NonShorthandFieldPatterns.check_lit(context, hir_id, a,
                is_negated_pat);
            self.NonSnakeCase.check_lit(context, hir_id, a, is_negated_pat);
            self.NonUpperCaseGlobals.check_lit(context, hir_id, a,
                is_negated_pat);
            self.NoopMethodCall.check_lit(context, hir_id, a, is_negated_pat);
            self.OpaqueHiddenInferredBound.check_lit(context, hir_id, a,
                is_negated_pat);
            self.PathStatements.check_lit(context, hir_id, a, is_negated_pat);
            self.PtrNullChecks.check_lit(context, hir_id, a, is_negated_pat);
            self.RawBorrowsViaReferences.check_lit(context, hir_id, a,
                is_negated_pat);
            self.RuntimeSymbols.check_lit(context, hir_id, a, is_negated_pat);
            self.ShadowedIntoIter.check_lit(context, hir_id, a,
                is_negated_pat);
            self.StaticMutRefs.check_lit(context, hir_id, a, is_negated_pat);
            self.TrivialConstraints.check_lit(context, hir_id, a,
                is_negated_pat);
            self.TypeAliasBounds.check_lit(context, hir_id, a,
                is_negated_pat);
            self.TypeLimits.check_lit(context, hir_id, a, is_negated_pat);
            self.UngatedAsyncFnTrackCaller.check_lit(context, hir_id, a,
                is_negated_pat);
            self.UnitBindings.check_lit(context, hir_id, a, is_negated_pat);
            self.UnqualifiedLocalImports.check_lit(context, hir_id, a,
                is_negated_pat);
            self.UnreachablePub.check_lit(context, hir_id, a, is_negated_pat);
            self.UnstableFeatures.check_lit(context, hir_id, a,
                is_negated_pat);
            self.UnusedAllocation.check_lit(context, hir_id, a,
                is_negated_pat);
            self.UnusedResults.check_lit(context, hir_id, a, is_negated_pat);
            self.VariantSizeDifferences.check_lit(context, hir_id, a,
                is_negated_pat);
        };
    }
    fn check_expr(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Expr<'tcx>) {
        {
            self.LintUnvalidated.check_expr(context, a);
            self.AsmLabels.check_expr(context, a);
            self.AsyncClosureUsage.check_expr(context, a);
            self.AsyncFnInTrait.check_expr(context, a);
            self.CVoidReturns.check_expr(context, a);
            self.CheckTransmutes.check_expr(context, a);
            self.DanglingPointers.check_expr(context, a);
            self.DefaultCouldBeDerived.check_expr(context, a);
            self.DerefIntoDynSupertrait.check_expr(context, a);
            self.DerefNullPtr.check_expr(context, a);
            self.DropForgetUseless.check_expr(context, a);
            self.DropTraitConstraints.check_expr(context, a);
            self.EnumIntrinsicsNonEnums.check_expr(context, a);
            self.ExplicitOutlivesRequirements.check_expr(context, a);
            self.ForLoopsOverFallibles.check_expr(context, a);
            self.FunctionCastsAsInteger.check_expr(context, a);
            self.IfLetRescope.check_expr(context, a);
            self.ImplTraitOvercaptures.check_expr(context, a);
            self.ImplicitAutorefs.check_expr(context, a);
            self.ImplicitProvenanceCasts.check_expr(context, a);
            self.ImproperCTypesLint.check_expr(context, a);
            self.ImproperGpuKernelLint.check_expr(context, a);
            self.InteriorMutableConsts.check_expr(context, a);
            self.InternalEqTraitMethodImpls.check_expr(context, a);
            self.InvalidAtomicOrdering.check_expr(context, a);
            self.InvalidFromUtf8.check_expr(context, a);
            self.InvalidNoMangleItems.check_expr(context, a);
            self.InvalidReferenceCasting.check_expr(context, a);
            self.InvalidValue.check_expr(context, a);
            self.LetUnderscore.check_expr(context, a);
            self.LifetimeSyntax.check_expr(context, a);
            self.MapUnitFn.check_expr(context, a);
            self.MissingCopyImplementations.check_expr(context, a);
            self.MissingDebugImplementations.check_expr(context, a);
            self.MissingDoc.check_expr(context, a);
            self.MultipleSupertraitUpcastable.check_expr(context, a);
            self.MutableTransmutes.check_expr(context, a);
            self.NonLocalDefinitions.check_expr(context, a);
            self.NonPanicFmt.check_expr(context, a);
            self.NonShorthandFieldPatterns.check_expr(context, a);
            self.NonSnakeCase.check_expr(context, a);
            self.NonUpperCaseGlobals.check_expr(context, a);
            self.NoopMethodCall.check_expr(context, a);
            self.OpaqueHiddenInferredBound.check_expr(context, a);
            self.PathStatements.check_expr(context, a);
            self.PtrNullChecks.check_expr(context, a);
            self.RawBorrowsViaReferences.check_expr(context, a);
            self.RuntimeSymbols.check_expr(context, a);
            self.ShadowedIntoIter.check_expr(context, a);
            self.StaticMutRefs.check_expr(context, a);
            self.TrivialConstraints.check_expr(context, a);
            self.TypeAliasBounds.check_expr(context, a);
            self.TypeLimits.check_expr(context, a);
            self.UngatedAsyncFnTrackCaller.check_expr(context, a);
            self.UnitBindings.check_expr(context, a);
            self.UnqualifiedLocalImports.check_expr(context, a);
            self.UnreachablePub.check_expr(context, a);
            self.UnstableFeatures.check_expr(context, a);
            self.UnusedAllocation.check_expr(context, a);
            self.UnusedResults.check_expr(context, a);
            self.VariantSizeDifferences.check_expr(context, a);
        };
    }
    fn check_expr_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Expr<'tcx>) {
        {
            self.LintUnvalidated.check_expr_post(context, a);
            self.AsmLabels.check_expr_post(context, a);
            self.AsyncClosureUsage.check_expr_post(context, a);
            self.AsyncFnInTrait.check_expr_post(context, a);
            self.CVoidReturns.check_expr_post(context, a);
            self.CheckTransmutes.check_expr_post(context, a);
            self.DanglingPointers.check_expr_post(context, a);
            self.DefaultCouldBeDerived.check_expr_post(context, a);
            self.DerefIntoDynSupertrait.check_expr_post(context, a);
            self.DerefNullPtr.check_expr_post(context, a);
            self.DropForgetUseless.check_expr_post(context, a);
            self.DropTraitConstraints.check_expr_post(context, a);
            self.EnumIntrinsicsNonEnums.check_expr_post(context, a);
            self.ExplicitOutlivesRequirements.check_expr_post(context, a);
            self.ForLoopsOverFallibles.check_expr_post(context, a);
            self.FunctionCastsAsInteger.check_expr_post(context, a);
            self.IfLetRescope.check_expr_post(context, a);
            self.ImplTraitOvercaptures.check_expr_post(context, a);
            self.ImplicitAutorefs.check_expr_post(context, a);
            self.ImplicitProvenanceCasts.check_expr_post(context, a);
            self.ImproperCTypesLint.check_expr_post(context, a);
            self.ImproperGpuKernelLint.check_expr_post(context, a);
            self.InteriorMutableConsts.check_expr_post(context, a);
            self.InternalEqTraitMethodImpls.check_expr_post(context, a);
            self.InvalidAtomicOrdering.check_expr_post(context, a);
            self.InvalidFromUtf8.check_expr_post(context, a);
            self.InvalidNoMangleItems.check_expr_post(context, a);
            self.InvalidReferenceCasting.check_expr_post(context, a);
            self.InvalidValue.check_expr_post(context, a);
            self.LetUnderscore.check_expr_post(context, a);
            self.LifetimeSyntax.check_expr_post(context, a);
            self.MapUnitFn.check_expr_post(context, a);
            self.MissingCopyImplementations.check_expr_post(context, a);
            self.MissingDebugImplementations.check_expr_post(context, a);
            self.MissingDoc.check_expr_post(context, a);
            self.MultipleSupertraitUpcastable.check_expr_post(context, a);
            self.MutableTransmutes.check_expr_post(context, a);
            self.NonLocalDefinitions.check_expr_post(context, a);
            self.NonPanicFmt.check_expr_post(context, a);
            self.NonShorthandFieldPatterns.check_expr_post(context, a);
            self.NonSnakeCase.check_expr_post(context, a);
            self.NonUpperCaseGlobals.check_expr_post(context, a);
            self.NoopMethodCall.check_expr_post(context, a);
            self.OpaqueHiddenInferredBound.check_expr_post(context, a);
            self.PathStatements.check_expr_post(context, a);
            self.PtrNullChecks.check_expr_post(context, a);
            self.RawBorrowsViaReferences.check_expr_post(context, a);
            self.RuntimeSymbols.check_expr_post(context, a);
            self.ShadowedIntoIter.check_expr_post(context, a);
            self.StaticMutRefs.check_expr_post(context, a);
            self.TrivialConstraints.check_expr_post(context, a);
            self.TypeAliasBounds.check_expr_post(context, a);
            self.TypeLimits.check_expr_post(context, a);
            self.UngatedAsyncFnTrackCaller.check_expr_post(context, a);
            self.UnitBindings.check_expr_post(context, a);
            self.UnqualifiedLocalImports.check_expr_post(context, a);
            self.UnreachablePub.check_expr_post(context, a);
            self.UnstableFeatures.check_expr_post(context, a);
            self.UnusedAllocation.check_expr_post(context, a);
            self.UnusedResults.check_expr_post(context, a);
            self.VariantSizeDifferences.check_expr_post(context, a);
        };
    }
    fn check_ty(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Ty<'tcx, rustc_hir::AmbigArg>) {
        {
            self.LintUnvalidated.check_ty(context, a);
            self.AsmLabels.check_ty(context, a);
            self.AsyncClosureUsage.check_ty(context, a);
            self.AsyncFnInTrait.check_ty(context, a);
            self.CVoidReturns.check_ty(context, a);
            self.CheckTransmutes.check_ty(context, a);
            self.DanglingPointers.check_ty(context, a);
            self.DefaultCouldBeDerived.check_ty(context, a);
            self.DerefIntoDynSupertrait.check_ty(context, a);
            self.DerefNullPtr.check_ty(context, a);
            self.DropForgetUseless.check_ty(context, a);
            self.DropTraitConstraints.check_ty(context, a);
            self.EnumIntrinsicsNonEnums.check_ty(context, a);
            self.ExplicitOutlivesRequirements.check_ty(context, a);
            self.ForLoopsOverFallibles.check_ty(context, a);
            self.FunctionCastsAsInteger.check_ty(context, a);
            self.IfLetRescope.check_ty(context, a);
            self.ImplTraitOvercaptures.check_ty(context, a);
            self.ImplicitAutorefs.check_ty(context, a);
            self.ImplicitProvenanceCasts.check_ty(context, a);
            self.ImproperCTypesLint.check_ty(context, a);
            self.ImproperGpuKernelLint.check_ty(context, a);
            self.InteriorMutableConsts.check_ty(context, a);
            self.InternalEqTraitMethodImpls.check_ty(context, a);
            self.InvalidAtomicOrdering.check_ty(context, a);
            self.InvalidFromUtf8.check_ty(context, a);
            self.InvalidNoMangleItems.check_ty(context, a);
            self.InvalidReferenceCasting.check_ty(context, a);
            self.InvalidValue.check_ty(context, a);
            self.LetUnderscore.check_ty(context, a);
            self.LifetimeSyntax.check_ty(context, a);
            self.MapUnitFn.check_ty(context, a);
            self.MissingCopyImplementations.check_ty(context, a);
            self.MissingDebugImplementations.check_ty(context, a);
            self.MissingDoc.check_ty(context, a);
            self.MultipleSupertraitUpcastable.check_ty(context, a);
            self.MutableTransmutes.check_ty(context, a);
            self.NonLocalDefinitions.check_ty(context, a);
            self.NonPanicFmt.check_ty(context, a);
            self.NonShorthandFieldPatterns.check_ty(context, a);
            self.NonSnakeCase.check_ty(context, a);
            self.NonUpperCaseGlobals.check_ty(context, a);
            self.NoopMethodCall.check_ty(context, a);
            self.OpaqueHiddenInferredBound.check_ty(context, a);
            self.PathStatements.check_ty(context, a);
            self.PtrNullChecks.check_ty(context, a);
            self.RawBorrowsViaReferences.check_ty(context, a);
            self.RuntimeSymbols.check_ty(context, a);
            self.ShadowedIntoIter.check_ty(context, a);
            self.StaticMutRefs.check_ty(context, a);
            self.TrivialConstraints.check_ty(context, a);
            self.TypeAliasBounds.check_ty(context, a);
            self.TypeLimits.check_ty(context, a);
            self.UngatedAsyncFnTrackCaller.check_ty(context, a);
            self.UnitBindings.check_ty(context, a);
            self.UnqualifiedLocalImports.check_ty(context, a);
            self.UnreachablePub.check_ty(context, a);
            self.UnstableFeatures.check_ty(context, a);
            self.UnusedAllocation.check_ty(context, a);
            self.UnusedResults.check_ty(context, a);
            self.VariantSizeDifferences.check_ty(context, a);
        };
    }
    fn check_generic_param(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::GenericParam<'tcx>) {
        {
            self.LintUnvalidated.check_generic_param(context, a);
            self.AsmLabels.check_generic_param(context, a);
            self.AsyncClosureUsage.check_generic_param(context, a);
            self.AsyncFnInTrait.check_generic_param(context, a);
            self.CVoidReturns.check_generic_param(context, a);
            self.CheckTransmutes.check_generic_param(context, a);
            self.DanglingPointers.check_generic_param(context, a);
            self.DefaultCouldBeDerived.check_generic_param(context, a);
            self.DerefIntoDynSupertrait.check_generic_param(context, a);
            self.DerefNullPtr.check_generic_param(context, a);
            self.DropForgetUseless.check_generic_param(context, a);
            self.DropTraitConstraints.check_generic_param(context, a);
            self.EnumIntrinsicsNonEnums.check_generic_param(context, a);
            self.ExplicitOutlivesRequirements.check_generic_param(context, a);
            self.ForLoopsOverFallibles.check_generic_param(context, a);
            self.FunctionCastsAsInteger.check_generic_param(context, a);
            self.IfLetRescope.check_generic_param(context, a);
            self.ImplTraitOvercaptures.check_generic_param(context, a);
            self.ImplicitAutorefs.check_generic_param(context, a);
            self.ImplicitProvenanceCasts.check_generic_param(context, a);
            self.ImproperCTypesLint.check_generic_param(context, a);
            self.ImproperGpuKernelLint.check_generic_param(context, a);
            self.InteriorMutableConsts.check_generic_param(context, a);
            self.InternalEqTraitMethodImpls.check_generic_param(context, a);
            self.InvalidAtomicOrdering.check_generic_param(context, a);
            self.InvalidFromUtf8.check_generic_param(context, a);
            self.InvalidNoMangleItems.check_generic_param(context, a);
            self.InvalidReferenceCasting.check_generic_param(context, a);
            self.InvalidValue.check_generic_param(context, a);
            self.LetUnderscore.check_generic_param(context, a);
            self.LifetimeSyntax.check_generic_param(context, a);
            self.MapUnitFn.check_generic_param(context, a);
            self.MissingCopyImplementations.check_generic_param(context, a);
            self.MissingDebugImplementations.check_generic_param(context, a);
            self.MissingDoc.check_generic_param(context, a);
            self.MultipleSupertraitUpcastable.check_generic_param(context, a);
            self.MutableTransmutes.check_generic_param(context, a);
            self.NonLocalDefinitions.check_generic_param(context, a);
            self.NonPanicFmt.check_generic_param(context, a);
            self.NonShorthandFieldPatterns.check_generic_param(context, a);
            self.NonSnakeCase.check_generic_param(context, a);
            self.NonUpperCaseGlobals.check_generic_param(context, a);
            self.NoopMethodCall.check_generic_param(context, a);
            self.OpaqueHiddenInferredBound.check_generic_param(context, a);
            self.PathStatements.check_generic_param(context, a);
            self.PtrNullChecks.check_generic_param(context, a);
            self.RawBorrowsViaReferences.check_generic_param(context, a);
            self.RuntimeSymbols.check_generic_param(context, a);
            self.ShadowedIntoIter.check_generic_param(context, a);
            self.StaticMutRefs.check_generic_param(context, a);
            self.TrivialConstraints.check_generic_param(context, a);
            self.TypeAliasBounds.check_generic_param(context, a);
            self.TypeLimits.check_generic_param(context, a);
            self.UngatedAsyncFnTrackCaller.check_generic_param(context, a);
            self.UnitBindings.check_generic_param(context, a);
            self.UnqualifiedLocalImports.check_generic_param(context, a);
            self.UnreachablePub.check_generic_param(context, a);
            self.UnstableFeatures.check_generic_param(context, a);
            self.UnusedAllocation.check_generic_param(context, a);
            self.UnusedResults.check_generic_param(context, a);
            self.VariantSizeDifferences.check_generic_param(context, a);
        };
    }
    fn check_generics(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Generics<'tcx>) {
        {
            self.LintUnvalidated.check_generics(context, a);
            self.AsmLabels.check_generics(context, a);
            self.AsyncClosureUsage.check_generics(context, a);
            self.AsyncFnInTrait.check_generics(context, a);
            self.CVoidReturns.check_generics(context, a);
            self.CheckTransmutes.check_generics(context, a);
            self.DanglingPointers.check_generics(context, a);
            self.DefaultCouldBeDerived.check_generics(context, a);
            self.DerefIntoDynSupertrait.check_generics(context, a);
            self.DerefNullPtr.check_generics(context, a);
            self.DropForgetUseless.check_generics(context, a);
            self.DropTraitConstraints.check_generics(context, a);
            self.EnumIntrinsicsNonEnums.check_generics(context, a);
            self.ExplicitOutlivesRequirements.check_generics(context, a);
            self.ForLoopsOverFallibles.check_generics(context, a);
            self.FunctionCastsAsInteger.check_generics(context, a);
            self.IfLetRescope.check_generics(context, a);
            self.ImplTraitOvercaptures.check_generics(context, a);
            self.ImplicitAutorefs.check_generics(context, a);
            self.ImplicitProvenanceCasts.check_generics(context, a);
            self.ImproperCTypesLint.check_generics(context, a);
            self.ImproperGpuKernelLint.check_generics(context, a);
            self.InteriorMutableConsts.check_generics(context, a);
            self.InternalEqTraitMethodImpls.check_generics(context, a);
            self.InvalidAtomicOrdering.check_generics(context, a);
            self.InvalidFromUtf8.check_generics(context, a);
            self.InvalidNoMangleItems.check_generics(context, a);
            self.InvalidReferenceCasting.check_generics(context, a);
            self.InvalidValue.check_generics(context, a);
            self.LetUnderscore.check_generics(context, a);
            self.LifetimeSyntax.check_generics(context, a);
            self.MapUnitFn.check_generics(context, a);
            self.MissingCopyImplementations.check_generics(context, a);
            self.MissingDebugImplementations.check_generics(context, a);
            self.MissingDoc.check_generics(context, a);
            self.MultipleSupertraitUpcastable.check_generics(context, a);
            self.MutableTransmutes.check_generics(context, a);
            self.NonLocalDefinitions.check_generics(context, a);
            self.NonPanicFmt.check_generics(context, a);
            self.NonShorthandFieldPatterns.check_generics(context, a);
            self.NonSnakeCase.check_generics(context, a);
            self.NonUpperCaseGlobals.check_generics(context, a);
            self.NoopMethodCall.check_generics(context, a);
            self.OpaqueHiddenInferredBound.check_generics(context, a);
            self.PathStatements.check_generics(context, a);
            self.PtrNullChecks.check_generics(context, a);
            self.RawBorrowsViaReferences.check_generics(context, a);
            self.RuntimeSymbols.check_generics(context, a);
            self.ShadowedIntoIter.check_generics(context, a);
            self.StaticMutRefs.check_generics(context, a);
            self.TrivialConstraints.check_generics(context, a);
            self.TypeAliasBounds.check_generics(context, a);
            self.TypeLimits.check_generics(context, a);
            self.UngatedAsyncFnTrackCaller.check_generics(context, a);
            self.UnitBindings.check_generics(context, a);
            self.UnqualifiedLocalImports.check_generics(context, a);
            self.UnreachablePub.check_generics(context, a);
            self.UnstableFeatures.check_generics(context, a);
            self.UnusedAllocation.check_generics(context, a);
            self.UnusedResults.check_generics(context, a);
            self.VariantSizeDifferences.check_generics(context, a);
        };
    }
    fn check_poly_trait_ref(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::PolyTraitRef<'tcx>) {
        {
            self.LintUnvalidated.check_poly_trait_ref(context, a);
            self.AsmLabels.check_poly_trait_ref(context, a);
            self.AsyncClosureUsage.check_poly_trait_ref(context, a);
            self.AsyncFnInTrait.check_poly_trait_ref(context, a);
            self.CVoidReturns.check_poly_trait_ref(context, a);
            self.CheckTransmutes.check_poly_trait_ref(context, a);
            self.DanglingPointers.check_poly_trait_ref(context, a);
            self.DefaultCouldBeDerived.check_poly_trait_ref(context, a);
            self.DerefIntoDynSupertrait.check_poly_trait_ref(context, a);
            self.DerefNullPtr.check_poly_trait_ref(context, a);
            self.DropForgetUseless.check_poly_trait_ref(context, a);
            self.DropTraitConstraints.check_poly_trait_ref(context, a);
            self.EnumIntrinsicsNonEnums.check_poly_trait_ref(context, a);
            self.ExplicitOutlivesRequirements.check_poly_trait_ref(context,
                a);
            self.ForLoopsOverFallibles.check_poly_trait_ref(context, a);
            self.FunctionCastsAsInteger.check_poly_trait_ref(context, a);
            self.IfLetRescope.check_poly_trait_ref(context, a);
            self.ImplTraitOvercaptures.check_poly_trait_ref(context, a);
            self.ImplicitAutorefs.check_poly_trait_ref(context, a);
            self.ImplicitProvenanceCasts.check_poly_trait_ref(context, a);
            self.ImproperCTypesLint.check_poly_trait_ref(context, a);
            self.ImproperGpuKernelLint.check_poly_trait_ref(context, a);
            self.InteriorMutableConsts.check_poly_trait_ref(context, a);
            self.InternalEqTraitMethodImpls.check_poly_trait_ref(context, a);
            self.InvalidAtomicOrdering.check_poly_trait_ref(context, a);
            self.InvalidFromUtf8.check_poly_trait_ref(context, a);
            self.InvalidNoMangleItems.check_poly_trait_ref(context, a);
            self.InvalidReferenceCasting.check_poly_trait_ref(context, a);
            self.InvalidValue.check_poly_trait_ref(context, a);
            self.LetUnderscore.check_poly_trait_ref(context, a);
            self.LifetimeSyntax.check_poly_trait_ref(context, a);
            self.MapUnitFn.check_poly_trait_ref(context, a);
            self.MissingCopyImplementations.check_poly_trait_ref(context, a);
            self.MissingDebugImplementations.check_poly_trait_ref(context, a);
            self.MissingDoc.check_poly_trait_ref(context, a);
            self.MultipleSupertraitUpcastable.check_poly_trait_ref(context,
                a);
            self.MutableTransmutes.check_poly_trait_ref(context, a);
            self.NonLocalDefinitions.check_poly_trait_ref(context, a);
            self.NonPanicFmt.check_poly_trait_ref(context, a);
            self.NonShorthandFieldPatterns.check_poly_trait_ref(context, a);
            self.NonSnakeCase.check_poly_trait_ref(context, a);
            self.NonUpperCaseGlobals.check_poly_trait_ref(context, a);
            self.NoopMethodCall.check_poly_trait_ref(context, a);
            self.OpaqueHiddenInferredBound.check_poly_trait_ref(context, a);
            self.PathStatements.check_poly_trait_ref(context, a);
            self.PtrNullChecks.check_poly_trait_ref(context, a);
            self.RawBorrowsViaReferences.check_poly_trait_ref(context, a);
            self.RuntimeSymbols.check_poly_trait_ref(context, a);
            self.ShadowedIntoIter.check_poly_trait_ref(context, a);
            self.StaticMutRefs.check_poly_trait_ref(context, a);
            self.TrivialConstraints.check_poly_trait_ref(context, a);
            self.TypeAliasBounds.check_poly_trait_ref(context, a);
            self.TypeLimits.check_poly_trait_ref(context, a);
            self.UngatedAsyncFnTrackCaller.check_poly_trait_ref(context, a);
            self.UnitBindings.check_poly_trait_ref(context, a);
            self.UnqualifiedLocalImports.check_poly_trait_ref(context, a);
            self.UnreachablePub.check_poly_trait_ref(context, a);
            self.UnstableFeatures.check_poly_trait_ref(context, a);
            self.UnusedAllocation.check_poly_trait_ref(context, a);
            self.UnusedResults.check_poly_trait_ref(context, a);
            self.VariantSizeDifferences.check_poly_trait_ref(context, a);
        };
    }
    fn check_fn(&mut self, context: &crate::LateContext<'tcx>,
        a: rustc_hir::intravisit::FnKind<'tcx>,
        b: &'tcx rustc_hir::FnDecl<'tcx>, c: &'tcx rustc_hir::Body<'tcx>,
        d: rustc_span::Span, e: rustc_span::def_id::LocalDefId) {
        {
            self.LintUnvalidated.check_fn(context, a, b, c, d, e);
            self.AsmLabels.check_fn(context, a, b, c, d, e);
            self.AsyncClosureUsage.check_fn(context, a, b, c, d, e);
            self.AsyncFnInTrait.check_fn(context, a, b, c, d, e);
            self.CVoidReturns.check_fn(context, a, b, c, d, e);
            self.CheckTransmutes.check_fn(context, a, b, c, d, e);
            self.DanglingPointers.check_fn(context, a, b, c, d, e);
            self.DefaultCouldBeDerived.check_fn(context, a, b, c, d, e);
            self.DerefIntoDynSupertrait.check_fn(context, a, b, c, d, e);
            self.DerefNullPtr.check_fn(context, a, b, c, d, e);
            self.DropForgetUseless.check_fn(context, a, b, c, d, e);
            self.DropTraitConstraints.check_fn(context, a, b, c, d, e);
            self.EnumIntrinsicsNonEnums.check_fn(context, a, b, c, d, e);
            self.ExplicitOutlivesRequirements.check_fn(context, a, b, c, d,
                e);
            self.ForLoopsOverFallibles.check_fn(context, a, b, c, d, e);
            self.FunctionCastsAsInteger.check_fn(context, a, b, c, d, e);
            self.IfLetRescope.check_fn(context, a, b, c, d, e);
            self.ImplTraitOvercaptures.check_fn(context, a, b, c, d, e);
            self.ImplicitAutorefs.check_fn(context, a, b, c, d, e);
            self.ImplicitProvenanceCasts.check_fn(context, a, b, c, d, e);
            self.ImproperCTypesLint.check_fn(context, a, b, c, d, e);
            self.ImproperGpuKernelLint.check_fn(context, a, b, c, d, e);
            self.InteriorMutableConsts.check_fn(context, a, b, c, d, e);
            self.InternalEqTraitMethodImpls.check_fn(context, a, b, c, d, e);
            self.InvalidAtomicOrdering.check_fn(context, a, b, c, d, e);
            self.InvalidFromUtf8.check_fn(context, a, b, c, d, e);
            self.InvalidNoMangleItems.check_fn(context, a, b, c, d, e);
            self.InvalidReferenceCasting.check_fn(context, a, b, c, d, e);
            self.InvalidValue.check_fn(context, a, b, c, d, e);
            self.LetUnderscore.check_fn(context, a, b, c, d, e);
            self.LifetimeSyntax.check_fn(context, a, b, c, d, e);
            self.MapUnitFn.check_fn(context, a, b, c, d, e);
            self.MissingCopyImplementations.check_fn(context, a, b, c, d, e);
            self.MissingDebugImplementations.check_fn(context, a, b, c, d, e);
            self.MissingDoc.check_fn(context, a, b, c, d, e);
            self.MultipleSupertraitUpcastable.check_fn(context, a, b, c, d,
                e);
            self.MutableTransmutes.check_fn(context, a, b, c, d, e);
            self.NonLocalDefinitions.check_fn(context, a, b, c, d, e);
            self.NonPanicFmt.check_fn(context, a, b, c, d, e);
            self.NonShorthandFieldPatterns.check_fn(context, a, b, c, d, e);
            self.NonSnakeCase.check_fn(context, a, b, c, d, e);
            self.NonUpperCaseGlobals.check_fn(context, a, b, c, d, e);
            self.NoopMethodCall.check_fn(context, a, b, c, d, e);
            self.OpaqueHiddenInferredBound.check_fn(context, a, b, c, d, e);
            self.PathStatements.check_fn(context, a, b, c, d, e);
            self.PtrNullChecks.check_fn(context, a, b, c, d, e);
            self.RawBorrowsViaReferences.check_fn(context, a, b, c, d, e);
            self.RuntimeSymbols.check_fn(context, a, b, c, d, e);
            self.ShadowedIntoIter.check_fn(context, a, b, c, d, e);
            self.StaticMutRefs.check_fn(context, a, b, c, d, e);
            self.TrivialConstraints.check_fn(context, a, b, c, d, e);
            self.TypeAliasBounds.check_fn(context, a, b, c, d, e);
            self.TypeLimits.check_fn(context, a, b, c, d, e);
            self.UngatedAsyncFnTrackCaller.check_fn(context, a, b, c, d, e);
            self.UnitBindings.check_fn(context, a, b, c, d, e);
            self.UnqualifiedLocalImports.check_fn(context, a, b, c, d, e);
            self.UnreachablePub.check_fn(context, a, b, c, d, e);
            self.UnstableFeatures.check_fn(context, a, b, c, d, e);
            self.UnusedAllocation.check_fn(context, a, b, c, d, e);
            self.UnusedResults.check_fn(context, a, b, c, d, e);
            self.VariantSizeDifferences.check_fn(context, a, b, c, d, e);
        };
    }
    fn check_trait_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::TraitItem<'tcx>) {
        {
            self.LintUnvalidated.check_trait_item(context, a);
            self.AsmLabels.check_trait_item(context, a);
            self.AsyncClosureUsage.check_trait_item(context, a);
            self.AsyncFnInTrait.check_trait_item(context, a);
            self.CVoidReturns.check_trait_item(context, a);
            self.CheckTransmutes.check_trait_item(context, a);
            self.DanglingPointers.check_trait_item(context, a);
            self.DefaultCouldBeDerived.check_trait_item(context, a);
            self.DerefIntoDynSupertrait.check_trait_item(context, a);
            self.DerefNullPtr.check_trait_item(context, a);
            self.DropForgetUseless.check_trait_item(context, a);
            self.DropTraitConstraints.check_trait_item(context, a);
            self.EnumIntrinsicsNonEnums.check_trait_item(context, a);
            self.ExplicitOutlivesRequirements.check_trait_item(context, a);
            self.ForLoopsOverFallibles.check_trait_item(context, a);
            self.FunctionCastsAsInteger.check_trait_item(context, a);
            self.IfLetRescope.check_trait_item(context, a);
            self.ImplTraitOvercaptures.check_trait_item(context, a);
            self.ImplicitAutorefs.check_trait_item(context, a);
            self.ImplicitProvenanceCasts.check_trait_item(context, a);
            self.ImproperCTypesLint.check_trait_item(context, a);
            self.ImproperGpuKernelLint.check_trait_item(context, a);
            self.InteriorMutableConsts.check_trait_item(context, a);
            self.InternalEqTraitMethodImpls.check_trait_item(context, a);
            self.InvalidAtomicOrdering.check_trait_item(context, a);
            self.InvalidFromUtf8.check_trait_item(context, a);
            self.InvalidNoMangleItems.check_trait_item(context, a);
            self.InvalidReferenceCasting.check_trait_item(context, a);
            self.InvalidValue.check_trait_item(context, a);
            self.LetUnderscore.check_trait_item(context, a);
            self.LifetimeSyntax.check_trait_item(context, a);
            self.MapUnitFn.check_trait_item(context, a);
            self.MissingCopyImplementations.check_trait_item(context, a);
            self.MissingDebugImplementations.check_trait_item(context, a);
            self.MissingDoc.check_trait_item(context, a);
            self.MultipleSupertraitUpcastable.check_trait_item(context, a);
            self.MutableTransmutes.check_trait_item(context, a);
            self.NonLocalDefinitions.check_trait_item(context, a);
            self.NonPanicFmt.check_trait_item(context, a);
            self.NonShorthandFieldPatterns.check_trait_item(context, a);
            self.NonSnakeCase.check_trait_item(context, a);
            self.NonUpperCaseGlobals.check_trait_item(context, a);
            self.NoopMethodCall.check_trait_item(context, a);
            self.OpaqueHiddenInferredBound.check_trait_item(context, a);
            self.PathStatements.check_trait_item(context, a);
            self.PtrNullChecks.check_trait_item(context, a);
            self.RawBorrowsViaReferences.check_trait_item(context, a);
            self.RuntimeSymbols.check_trait_item(context, a);
            self.ShadowedIntoIter.check_trait_item(context, a);
            self.StaticMutRefs.check_trait_item(context, a);
            self.TrivialConstraints.check_trait_item(context, a);
            self.TypeAliasBounds.check_trait_item(context, a);
            self.TypeLimits.check_trait_item(context, a);
            self.UngatedAsyncFnTrackCaller.check_trait_item(context, a);
            self.UnitBindings.check_trait_item(context, a);
            self.UnqualifiedLocalImports.check_trait_item(context, a);
            self.UnreachablePub.check_trait_item(context, a);
            self.UnstableFeatures.check_trait_item(context, a);
            self.UnusedAllocation.check_trait_item(context, a);
            self.UnusedResults.check_trait_item(context, a);
            self.VariantSizeDifferences.check_trait_item(context, a);
        };
    }
    fn check_impl_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::ImplItem<'tcx>) {
        {
            self.LintUnvalidated.check_impl_item(context, a);
            self.AsmLabels.check_impl_item(context, a);
            self.AsyncClosureUsage.check_impl_item(context, a);
            self.AsyncFnInTrait.check_impl_item(context, a);
            self.CVoidReturns.check_impl_item(context, a);
            self.CheckTransmutes.check_impl_item(context, a);
            self.DanglingPointers.check_impl_item(context, a);
            self.DefaultCouldBeDerived.check_impl_item(context, a);
            self.DerefIntoDynSupertrait.check_impl_item(context, a);
            self.DerefNullPtr.check_impl_item(context, a);
            self.DropForgetUseless.check_impl_item(context, a);
            self.DropTraitConstraints.check_impl_item(context, a);
            self.EnumIntrinsicsNonEnums.check_impl_item(context, a);
            self.ExplicitOutlivesRequirements.check_impl_item(context, a);
            self.ForLoopsOverFallibles.check_impl_item(context, a);
            self.FunctionCastsAsInteger.check_impl_item(context, a);
            self.IfLetRescope.check_impl_item(context, a);
            self.ImplTraitOvercaptures.check_impl_item(context, a);
            self.ImplicitAutorefs.check_impl_item(context, a);
            self.ImplicitProvenanceCasts.check_impl_item(context, a);
            self.ImproperCTypesLint.check_impl_item(context, a);
            self.ImproperGpuKernelLint.check_impl_item(context, a);
            self.InteriorMutableConsts.check_impl_item(context, a);
            self.InternalEqTraitMethodImpls.check_impl_item(context, a);
            self.InvalidAtomicOrdering.check_impl_item(context, a);
            self.InvalidFromUtf8.check_impl_item(context, a);
            self.InvalidNoMangleItems.check_impl_item(context, a);
            self.InvalidReferenceCasting.check_impl_item(context, a);
            self.InvalidValue.check_impl_item(context, a);
            self.LetUnderscore.check_impl_item(context, a);
            self.LifetimeSyntax.check_impl_item(context, a);
            self.MapUnitFn.check_impl_item(context, a);
            self.MissingCopyImplementations.check_impl_item(context, a);
            self.MissingDebugImplementations.check_impl_item(context, a);
            self.MissingDoc.check_impl_item(context, a);
            self.MultipleSupertraitUpcastable.check_impl_item(context, a);
            self.MutableTransmutes.check_impl_item(context, a);
            self.NonLocalDefinitions.check_impl_item(context, a);
            self.NonPanicFmt.check_impl_item(context, a);
            self.NonShorthandFieldPatterns.check_impl_item(context, a);
            self.NonSnakeCase.check_impl_item(context, a);
            self.NonUpperCaseGlobals.check_impl_item(context, a);
            self.NoopMethodCall.check_impl_item(context, a);
            self.OpaqueHiddenInferredBound.check_impl_item(context, a);
            self.PathStatements.check_impl_item(context, a);
            self.PtrNullChecks.check_impl_item(context, a);
            self.RawBorrowsViaReferences.check_impl_item(context, a);
            self.RuntimeSymbols.check_impl_item(context, a);
            self.ShadowedIntoIter.check_impl_item(context, a);
            self.StaticMutRefs.check_impl_item(context, a);
            self.TrivialConstraints.check_impl_item(context, a);
            self.TypeAliasBounds.check_impl_item(context, a);
            self.TypeLimits.check_impl_item(context, a);
            self.UngatedAsyncFnTrackCaller.check_impl_item(context, a);
            self.UnitBindings.check_impl_item(context, a);
            self.UnqualifiedLocalImports.check_impl_item(context, a);
            self.UnreachablePub.check_impl_item(context, a);
            self.UnstableFeatures.check_impl_item(context, a);
            self.UnusedAllocation.check_impl_item(context, a);
            self.UnusedResults.check_impl_item(context, a);
            self.VariantSizeDifferences.check_impl_item(context, a);
        };
    }
    fn check_impl_item_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::ImplItem<'tcx>) {
        {
            self.LintUnvalidated.check_impl_item_post(context, a);
            self.AsmLabels.check_impl_item_post(context, a);
            self.AsyncClosureUsage.check_impl_item_post(context, a);
            self.AsyncFnInTrait.check_impl_item_post(context, a);
            self.CVoidReturns.check_impl_item_post(context, a);
            self.CheckTransmutes.check_impl_item_post(context, a);
            self.DanglingPointers.check_impl_item_post(context, a);
            self.DefaultCouldBeDerived.check_impl_item_post(context, a);
            self.DerefIntoDynSupertrait.check_impl_item_post(context, a);
            self.DerefNullPtr.check_impl_item_post(context, a);
            self.DropForgetUseless.check_impl_item_post(context, a);
            self.DropTraitConstraints.check_impl_item_post(context, a);
            self.EnumIntrinsicsNonEnums.check_impl_item_post(context, a);
            self.ExplicitOutlivesRequirements.check_impl_item_post(context,
                a);
            self.ForLoopsOverFallibles.check_impl_item_post(context, a);
            self.FunctionCastsAsInteger.check_impl_item_post(context, a);
            self.IfLetRescope.check_impl_item_post(context, a);
            self.ImplTraitOvercaptures.check_impl_item_post(context, a);
            self.ImplicitAutorefs.check_impl_item_post(context, a);
            self.ImplicitProvenanceCasts.check_impl_item_post(context, a);
            self.ImproperCTypesLint.check_impl_item_post(context, a);
            self.ImproperGpuKernelLint.check_impl_item_post(context, a);
            self.InteriorMutableConsts.check_impl_item_post(context, a);
            self.InternalEqTraitMethodImpls.check_impl_item_post(context, a);
            self.InvalidAtomicOrdering.check_impl_item_post(context, a);
            self.InvalidFromUtf8.check_impl_item_post(context, a);
            self.InvalidNoMangleItems.check_impl_item_post(context, a);
            self.InvalidReferenceCasting.check_impl_item_post(context, a);
            self.InvalidValue.check_impl_item_post(context, a);
            self.LetUnderscore.check_impl_item_post(context, a);
            self.LifetimeSyntax.check_impl_item_post(context, a);
            self.MapUnitFn.check_impl_item_post(context, a);
            self.MissingCopyImplementations.check_impl_item_post(context, a);
            self.MissingDebugImplementations.check_impl_item_post(context, a);
            self.MissingDoc.check_impl_item_post(context, a);
            self.MultipleSupertraitUpcastable.check_impl_item_post(context,
                a);
            self.MutableTransmutes.check_impl_item_post(context, a);
            self.NonLocalDefinitions.check_impl_item_post(context, a);
            self.NonPanicFmt.check_impl_item_post(context, a);
            self.NonShorthandFieldPatterns.check_impl_item_post(context, a);
            self.NonSnakeCase.check_impl_item_post(context, a);
            self.NonUpperCaseGlobals.check_impl_item_post(context, a);
            self.NoopMethodCall.check_impl_item_post(context, a);
            self.OpaqueHiddenInferredBound.check_impl_item_post(context, a);
            self.PathStatements.check_impl_item_post(context, a);
            self.PtrNullChecks.check_impl_item_post(context, a);
            self.RawBorrowsViaReferences.check_impl_item_post(context, a);
            self.RuntimeSymbols.check_impl_item_post(context, a);
            self.ShadowedIntoIter.check_impl_item_post(context, a);
            self.StaticMutRefs.check_impl_item_post(context, a);
            self.TrivialConstraints.check_impl_item_post(context, a);
            self.TypeAliasBounds.check_impl_item_post(context, a);
            self.TypeLimits.check_impl_item_post(context, a);
            self.UngatedAsyncFnTrackCaller.check_impl_item_post(context, a);
            self.UnitBindings.check_impl_item_post(context, a);
            self.UnqualifiedLocalImports.check_impl_item_post(context, a);
            self.UnreachablePub.check_impl_item_post(context, a);
            self.UnstableFeatures.check_impl_item_post(context, a);
            self.UnusedAllocation.check_impl_item_post(context, a);
            self.UnusedResults.check_impl_item_post(context, a);
            self.VariantSizeDifferences.check_impl_item_post(context, a);
        };
    }
    fn check_field_def(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::FieldDef<'tcx>) {
        {
            self.LintUnvalidated.check_field_def(context, a);
            self.AsmLabels.check_field_def(context, a);
            self.AsyncClosureUsage.check_field_def(context, a);
            self.AsyncFnInTrait.check_field_def(context, a);
            self.CVoidReturns.check_field_def(context, a);
            self.CheckTransmutes.check_field_def(context, a);
            self.DanglingPointers.check_field_def(context, a);
            self.DefaultCouldBeDerived.check_field_def(context, a);
            self.DerefIntoDynSupertrait.check_field_def(context, a);
            self.DerefNullPtr.check_field_def(context, a);
            self.DropForgetUseless.check_field_def(context, a);
            self.DropTraitConstraints.check_field_def(context, a);
            self.EnumIntrinsicsNonEnums.check_field_def(context, a);
            self.ExplicitOutlivesRequirements.check_field_def(context, a);
            self.ForLoopsOverFallibles.check_field_def(context, a);
            self.FunctionCastsAsInteger.check_field_def(context, a);
            self.IfLetRescope.check_field_def(context, a);
            self.ImplTraitOvercaptures.check_field_def(context, a);
            self.ImplicitAutorefs.check_field_def(context, a);
            self.ImplicitProvenanceCasts.check_field_def(context, a);
            self.ImproperCTypesLint.check_field_def(context, a);
            self.ImproperGpuKernelLint.check_field_def(context, a);
            self.InteriorMutableConsts.check_field_def(context, a);
            self.InternalEqTraitMethodImpls.check_field_def(context, a);
            self.InvalidAtomicOrdering.check_field_def(context, a);
            self.InvalidFromUtf8.check_field_def(context, a);
            self.InvalidNoMangleItems.check_field_def(context, a);
            self.InvalidReferenceCasting.check_field_def(context, a);
            self.InvalidValue.check_field_def(context, a);
            self.LetUnderscore.check_field_def(context, a);
            self.LifetimeSyntax.check_field_def(context, a);
            self.MapUnitFn.check_field_def(context, a);
            self.MissingCopyImplementations.check_field_def(context, a);
            self.MissingDebugImplementations.check_field_def(context, a);
            self.MissingDoc.check_field_def(context, a);
            self.MultipleSupertraitUpcastable.check_field_def(context, a);
            self.MutableTransmutes.check_field_def(context, a);
            self.NonLocalDefinitions.check_field_def(context, a);
            self.NonPanicFmt.check_field_def(context, a);
            self.NonShorthandFieldPatterns.check_field_def(context, a);
            self.NonSnakeCase.check_field_def(context, a);
            self.NonUpperCaseGlobals.check_field_def(context, a);
            self.NoopMethodCall.check_field_def(context, a);
            self.OpaqueHiddenInferredBound.check_field_def(context, a);
            self.PathStatements.check_field_def(context, a);
            self.PtrNullChecks.check_field_def(context, a);
            self.RawBorrowsViaReferences.check_field_def(context, a);
            self.RuntimeSymbols.check_field_def(context, a);
            self.ShadowedIntoIter.check_field_def(context, a);
            self.StaticMutRefs.check_field_def(context, a);
            self.TrivialConstraints.check_field_def(context, a);
            self.TypeAliasBounds.check_field_def(context, a);
            self.TypeLimits.check_field_def(context, a);
            self.UngatedAsyncFnTrackCaller.check_field_def(context, a);
            self.UnitBindings.check_field_def(context, a);
            self.UnqualifiedLocalImports.check_field_def(context, a);
            self.UnreachablePub.check_field_def(context, a);
            self.UnstableFeatures.check_field_def(context, a);
            self.UnusedAllocation.check_field_def(context, a);
            self.UnusedResults.check_field_def(context, a);
            self.VariantSizeDifferences.check_field_def(context, a);
        };
    }
    fn check_variant(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Variant<'tcx>) {
        {
            self.LintUnvalidated.check_variant(context, a);
            self.AsmLabels.check_variant(context, a);
            self.AsyncClosureUsage.check_variant(context, a);
            self.AsyncFnInTrait.check_variant(context, a);
            self.CVoidReturns.check_variant(context, a);
            self.CheckTransmutes.check_variant(context, a);
            self.DanglingPointers.check_variant(context, a);
            self.DefaultCouldBeDerived.check_variant(context, a);
            self.DerefIntoDynSupertrait.check_variant(context, a);
            self.DerefNullPtr.check_variant(context, a);
            self.DropForgetUseless.check_variant(context, a);
            self.DropTraitConstraints.check_variant(context, a);
            self.EnumIntrinsicsNonEnums.check_variant(context, a);
            self.ExplicitOutlivesRequirements.check_variant(context, a);
            self.ForLoopsOverFallibles.check_variant(context, a);
            self.FunctionCastsAsInteger.check_variant(context, a);
            self.IfLetRescope.check_variant(context, a);
            self.ImplTraitOvercaptures.check_variant(context, a);
            self.ImplicitAutorefs.check_variant(context, a);
            self.ImplicitProvenanceCasts.check_variant(context, a);
            self.ImproperCTypesLint.check_variant(context, a);
            self.ImproperGpuKernelLint.check_variant(context, a);
            self.InteriorMutableConsts.check_variant(context, a);
            self.InternalEqTraitMethodImpls.check_variant(context, a);
            self.InvalidAtomicOrdering.check_variant(context, a);
            self.InvalidFromUtf8.check_variant(context, a);
            self.InvalidNoMangleItems.check_variant(context, a);
            self.InvalidReferenceCasting.check_variant(context, a);
            self.InvalidValue.check_variant(context, a);
            self.LetUnderscore.check_variant(context, a);
            self.LifetimeSyntax.check_variant(context, a);
            self.MapUnitFn.check_variant(context, a);
            self.MissingCopyImplementations.check_variant(context, a);
            self.MissingDebugImplementations.check_variant(context, a);
            self.MissingDoc.check_variant(context, a);
            self.MultipleSupertraitUpcastable.check_variant(context, a);
            self.MutableTransmutes.check_variant(context, a);
            self.NonLocalDefinitions.check_variant(context, a);
            self.NonPanicFmt.check_variant(context, a);
            self.NonShorthandFieldPatterns.check_variant(context, a);
            self.NonSnakeCase.check_variant(context, a);
            self.NonUpperCaseGlobals.check_variant(context, a);
            self.NoopMethodCall.check_variant(context, a);
            self.OpaqueHiddenInferredBound.check_variant(context, a);
            self.PathStatements.check_variant(context, a);
            self.PtrNullChecks.check_variant(context, a);
            self.RawBorrowsViaReferences.check_variant(context, a);
            self.RuntimeSymbols.check_variant(context, a);
            self.ShadowedIntoIter.check_variant(context, a);
            self.StaticMutRefs.check_variant(context, a);
            self.TrivialConstraints.check_variant(context, a);
            self.TypeAliasBounds.check_variant(context, a);
            self.TypeLimits.check_variant(context, a);
            self.UngatedAsyncFnTrackCaller.check_variant(context, a);
            self.UnitBindings.check_variant(context, a);
            self.UnqualifiedLocalImports.check_variant(context, a);
            self.UnreachablePub.check_variant(context, a);
            self.UnstableFeatures.check_variant(context, a);
            self.UnusedAllocation.check_variant(context, a);
            self.UnusedResults.check_variant(context, a);
            self.VariantSizeDifferences.check_variant(context, a);
        };
    }
    fn check_path(&mut self, context: &crate::LateContext<'tcx>,
        a: &rustc_hir::Path<'tcx>, b: rustc_hir::HirId) {
        {
            self.LintUnvalidated.check_path(context, a, b);
            self.AsmLabels.check_path(context, a, b);
            self.AsyncClosureUsage.check_path(context, a, b);
            self.AsyncFnInTrait.check_path(context, a, b);
            self.CVoidReturns.check_path(context, a, b);
            self.CheckTransmutes.check_path(context, a, b);
            self.DanglingPointers.check_path(context, a, b);
            self.DefaultCouldBeDerived.check_path(context, a, b);
            self.DerefIntoDynSupertrait.check_path(context, a, b);
            self.DerefNullPtr.check_path(context, a, b);
            self.DropForgetUseless.check_path(context, a, b);
            self.DropTraitConstraints.check_path(context, a, b);
            self.EnumIntrinsicsNonEnums.check_path(context, a, b);
            self.ExplicitOutlivesRequirements.check_path(context, a, b);
            self.ForLoopsOverFallibles.check_path(context, a, b);
            self.FunctionCastsAsInteger.check_path(context, a, b);
            self.IfLetRescope.check_path(context, a, b);
            self.ImplTraitOvercaptures.check_path(context, a, b);
            self.ImplicitAutorefs.check_path(context, a, b);
            self.ImplicitProvenanceCasts.check_path(context, a, b);
            self.ImproperCTypesLint.check_path(context, a, b);
            self.ImproperGpuKernelLint.check_path(context, a, b);
            self.InteriorMutableConsts.check_path(context, a, b);
            self.InternalEqTraitMethodImpls.check_path(context, a, b);
            self.InvalidAtomicOrdering.check_path(context, a, b);
            self.InvalidFromUtf8.check_path(context, a, b);
            self.InvalidNoMangleItems.check_path(context, a, b);
            self.InvalidReferenceCasting.check_path(context, a, b);
            self.InvalidValue.check_path(context, a, b);
            self.LetUnderscore.check_path(context, a, b);
            self.LifetimeSyntax.check_path(context, a, b);
            self.MapUnitFn.check_path(context, a, b);
            self.MissingCopyImplementations.check_path(context, a, b);
            self.MissingDebugImplementations.check_path(context, a, b);
            self.MissingDoc.check_path(context, a, b);
            self.MultipleSupertraitUpcastable.check_path(context, a, b);
            self.MutableTransmutes.check_path(context, a, b);
            self.NonLocalDefinitions.check_path(context, a, b);
            self.NonPanicFmt.check_path(context, a, b);
            self.NonShorthandFieldPatterns.check_path(context, a, b);
            self.NonSnakeCase.check_path(context, a, b);
            self.NonUpperCaseGlobals.check_path(context, a, b);
            self.NoopMethodCall.check_path(context, a, b);
            self.OpaqueHiddenInferredBound.check_path(context, a, b);
            self.PathStatements.check_path(context, a, b);
            self.PtrNullChecks.check_path(context, a, b);
            self.RawBorrowsViaReferences.check_path(context, a, b);
            self.RuntimeSymbols.check_path(context, a, b);
            self.ShadowedIntoIter.check_path(context, a, b);
            self.StaticMutRefs.check_path(context, a, b);
            self.TrivialConstraints.check_path(context, a, b);
            self.TypeAliasBounds.check_path(context, a, b);
            self.TypeLimits.check_path(context, a, b);
            self.UngatedAsyncFnTrackCaller.check_path(context, a, b);
            self.UnitBindings.check_path(context, a, b);
            self.UnqualifiedLocalImports.check_path(context, a, b);
            self.UnreachablePub.check_path(context, a, b);
            self.UnstableFeatures.check_path(context, a, b);
            self.UnusedAllocation.check_path(context, a, b);
            self.UnusedResults.check_path(context, a, b);
            self.VariantSizeDifferences.check_path(context, a, b);
        };
    }
    fn check_attribute(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Attribute) {
        {
            self.LintUnvalidated.check_attribute(context, a);
            self.AsmLabels.check_attribute(context, a);
            self.AsyncClosureUsage.check_attribute(context, a);
            self.AsyncFnInTrait.check_attribute(context, a);
            self.CVoidReturns.check_attribute(context, a);
            self.CheckTransmutes.check_attribute(context, a);
            self.DanglingPointers.check_attribute(context, a);
            self.DefaultCouldBeDerived.check_attribute(context, a);
            self.DerefIntoDynSupertrait.check_attribute(context, a);
            self.DerefNullPtr.check_attribute(context, a);
            self.DropForgetUseless.check_attribute(context, a);
            self.DropTraitConstraints.check_attribute(context, a);
            self.EnumIntrinsicsNonEnums.check_attribute(context, a);
            self.ExplicitOutlivesRequirements.check_attribute(context, a);
            self.ForLoopsOverFallibles.check_attribute(context, a);
            self.FunctionCastsAsInteger.check_attribute(context, a);
            self.IfLetRescope.check_attribute(context, a);
            self.ImplTraitOvercaptures.check_attribute(context, a);
            self.ImplicitAutorefs.check_attribute(context, a);
            self.ImplicitProvenanceCasts.check_attribute(context, a);
            self.ImproperCTypesLint.check_attribute(context, a);
            self.ImproperGpuKernelLint.check_attribute(context, a);
            self.InteriorMutableConsts.check_attribute(context, a);
            self.InternalEqTraitMethodImpls.check_attribute(context, a);
            self.InvalidAtomicOrdering.check_attribute(context, a);
            self.InvalidFromUtf8.check_attribute(context, a);
            self.InvalidNoMangleItems.check_attribute(context, a);
            self.InvalidReferenceCasting.check_attribute(context, a);
            self.InvalidValue.check_attribute(context, a);
            self.LetUnderscore.check_attribute(context, a);
            self.LifetimeSyntax.check_attribute(context, a);
            self.MapUnitFn.check_attribute(context, a);
            self.MissingCopyImplementations.check_attribute(context, a);
            self.MissingDebugImplementations.check_attribute(context, a);
            self.MissingDoc.check_attribute(context, a);
            self.MultipleSupertraitUpcastable.check_attribute(context, a);
            self.MutableTransmutes.check_attribute(context, a);
            self.NonLocalDefinitions.check_attribute(context, a);
            self.NonPanicFmt.check_attribute(context, a);
            self.NonShorthandFieldPatterns.check_attribute(context, a);
            self.NonSnakeCase.check_attribute(context, a);
            self.NonUpperCaseGlobals.check_attribute(context, a);
            self.NoopMethodCall.check_attribute(context, a);
            self.OpaqueHiddenInferredBound.check_attribute(context, a);
            self.PathStatements.check_attribute(context, a);
            self.PtrNullChecks.check_attribute(context, a);
            self.RawBorrowsViaReferences.check_attribute(context, a);
            self.RuntimeSymbols.check_attribute(context, a);
            self.ShadowedIntoIter.check_attribute(context, a);
            self.StaticMutRefs.check_attribute(context, a);
            self.TrivialConstraints.check_attribute(context, a);
            self.TypeAliasBounds.check_attribute(context, a);
            self.TypeLimits.check_attribute(context, a);
            self.UngatedAsyncFnTrackCaller.check_attribute(context, a);
            self.UnitBindings.check_attribute(context, a);
            self.UnqualifiedLocalImports.check_attribute(context, a);
            self.UnreachablePub.check_attribute(context, a);
            self.UnstableFeatures.check_attribute(context, a);
            self.UnusedAllocation.check_attribute(context, a);
            self.UnusedResults.check_attribute(context, a);
            self.VariantSizeDifferences.check_attribute(context, a);
        };
    }
    fn check_attributes(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx [rustc_hir::Attribute]) {
        {
            self.LintUnvalidated.check_attributes(context, a);
            self.AsmLabels.check_attributes(context, a);
            self.AsyncClosureUsage.check_attributes(context, a);
            self.AsyncFnInTrait.check_attributes(context, a);
            self.CVoidReturns.check_attributes(context, a);
            self.CheckTransmutes.check_attributes(context, a);
            self.DanglingPointers.check_attributes(context, a);
            self.DefaultCouldBeDerived.check_attributes(context, a);
            self.DerefIntoDynSupertrait.check_attributes(context, a);
            self.DerefNullPtr.check_attributes(context, a);
            self.DropForgetUseless.check_attributes(context, a);
            self.DropTraitConstraints.check_attributes(context, a);
            self.EnumIntrinsicsNonEnums.check_attributes(context, a);
            self.ExplicitOutlivesRequirements.check_attributes(context, a);
            self.ForLoopsOverFallibles.check_attributes(context, a);
            self.FunctionCastsAsInteger.check_attributes(context, a);
            self.IfLetRescope.check_attributes(context, a);
            self.ImplTraitOvercaptures.check_attributes(context, a);
            self.ImplicitAutorefs.check_attributes(context, a);
            self.ImplicitProvenanceCasts.check_attributes(context, a);
            self.ImproperCTypesLint.check_attributes(context, a);
            self.ImproperGpuKernelLint.check_attributes(context, a);
            self.InteriorMutableConsts.check_attributes(context, a);
            self.InternalEqTraitMethodImpls.check_attributes(context, a);
            self.InvalidAtomicOrdering.check_attributes(context, a);
            self.InvalidFromUtf8.check_attributes(context, a);
            self.InvalidNoMangleItems.check_attributes(context, a);
            self.InvalidReferenceCasting.check_attributes(context, a);
            self.InvalidValue.check_attributes(context, a);
            self.LetUnderscore.check_attributes(context, a);
            self.LifetimeSyntax.check_attributes(context, a);
            self.MapUnitFn.check_attributes(context, a);
            self.MissingCopyImplementations.check_attributes(context, a);
            self.MissingDebugImplementations.check_attributes(context, a);
            self.MissingDoc.check_attributes(context, a);
            self.MultipleSupertraitUpcastable.check_attributes(context, a);
            self.MutableTransmutes.check_attributes(context, a);
            self.NonLocalDefinitions.check_attributes(context, a);
            self.NonPanicFmt.check_attributes(context, a);
            self.NonShorthandFieldPatterns.check_attributes(context, a);
            self.NonSnakeCase.check_attributes(context, a);
            self.NonUpperCaseGlobals.check_attributes(context, a);
            self.NoopMethodCall.check_attributes(context, a);
            self.OpaqueHiddenInferredBound.check_attributes(context, a);
            self.PathStatements.check_attributes(context, a);
            self.PtrNullChecks.check_attributes(context, a);
            self.RawBorrowsViaReferences.check_attributes(context, a);
            self.RuntimeSymbols.check_attributes(context, a);
            self.ShadowedIntoIter.check_attributes(context, a);
            self.StaticMutRefs.check_attributes(context, a);
            self.TrivialConstraints.check_attributes(context, a);
            self.TypeAliasBounds.check_attributes(context, a);
            self.TypeLimits.check_attributes(context, a);
            self.UngatedAsyncFnTrackCaller.check_attributes(context, a);
            self.UnitBindings.check_attributes(context, a);
            self.UnqualifiedLocalImports.check_attributes(context, a);
            self.UnreachablePub.check_attributes(context, a);
            self.UnstableFeatures.check_attributes(context, a);
            self.UnusedAllocation.check_attributes(context, a);
            self.UnusedResults.check_attributes(context, a);
            self.VariantSizeDifferences.check_attributes(context, a);
        };
    }
    fn check_attributes_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx [rustc_hir::Attribute]) {
        {
            self.LintUnvalidated.check_attributes_post(context, a);
            self.AsmLabels.check_attributes_post(context, a);
            self.AsyncClosureUsage.check_attributes_post(context, a);
            self.AsyncFnInTrait.check_attributes_post(context, a);
            self.CVoidReturns.check_attributes_post(context, a);
            self.CheckTransmutes.check_attributes_post(context, a);
            self.DanglingPointers.check_attributes_post(context, a);
            self.DefaultCouldBeDerived.check_attributes_post(context, a);
            self.DerefIntoDynSupertrait.check_attributes_post(context, a);
            self.DerefNullPtr.check_attributes_post(context, a);
            self.DropForgetUseless.check_attributes_post(context, a);
            self.DropTraitConstraints.check_attributes_post(context, a);
            self.EnumIntrinsicsNonEnums.check_attributes_post(context, a);
            self.ExplicitOutlivesRequirements.check_attributes_post(context,
                a);
            self.ForLoopsOverFallibles.check_attributes_post(context, a);
            self.FunctionCastsAsInteger.check_attributes_post(context, a);
            self.IfLetRescope.check_attributes_post(context, a);
            self.ImplTraitOvercaptures.check_attributes_post(context, a);
            self.ImplicitAutorefs.check_attributes_post(context, a);
            self.ImplicitProvenanceCasts.check_attributes_post(context, a);
            self.ImproperCTypesLint.check_attributes_post(context, a);
            self.ImproperGpuKernelLint.check_attributes_post(context, a);
            self.InteriorMutableConsts.check_attributes_post(context, a);
            self.InternalEqTraitMethodImpls.check_attributes_post(context, a);
            self.InvalidAtomicOrdering.check_attributes_post(context, a);
            self.InvalidFromUtf8.check_attributes_post(context, a);
            self.InvalidNoMangleItems.check_attributes_post(context, a);
            self.InvalidReferenceCasting.check_attributes_post(context, a);
            self.InvalidValue.check_attributes_post(context, a);
            self.LetUnderscore.check_attributes_post(context, a);
            self.LifetimeSyntax.check_attributes_post(context, a);
            self.MapUnitFn.check_attributes_post(context, a);
            self.MissingCopyImplementations.check_attributes_post(context, a);
            self.MissingDebugImplementations.check_attributes_post(context,
                a);
            self.MissingDoc.check_attributes_post(context, a);
            self.MultipleSupertraitUpcastable.check_attributes_post(context,
                a);
            self.MutableTransmutes.check_attributes_post(context, a);
            self.NonLocalDefinitions.check_attributes_post(context, a);
            self.NonPanicFmt.check_attributes_post(context, a);
            self.NonShorthandFieldPatterns.check_attributes_post(context, a);
            self.NonSnakeCase.check_attributes_post(context, a);
            self.NonUpperCaseGlobals.check_attributes_post(context, a);
            self.NoopMethodCall.check_attributes_post(context, a);
            self.OpaqueHiddenInferredBound.check_attributes_post(context, a);
            self.PathStatements.check_attributes_post(context, a);
            self.PtrNullChecks.check_attributes_post(context, a);
            self.RawBorrowsViaReferences.check_attributes_post(context, a);
            self.RuntimeSymbols.check_attributes_post(context, a);
            self.ShadowedIntoIter.check_attributes_post(context, a);
            self.StaticMutRefs.check_attributes_post(context, a);
            self.TrivialConstraints.check_attributes_post(context, a);
            self.TypeAliasBounds.check_attributes_post(context, a);
            self.TypeLimits.check_attributes_post(context, a);
            self.UngatedAsyncFnTrackCaller.check_attributes_post(context, a);
            self.UnitBindings.check_attributes_post(context, a);
            self.UnqualifiedLocalImports.check_attributes_post(context, a);
            self.UnreachablePub.check_attributes_post(context, a);
            self.UnstableFeatures.check_attributes_post(context, a);
            self.UnusedAllocation.check_attributes_post(context, a);
            self.UnusedResults.check_attributes_post(context, a);
            self.VariantSizeDifferences.check_attributes_post(context, a);
        };
    }
}
#[allow(rustc :: lint_pass_impl_without_macro)]
impl crate::LintPass for BuiltinCombinedLateLintModPass {
    fn name(&self) -> &'static str { "BuiltinCombinedLateLintModPass" }
    fn get_lints(&self) -> LintVec {
        BuiltinCombinedLateLintModPass::lint_vec()
    }
}late_lint_methods!(
218    declare_combined_late_lint_pass,
219    [
220        BuiltinCombinedLateLintModPass,
221        [
222            // Ferrocene addition
223            LintUnvalidated: LintUnvalidated,
224
225            // tidy-alphabetical-start
226            AsmLabels: AsmLabels,
227            AsyncClosureUsage: AsyncClosureUsage,
228            AsyncFnInTrait: AsyncFnInTrait,
229            CVoidReturns: CVoidReturns,
230            CheckTransmutes: CheckTransmutes,
231            DanglingPointers: DanglingPointers,
232            DefaultCouldBeDerived: DefaultCouldBeDerived,
233            DerefIntoDynSupertrait: DerefIntoDynSupertrait,
234            DerefNullPtr: DerefNullPtr,
235            DropForgetUseless: DropForgetUseless,
236            DropTraitConstraints: DropTraitConstraints,
237            EnumIntrinsicsNonEnums: EnumIntrinsicsNonEnums,
238            ExplicitOutlivesRequirements: ExplicitOutlivesRequirements,
239            ForLoopsOverFallibles: ForLoopsOverFallibles,
240            FunctionCastsAsInteger: FunctionCastsAsInteger,
241            IfLetRescope: IfLetRescope::default(),
242            ImplTraitOvercaptures: ImplTraitOvercaptures,
243            ImplicitAutorefs: ImplicitAutorefs,
244            ImplicitProvenanceCasts: ImplicitProvenanceCasts,
245            ImproperCTypesLint: ImproperCTypesLint,
246            ImproperGpuKernelLint: ImproperGpuKernelLint,
247            InteriorMutableConsts: InteriorMutableConsts,
248            InternalEqTraitMethodImpls: InternalEqTraitMethodImpls,
249            InvalidAtomicOrdering: InvalidAtomicOrdering,
250            InvalidFromUtf8: InvalidFromUtf8,
251            InvalidNoMangleItems: InvalidNoMangleItems,
252            InvalidReferenceCasting: InvalidReferenceCasting,
253            InvalidValue: InvalidValue,
254            LetUnderscore: LetUnderscore,
255            LifetimeSyntax: LifetimeSyntax,
256            MapUnitFn: MapUnitFn,
257            // Depends on types used in type definitions
258            MissingCopyImplementations: MissingCopyImplementations,
259            MissingDebugImplementations: MissingDebugImplementations,
260            MissingDoc: MissingDoc,
261            MultipleSupertraitUpcastable: MultipleSupertraitUpcastable,
262            MutableTransmutes: MutableTransmutes,
263            NonLocalDefinitions: NonLocalDefinitions::default(),
264            NonPanicFmt: NonPanicFmt,
265            NonShorthandFieldPatterns: NonShorthandFieldPatterns,
266            NonSnakeCase: NonSnakeCase,
267            NonUpperCaseGlobals: NonUpperCaseGlobals,
268            NoopMethodCall: NoopMethodCall,
269            OpaqueHiddenInferredBound: OpaqueHiddenInferredBound,
270            PathStatements: PathStatements,
271            // Depends on referenced function signatures in expressions
272            PtrNullChecks: PtrNullChecks,
273            RawBorrowsViaReferences: RawBorrowsViaReferences,
274            RuntimeSymbols: RuntimeSymbols,
275            ShadowedIntoIter: ShadowedIntoIter,
276            StaticMutRefs: StaticMutRefs,
277            TrivialConstraints: TrivialConstraints,
278            TypeAliasBounds: TypeAliasBounds,
279            TypeLimits: TypeLimits::new(),
280            UngatedAsyncFnTrackCaller: UngatedAsyncFnTrackCaller,
281            UnitBindings: UnitBindings,
282            UnqualifiedLocalImports: UnqualifiedLocalImports,
283            // Depends on effective visibilities
284            UnreachablePub: UnreachablePub,
285            UnstableFeatures: UnstableFeatures,
286            UnusedAllocation: UnusedAllocation,
287            // Depends on referenced function signatures in expressions
288            UnusedResults: UnusedResults,
289            VariantSizeDifferences: VariantSizeDifferences,
290            // tidy-alphabetical-end
291        ]
292    ]
293);
294
295#[allow(non_snake_case)]
struct InternalCombinedLateLintModPass {
    BadOptAccess: BadOptAccess,
    DefaultHashTypes: DefaultHashTypes,
    DisallowedPassByRef: DisallowedPassByRef,
    QueryStability: QueryStability,
    RustcMustMatchExhaustively: RustcMustMatchExhaustively,
    SpanUseEqCtxt: SpanUseEqCtxt,
    SymbolInternStringLiteral: SymbolInternStringLiteral,
    TyTyKind: TyTyKind,
    TypeIr: TypeIr,
}
impl InternalCombinedLateLintModPass {
    fn new() -> Self {
        Self {
            BadOptAccess: BadOptAccess,
            DefaultHashTypes: DefaultHashTypes,
            DisallowedPassByRef: DisallowedPassByRef,
            QueryStability: QueryStability,
            RustcMustMatchExhaustively: RustcMustMatchExhaustively,
            SpanUseEqCtxt: SpanUseEqCtxt,
            SymbolInternStringLiteral: SymbolInternStringLiteral,
            TyTyKind: TyTyKind,
            TypeIr: TypeIr,
        }
    }
    fn lint_vec() -> crate::LintVec {
        let mut lints = Vec::new();
        lints.extend_from_slice(&BadOptAccess::lint_vec());
        lints.extend_from_slice(&DefaultHashTypes::lint_vec());
        lints.extend_from_slice(&DisallowedPassByRef::lint_vec());
        lints.extend_from_slice(&QueryStability::lint_vec());
        lints.extend_from_slice(&RustcMustMatchExhaustively::lint_vec());
        lints.extend_from_slice(&SpanUseEqCtxt::lint_vec());
        lints.extend_from_slice(&SymbolInternStringLiteral::lint_vec());
        lints.extend_from_slice(&TyTyKind::lint_vec());
        lints.extend_from_slice(&TypeIr::lint_vec());
        lints
    }
}
impl<'tcx> crate::LateLintPass<'tcx> for InternalCombinedLateLintModPass {
    fn check_body(&mut self, context: &crate::LateContext<'tcx>,
        a: &rustc_hir::Body<'tcx>) {
        {
            self.BadOptAccess.check_body(context, a);
            self.DefaultHashTypes.check_body(context, a);
            self.DisallowedPassByRef.check_body(context, a);
            self.QueryStability.check_body(context, a);
            self.RustcMustMatchExhaustively.check_body(context, a);
            self.SpanUseEqCtxt.check_body(context, a);
            self.SymbolInternStringLiteral.check_body(context, a);
            self.TyTyKind.check_body(context, a);
            self.TypeIr.check_body(context, a);
        };
    }
    fn check_body_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &rustc_hir::Body<'tcx>) {
        {
            self.BadOptAccess.check_body_post(context, a);
            self.DefaultHashTypes.check_body_post(context, a);
            self.DisallowedPassByRef.check_body_post(context, a);
            self.QueryStability.check_body_post(context, a);
            self.RustcMustMatchExhaustively.check_body_post(context, a);
            self.SpanUseEqCtxt.check_body_post(context, a);
            self.SymbolInternStringLiteral.check_body_post(context, a);
            self.TyTyKind.check_body_post(context, a);
            self.TypeIr.check_body_post(context, a);
        };
    }
    fn check_crate(&mut self, context: &crate::LateContext<'tcx>) {
        {
            self.BadOptAccess.check_crate(context);
            self.DefaultHashTypes.check_crate(context);
            self.DisallowedPassByRef.check_crate(context);
            self.QueryStability.check_crate(context);
            self.RustcMustMatchExhaustively.check_crate(context);
            self.SpanUseEqCtxt.check_crate(context);
            self.SymbolInternStringLiteral.check_crate(context);
            self.TyTyKind.check_crate(context);
            self.TypeIr.check_crate(context);
        };
    }
    fn check_crate_post(&mut self, context: &crate::LateContext<'tcx>) {
        {
            self.BadOptAccess.check_crate_post(context);
            self.DefaultHashTypes.check_crate_post(context);
            self.DisallowedPassByRef.check_crate_post(context);
            self.QueryStability.check_crate_post(context);
            self.RustcMustMatchExhaustively.check_crate_post(context);
            self.SpanUseEqCtxt.check_crate_post(context);
            self.SymbolInternStringLiteral.check_crate_post(context);
            self.TyTyKind.check_crate_post(context);
            self.TypeIr.check_crate_post(context);
        };
    }
    fn check_mod(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Mod<'tcx>, b: rustc_hir::HirId) {
        {
            self.BadOptAccess.check_mod(context, a, b);
            self.DefaultHashTypes.check_mod(context, a, b);
            self.DisallowedPassByRef.check_mod(context, a, b);
            self.QueryStability.check_mod(context, a, b);
            self.RustcMustMatchExhaustively.check_mod(context, a, b);
            self.SpanUseEqCtxt.check_mod(context, a, b);
            self.SymbolInternStringLiteral.check_mod(context, a, b);
            self.TyTyKind.check_mod(context, a, b);
            self.TypeIr.check_mod(context, a, b);
        };
    }
    fn check_foreign_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::ForeignItem<'tcx>) {
        {
            self.BadOptAccess.check_foreign_item(context, a);
            self.DefaultHashTypes.check_foreign_item(context, a);
            self.DisallowedPassByRef.check_foreign_item(context, a);
            self.QueryStability.check_foreign_item(context, a);
            self.RustcMustMatchExhaustively.check_foreign_item(context, a);
            self.SpanUseEqCtxt.check_foreign_item(context, a);
            self.SymbolInternStringLiteral.check_foreign_item(context, a);
            self.TyTyKind.check_foreign_item(context, a);
            self.TypeIr.check_foreign_item(context, a);
        };
    }
    fn check_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Item<'tcx>) {
        {
            self.BadOptAccess.check_item(context, a);
            self.DefaultHashTypes.check_item(context, a);
            self.DisallowedPassByRef.check_item(context, a);
            self.QueryStability.check_item(context, a);
            self.RustcMustMatchExhaustively.check_item(context, a);
            self.SpanUseEqCtxt.check_item(context, a);
            self.SymbolInternStringLiteral.check_item(context, a);
            self.TyTyKind.check_item(context, a);
            self.TypeIr.check_item(context, a);
        };
    }
    fn check_item_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Item<'tcx>) {
        {
            self.BadOptAccess.check_item_post(context, a);
            self.DefaultHashTypes.check_item_post(context, a);
            self.DisallowedPassByRef.check_item_post(context, a);
            self.QueryStability.check_item_post(context, a);
            self.RustcMustMatchExhaustively.check_item_post(context, a);
            self.SpanUseEqCtxt.check_item_post(context, a);
            self.SymbolInternStringLiteral.check_item_post(context, a);
            self.TyTyKind.check_item_post(context, a);
            self.TypeIr.check_item_post(context, a);
        };
    }
    fn check_local(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::LetStmt<'tcx>) {
        {
            self.BadOptAccess.check_local(context, a);
            self.DefaultHashTypes.check_local(context, a);
            self.DisallowedPassByRef.check_local(context, a);
            self.QueryStability.check_local(context, a);
            self.RustcMustMatchExhaustively.check_local(context, a);
            self.SpanUseEqCtxt.check_local(context, a);
            self.SymbolInternStringLiteral.check_local(context, a);
            self.TyTyKind.check_local(context, a);
            self.TypeIr.check_local(context, a);
        };
    }
    fn check_block(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Block<'tcx>) {
        {
            self.BadOptAccess.check_block(context, a);
            self.DefaultHashTypes.check_block(context, a);
            self.DisallowedPassByRef.check_block(context, a);
            self.QueryStability.check_block(context, a);
            self.RustcMustMatchExhaustively.check_block(context, a);
            self.SpanUseEqCtxt.check_block(context, a);
            self.SymbolInternStringLiteral.check_block(context, a);
            self.TyTyKind.check_block(context, a);
            self.TypeIr.check_block(context, a);
        };
    }
    fn check_block_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Block<'tcx>) {
        {
            self.BadOptAccess.check_block_post(context, a);
            self.DefaultHashTypes.check_block_post(context, a);
            self.DisallowedPassByRef.check_block_post(context, a);
            self.QueryStability.check_block_post(context, a);
            self.RustcMustMatchExhaustively.check_block_post(context, a);
            self.SpanUseEqCtxt.check_block_post(context, a);
            self.SymbolInternStringLiteral.check_block_post(context, a);
            self.TyTyKind.check_block_post(context, a);
            self.TypeIr.check_block_post(context, a);
        };
    }
    fn check_stmt(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Stmt<'tcx>) {
        {
            self.BadOptAccess.check_stmt(context, a);
            self.DefaultHashTypes.check_stmt(context, a);
            self.DisallowedPassByRef.check_stmt(context, a);
            self.QueryStability.check_stmt(context, a);
            self.RustcMustMatchExhaustively.check_stmt(context, a);
            self.SpanUseEqCtxt.check_stmt(context, a);
            self.SymbolInternStringLiteral.check_stmt(context, a);
            self.TyTyKind.check_stmt(context, a);
            self.TypeIr.check_stmt(context, a);
        };
    }
    fn check_arm(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Arm<'tcx>) {
        {
            self.BadOptAccess.check_arm(context, a);
            self.DefaultHashTypes.check_arm(context, a);
            self.DisallowedPassByRef.check_arm(context, a);
            self.QueryStability.check_arm(context, a);
            self.RustcMustMatchExhaustively.check_arm(context, a);
            self.SpanUseEqCtxt.check_arm(context, a);
            self.SymbolInternStringLiteral.check_arm(context, a);
            self.TyTyKind.check_arm(context, a);
            self.TypeIr.check_arm(context, a);
        };
    }
    fn check_pat(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Pat<'tcx>) {
        {
            self.BadOptAccess.check_pat(context, a);
            self.DefaultHashTypes.check_pat(context, a);
            self.DisallowedPassByRef.check_pat(context, a);
            self.QueryStability.check_pat(context, a);
            self.RustcMustMatchExhaustively.check_pat(context, a);
            self.SpanUseEqCtxt.check_pat(context, a);
            self.SymbolInternStringLiteral.check_pat(context, a);
            self.TyTyKind.check_pat(context, a);
            self.TypeIr.check_pat(context, a);
        };
    }
    fn check_lit(&mut self, context: &crate::LateContext<'tcx>,
        hir_id: rustc_hir::HirId, a: rustc_hir::Lit, is_negated_pat: bool) {
        {
            self.BadOptAccess.check_lit(context, hir_id, a, is_negated_pat);
            self.DefaultHashTypes.check_lit(context, hir_id, a,
                is_negated_pat);
            self.DisallowedPassByRef.check_lit(context, hir_id, a,
                is_negated_pat);
            self.QueryStability.check_lit(context, hir_id, a, is_negated_pat);
            self.RustcMustMatchExhaustively.check_lit(context, hir_id, a,
                is_negated_pat);
            self.SpanUseEqCtxt.check_lit(context, hir_id, a, is_negated_pat);
            self.SymbolInternStringLiteral.check_lit(context, hir_id, a,
                is_negated_pat);
            self.TyTyKind.check_lit(context, hir_id, a, is_negated_pat);
            self.TypeIr.check_lit(context, hir_id, a, is_negated_pat);
        };
    }
    fn check_expr(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Expr<'tcx>) {
        {
            self.BadOptAccess.check_expr(context, a);
            self.DefaultHashTypes.check_expr(context, a);
            self.DisallowedPassByRef.check_expr(context, a);
            self.QueryStability.check_expr(context, a);
            self.RustcMustMatchExhaustively.check_expr(context, a);
            self.SpanUseEqCtxt.check_expr(context, a);
            self.SymbolInternStringLiteral.check_expr(context, a);
            self.TyTyKind.check_expr(context, a);
            self.TypeIr.check_expr(context, a);
        };
    }
    fn check_expr_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Expr<'tcx>) {
        {
            self.BadOptAccess.check_expr_post(context, a);
            self.DefaultHashTypes.check_expr_post(context, a);
            self.DisallowedPassByRef.check_expr_post(context, a);
            self.QueryStability.check_expr_post(context, a);
            self.RustcMustMatchExhaustively.check_expr_post(context, a);
            self.SpanUseEqCtxt.check_expr_post(context, a);
            self.SymbolInternStringLiteral.check_expr_post(context, a);
            self.TyTyKind.check_expr_post(context, a);
            self.TypeIr.check_expr_post(context, a);
        };
    }
    fn check_ty(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Ty<'tcx, rustc_hir::AmbigArg>) {
        {
            self.BadOptAccess.check_ty(context, a);
            self.DefaultHashTypes.check_ty(context, a);
            self.DisallowedPassByRef.check_ty(context, a);
            self.QueryStability.check_ty(context, a);
            self.RustcMustMatchExhaustively.check_ty(context, a);
            self.SpanUseEqCtxt.check_ty(context, a);
            self.SymbolInternStringLiteral.check_ty(context, a);
            self.TyTyKind.check_ty(context, a);
            self.TypeIr.check_ty(context, a);
        };
    }
    fn check_generic_param(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::GenericParam<'tcx>) {
        {
            self.BadOptAccess.check_generic_param(context, a);
            self.DefaultHashTypes.check_generic_param(context, a);
            self.DisallowedPassByRef.check_generic_param(context, a);
            self.QueryStability.check_generic_param(context, a);
            self.RustcMustMatchExhaustively.check_generic_param(context, a);
            self.SpanUseEqCtxt.check_generic_param(context, a);
            self.SymbolInternStringLiteral.check_generic_param(context, a);
            self.TyTyKind.check_generic_param(context, a);
            self.TypeIr.check_generic_param(context, a);
        };
    }
    fn check_generics(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Generics<'tcx>) {
        {
            self.BadOptAccess.check_generics(context, a);
            self.DefaultHashTypes.check_generics(context, a);
            self.DisallowedPassByRef.check_generics(context, a);
            self.QueryStability.check_generics(context, a);
            self.RustcMustMatchExhaustively.check_generics(context, a);
            self.SpanUseEqCtxt.check_generics(context, a);
            self.SymbolInternStringLiteral.check_generics(context, a);
            self.TyTyKind.check_generics(context, a);
            self.TypeIr.check_generics(context, a);
        };
    }
    fn check_poly_trait_ref(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::PolyTraitRef<'tcx>) {
        {
            self.BadOptAccess.check_poly_trait_ref(context, a);
            self.DefaultHashTypes.check_poly_trait_ref(context, a);
            self.DisallowedPassByRef.check_poly_trait_ref(context, a);
            self.QueryStability.check_poly_trait_ref(context, a);
            self.RustcMustMatchExhaustively.check_poly_trait_ref(context, a);
            self.SpanUseEqCtxt.check_poly_trait_ref(context, a);
            self.SymbolInternStringLiteral.check_poly_trait_ref(context, a);
            self.TyTyKind.check_poly_trait_ref(context, a);
            self.TypeIr.check_poly_trait_ref(context, a);
        };
    }
    fn check_fn(&mut self, context: &crate::LateContext<'tcx>,
        a: rustc_hir::intravisit::FnKind<'tcx>,
        b: &'tcx rustc_hir::FnDecl<'tcx>, c: &'tcx rustc_hir::Body<'tcx>,
        d: rustc_span::Span, e: rustc_span::def_id::LocalDefId) {
        {
            self.BadOptAccess.check_fn(context, a, b, c, d, e);
            self.DefaultHashTypes.check_fn(context, a, b, c, d, e);
            self.DisallowedPassByRef.check_fn(context, a, b, c, d, e);
            self.QueryStability.check_fn(context, a, b, c, d, e);
            self.RustcMustMatchExhaustively.check_fn(context, a, b, c, d, e);
            self.SpanUseEqCtxt.check_fn(context, a, b, c, d, e);
            self.SymbolInternStringLiteral.check_fn(context, a, b, c, d, e);
            self.TyTyKind.check_fn(context, a, b, c, d, e);
            self.TypeIr.check_fn(context, a, b, c, d, e);
        };
    }
    fn check_trait_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::TraitItem<'tcx>) {
        {
            self.BadOptAccess.check_trait_item(context, a);
            self.DefaultHashTypes.check_trait_item(context, a);
            self.DisallowedPassByRef.check_trait_item(context, a);
            self.QueryStability.check_trait_item(context, a);
            self.RustcMustMatchExhaustively.check_trait_item(context, a);
            self.SpanUseEqCtxt.check_trait_item(context, a);
            self.SymbolInternStringLiteral.check_trait_item(context, a);
            self.TyTyKind.check_trait_item(context, a);
            self.TypeIr.check_trait_item(context, a);
        };
    }
    fn check_impl_item(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::ImplItem<'tcx>) {
        {
            self.BadOptAccess.check_impl_item(context, a);
            self.DefaultHashTypes.check_impl_item(context, a);
            self.DisallowedPassByRef.check_impl_item(context, a);
            self.QueryStability.check_impl_item(context, a);
            self.RustcMustMatchExhaustively.check_impl_item(context, a);
            self.SpanUseEqCtxt.check_impl_item(context, a);
            self.SymbolInternStringLiteral.check_impl_item(context, a);
            self.TyTyKind.check_impl_item(context, a);
            self.TypeIr.check_impl_item(context, a);
        };
    }
    fn check_impl_item_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::ImplItem<'tcx>) {
        {
            self.BadOptAccess.check_impl_item_post(context, a);
            self.DefaultHashTypes.check_impl_item_post(context, a);
            self.DisallowedPassByRef.check_impl_item_post(context, a);
            self.QueryStability.check_impl_item_post(context, a);
            self.RustcMustMatchExhaustively.check_impl_item_post(context, a);
            self.SpanUseEqCtxt.check_impl_item_post(context, a);
            self.SymbolInternStringLiteral.check_impl_item_post(context, a);
            self.TyTyKind.check_impl_item_post(context, a);
            self.TypeIr.check_impl_item_post(context, a);
        };
    }
    fn check_field_def(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::FieldDef<'tcx>) {
        {
            self.BadOptAccess.check_field_def(context, a);
            self.DefaultHashTypes.check_field_def(context, a);
            self.DisallowedPassByRef.check_field_def(context, a);
            self.QueryStability.check_field_def(context, a);
            self.RustcMustMatchExhaustively.check_field_def(context, a);
            self.SpanUseEqCtxt.check_field_def(context, a);
            self.SymbolInternStringLiteral.check_field_def(context, a);
            self.TyTyKind.check_field_def(context, a);
            self.TypeIr.check_field_def(context, a);
        };
    }
    fn check_variant(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Variant<'tcx>) {
        {
            self.BadOptAccess.check_variant(context, a);
            self.DefaultHashTypes.check_variant(context, a);
            self.DisallowedPassByRef.check_variant(context, a);
            self.QueryStability.check_variant(context, a);
            self.RustcMustMatchExhaustively.check_variant(context, a);
            self.SpanUseEqCtxt.check_variant(context, a);
            self.SymbolInternStringLiteral.check_variant(context, a);
            self.TyTyKind.check_variant(context, a);
            self.TypeIr.check_variant(context, a);
        };
    }
    fn check_path(&mut self, context: &crate::LateContext<'tcx>,
        a: &rustc_hir::Path<'tcx>, b: rustc_hir::HirId) {
        {
            self.BadOptAccess.check_path(context, a, b);
            self.DefaultHashTypes.check_path(context, a, b);
            self.DisallowedPassByRef.check_path(context, a, b);
            self.QueryStability.check_path(context, a, b);
            self.RustcMustMatchExhaustively.check_path(context, a, b);
            self.SpanUseEqCtxt.check_path(context, a, b);
            self.SymbolInternStringLiteral.check_path(context, a, b);
            self.TyTyKind.check_path(context, a, b);
            self.TypeIr.check_path(context, a, b);
        };
    }
    fn check_attribute(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx rustc_hir::Attribute) {
        {
            self.BadOptAccess.check_attribute(context, a);
            self.DefaultHashTypes.check_attribute(context, a);
            self.DisallowedPassByRef.check_attribute(context, a);
            self.QueryStability.check_attribute(context, a);
            self.RustcMustMatchExhaustively.check_attribute(context, a);
            self.SpanUseEqCtxt.check_attribute(context, a);
            self.SymbolInternStringLiteral.check_attribute(context, a);
            self.TyTyKind.check_attribute(context, a);
            self.TypeIr.check_attribute(context, a);
        };
    }
    fn check_attributes(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx [rustc_hir::Attribute]) {
        {
            self.BadOptAccess.check_attributes(context, a);
            self.DefaultHashTypes.check_attributes(context, a);
            self.DisallowedPassByRef.check_attributes(context, a);
            self.QueryStability.check_attributes(context, a);
            self.RustcMustMatchExhaustively.check_attributes(context, a);
            self.SpanUseEqCtxt.check_attributes(context, a);
            self.SymbolInternStringLiteral.check_attributes(context, a);
            self.TyTyKind.check_attributes(context, a);
            self.TypeIr.check_attributes(context, a);
        };
    }
    fn check_attributes_post(&mut self, context: &crate::LateContext<'tcx>,
        a: &'tcx [rustc_hir::Attribute]) {
        {
            self.BadOptAccess.check_attributes_post(context, a);
            self.DefaultHashTypes.check_attributes_post(context, a);
            self.DisallowedPassByRef.check_attributes_post(context, a);
            self.QueryStability.check_attributes_post(context, a);
            self.RustcMustMatchExhaustively.check_attributes_post(context, a);
            self.SpanUseEqCtxt.check_attributes_post(context, a);
            self.SymbolInternStringLiteral.check_attributes_post(context, a);
            self.TyTyKind.check_attributes_post(context, a);
            self.TypeIr.check_attributes_post(context, a);
        };
    }
}
#[allow(rustc :: lint_pass_impl_without_macro)]
impl crate::LintPass for InternalCombinedLateLintModPass {
    fn name(&self) -> &'static str { "InternalCombinedLateLintModPass" }
    fn get_lints(&self) -> LintVec {
        InternalCombinedLateLintModPass::lint_vec()
    }
}late_lint_methods!(
296    declare_combined_late_lint_pass,
297    [
298        InternalCombinedLateLintModPass,
299        [
300            // tidy-alphabetical-start
301            BadOptAccess: BadOptAccess,
302            DefaultHashTypes: DefaultHashTypes,
303            DisallowedPassByRef: DisallowedPassByRef,
304            QueryStability: QueryStability,
305            RustcMustMatchExhaustively: RustcMustMatchExhaustively,
306            SpanUseEqCtxt: SpanUseEqCtxt,
307            SymbolInternStringLiteral: SymbolInternStringLiteral,
308            TyTyKind: TyTyKind,
309            TypeIr: TypeIr,
310            // tidy-alphabetical-end
311        ]
312    ]
313);
314
315pub fn new_lint_store(internal_lints: bool) -> LintStore {
316    let mut lint_store = LintStore::new();
317
318    register_builtins(&mut lint_store);
319    if internal_lints {
320        register_internals(&mut lint_store);
321    }
322
323    lint_store
324}
325
326/// Tell the `LintStore` about all the built-in lints (the ones
327/// defined in this crate and the ones defined in
328/// `rustc_session::lint::builtin`).
329fn register_builtins(store: &mut LintStore) {
330    macro_rules! add_lint_group {
331        ($name:expr, $($lint:ident),*) => (
332            store.register_group(false, $name, None, vec![$(LintId::of($lint)),*]);
333        )
334    }
335
336    store.register_lints(&BuiltinCombinedPreExpansionLintPass::lint_vec());
337    store.register_lints(&BuiltinCombinedEarlyLintPass::lint_vec());
338    store.register_lints(&BuiltinCombinedLateLintModPass::lint_vec());
339    store.register_lints(&foreign_modules::lint_vec());
340    store.register_lints(&hardwired::lint_vec());
341
342    store.register_group(false, "nonstandard_style", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(NON_CAMEL_CASE_TYPES), LintId::of(NON_SNAKE_CASE),
                    LintId::of(NON_UPPER_CASE_GLOBALS)])));add_lint_group!(
343        "nonstandard_style",
344        NON_CAMEL_CASE_TYPES,
345        NON_SNAKE_CASE,
346        NON_UPPER_CASE_GLOBALS
347    );
348
349    store.register_group(false, "unused", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(UNUSED_IMPORTS), LintId::of(UNUSED_VARIABLES),
                    LintId::of(UNUSED_VISIBILITIES),
                    LintId::of(UNUSED_ASSIGNMENTS), LintId::of(DEAD_CODE),
                    LintId::of(UNUSED_MUT),
                    LintId::of(UNREACHABLE_CFG_SELECT_PREDICATES),
                    LintId::of(UNREACHABLE_CODE),
                    LintId::of(UNREACHABLE_PATTERNS),
                    LintId::of(UNUSED_MUST_USE), LintId::of(UNUSED_UNSAFE),
                    LintId::of(PATH_STATEMENTS), LintId::of(UNUSED_ATTRIBUTES),
                    LintId::of(UNUSED_MACROS), LintId::of(UNUSED_MACRO_RULES),
                    LintId::of(UNUSED_ALLOCATION),
                    LintId::of(UNUSED_DOC_COMMENTS),
                    LintId::of(UNUSED_EXTERN_CRATES),
                    LintId::of(UNUSED_FEATURES), LintId::of(UNUSED_LABELS),
                    LintId::of(UNUSED_PARENS), LintId::of(UNUSED_BRACES),
                    LintId::of(REDUNDANT_SEMICOLONS),
                    LintId::of(MAP_UNIT_FN)])));add_lint_group!(
350        "unused",
351        UNUSED_IMPORTS,
352        UNUSED_VARIABLES,
353        UNUSED_VISIBILITIES,
354        UNUSED_ASSIGNMENTS,
355        DEAD_CODE,
356        UNUSED_MUT,
357        UNREACHABLE_CFG_SELECT_PREDICATES,
358        UNREACHABLE_CODE,
359        UNREACHABLE_PATTERNS,
360        UNUSED_MUST_USE,
361        UNUSED_UNSAFE,
362        PATH_STATEMENTS,
363        UNUSED_ATTRIBUTES,
364        UNUSED_MACROS,
365        UNUSED_MACRO_RULES,
366        UNUSED_ALLOCATION,
367        UNUSED_DOC_COMMENTS,
368        UNUSED_EXTERN_CRATES,
369        UNUSED_FEATURES,
370        UNUSED_LABELS,
371        UNUSED_PARENS,
372        UNUSED_BRACES,
373        REDUNDANT_SEMICOLONS,
374        MAP_UNIT_FN
375    );
376
377    store.register_group(false, "let_underscore", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(LET_UNDERSCORE_DROP),
                    LintId::of(LET_UNDERSCORE_LOCK)])));add_lint_group!("let_underscore", LET_UNDERSCORE_DROP, LET_UNDERSCORE_LOCK);
378
379    store.register_group(false, "rust_2018_idioms", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(BARE_TRAIT_OBJECTS), LintId::of(UNUSED_EXTERN_CRATES),
                    LintId::of(ELLIPSIS_INCLUSIVE_RANGE_PATTERNS),
                    LintId::of(ELIDED_LIFETIMES_IN_PATHS),
                    LintId::of(EXPLICIT_OUTLIVES_REQUIREMENTS)])));add_lint_group!(
380        "rust_2018_idioms",
381        BARE_TRAIT_OBJECTS,
382        UNUSED_EXTERN_CRATES,
383        ELLIPSIS_INCLUSIVE_RANGE_PATTERNS,
384        ELIDED_LIFETIMES_IN_PATHS,
385        EXPLICIT_OUTLIVES_REQUIREMENTS // FIXME(#52665, #47816) not always applicable and not all
386                                       // macros are ready for this yet.
387                                       // UNREACHABLE_PUB,
388
389                                       // FIXME macro crates are not up for this yet, too much
390                                       // breakage is seen if we try to encourage this lint.
391                                       // MACRO_USE_EXTERN_CRATE
392    );
393
394    store.register_group(false, "keyword_idents", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(KEYWORD_IDENTS_2018),
                    LintId::of(KEYWORD_IDENTS_2024)])));add_lint_group!("keyword_idents", KEYWORD_IDENTS_2018, KEYWORD_IDENTS_2024);
395
396    store.register_group(false, "refining_impl_trait", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(REFINING_IMPL_TRAIT_REACHABLE),
                    LintId::of(REFINING_IMPL_TRAIT_INTERNAL)])));add_lint_group!(
397        "refining_impl_trait",
398        REFINING_IMPL_TRAIT_REACHABLE,
399        REFINING_IMPL_TRAIT_INTERNAL
400    );
401
402    store.register_group(false, "deprecated_safe", None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(DEPRECATED_SAFE_2024)])));add_lint_group!("deprecated_safe", DEPRECATED_SAFE_2024);
403
404    store.register_group(false, "unknown_or_malformed_diagnostic_attributes",
    None,
    ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
            [LintId::of(MALFORMED_DIAGNOSTIC_ATTRIBUTES),
                    LintId::of(MALFORMED_DIAGNOSTIC_FORMAT_LITERALS),
                    LintId::of(MISPLACED_DIAGNOSTIC_ATTRIBUTES),
                    LintId::of(UNKNOWN_DIAGNOSTIC_ATTRIBUTES)])));add_lint_group!(
405        "unknown_or_malformed_diagnostic_attributes",
406        MALFORMED_DIAGNOSTIC_ATTRIBUTES,
407        MALFORMED_DIAGNOSTIC_FORMAT_LITERALS,
408        MISPLACED_DIAGNOSTIC_ATTRIBUTES,
409        UNKNOWN_DIAGNOSTIC_ATTRIBUTES
410    );
411
412    // Register renamed and removed lints.
413    store.register_renamed("single_use_lifetime", "single_use_lifetimes");
414    store.register_renamed("elided_lifetime_in_path", "elided_lifetimes_in_paths");
415    store.register_renamed("bare_trait_object", "bare_trait_objects");
416    store.register_renamed("unstable_name_collision", "unstable_name_collisions");
417    store.register_renamed("unused_doc_comment", "unused_doc_comments");
418    store.register_renamed("async_idents", "keyword_idents_2018");
419    store.register_renamed("exceeding_bitshifts", "arithmetic_overflow");
420    store.register_renamed("redundant_semicolon", "redundant_semicolons");
421    store.register_renamed("overlapping_patterns", "overlapping_range_endpoints");
422    store.register_renamed("disjoint_capture_migration", "rust_2021_incompatible_closure_captures");
423    store.register_renamed("or_patterns_back_compat", "rust_2021_incompatible_or_patterns");
424    store.register_renamed("non_fmt_panic", "non_fmt_panics");
425    store.register_renamed("unused_tuple_struct_fields", "dead_code");
426    store.register_renamed("static_mut_ref", "static_mut_refs");
427    store.register_renamed("temporary_cstring_as_ptr", "dangling_pointers_from_temporaries");
428    store.register_renamed("elided_named_lifetimes", "mismatched_lifetime_syntaxes");
429    store.register_renamed("fuzzy_provenance_casts", "implicit_provenance_casts");
430    store.register_renamed("lossy_provenance_casts", "implicit_provenance_casts");
431
432    // These were moved to tool lints, but rustc still sees them when compiling normally, before
433    // tool lints are registered, so `check_tool_name_for_backwards_compat` doesn't work. Use
434    // `register_removed` explicitly.
435    const RUSTDOC_LINTS: &[&str] = &[
436        "broken_intra_doc_links",
437        "private_intra_doc_links",
438        "missing_crate_level_docs",
439        "missing_doc_code_examples",
440        "private_doc_tests",
441        "invalid_codeblock_attributes",
442        "invalid_html_tags",
443        "non_autolinks",
444    ];
445    for rustdoc_lint in RUSTDOC_LINTS {
446        store.register_ignored(rustdoc_lint);
447    }
448    store.register_removed(
449        "intra_doc_link_resolution_failure",
450        "use `rustdoc::broken_intra_doc_links` instead",
451    );
452    store.register_removed("rustdoc", "use `rustdoc::all` instead");
453
454    store.register_removed("unknown_features", "replaced by an error");
455    store.register_removed("unsigned_negation", "replaced by negate_unsigned feature gate");
456    store.register_removed("negate_unsigned", "cast a signed value instead");
457    store.register_removed("raw_pointer_derive", "using derive with raw pointers is ok");
458    // Register lint group aliases.
459    store.register_group_alias("nonstandard_style", "bad_style");
460    // This was renamed to `raw_pointer_derive`, which was then removed,
461    // so it is also considered removed.
462    store.register_removed("raw_pointer_deriving", "using derive with raw pointers is ok");
463    store.register_removed("drop_with_repr_extern", "drop flags have been removed");
464    store.register_removed("fat_ptr_transmutes", "was accidentally removed back in 2014");
465    store.register_removed("deprecated_attr", "use `deprecated` instead");
466    store.register_removed(
467        "transmute_from_fn_item_types",
468        "always cast functions before transmuting them",
469    );
470    store.register_removed(
471        "hr_lifetime_in_assoc_type",
472        "converted into hard error, see issue #33685 \
473         <https://github.com/rust-lang/rust/issues/33685> for more information",
474    );
475    store.register_removed(
476        "inaccessible_extern_crate",
477        "converted into hard error, see issue #36886 \
478         <https://github.com/rust-lang/rust/issues/36886> for more information",
479    );
480    store.register_removed(
481        "super_or_self_in_global_path",
482        "converted into hard error, see issue #36888 \
483         <https://github.com/rust-lang/rust/issues/36888> for more information",
484    );
485    store.register_removed(
486        "overlapping_inherent_impls",
487        "converted into hard error, see issue #36889 \
488         <https://github.com/rust-lang/rust/issues/36889> for more information",
489    );
490    store.register_removed(
491        "illegal_floating_point_constant_pattern",
492        "converted into hard error, see issue #36890 \
493         <https://github.com/rust-lang/rust/issues/36890> for more information",
494    );
495    store.register_removed(
496        "illegal_struct_or_enum_constant_pattern",
497        "converted into hard error, see issue #36891 \
498         <https://github.com/rust-lang/rust/issues/36891> for more information",
499    );
500    store.register_removed(
501        "lifetime_underscore",
502        "converted into hard error, see issue #36892 \
503         <https://github.com/rust-lang/rust/issues/36892> for more information",
504    );
505    store.register_removed(
506        "extra_requirement_in_impl",
507        "converted into hard error, see issue #37166 \
508         <https://github.com/rust-lang/rust/issues/37166> for more information",
509    );
510    store.register_removed(
511        "legacy_imports",
512        "converted into hard error, see issue #38260 \
513         <https://github.com/rust-lang/rust/issues/38260> for more information",
514    );
515    store.register_removed(
516        "coerce_never",
517        "converted into hard error, see issue #48950 \
518         <https://github.com/rust-lang/rust/issues/48950> for more information",
519    );
520    store.register_removed(
521        "resolve_trait_on_defaulted_unit",
522        "converted into hard error, see issue #48950 \
523         <https://github.com/rust-lang/rust/issues/48950> for more information",
524    );
525    store.register_removed(
526        "private_no_mangle_fns",
527        "no longer a warning, `#[no_mangle]` functions always exported",
528    );
529    store.register_removed(
530        "private_no_mangle_statics",
531        "no longer a warning, `#[no_mangle]` statics always exported",
532    );
533    store.register_removed("bad_repr", "replaced with a generic attribute input check");
534    store.register_removed(
535        "duplicate_matcher_binding_name",
536        "converted into hard error, see issue #57742 \
537         <https://github.com/rust-lang/rust/issues/57742> for more information",
538    );
539    store.register_removed(
540        "incoherent_fundamental_impls",
541        "converted into hard error, see issue #46205 \
542         <https://github.com/rust-lang/rust/issues/46205> for more information",
543    );
544    store.register_removed(
545        "legacy_constructor_visibility",
546        "converted into hard error, see issue #39207 \
547         <https://github.com/rust-lang/rust/issues/39207> for more information",
548    );
549    store.register_removed(
550        "legacy_directory_ownership",
551        "converted into hard error, see issue #37872 \
552         <https://github.com/rust-lang/rust/issues/37872> for more information",
553    );
554    store.register_removed(
555        "safe_extern_statics",
556        "converted into hard error, see issue #36247 \
557         <https://github.com/rust-lang/rust/issues/36247> for more information",
558    );
559    store.register_removed(
560        "parenthesized_params_in_types_and_modules",
561        "converted into hard error, see issue #42238 \
562         <https://github.com/rust-lang/rust/issues/42238> for more information",
563    );
564    store.register_removed(
565        "duplicate_macro_exports",
566        "converted into hard error, see issue #35896 \
567         <https://github.com/rust-lang/rust/issues/35896> for more information",
568    );
569    store.register_removed(
570        "nested_impl_trait",
571        "converted into hard error, see issue #59014 \
572         <https://github.com/rust-lang/rust/issues/59014> for more information",
573    );
574    store.register_removed("plugin_as_library", "plugins have been deprecated and retired");
575    store.register_removed(
576        "unsupported_naked_functions",
577        "converted into hard error, see RFC 2972 \
578         <https://github.com/rust-lang/rfcs/blob/master/text/2972-constrained-naked.md> for more information",
579    );
580    store.register_removed(
581        "mutable_borrow_reservation_conflict",
582        "now allowed, see issue #59159 \
583         <https://github.com/rust-lang/rust/issues/59159> for more information",
584    );
585    store.register_removed(
586        "const_err",
587        "converted into hard error, see issue #71800 \
588         <https://github.com/rust-lang/rust/issues/71800> for more information",
589    );
590    store.register_removed(
591        "safe_packed_borrows",
592        "converted into hard error, see issue #82523 \
593         <https://github.com/rust-lang/rust/issues/82523> for more information",
594    );
595    store.register_removed(
596        "unaligned_references",
597        "converted into hard error, see issue #82523 \
598         <https://github.com/rust-lang/rust/issues/82523> for more information",
599    );
600    store.register_removed(
601        "private_in_public",
602        "replaced with another group of lints, see RFC \
603         <https://rust-lang.github.io/rfcs/2145-type-privacy.html> for more information",
604    );
605    store.register_removed(
606        "invalid_alignment",
607        "converted into hard error, see PR #104616 \
608         <https://github.com/rust-lang/rust/pull/104616> for more information",
609    );
610    store.register_removed(
611        "implied_bounds_entailment",
612        "converted into hard error, see PR #117984 \
613        <https://github.com/rust-lang/rust/pull/117984> for more information",
614    );
615    store.register_removed(
616        "coinductive_overlap_in_coherence",
617        "converted into hard error, see PR #118649 \
618         <https://github.com/rust-lang/rust/pull/118649> for more information",
619    );
620    store.register_removed(
621        "illegal_floating_point_literal_pattern",
622        "no longer a warning, float patterns behave the same as `==`",
623    );
624    store.register_removed(
625        "nontrivial_structural_match",
626        "no longer needed, see RFC #3535 \
627         <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
628    );
629    store.register_removed(
630        "suspicious_auto_trait_impls",
631        "no longer needed, see issue #93367 \
632         <https://github.com/rust-lang/rust/issues/93367> for more information",
633    );
634    store.register_removed(
635        "const_patterns_without_partial_eq",
636        "converted into hard error, see RFC #3535 \
637         <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
638    );
639    store.register_removed(
640        "indirect_structural_match",
641        "converted into hard error, see RFC #3535 \
642         <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
643    );
644    store.register_removed(
645        "deprecated_cfg_attr_crate_type_name",
646        "converted into hard error, see issue #91632 \
647         <https://github.com/rust-lang/rust/issues/91632> for more information",
648    );
649    store.register_removed(
650        "pointer_structural_match",
651        "converted into hard error, see RFC #3535 \
652         <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
653    );
654    store.register_removed(
655        "box_pointers",
656        "it does not detect other kinds of allocations, and existed only for historical reasons",
657    );
658    store.register_removed(
659        "byte_slice_in_packed_struct_with_derive",
660        "converted into hard error, see issue #107457 \
661         <https://github.com/rust-lang/rust/issues/107457> for more information",
662    );
663    store.register_removed("writes_through_immutable_pointer", "converted into hard error");
664    store.register_removed(
665        "const_eval_mutable_ptr_in_final_value",
666        "partially allowed now, otherwise turned into a hard error",
667    );
668    store.register_removed(
669        "where_clauses_object_safety",
670        "converted into hard error, see PR #125380 \
671         <https://github.com/rust-lang/rust/pull/125380> for more information",
672    );
673    store.register_removed(
674        "cenum_impl_drop_cast",
675        "converted into hard error, \
676         see <https://github.com/rust-lang/rust/issues/73333> for more information",
677    );
678    store.register_removed(
679        "ptr_cast_add_auto_to_object",
680        "converted into hard error, see issue #127323 \
681         <https://github.com/rust-lang/rust/issues/127323> for more information",
682    );
683    store.register_removed("unsupported_fn_ptr_calling_conventions", "converted into hard error");
684    store.register_removed(
685        "undefined_naked_function_abi",
686        "converted into hard error, see PR #139001 \
687         <https://github.com/rust-lang/rust/issues/139001> for more information",
688    );
689    store.register_removed(
690        "abi_unsupported_vector_types",
691        "converted into hard error, \
692         see <https://github.com/rust-lang/rust/issues/116558> for more information",
693    );
694    store.register_removed(
695        "missing_fragment_specifier",
696        "converted into hard error, \
697         see <https://github.com/rust-lang/rust/issues/40107> for more information",
698    );
699    store.register_removed("wasm_c_abi", "the wasm C ABI has been fixed");
700    store.register_removed("soft_unstable", "the general soft-unstable mechanism has been removed");
701    store.register_removed(
702        "inline_always_mismatching_target_features",
703        "replaced by a hard error for `#[inline(always)]` with `#[target_feature]`",
704    );
705    store.register_removed(
706        "repr_transparent_external_private_fields",
707        "converted into hard error, \
708         see <https://github.com/rust-lang/rust/issues/78586> for more information",
709    );
710    store.register_removed(
711        "repr_transparent_non_zst_fields",
712        "converted into hard error, \
713         see <https://github.com/rust-lang/rust/issues/78586> for more information",
714    );
715    store.register_removed(
716        "no_mangle_generic_items",
717        "converted into hard error, \
718         generic items must always be mangled",
719    );
720}
721
722fn register_internals(store: &mut LintStore) {
723    store.register_lints(&InternalCombinedEarlyLintPass::lint_vec());
724    store.register_early_lint_pass(Box::new(|| Box::new(InternalCombinedEarlyLintPass::new())));
725
726    store.register_lints(&InternalCombinedLateLintModPass::lint_vec());
727    store.register_late_lint_mod_pass(Box::new(|_| {
728        Box::new(InternalCombinedLateLintModPass::new())
729    }));
730
731    store.register_group(
732        false,
733        "rustc::internal",
734        None,
735        ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [LintId::of(LINT_PASS_IMPL_WITHOUT_MACRO),
                LintId::of(IMPLICIT_SYSROOT_CRATE_IMPORT),
                LintId::of(BAD_USE_OF_FIND_ATTR),
                LintId::of(DEFAULT_HASH_TYPES),
                LintId::of(POTENTIAL_QUERY_INSTABILITY),
                LintId::of(UNTRACKED_QUERY_INFORMATION),
                LintId::of(USAGE_OF_TY_TYKIND),
                LintId::of(USAGE_OF_QUALIFIED_TY),
                LintId::of(DIRECT_USE_OF_RUSTC_TYPE_IR),
                LintId::of(NON_GLOB_IMPORT_OF_TYPE_IR_INHERENT),
                LintId::of(USAGE_OF_TYPE_IR_INHERENT),
                LintId::of(USAGE_OF_TYPE_IR_TRAITS),
                LintId::of(BAD_OPT_ACCESS),
                LintId::of(DISALLOWED_PASS_BY_REF),
                LintId::of(SPAN_USE_EQ_CTXT),
                LintId::of(RUSTC_MUST_MATCH_EXHAUSTIVELY)]))vec![
736            // Early pass: LintPassImpl
737            LintId::of(LINT_PASS_IMPL_WITHOUT_MACRO),
738            // Early pass: ImplicitSysrootCrateImport
739            LintId::of(IMPLICIT_SYSROOT_CRATE_IMPORT),
740            // Early pass: BadUseOfFindAttr
741            LintId::of(BAD_USE_OF_FIND_ATTR),
742            // Late pass: DefaultHashTypes
743            LintId::of(DEFAULT_HASH_TYPES),
744            // Late pass: QueryStability
745            LintId::of(POTENTIAL_QUERY_INSTABILITY),
746            LintId::of(UNTRACKED_QUERY_INFORMATION),
747            // Late pass: TyTyKind
748            LintId::of(USAGE_OF_TY_TYKIND),
749            LintId::of(USAGE_OF_QUALIFIED_TY),
750            // Late pass: TypeIr
751            LintId::of(DIRECT_USE_OF_RUSTC_TYPE_IR),
752            LintId::of(NON_GLOB_IMPORT_OF_TYPE_IR_INHERENT),
753            LintId::of(USAGE_OF_TYPE_IR_INHERENT),
754            LintId::of(USAGE_OF_TYPE_IR_TRAITS),
755            // Late pass: BadOptAccess
756            LintId::of(BAD_OPT_ACCESS),
757            // Late pass: DisallowedPassByRef
758            LintId::of(DISALLOWED_PASS_BY_REF),
759            // Late pass: SpanUseEqCtxt
760            LintId::of(SPAN_USE_EQ_CTXT),
761            // Late pass: SymbolInternStringLiteral
762            // Note: this one is not included in rustc::internal because rustc_driver crates
763            // outside the compiler can't/shouldn't add preinterned symbols. For rustc itself,
764            // bootstrap enables this lint manually. For rustdoc,
765            // `warn(symbol_intern_string_literal)` is used.
766            // LintId::of(SYMBOL_INTERN_STRING_LITERAL),
767            //
768            // Late pass: RustcMustMatchExhaustively
769            LintId::of(RUSTC_MUST_MATCH_EXHAUSTIVELY),
770        ],
771    );
772}
773
774/// Is a pass (which contains `lints`) required to run? Maybe not, e.g. for dependencies built with
775/// `--cap-lints=allow`.
776///
777/// Note: this is a conservative estimate intended for optimization purposes. It might return
778/// `true` for a pass that need not run, but it will never return `false` for a pass that must run.
779pub fn is_lint_pass_required(skippable: &UnordSet<LintId>, lints: &LintVec) -> bool {
780    // A pass without any lints? Clippy sometimes does this, to collect things while traversing.
781    // Such a pass must always run.
782    if lints.is_empty() {
783        return true;
784    }
785
786    // Otherwise, the pass must run unless all lints within are skippable.
787    !lints.iter().all(|lint| skippable.contains(&LintId::of(lint)))
788}
789
790#[cfg(test)]
791mod tests;