mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
Another minor parser fix for nullary-tag patterns
This commit is contained in:
parent
bf83fd3091
commit
a453197734
@ -1508,7 +1508,7 @@ fn parse_pat(p: parser) -> @ast::pat {
|
||||
args = a.node;
|
||||
hi = a.span.hi;
|
||||
}
|
||||
token::LBRACE. { args = []; }
|
||||
token::LBRACE. | token::RPAREN. | token::COMMA. { args = []; }
|
||||
// take this out once the libraries change
|
||||
token::DOT. { args = []; p.bump(); }
|
||||
_ { expect(p, token::LPAREN); fail; }
|
||||
|
Loading…
Reference in New Issue
Block a user