Skip to content

Commit

Permalink
Auto merge of #29141 - marcusklaas:pat-expr, r=alexcrichton
Browse files Browse the repository at this point in the history
Closes #29120.
  • Loading branch information
bors committed Oct 18, 2015
2 parents 3dc2aee + e5962c2 commit d3f4978
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 @@ -1583,11 +1583,11 @@ impl<'a> Parser<'a> {

let lo = self.span.lo;
let literal = P(try!(self.parse_lit()));
let hi = self.span.hi;
let hi = self.last_span.hi;
let expr = self.mk_expr(lo, hi, ExprLit(literal));

if minus_present {
let minus_hi = self.span.hi;
let minus_hi = self.last_span.hi;
let unary = self.mk_unary(UnNeg, expr);
Ok(self.mk_expr(minus_lo, minus_hi, unary))
} else {
Expand Down

0 comments on commit d3f4978

Please sign in to comment.