diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-01 17:30:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-01 19:16:06 -0700 |
| commit | b355936b4da0831f47afe8f251daee503c8caa32 (patch) | |
| tree | 9f870e26f773af714cbcf7f315de5ff3722300c3 /src/compiletest/errors.rs | |
| parent | dc499f193e473abc78c557feaa86969bbe7aa159 (diff) | |
| download | rust-b355936b4da0831f47afe8f251daee503c8caa32.tar.gz rust-b355936b4da0831f47afe8f251daee503c8caa32.zip | |
Convert ret to return
Diffstat (limited to 'src/compiletest/errors.rs')
| -rw-r--r-- | src/compiletest/errors.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiletest/errors.rs b/src/compiletest/errors.rs index e44c80e79b9..431843d9268 100644 --- a/src/compiletest/errors.rs +++ b/src/compiletest/errors.rs @@ -17,14 +17,14 @@ fn load_errors(testfile: ~str) -> ~[expected_error] { error_patterns += parse_expected(line_num, ln); line_num += 1u; } - ret error_patterns; + return error_patterns; } fn parse_expected(line_num: uint, line: ~str) -> ~[expected_error] unsafe { let error_tag = ~"//~"; let mut idx; alt str::find_str(line, error_tag) { - option::none { ret ~[]; } + option::none { return ~[]; } option::some(nn) { idx = (nn as uint) + str::len(error_tag); } } @@ -49,5 +49,5 @@ fn parse_expected(line_num: uint, line: ~str) -> ~[expected_error] unsafe { debug!{"line=%u kind=%s msg=%s", line_num - adjust_line, kind, msg}; - ret ~[{line: line_num - adjust_line, kind: kind, msg: msg}]; + return ~[{line: line_num - adjust_line, kind: kind, msg: msg}]; } |
