Commit b6ec270
authored
Handle reachability consistently in two-phase checking (#21322)
We have this (somewhat questionable) behaviour of not checking
unreachable code. Surprisingly many repos rely on this. Thus we should
preserve this behaviour in two-phase checking, which means skip
top-level definitions that were found unreachable.
I tried few approaches, and using line numbers seems to be the simplest
one.1 parent 680c1ac commit b6ec270
2 files changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
| |||
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
580 | 587 | | |
581 | 588 | | |
582 | 589 | | |
| |||
595 | 602 | | |
596 | 603 | | |
597 | 604 | | |
| 605 | + | |
598 | 606 | | |
599 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
600 | 611 | | |
601 | 612 | | |
602 | 613 | | |
| |||
676 | 687 | | |
677 | 688 | | |
678 | 689 | | |
| 690 | + | |
| 691 | + | |
679 | 692 | | |
680 | 693 | | |
681 | 694 | | |
| |||
3246 | 3259 | | |
3247 | 3260 | | |
3248 | 3261 | | |
| 3262 | + | |
3249 | 3263 | | |
3250 | 3264 | | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
3251 | 3268 | | |
3252 | 3269 | | |
3253 | 3270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1701 | 1701 | | |
1702 | 1702 | | |
1703 | 1703 | | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
0 commit comments