Skip to content

Commit 82b773c

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of rust-lang#46385 - alexcrichton:fix-cargo-book, r=Mark-Simulacrum
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 rust-lang#46195
2 parents 8f05a4d + 326eb79 commit 82b773c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl Step for CargoBook {
159159

160160
let target = self.target;
161161
let name = self.name;
162-
let src = PathBuf::from("src/tools/cargo/src/doc/book");
162+
let src = build.src.join("src/tools/cargo/src/doc/book");
163163

164164
let out = build.doc_out(target);
165165
t!(fs::create_dir_all(&out));

0 commit comments

Comments
 (0)