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/ext | |
| parent | 4af849bc12e8a2ec592074b1470464efa59f06bf (diff) | |
| download | rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.tar.gz rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.zip | |
Migrate users of 'loop' to 'continue'
Closes #9467
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/format.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/format.rs b/src/libsyntax/ext/format.rs index 11d9713af98..8d327de6d61 100644 --- a/src/libsyntax/ext/format.rs +++ b/src/libsyntax/ext/format.rs @@ -108,7 +108,7 @@ impl Context { named `{}`", name)); self.ecx.parse_sess.span_diagnostic.span_note( prev.span, "previously here"); - loop + continue } } self.names.insert(name, e); @@ -592,7 +592,7 @@ impl Context { // of each variable because we don't want to move out of the arguments // passed to this function. for (i, &e) in self.args.iter().enumerate() { - if self.arg_types[i].is_none() { loop } // error already generated + if self.arg_types[i].is_none() { continue } // error already generated let name = self.ecx.ident_of(format!("__arg{}", i)); let e = self.ecx.expr_addr_of(e.span, e); @@ -601,7 +601,7 @@ impl Context { self.ecx.expr_ident(e.span, name))); } for (&name, &e) in self.names.iter() { - if !self.name_types.contains_key(&name) { loop } + if !self.name_types.contains_key(&name) { continue } let lname = self.ecx.ident_of(format!("__arg{}", name)); let e = self.ecx.expr_addr_of(e.span, e); |
