Skip to content

Commit 4d0cb42

Browse files
committed
compiletest: remove useless path join in rustdoc_json runtest logic
1 parent a375d1d commit 4d0cb42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/compiletest/src/runtest/rustdoc_json.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ impl TestCx<'_> {
1616
self.fatal_proc_rec("rustdoc failed!", &proc_res);
1717
}
1818

19-
let root = self.config.find_rust_src_root().unwrap();
2019
let mut json_out = out_dir.join(self.testpaths.file.file_stem().unwrap());
2120
json_out.set_extension("json");
2221
let res = self.run_command_to_procres(
2322
Command::new(self.config.jsondocck_path.as_ref().unwrap())
2423
.arg("--doc-dir")
25-
.arg(root.join(&out_dir))
24+
.arg(&out_dir)
2625
.arg("--template")
2726
.arg(&self.testpaths.file),
2827
);

0 commit comments

Comments
 (0)