Commit 79e6c61
committed
[Concurrency] Treat actor-isolated references from closures as errors.
Following the approach that actors are meant to be isolated, promote
the warning about accessing actor-isolated state from a
potentially-concurrent context to an error.1 parent 0a1be02 commit 79e6c61
File tree
3 files changed
+14
-9
lines changed- include/swift/AST
- lib/Sema
- test/Concurrency
3 files changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4141 | 4141 | | |
4142 | 4142 | | |
4143 | 4143 | | |
4144 | | - | |
4145 | | - | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
4146 | 4150 | | |
4147 | | - | |
| 4151 | + | |
4148 | 4152 | | |
4149 | 4153 | | |
4150 | 4154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments