We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfd76b3 + 3a360fc commit b7b1dceCopy full SHA for b7b1dce
src/libsyntax/parse/parser.rs
@@ -2149,7 +2149,7 @@ impl<'a> Parser<'a> {
2149
} else {
2150
ExprAgain(None)
2151
};
2152
- let hi = self.span.hi;
+ let hi = self.last_span.hi;
2153
return Ok(self.mk_expr(lo, hi, ex));
2154
}
2155
if try!(self.eat_keyword(keywords::Match) ){
@@ -2178,7 +2178,7 @@ impl<'a> Parser<'a> {
2178
2179
ex = ExprBreak(None);
2180
2181
- hi = self.span.hi;
+ hi = self.last_span.hi;
2182
} else if self.check(&token::ModSep) ||
2183
self.token.is_ident() &&
2184
!self.check_keyword(keywords::True) &&
0 commit comments