decouple "reporting in deps" from future incompatibility reason

This commit is contained in:
Waffle Lapkin
2025-06-03 01:29:36 +02:00
parent 52882f6522
commit 9b7da4deb2
4 changed files with 67 additions and 82 deletions

View File

@@ -126,7 +126,7 @@ fn lints_that_dont_need_to_run(tcx: TyCtxt<'_>, (): ()) -> UnordSet<LintId> {
.filter(|lint| {
// Lints that show up in future-compat reports must always be run.
let has_future_breakage =
lint.future_incompatible.is_some_and(|fut| fut.reason.has_future_breakage());
lint.future_incompatible.is_some_and(|fut| fut.report_in_deps);
!has_future_breakage && !lint.eval_always
})
.filter(|lint| {