1
Fork 0

Assign correct span to continue expression

Fixes https://github.com/rust-lang/rust/issues/28105.
This commit is contained in:
Marcus Klaas 2015-08-30 20:43:09 +02:00
parent 4bb90232da
commit b69347c00c
2 changed files with 23 additions and 1 deletions

View file

@ -2142,7 +2142,6 @@ impl<'a> Parser<'a> {
return self.parse_loop_expr(None, lo);
}
if try!(self.eat_keyword(keywords::Continue) ){
let lo = self.span.lo;
let ex = if self.token.is_lifetime() {
let lifetime = self.get_lifetime();
try!(self.bump());