Obsolete parsing 'loop' as 'continue'
This commit is contained in:
parent
7f9b918562
commit
4af849bc12
3 changed files with 22 additions and 0 deletions
|
@ -2597,6 +2597,7 @@ impl Parser {
|
|||
"a label may not be used with a `loop` expression");
|
||||
}
|
||||
|
||||
self.obsolete(*self.last_span, ObsoleteLoopAsContinue);
|
||||
let lo = self.span.lo;
|
||||
let ex = if self.token_is_lifetime(&*self.token) {
|
||||
let lifetime = self.get_lifetime(&*self.token);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue