mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
Rollup merge of #24225 - nrc:for-span, r=pnkfelix
This commit is contained in:
@@ -2880,7 +2880,7 @@ pub fn parse_for_expr(&mut self, opt_ident: Option<ast::Ident>) -> PResult<P<Exp
|
||||
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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user