Commit 49b78c3
committed
Fail on all stale references by default
Update stale references only if -Yupdate-state is set, fail with a StaleSymbol
error otherwise.
This required some fixes to the way ScalaShadowing was treated. If we compile a
ScalaShadowing (as is done in tasty-bootstrap) we need to also overwrite the
mirrored symbol in the scala package. Otherwise we would get a stale reference
when looking up the latter.1 parent 6dcfc63 commit 49b78c3
File tree
5 files changed
+20
-8
lines changed- compiler/src/dotty/tools/dotc
- config
- core
5 files changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
832 | 835 | | |
833 | 836 | | |
834 | 837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
777 | 786 | | |
778 | 787 | | |
779 | 788 | | |
780 | 789 | | |
781 | 790 | | |
782 | | - | |
| 791 | + | |
| 792 | + | |
783 | 793 | | |
784 | 794 | | |
| 795 | + | |
785 | 796 | | |
786 | | - | |
787 | 797 | | |
788 | 798 | | |
789 | 799 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
| 1493 | + | |
| 1494 | + | |
1493 | 1495 | | |
1494 | 1496 | | |
1495 | 1497 | | |
| |||
1847 | 1849 | | |
1848 | 1850 | | |
1849 | 1851 | | |
| 1852 | + | |
1850 | 1853 | | |
1851 | 1854 | | |
1852 | 1855 | | |
| |||
0 commit comments