Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the span for for expressions
  • Loading branch information
nrc committed Apr 9, 2015
1 parent 287a544 commit 341870a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Expand Up @@ -2880,7 +2880,7 @@ impl<'a> Parser<'a> {
try!(self.expect_keyword(keywords::In));
let expr = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));
let loop_block = try!(self.parse_block());
let hi = self.span.hi;
let hi = self.last_span.hi;

Ok(self.mk_expr(lo, hi, ExprForLoop(pat, expr, loop_block, opt_ident)))
}
Expand Down

0 comments on commit 341870a

Please sign in to comment.