Assign correct span to continue expression
Fixes https://github.com/rust-lang/rust/issues/28105.
This commit is contained in:
parent
4bb90232da
commit
b69347c00c
2 changed files with 23 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue