Commit f7ef6d4
committed
[Diagnostics] Augment conformance failure to with a note about enum with associated values
If the problem is related to an operator and argument is an enum
with associated values mention that conformances to `Equatable`
and `Comparable` are not synthesized in such cases.1 parent 0ea0b8e commit f7ef6d4
File tree
3 files changed
+40
-7
lines changed- lib/Sema
3 files changed
+40
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
449 | 475 | | |
450 | 476 | | |
451 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
2780 | | - | |
2781 | | - | |
2782 | | - | |
2783 | | - | |
2784 | | - | |
2785 | | - | |
2786 | 2780 | | |
2787 | 2781 | | |
2788 | 2782 | | |
| |||
2805 | 2799 | | |
2806 | 2800 | | |
2807 | 2801 | | |
2808 | | - | |
| 2802 | + | |
2809 | 2803 | | |
2810 | 2804 | | |
2811 | 2805 | | |
| |||
4228 | 4222 | | |
4229 | 4223 | | |
4230 | 4224 | | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
4231 | 4234 | | |
4232 | 4235 | | |
4233 | 4236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5169 | 5169 | | |
5170 | 5170 | | |
5171 | 5171 | | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
5172 | 5176 | | |
5173 | 5177 | | |
5174 | 5178 | | |
| |||
0 commit comments