Obsolete parsing 'loop' as 'continue'

This commit is contained in:
Alex Crichton 2013-10-01 14:41:59 -07:00
parent 7f9b918562
commit 4af849bc12
3 changed files with 22 additions and 0 deletions

View file

@ -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);