translate backslashes to forward slashes in the expected strings

This commit is contained in:
Niko Matsakis 2016-02-24 16:20:21 -05:00
parent 6660ad6f8d
commit 588d5d1e3d

View File

@ -932,7 +932,9 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError>,
}
let prefixes = expected_errors.iter().map(|ee| {
format!("{}:{}:", testpaths.file.display(), ee.line)
let expected = format!("{}:{}:", testpaths.file.display(), ee.line);
// On windows just translate all '\' path separators to '/'
expected.replace(r"\", "/")
}).collect::<Vec<String>>();
let (expect_help, expect_note) =