Skip to content

Commit 336a27c

Browse files
alexcrichtonsteveklabnik
authored andcommitted
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
1 parent c9107ee commit 336a27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)