Commit 0dac4c3
authored
Standardize how previously experimental features are handled (#21686)
If a feature was previously experimental and is now standard, we change
any tests for that feature to be only dependent on the source version
where the feature was standardized. Language imports in old source
versions will no longer enable the feature. (And these language imports
also come with a deprecation message).
If a feature was previously experimental and is now dropped, the feature
becomes unavailable also in old versions.
The motivation to do it this way is to insist that experimental features
are ephemeral. We should not be able to rely on an experimental feature
forever in an old version.
This commit implements this policy for fewerBraces and
clauseInterleaving. Two implemented extensions (relaxedExtensionImports,
betterMatchTypeExtractors) already implemented it before.File tree
6 files changed
+18
-28
lines changed- community-build/community-projects
- compiler/src/dotty/tools/dotc
- config
- parsing
- tests/pos
6 files changed
+18
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
64 | 61 | | |
65 | | - | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 123 | | |
131 | 124 | | |
132 | 125 | | |
| |||
169 | 162 | | |
170 | 163 | | |
171 | 164 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 165 | | |
176 | 166 | | |
177 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
1168 | | - | |
| 1168 | + | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
| |||
1870 | 1870 | | |
1871 | 1871 | | |
1872 | 1872 | | |
1873 | | - | |
| 1873 | + | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | 1876 | | |
| |||
2263 | 2263 | | |
2264 | 2264 | | |
2265 | 2265 | | |
2266 | | - | |
| 2266 | + | |
2267 | 2267 | | |
2268 | 2268 | | |
2269 | 2269 | | |
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | | - | |
| 2279 | + | |
2280 | 2280 | | |
2281 | 2281 | | |
2282 | 2282 | | |
| |||
3500 | 3500 | | |
3501 | 3501 | | |
3502 | 3502 | | |
3503 | | - | |
| 3503 | + | |
3504 | 3504 | | |
3505 | 3505 | | |
3506 | 3506 | | |
| |||
3969 | 3969 | | |
3970 | 3970 | | |
3971 | 3971 | | |
3972 | | - | |
| 3972 | + | |
3973 | 3973 | | |
3974 | 3974 | | |
3975 | 3975 | | |
| |||
4069 | 4069 | | |
4070 | 4070 | | |
4071 | 4071 | | |
4072 | | - | |
| 4072 | + | |
4073 | 4073 | | |
4074 | 4074 | | |
4075 | 4075 | | |
| |||
4244 | 4244 | | |
4245 | 4245 | | |
4246 | 4246 | | |
4247 | | - | |
| 4247 | + | |
4248 | 4248 | | |
4249 | 4249 | | |
4250 | 4250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
| 667 | + | |
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| |||
This file was deleted.
0 commit comments