Commit 2804daf
committed
[Concurrency] Calls that pass an isolated parameter matching the isolation of
the context do not exit to nonisolated.
Setting the `mayExitToNonisolated` during isolated parameter checking was
done after a check that bails out early when the isolated argument matches
the isolated paramter of the caller, so the actor isolation checker was
accidentally considering the call as exiting to a nonisolated context. This
lead to bogus diagnostics during the region isolation pass.1 parent 4bec599 commit 2804daf
File tree
2 files changed
+27
-1
lines changed- lib/Sema
- test/Concurrency
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3463 | 3463 | | |
3464 | 3464 | | |
3465 | 3465 | | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
3466 | 3475 | | |
3467 | 3476 | | |
3468 | 3477 | | |
| |||
3477 | 3486 | | |
3478 | 3487 | | |
3479 | 3488 | | |
3480 | | - | |
3481 | 3489 | | |
3482 | 3490 | | |
3483 | 3491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments