Commit a34b8de
committed
auto merge of rust-lang#18171 : jakub-/rust/match-typeck, r=pcwalton
Rather than doing it top-down, with a known expected type, we will now simply establish the appropriate constraints between the pattern and the expression it destructures.
Closes rust-lang#8783.
Closes rust-lang#10200.File tree
25 files changed
+490
-747
lines changed- src
- librustc
- metadata
- middle
- typeck
- check
- test
- compile-fail
- run-pass
25 files changed
+490
-747
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
677 | | - | |
678 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
679 | 684 | | |
680 | 685 | | |
681 | 686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
681 | 673 | | |
682 | 674 | | |
683 | | - | |
684 | | - | |
| 675 | + | |
685 | 676 | | |
686 | 677 | | |
687 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5077 | 5077 | | |
5078 | 5078 | | |
5079 | 5079 | | |
5080 | | - | |
5081 | 5080 | | |
5082 | 5081 | | |
5083 | 5082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
4221 | 4221 | | |
4222 | 4222 | | |
4223 | 4223 | | |
4224 | | - | |
| 4224 | + | |
4225 | 4225 | | |
4226 | 4226 | | |
4227 | 4227 | | |
| |||
4249 | 4249 | | |
4250 | 4250 | | |
4251 | 4251 | | |
4252 | | - | |
| 4252 | + | |
4253 | 4253 | | |
4254 | 4254 | | |
4255 | 4255 | | |
| |||
4262 | 4262 | | |
4263 | 4263 | | |
4264 | 4264 | | |
4265 | | - | |
| 4265 | + | |
| 4266 | + | |
4266 | 4267 | | |
4267 | 4268 | | |
4268 | 4269 | | |
| |||
4274 | 4275 | | |
4275 | 4276 | | |
4276 | 4277 | | |
4277 | | - | |
| 4278 | + | |
4278 | 4279 | | |
4279 | 4280 | | |
4280 | 4281 | | |
| |||
0 commit comments