| ... | ... | @@ -2429,7 +2429,11 @@ fn markTransitiveDependersPotentiallyOutdated(zcu: *Zcu, maybe_outdated: AnalUni |
| 2429 | 2429 | pub fn findOutdatedToAnalyze(zcu: *Zcu) Allocator.Error!?AnalUnit { |
| 2430 | 2430 | if (!zcu.comp.incremental) return null; |
| 2431 | 2431 | |
| 2432 | | if (zcu.outdated.count() == 0 and zcu.potentially_outdated.count() == 0) { |
| 2432 | if (zcu.outdated.count() == 0) { |
| 2433 | // Any units in `potentially_outdated` must just be stuck in loops with one another: none of those |
| 2434 | // units have had any outdated dependencies so far, and all of their remaining PO deps are triggered |
| 2435 | // by other units in `potentially_outdated`. So, we can safety assume those units up-to-date. |
| 2436 | zcu.potentially_outdated.clear(); |
| 2433 | 2437 | log.debug("findOutdatedToAnalyze: no outdated depender", .{}); |
| 2434 | 2438 | return null; |
| 2435 | 2439 | } |