Commit 6d45229
committed
[Concurrency] Downgrade errors to warnings when
If a type gets `Sendable` conformace requirement through another
`@preconcurrency` protocol the error should be downgraded even
with strict concurrency checking to allow clients time to address
the new requirement.
Resolves: rdar://146027395Sendable requirement is inferred from a preconcurrency protocol1 parent 7cca722 commit 6d45229
File tree
3 files changed
+37
-11
lines changed- lib/Sema
- test
- Concurrency
- type
3 files changed
+37
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6748 | 6748 | | |
6749 | 6749 | | |
6750 | 6750 | | |
| 6751 | + | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
6751 | 6756 | | |
6752 | 6757 | | |
6753 | 6758 | | |
6754 | 6759 | | |
6755 | | - | |
| 6760 | + | |
6756 | 6761 | | |
6757 | 6762 | | |
6758 | 6763 | | |
| |||
6778 | 6783 | | |
6779 | 6784 | | |
6780 | 6785 | | |
6781 | | - | |
| 6786 | + | |
6782 | 6787 | | |
6783 | 6788 | | |
6784 | 6789 | | |
| |||
6788 | 6793 | | |
6789 | 6794 | | |
6790 | 6795 | | |
6791 | | - | |
| 6796 | + | |
6792 | 6797 | | |
6793 | 6798 | | |
6794 | 6799 | | |
6795 | 6800 | | |
6796 | 6801 | | |
6797 | 6802 | | |
6798 | | - | |
6799 | | - | |
| 6803 | + | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
6800 | 6811 | | |
6801 | 6812 | | |
6802 | 6813 | | |
6803 | 6814 | | |
6804 | 6815 | | |
6805 | | - | |
6806 | | - | |
| 6816 | + | |
| 6817 | + | |
| 6818 | + | |
6807 | 6819 | | |
6808 | 6820 | | |
6809 | 6821 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments