Commit 8ed2e05
committed
[concurrency] Eliminate a double error emission caused by erroring on an autoclosure and the callexpr it calls.
Specifically, when one is emitting a non-Sendable diagnostic for an async let,
we will emit an error both for the async let and for the call expr inside the
async let. This just puts in a check so that we do not emit the error for the
autoclosure if we can show that the autoclosure's child subexpr would have the
same type implying we would also emit the same error.1 parent e3197e9 commit 8ed2e05
1 file changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3539 | 3539 | | |
3540 | 3540 | | |
3541 | 3541 | | |
3542 | | - | |
3543 | | - | |
3544 | | - | |
3545 | | - | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | | - | |
3550 | | - | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
3551 | 3572 | | |
3552 | 3573 | | |
3553 | 3574 | | |
| |||
0 commit comments