Skip to content

Commit

Permalink
Rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Feb 15, 2016
1 parent 4e1a6f6 commit 73a8513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3254,7 +3254,7 @@ impl<'a> Parser<'a> {
if self.token == token::CloseDelim(token::Brace) {
self.bump();
}
return Ok(self.mk_expr(lo, hi, ExprMatch(discriminant, arms), attrs));
return Ok(self.mk_expr(lo, hi, ExprKind::Match(discriminant, arms), attrs));
}
}
}
Expand Down Expand Up @@ -3772,7 +3772,7 @@ impl<'a> Parser<'a> {

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

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

0 comments on commit 73a8513

Please sign in to comment.