Skip to content

Commit c26d025

Browse files
committed
Switch 'cont' to 'again' everywhere. Close #2229.
1 parent 9afc8be commit c26d025

28 files changed

+47
-47
lines changed

src/cargo/cargo.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ fn install_source(c: cargo, path: str) {
785785

786786
for cratefiles.each |cf| {
787787
alt load_crate(cf) {
788-
none { cont; }
788+
none { again; }
789789
some(crate) {
790790
for crate.deps.each |query| {
791791
// FIXME (#1356): handle cyclic dependencies
@@ -975,7 +975,7 @@ fn cmd_uninstall(c: cargo) {
975975
}
976976
ret;
977977
}
978-
none { cont; }
978+
none { again; }
979979
}
980980
}
981981

@@ -993,7 +993,7 @@ fn cmd_uninstall(c: cargo) {
993993
}
994994
ret;
995995
}
996-
none { cont; }
996+
none { again; }
997997
}
998998
}
999999
for os::list_dir(bin).each |file| {
@@ -1007,7 +1007,7 @@ fn cmd_uninstall(c: cargo) {
10071007
}
10081008
ret;
10091009
}
1010-
none { cont; }
1010+
none { again; }
10111011
}
10121012
}
10131013

src/fuzzer/fuzzer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,18 +548,18 @@ fn check_variants(files: ~[str], cx: context) {
548548
if cx.mode == tm_converge && file_might_not_converge(file) {
549549
#error("Skipping convergence test based on\
550550
file_might_not_converge");
551-
cont;
551+
again;
552552
}
553553

554554
let s = @result::get(io::read_whole_file_str(file));
555555
if contains(*s, "#") {
556-
cont; // Macros are confusing
556+
again; // Macros are confusing
557557
}
558558
if cx.mode == tm_converge && content_might_not_converge(*s) {
559-
cont;
559+
again;
560560
}
561561
if cx.mode == tm_run && content_is_dangerous_to_compile(*s) {
562-
cont;
562+
again;
563563
}
564564

565565
log(error, "check_variants: " + file);

src/libcore/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl reader_util for reader {
5353
assert (w > 0u);
5454
if w == 1u {
5555
vec::push(chars, b0 as char );
56-
cont;
56+
again;
5757
}
5858
// can't satisfy this char with the existing data
5959
if end > vec::len(buf) {

src/libstd/rope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ mod node {
11841184
let next_char = get_next_char_in_leaf(it);
11851185
alt(next_char) {
11861186
option::none {
1187-
cont;
1187+
again;
11881188
}
11891189
option::some(_) {
11901190
ret next_char;

src/libsyntax/ext/simplext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ fn add_new_extension(cx: ext_ctxt, sp: span, arg: ast::mac_arg,
767767
for clauses.each |c| {
768768
alt use_selectors_to_bind(c.params, arg) {
769769
some(bindings) { ret transcribe(cx, bindings, c.body); }
770-
none { cont; }
770+
none { again; }
771771
}
772772
}
773773
cx.span_fatal(sp, "no clauses match macro invocation");

src/libsyntax/parse/comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn strip_doc_comment_decoration(comment: str) -> str {
5656
let mut i = max.get_default(uint::max_value);
5757
for lines.each |line| {
5858
if line.trim().is_empty() {
59-
cont;
59+
again;
6060
}
6161
for line.each_chari |j, c| {
6262
if j >= i {

src/libsyntax/parse/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ fn scan_digits(rdr: string_reader, radix: uint) -> str {
310310
let mut rslt = "";
311311
loop {
312312
let c = rdr.curr;
313-
if c == '_' { bump(rdr); cont; }
313+
if c == '_' { bump(rdr); again; }
314314
alt char::to_digit(c, radix) {
315315
some(d) {
316316
str::push_char(rslt, c);

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ class parser {
11401140
}
11411141
_ { self.unexpected(); }
11421142
}
1143-
cont;
1143+
again;
11441144
}
11451145
if self.expr_is_complete(e) { break; }
11461146
alt copy self.token {

src/rustc/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ fn link_binary(sess: session,
597597
for cstore::get_used_crate_files(cstore).each |cratepath| {
598598
if str::ends_with(cratepath, ".rlib") {
599599
vec::push(cc_args, cratepath);
600-
cont;
600+
again;
601601
}
602602
let cratepath = cratepath;
603603
let dir = path::dirname(cratepath);

src/rustc/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn encode_class_item_paths(ebml_w: ebml::writer,
140140
items: ~[@class_member], path: ~[ident], &index: ~[entry<str>]) {
141141
for items.each |it| {
142142
alt ast_util::class_member_visibility(it) {
143-
private { cont; }
143+
private { again; }
144144
public {
145145
let (id, ident) = alt it.node {
146146
instance_var(v, _, _, vid, _) { (vid, v) }
@@ -158,7 +158,7 @@ fn encode_module_item_paths(ebml_w: ebml::writer, ecx: @encode_ctxt,
158158
&index: ~[entry<str>]) {
159159
for module.items.each |it| {
160160
if !reachable(ecx, it.id) ||
161-
!ast_util::is_exported(it.ident, module) { cont; }
161+
!ast_util::is_exported(it.ident, module) { again; }
162162
if !ast_util::is_item_impl(it) {
163163
add_to_index(ebml_w, path, index, it.ident);
164164
}

0 commit comments

Comments
 (0)