From b414db041be115d877e5b17bc86ea019420b672c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 31 Jul 2012 19:25:24 -0700 Subject: rustc: Parse by-reference pattern bindings with the "ref" keyword --- src/libsyntax/ext/tt/earley_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ext/tt') 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 -- cgit 1.4.1-3-g733a5