diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2016-02-15 13:14:31 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2016-02-15 13:14:31 +1300 |
| commit | 73a8513b88f28344c37d3b3296f93cbc8f30cefa (patch) | |
| tree | e3f06d4aea1ff2bab8b3c108924b398d53cb630f /src/libsyntax/parse | |
| parent | 4e1a6f6b363a04218583ab10bdf3cbe6bca41f00 (diff) | |
| download | rust-73a8513b88f28344c37d3b3296f93cbc8f30cefa.tar.gz rust-73a8513b88f28344c37d3b3296f93cbc8f30cefa.zip | |
Rebasing
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 572c51cc2f4..59e79200568 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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)); } } } @@ -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 |
