diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-07-31 19:25:24 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-07-31 19:26:25 -0700 |
| commit | b414db041be115d877e5b17bc86ea019420b672c (patch) | |
| tree | d7e15ba792c8376aaabe9727726de34b03e89baf /src/libsyntax/ext/tt | |
| parent | a841789a41941ad73a57cd9972dfbd5fdff02685 (diff) | |
| download | rust-b414db041be115d877e5b17bc86ea019420b672c.tar.gz rust-b414db041be115d877e5b17bc86ea019420b672c.zip | |
rustc: Parse by-reference pattern bindings with the "ref" keyword
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/earley_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/earley_parser.rs b/src/libsyntax/ext/tt/earley_parser.rs index c7a2713c26e..bd8fcf552da 100644 --- a/src/libsyntax/ext/tt/earley_parser.rs +++ b/src/libsyntax/ext/tt/earley_parser.rs @@ -326,7 +326,7 @@ fn parse_nt(p: parser, name: ~str) -> nonterminal { }} ~"block" { token::nt_block(p.parse_block()) } ~"stmt" { token::nt_stmt(p.parse_stmt(~[])) } - ~"pat" { token::nt_pat(p.parse_pat()) } + ~"pat" { token::nt_pat(p.parse_pat(true)) } ~"expr" { token::nt_expr(p.parse_expr()) } ~"ty" { token::nt_ty(p.parse_ty(false /* no need to disambiguate*/)) } // this could be handled like a token, since it is one |
