Apply review comments + use shallow_lint_levels_on

This commit is contained in:
blyxyas
2024-10-15 22:15:07 +02:00
parent 8a40884e1c
commit ddad55f6c2
5 changed files with 18 additions and 19 deletions

View File

@@ -432,7 +432,7 @@ fn late_lint_crate<'tcx>(tcx: TyCtxt<'tcx>) {
let mut filtered_passes: Vec<Box<dyn LateLintPass<'tcx>>> = passes
.into_iter()
.filter(|pass| {
let lints = LintPass::get_lints(pass);
let lints = (**pass).get_lints();
!lints.iter().all(|lint| lints_that_dont_need_to_run.contains(&LintId::of(lint)))
})
.collect();