about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-01 14:31:03 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-01 15:53:13 -0700
commit4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (patch)
treee4e85184b26851431e419b8867c560863c204de8 /src/libsyntax/parse
parent4af849bc12e8a2ec592074b1470464efa59f06bf (diff)
downloadrust-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.rs2
-rw-r--r--src/libsyntax/parse/parser.rs2
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 {