File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
trunk/src/librustc/middle/trans Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: ebe1d8ec2a685a846941cbe605a58c162bacf8ae
2
+ refs/heads/master: d5b5aa4d4a11a15bab4dbb31e029a807cb1d4ad3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5
5
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17
Original file line number Diff line number Diff line change @@ -810,6 +810,9 @@ fn enter_tuple_struct<'a, 'b>(
810
810
ast:: PatEnum ( _, Some ( ref elts) ) => {
811
811
Some ( elts. iter ( ) . map ( |x| ( * x) ) . collect ( ) )
812
812
}
813
+ ast:: PatEnum ( _, None ) => {
814
+ Some ( Vec :: from_elem ( n_elts, dummy) )
815
+ }
813
816
_ => {
814
817
assert_is_binding_or_wild ( bcx, p) ;
815
818
Some ( Vec :: from_elem ( n_elts, dummy) )
You can’t perform that action at this time.
0 commit comments