Skip to content

Commit bd4422b

Browse files
committed
chore(perf.rs): Use PathBuf::join instead of PathBuf::push.
1 parent e63fcbe commit bd4422b

File tree

1 file changed

+1
-3
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-3
lines changed

src/bootstrap/src/core/build_steps/perf.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
161161
}
162162

163163
let sysroot = builder.ensure(Sysroot::new(compiler));
164-
let mut rustc = sysroot.clone();
165-
rustc.push("bin");
166-
rustc.push("rustc");
164+
let mut rustc = sysroot.join("bin/rustc");
167165
rustc.set_extension(EXE_EXTENSION);
168166

169167
let rustc_perf_dir = builder.build.tempdir().join("rustc-perf");

0 commit comments

Comments
 (0)