Commit 33a0e0f
committed
Sema: Fix capture lifetime issue in protocol conformance sendable mismatch
The closure passed in to diagnoseOrDefer() outlives the ConformanceChecker
instance, so instead of capturing 'this', pull out the 'DC' instance
variable directly.1 parent e805339 commit 33a0e0f
File tree
2 files changed
+19
-1
lines changed- lib/Sema
- test/Concurrency
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4219 | 4219 | | |
4220 | 4220 | | |
4221 | 4221 | | |
| 4222 | + | |
| 4223 | + | |
4222 | 4224 | | |
4223 | | - | |
| 4225 | + | |
4224 | 4226 | | |
4225 | 4227 | | |
4226 | 4228 | | |
| |||
| 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 | + | |
0 commit comments