Commit 3223cf1
committed
[Concurrency] Improve await/try checking in 'async let' initializers.
Customize diagnostics when an 'await' is missing in an 'async let'
initializer. While here, fix the coverage checking so we also diagnose
a missing 'try'.1 parent 33cfbbd commit 3223cf1
File tree
3 files changed
+45
-5
lines changed- include/swift/AST
- lib/Sema
- test/expr/unary
3 files changed
+45
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4087 | 4087 | | |
4088 | 4088 | | |
4089 | 4089 | | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
4090 | 4093 | | |
4091 | 4094 | | |
4092 | 4095 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
| 1309 | + | |
1309 | 1310 | | |
1310 | 1311 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1314 | 1330 | | |
1315 | 1331 | | |
1316 | 1332 | | |
| |||
1636 | 1652 | | |
1637 | 1653 | | |
1638 | 1654 | | |
1639 | | - | |
1640 | 1655 | | |
| 1656 | + | |
1641 | 1657 | | |
1642 | 1658 | | |
1643 | 1659 | | |
1644 | 1660 | | |
1645 | 1661 | | |
| 1662 | + | |
1646 | 1663 | | |
1647 | 1664 | | |
1648 | 1665 | | |
1649 | 1666 | | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
1650 | 1670 | | |
| 1671 | + | |
| 1672 | + | |
1651 | 1673 | | |
1652 | 1674 | | |
1653 | 1675 | | |
1654 | 1676 | | |
1655 | 1677 | | |
1656 | | - | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
1657 | 1681 | | |
1658 | 1682 | | |
1659 | 1683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
165 | 178 | | |
166 | 179 | | |
167 | 180 | | |
| |||
0 commit comments