Commit 73a492d
Mark Lacey
For Swift 3/4 mode, do not treat IUOs in illegal positions as Optionals.
Instead, just emit a deprecation warning and suggest switching to Optionals.
The old behavior caused several projects to break, so before we change
the behavior here we need to investigate whether we can mitigate most
of those breaks.1 parent 32a8dbc commit 73a492d
File tree
6 files changed
+71
-86
lines changed- include/swift/AST
- lib/Sema
- test
- Migrator/Inputs
- Sema
- type
6 files changed
+71
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3117 | 3117 | | |
3118 | 3118 | | |
3119 | 3119 | | |
3120 | | - | |
3121 | | - | |
| 3120 | + | |
| 3121 | + | |
3122 | 3122 | | |
3123 | | - | |
3124 | | - | |
| 3123 | + | |
| 3124 | + | |
3125 | 3125 | | |
3126 | 3126 | | |
3127 | 3127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | 1133 | | |
1142 | 1134 | | |
1143 | 1135 | | |
| |||
1239 | 1231 | | |
1240 | 1232 | | |
1241 | 1233 | | |
1242 | | - | |
| 1234 | + | |
1243 | 1235 | | |
1244 | 1236 | | |
1245 | 1237 | | |
| |||
1258 | 1250 | | |
1259 | 1251 | | |
1260 | 1252 | | |
1261 | | - | |
| 1253 | + | |
1262 | 1254 | | |
1263 | 1255 | | |
1264 | 1256 | | |
| |||
2847 | 2839 | | |
2848 | 2840 | | |
2849 | 2841 | | |
2850 | | - | |
| 2842 | + | |
2851 | 2843 | | |
2852 | 2844 | | |
2853 | 2845 | | |
| |||
2865 | 2857 | | |
2866 | 2858 | | |
2867 | 2859 | | |
2868 | | - | |
2869 | | - | |
2870 | | - | |
2871 | | - | |
2872 | | - | |
2873 | | - | |
| 2860 | + | |
| 2861 | + | |
2874 | 2862 | | |
2875 | 2863 | | |
2876 | 2864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
0 commit comments