Skip to content

Commit 5a80b44

Browse files
committed
for julia
1 parent f2373b6 commit 5a80b44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2970,9 +2970,9 @@ impl<'test> TestCx<'test> {
29702970
fn check_rustdoc_test_option(&self, res: ProcRes) {
29712971
let mut other_files = Vec::new();
29722972
let mut files: HashMap<String, Vec<usize>> = HashMap::new();
2973-
let testpath = fs::canonicalize(&self.testpaths.file).expect("failed to canonicalize");
2974-
let testpath = testpath.to_str().unwrap().replace('\\', "/");
2975-
files.insert(testpath, self.get_lines(&self.testpaths.file, Some(&mut other_files)));
2973+
let normalized = fs::canonicalize(&self.testpaths.file).expect("failed to canonicalize");
2974+
let normalized = normalized.to_str().unwrap().replace('\\', "/");
2975+
files.insert(normalized, self.get_lines(&self.testpaths.file, Some(&mut other_files)));
29762976
for other_file in other_files {
29772977
let mut path = self.testpaths.file.clone();
29782978
path.set_file_name(&format!("{}.rs", other_file));

0 commit comments

Comments
 (0)