diff options
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 2557af5e436..341151117f0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2634,16 +2634,7 @@ impl Parser { self.eat(&token::COMMA); } - let blk = P(ast::Block { - view_items: Vec::new(), - stmts: Vec::new(), - expr: Some(expr), - id: ast::DUMMY_NODE_ID, - rules: DefaultBlock, - span: expr.span, - }); - - arms.push(ast::Arm { pats: pats, guard: guard, body: blk }); + arms.push(ast::Arm { pats: pats, guard: guard, body: expr }); } let hi = self.span.hi; self.bump(); |
