]> git.lizzy.rs Git - rust.git/commitdiff
pacify the mercilous tidy
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 6 Dec 2017 14:42:09 +0000 (09:42 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 6 Dec 2017 14:42:09 +0000 (09:42 -0500)
src/tools/compiletest/src/runtest.rs

index 4b430f0cd70d5bfa2511a80a8ae0074e5936d93f..91d51d359ecec08b2a44e82d0de93a0051a7edf9 100644 (file)
@@ -1073,7 +1073,8 @@ fn check_expected_errors(&self, expected_errors: Vec<errors::Error>, proc_res: &
             self.fatal_proc_rec("process did not return an error status", proc_res);
         }
 
-        let file_name = format!("{}", self.testpaths.file.display()).replace(r"\", "/"); // on windows, translate all '\' path separators to '/'
+        // on windows, translate all '\' path separators to '/'
+        let file_name = format!("{}", self.testpaths.file.display()).replace(r"\", "/");
 
         // If the testcase being checked contains at least one expected "help"
         // message, then we'll ensure that all "help" messages are expected.