about summary refs log tree commit diff
path: root/src/bootstrap/test.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-03-03 06:12:32 -0600
committerMark Rousskov <mark.simulacrum@gmail.com>2022-03-07 17:06:31 -0500
commit477cae3bd7d71c347b3031809a153cfbeecd1c23 (patch)
tree74b90001923342cbd2340fa81c17a42b1fb7934e /src/bootstrap/test.rs
parent984527f7bb49bd6e2d34e65d7629d2e0cdc464f6 (diff)
copy over `std::path::absolute` instead of adding `canonicalize` hacks
this also fixes a bug where bootstrap would try to use the fake `rustc` binary built by bootstrap -
cargo puts it in a different directory when using `cargo run` instead of x.py
Diffstat (limited to 'src/bootstrap/test.rs')
-rw-r--r--src/bootstrap/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 1665affcf8f..58b73ebed50 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -730,7 +730,7 @@ impl Step for RustdocTheme {
     }
 
     fn run(self, builder: &Builder<'_>) {
-        let rustdoc = builder.out.join("bootstrap/debug/rustdoc");
+        let rustdoc = builder.bootstrap_out.join("rustdoc");
         let mut cmd = builder.tool_cmd(Tool::RustdocTheme);
         cmd.arg(rustdoc.to_str().unwrap())
             .arg(builder.src.join("src/librustdoc/html/static/css/themes").to_str().unwrap())