Skip to content

Commit d613134

Browse files
committed
fix x doc --stage 0 compiler if the compiler hasn't yet been built
1 parent 3f05b1f commit d613134

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/doc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ impl Step for Rustc {
693693
// rustc. rustdoc needs to be able to see everything, for example when
694694
// merging the search index, or generating local (relative) links.
695695
let out_dir = builder.stage_out(compiler, Mode::Rustc).join(target.triple).join("doc");
696+
t!(fs::create_dir_all(out_dir.parent().unwrap()));
696697
symlink_dir_force(&builder.config, &out, &out_dir);
697698
// Cargo puts proc macros in `target/doc` even if you pass `--target`
698699
// explicitly (https://github.com/rust-lang/cargo/issues/7677).

0 commit comments

Comments
 (0)