Skip to content

Commit c5e4b72

Browse files
committed
tools: fix build failure caused by PR #134420
1 parent 7eb0d84 commit c5e4b72

File tree

1 file changed

+2
-2
lines changed
  • src/tools/rustc-perf-wrapper/src

1 file changed

+2
-2
lines changed

src/tools/rustc-perf-wrapper/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::fs::create_dir_all;
2-
use std::path::PathBuf;
2+
use std::path::{Path, PathBuf};
33
use std::process::Command;
44

55
use clap::Parser;
@@ -169,7 +169,7 @@ fn execute_benchmark(cmd: &mut Command, compiler: &Path) {
169169

170170
const MANIFEST_DIR: &str = env!("CARGO_MANIFEST_DIR");
171171

172-
let rustc_perf_dir = PathBuf::from(MANIFEST_DIR).join("../rustc-perf");
172+
let rustc_perf_dir = Path::new(MANIFEST_DIR).join("../rustc-perf");
173173

174174
// We need to set the working directory to `src/tools/perf`, so that it can find the directory
175175
// with compile-time benchmarks.

0 commit comments

Comments
 (0)