Commit deec3e1
committed
[SE-0470] Warn about isolated conformance to SendableMetatype-inheriting protocol
An isolated conformance to a SendableMetatype-inheriting protocol
cannot actually be used in generic code, because the SendableMetatype
requirement itself prevents it. Warn about this case so folks aren't
surprised at runtime.
This is a part of issue swiftlang#82550 / rdar://154437489.1 parent 507c405 commit deec3e1
File tree
3 files changed
+31
-4
lines changed- include/swift/AST
- lib/Sema
- test/Concurrency
3 files changed
+31
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8681 | 8681 | | |
8682 | 8682 | | |
8683 | 8683 | | |
| 8684 | + | |
| 8685 | + | |
| 8686 | + | |
8684 | 8687 | | |
8685 | 8688 | | |
8686 | 8689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8280 | 8280 | | |
8281 | 8281 | | |
8282 | 8282 | | |
| 8283 | + | |
| 8284 | + | |
| 8285 | + | |
| 8286 | + | |
8283 | 8287 | | |
8284 | 8288 | | |
8285 | 8289 | | |
| |||
8299 | 8303 | | |
8300 | 8304 | | |
8301 | 8305 | | |
| 8306 | + | |
| 8307 | + | |
| 8308 | + | |
| 8309 | + | |
| 8310 | + | |
| 8311 | + | |
| 8312 | + | |
| 8313 | + | |
| 8314 | + | |
| 8315 | + | |
| 8316 | + | |
| 8317 | + | |
| 8318 | + | |
| 8319 | + | |
| 8320 | + | |
8302 | 8321 | | |
8303 | 8322 | | |
8304 | 8323 | | |
8305 | 8324 | | |
8306 | 8325 | | |
8307 | 8326 | | |
8308 | | - | |
8309 | | - | |
8310 | | - | |
8311 | | - | |
8312 | 8327 | | |
8313 | 8328 | | |
8314 | 8329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
150 | 159 | | |
151 | 160 | | |
152 | 161 | | |
| |||
0 commit comments