aboutsummaryrefslogtreecommitdiff
path: root/src/grammar/expressions/atom.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/expressions/atom.rs')
-rw-r--r--src/grammar/expressions/atom.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grammar/expressions/atom.rs b/src/grammar/expressions/atom.rs
index 524a69a8c..af9f47c5e 100644
--- a/src/grammar/expressions/atom.rs
+++ b/src/grammar/expressions/atom.rs
@@ -262,7 +262,7 @@ fn match_arm(p: &mut Parser) -> BlockLike {
262 expr_no_struct(p); 262 expr_no_struct(p);
263 } 263 }
264 p.expect(FAT_ARROW); 264 p.expect(FAT_ARROW);
265 let ret = expr(p); 265 let ret = expr_stmt(p);
266 m.complete(p, MATCH_ARM); 266 m.complete(p, MATCH_ARM);
267 ret 267 ret
268} 268}
@@ -295,7 +295,7 @@ pub(super) fn block_expr(p: &mut Parser) -> CompletedMarker {
295 // test pub_expr 295 // test pub_expr
296 // fn foo() { pub 92; } //FIXME 296 // fn foo() { pub 92; } //FIXME
297 items::MaybeItem::None => { 297 items::MaybeItem::None => {
298 let is_blocklike = expressions::expr(p) == BlockLike::Block; 298 let is_blocklike = expressions::expr_stmt(p) == BlockLike::Block;
299 if p.eat(SEMI) || (is_blocklike && !p.at(R_CURLY)) { 299 if p.eat(SEMI) || (is_blocklike && !p.at(R_CURLY)) {
300 m.complete(p, EXPR_STMT); 300 m.complete(p, EXPR_STMT);
301 } else { 301 } else {