diff options
| author | blyxyas <blyxyas@gmail.com> | 2024-06-18 22:44:28 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2024-10-19 16:20:33 +0200 |
| commit | 71b4d108c7e71c15c0f61d737ebdc0e1cf559d3c (patch) | |
| tree | 2554ae8686bc2a11446fe6c34f5ed99311a4f8ac /compiler/rustc_lint/src/passes.rs | |
| parent | edc65776274d14fc7f7f93de66ac3b2d15bbbc37 (diff) | |
| download | rust-71b4d108c7e71c15c0f61d737ebdc0e1cf559d3c.tar.gz rust-71b4d108c7e71c15c0f61d737ebdc0e1cf559d3c.zip | |
Follow review comments (optimize the filtering)
Diffstat (limited to 'compiler/rustc_lint/src/passes.rs')
| -rw-r--r-- | compiler/rustc_lint/src/passes.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/passes.rs b/compiler/rustc_lint/src/passes.rs index 3750f90a044..6dbcdefe08d 100644 --- a/compiler/rustc_lint/src/passes.rs +++ b/compiler/rustc_lint/src/passes.rs @@ -70,7 +70,18 @@ macro_rules! declare_late_lint_pass { // for all the `check_*` methods. late_lint_methods!(declare_late_lint_pass, []); -impl LateLintPass<'_> for HardwiredLints {} +impl LateLintPass<'_> for HardwiredLints { + fn check_fn( + &mut self, + _: &LateContext<'_>, + _: rustc_hir::intravisit::FnKind<'_>, + _: &'_ rustc_hir::FnDecl<'_>, + _: &'_ rustc_hir::Body<'_>, + _: rustc_span::Span, + _: rustc_span::def_id::LocalDefId, + ) { + } +} #[macro_export] macro_rules! expand_combined_late_lint_pass_method { |
