We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42591a4 + c5e4b72 commit 8cc9268Copy full SHA for 8cc9268
src/tools/rustc-perf-wrapper/src/main.rs
@@ -1,5 +1,5 @@
1
use std::fs::create_dir_all;
2
-use std::path::PathBuf;
+use std::path::{Path, PathBuf};
3
use std::process::Command;
4
5
use clap::Parser;
@@ -169,7 +169,7 @@ fn execute_benchmark(cmd: &mut Command, compiler: &Path) {
169
170
const MANIFEST_DIR: &str = env!("CARGO_MANIFEST_DIR");
171
172
- let rustc_perf_dir = PathBuf::from(MANIFEST_DIR).join("../rustc-perf");
+ let rustc_perf_dir = Path::new(MANIFEST_DIR).join("../rustc-perf");
173
174
// We need to set the working directory to `src/tools/perf`, so that it can find the directory
175
// with compile-time benchmarks.
0 commit comments