diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-01 14:31:03 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-01 15:53:13 -0700 |
| commit | 4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (patch) | |
| tree | e4e85184b26851431e419b8867c560863c204de8 /src/libsyntax/parse | |
| parent | 4af849bc12e8a2ec592074b1470464efa59f06bf (diff) | |
| download | rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.tar.gz rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.zip | |
Migrate users of 'loop' to 'continue'
Closes #9467
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 640c7c220e5..3689b5c4999 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -431,7 +431,7 @@ fn scan_digits(rdr: @mut StringReader, radix: uint) -> ~str { let mut rslt = ~""; loop { let c = rdr.curr; - if c == '_' { bump(rdr); loop; } + if c == '_' { bump(rdr); continue; } match char::to_digit(c, radix) { Some(_) => { rslt.push_char(c); diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 5c88c617950..4598bc04369 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1987,7 +1987,7 @@ impl Parser { } _ => self.unexpected() } - loop; + continue; } if self.expr_is_complete(e) { break; } match *self.token { |
