We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27e38f8 commit e34695cCopy full SHA for e34695c
compiler/rustc_lint/src/late.rs
@@ -422,7 +422,9 @@ fn late_lint_crate<'tcx>(tcx: TyCtxt<'tcx>) {
422
.into_iter()
423
.filter(|pass| {
424
let lints = (**pass).get_lints();
425
- !lints.iter().all(|lint| lints_that_dont_need_to_run.contains(&LintId::of(lint)))
+ // Lintless passes are always in
426
+ lints.is_empty()
427
+ || !lints.iter().all(|lint| lints_that_dont_need_to_run.contains(&LintId::of(lint)))
428
})
429
.collect();
430
0 commit comments