Fix #1458 (allow paren'd exprs to be the operator in a do)
Closes #1458
This commit is contained in:
parent
165ce14f68
commit
4e5865f2ad
2 changed files with 13 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue