diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-02-23 16:59:30 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-02-23 17:00:19 +0100 |
| commit | 780f8277f44bb2eddaf6c516d60b0a6b9b557a5b (patch) | |
| tree | f8b30650ab8b26c27f384e422bcff3cd8cbcab79 /src/compiletest/errors.rs | |
| parent | 1d2b4b97edd7c4038f96c81d8945e294442092a2 (diff) | |
| download | rust-780f8277f44bb2eddaf6c516d60b0a6b9b557a5b.tar.gz rust-780f8277f44bb2eddaf6c516d60b0a6b9b557a5b.zip | |
Finish cleanup of core::str
Closes #1849
Diffstat (limited to 'src/compiletest/errors.rs')
| -rw-r--r-- | src/compiletest/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiletest/errors.rs b/src/compiletest/errors.rs index 90b0c7d34e5..1fedd785750 100644 --- a/src/compiletest/errors.rs +++ b/src/compiletest/errors.rs @@ -25,7 +25,7 @@ fn load_errors(testfile: str) -> [expected_error] { fn parse_expected(line_num: uint, line: str) -> [expected_error] unsafe { let error_tag = "//!"; let idx; - alt str::find(line, error_tag) { + alt str::find_str(line, error_tag) { option::none { ret []; } option::some(nn) { idx = (nn as uint) + str::len(error_tag); } } |
