Skip to content

Commit f65dc4f

Browse files
authored
Rollup merge of #134816 - Integral-Tech:pathbuf-refactor, r=lqd
tools: fix build failure caused by PR #134420 Someone reports build failure after merging pull request #134420: #134420 (comment) This pull request fixes the build failure.
2 parents 3980cc6 + c5e4b72 commit f65dc4f

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)