File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
trunk/src/comp/syntax/parse Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 88e11e567bf6b1c549be2996e34583567a7861eb
2
+ refs/heads/master: b141de657bb05653610a52d466f814f031cc26c1
Original file line number Diff line number Diff line change @@ -1493,10 +1493,9 @@ fn parse_pat(p: parser) -> @ast::pat {
1493
1493
}
1494
1494
_ { true }
1495
1495
} {
1496
- hi = p. span . hi ;
1497
- let name = parse_value_ident ( p) ;
1496
+ let name = parse_path ( p) ;
1498
1497
let sub = eat ( p, token:: AT ) ? some( parse_pat ( p) ) : none;
1499
- pat = ast:: pat_ident ( ident_to_path ( mk_sp ( lo , hi ) , name) , sub) ;
1498
+ pat = ast:: pat_ident ( name, sub) ;
1500
1499
} else {
1501
1500
let tag_path = parse_path_and_ty_param_substs ( p, true ) ;
1502
1501
hi = tag_path. span . hi ;
@@ -1509,10 +1508,9 @@ fn parse_pat(p: parser) -> @ast::pat {
1509
1508
args = a. node ;
1510
1509
hi = a. span . hi ;
1511
1510
}
1512
- token:: LBRACE . { args = [ ] ; }
1513
1511
// take this out once the libraries change
1514
1512
token:: DOT . { args = [ ] ; p. bump ( ) ; }
1515
- _ { expect ( p , token :: LPAREN ) ; fail ; }
1513
+ _ { args = [ ] ; }
1516
1514
}
1517
1515
// at this point, we're not sure whether it's a tag or a bind
1518
1516
if vec:: len ( args) == 0 u &&
You can’t perform that action at this time.
0 commit comments