diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-30 15:00:57 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-30 15:06:13 -0700 |
| commit | 4e5865f2ad13c4efe12a4c02f134ff761d16b26b (patch) | |
| tree | 0cc6b4f340ed1ee5fa23b0d67be30420ab9539a4 /src/libsyntax/parse | |
| parent | 165ce14f687e4d20733795e3465dedc5d77ec49b (diff) | |
| download | rust-4e5865f2ad13c4efe12a4c02f134ff761d16b26b.tar.gz rust-4e5865f2ad13c4efe12a4c02f134ff761d16b26b.zip | |
Fix #1458 (allow paren'd exprs to be the operator in a `do`)
Closes #1458
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a5bc5013c17..6615bc75169 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1576,7 +1576,7 @@ impl Parser { @{node: expr_call(f, args, true), .. *e} } - expr_path(*) | expr_field(*) | expr_call(*) => { + expr_path(*) | expr_field(*) | expr_call(*) | expr_paren(*) => { let block = self.parse_lambda_block_expr(); let last_arg = self.mk_expr(block.span.lo, block.span.hi, ctor(block)); |
