Commit d083c66
committed
[ConstraintSystem] Before matching tuple types, add each complete tuple
type to the locator.
This will provide context for tuple element mismatch diagnostics, instead
of attempting to compute the full tuple type in diagnostics code with a pile
of special cases (see getStructuralTypeContext in CSFix.cpp).1 parent 939a861 commit d083c66
File tree
4 files changed
+29
-18
lines changed- lib/Sema
- test/Constraints
4 files changed
+29
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3177 | 3177 | | |
3178 | 3178 | | |
3179 | 3179 | | |
3180 | | - | |
| 3180 | + | |
3181 | 3181 | | |
3182 | 3182 | | |
3183 | 3183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
457 | 456 | | |
458 | 457 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
469 | 463 | | |
470 | | - | |
| 464 | + | |
| 465 | + | |
471 | 466 | | |
472 | 467 | | |
473 | | - | |
474 | | - | |
475 | | - | |
| 468 | + | |
476 | 469 | | |
477 | 470 | | |
478 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1550 | 1553 | | |
1551 | 1554 | | |
1552 | 1555 | | |
| |||
4723 | 4726 | | |
4724 | 4727 | | |
4725 | 4728 | | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
4726 | 4738 | | |
4727 | 4739 | | |
4728 | 4740 | | |
| |||
5225 | 5237 | | |
5226 | 5238 | | |
5227 | 5239 | | |
| 5240 | + | |
| 5241 | + | |
| 5242 | + | |
| 5243 | + | |
| 5244 | + | |
| 5245 | + | |
5228 | 5246 | | |
5229 | 5247 | | |
5230 | | - | |
| 5248 | + | |
5231 | 5249 | | |
5232 | 5250 | | |
5233 | 5251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| |||
0 commit comments