Skip to content

Commit 6101cb9

Browse files
committed
---
yaml --- r: 7466 b: refs/heads/master c: b141de6 h: refs/heads/master v: v3
1 parent 942e742 commit 6101cb9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 88e11e567bf6b1c549be2996e34583567a7861eb
2+
refs/heads/master: b141de657bb05653610a52d466f814f031cc26c1

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,10 +1493,9 @@ fn parse_pat(p: parser) -> @ast::pat {
14931493
}
14941494
_ { true }
14951495
} {
1496-
hi = p.span.hi;
1497-
let name = parse_value_ident(p);
1496+
let name = parse_path(p);
14981497
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);
15001499
} else {
15011500
let tag_path = parse_path_and_ty_param_substs(p, true);
15021501
hi = tag_path.span.hi;
@@ -1509,10 +1508,9 @@ fn parse_pat(p: parser) -> @ast::pat {
15091508
args = a.node;
15101509
hi = a.span.hi;
15111510
}
1512-
token::LBRACE. { args = []; }
15131511
// take this out once the libraries change
15141512
token::DOT. { args = []; p.bump(); }
1515-
_ { expect(p, token::LPAREN); fail; }
1513+
_ { args = []; }
15161514
}
15171515
// at this point, we're not sure whether it's a tag or a bind
15181516
if vec::len(args) == 0u &&

0 commit comments

Comments
 (0)