Commit a8d46aa
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.
(cherry picked from commit 2804daf)1 parent c4cddb4 commit a8d46aa
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 | |
|---|---|---|---|
| |||
3457 | 3457 | | |
3458 | 3458 | | |
3459 | 3459 | | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
3460 | 3469 | | |
3461 | 3470 | | |
3462 | 3471 | | |
| |||
3471 | 3480 | | |
3472 | 3481 | | |
3473 | 3482 | | |
3474 | | - | |
3475 | 3483 | | |
3476 | 3484 | | |
3477 | 3485 | | |
| |||
| 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