diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2015-02-19 14:36:58 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2015-02-20 00:58:15 +0100 |
| commit | c8dd2d066d7b25246d2b940b7c161b8b67608b74 (patch) | |
| tree | 7b6c4fecc16df3ccfc388d16b46011be49a864ba /src/compiletest/errors.rs | |
| parent | a641996796f0ab11021671c0ce70a3c975bb4e37 (diff) | |
| download | rust-c8dd2d066d7b25246d2b940b7c161b8b67608b74.tar.gz rust-c8dd2d066d7b25246d2b940b7c161b8b67608b74.zip | |
Addressed PR comments
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 d8faa53a2de..7411a9b48d4 100644 --- a/src/compiletest/errors.rs +++ b/src/compiletest/errors.rs @@ -58,7 +58,7 @@ pub fn load_errors(testfile: &Path) -> Vec<ExpectedError> { fn parse_expected(last_nonfollow_error: Option<uint>, line_num: uint, line: &str) -> Option<(WhichLine, ExpectedError)> { - let start = match line.find_str("//~") { Some(i) => i, None => return None }; + let start = match line.find("//~") { Some(i) => i, None => return None }; let (follow, adjusts) = if line.char_at(start + 3) == '|' { (true, 0) } else { |
