Skip to content

Commit 73a8513

Browse files
committed
Rebasing
1 parent 4e1a6f6 commit 73a8513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,7 @@ impl<'a> Parser<'a> {
32543254
if self.token == token::CloseDelim(token::Brace) {
32553255
self.bump();
32563256
}
3257-
return Ok(self.mk_expr(lo, hi, ExprMatch(discriminant, arms), attrs));
3257+
return Ok(self.mk_expr(lo, hi, ExprKind::Match(discriminant, arms), attrs));
32583258
}
32593259
}
32603260
}
@@ -3772,7 +3772,7 @@ impl<'a> Parser<'a> {
37723772

37733773
/// Parse a statement. may include decl.
37743774
pub fn parse_stmt(&mut self) -> PResult<'a, Option<Stmt>> {
3775-
Ok(self.parse_stmt_().map(P))
3775+
Ok(self.parse_stmt_())
37763776
}
37773777

37783778
// Eat tokens until we can be relatively sure we reached the end of the

0 commit comments

Comments
 (0)