about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-11-29 15:00:52 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-11-29 15:00:52 -0800
commit326eb79cf61a4ff22b10467d60330417294b91dd (patch)
treee72d1b8072ef8da3ee471f772d04dd9ce314c057
parent0a2e9ade83ff253bb489c63a95b1f499c5e0916f (diff)
rustbuild: Fix a typo with the Cargo book
The usage of `Path::new` prevented out-of-tree builds (like the bots do) from
working by accident!

Closes #46195
-rw-r--r--src/bootstrap/doc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index 9186699a3b5..3c12cfc4c7f 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -159,7 +159,7 @@ impl Step for CargoBook {
 
         let target = self.target;
         let name = self.name;
-        let src = PathBuf::from("src/tools/cargo/src/doc/book");
+        let src = build.src.join("src/tools/cargo/src/doc/book");
 
         let out = build.doc_out(target);
         t!(fs::create_dir_all(&out));