Skip to content

Commit ff8773d

Browse files
committed
Auto merge of #45366 - ollie27:rustbuild_compiler_docs, r=alexcrichton
rustbuild: Don't try to build rustdoc API docs with compiler docs rustdoc is built separately to rustc now so the docs would need to be generated separately as well. Also rustdoc doesn't build at stage 1 which prevented the compiler docs being built at stage 1. Fixes: #44629
2 parents 7e70546 + 1652c58 commit ff8773d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/bootstrap/doc.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,9 @@ impl Step for Rustc {
623623
compile::rustc_cargo(build, &compiler, target, &mut cargo);
624624

625625
if build.config.compiler_docs {
626-
// src/rustc/Cargo.toml contains bin crates called rustc and rustdoc
627-
// which would otherwise overwrite the docs for the real rustc and
628-
// rustdoc lib crates.
629-
cargo.arg("-p").arg("rustc_driver")
630-
.arg("-p").arg("rustdoc");
626+
// src/rustc/Cargo.toml contains a bin crate called rustc which
627+
// would otherwise overwrite the docs for the real rustc lib crate.
628+
cargo.arg("-p").arg("rustc_driver");
631629
} else {
632630
// Like with libstd above if compiler docs aren't enabled then we're not
633631
// documenting internal dependencies, so we have a whitelist.

0 commit comments

Comments
 (0)