Skip to content

Commit b7b1dce

Browse files
committed
Auto merge of #28117 - marcusklaas:continue-break, r=alexcrichton
Fixes #28108.
2 parents cfd76b3 + 3a360fc commit b7b1dce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,7 @@ impl<'a> Parser<'a> {
21492149
} else {
21502150
ExprAgain(None)
21512151
};
2152-
let hi = self.span.hi;
2152+
let hi = self.last_span.hi;
21532153
return Ok(self.mk_expr(lo, hi, ex));
21542154
}
21552155
if try!(self.eat_keyword(keywords::Match) ){
@@ -2178,7 +2178,7 @@ impl<'a> Parser<'a> {
21782178
} else {
21792179
ex = ExprBreak(None);
21802180
}
2181-
hi = self.span.hi;
2181+
hi = self.last_span.hi;
21822182
} else if self.check(&token::ModSep) ||
21832183
self.token.is_ident() &&
21842184
!self.check_keyword(keywords::True) &&

0 commit comments

Comments
 (0)