Skip to content

Commit 8cc9268

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

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

Diff for: 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)