-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Don't bootstrap with rustdoc #43284
Copy link
Copy link
Closed
Labels
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently the
rustdocexecutable is bootstrapped in the same manner as rustc itself, meaning that we compilerustdocitself once per stage. This isn't really necessary though as we only really need to bootstrap the compiler! As a result dev times are slower (stage0/stage1 need to compile rustdoc) and overall CI times are slower (we compile it twice instead of once).I think we could instead move
rustdoctosrc/toolsand instead compile it in only one stage, the final stage. This'll involve a few changes such as:src/driver(I think this is an old vestigate at this point anyway?src/tools/rustdocsrc/librustdocfromsrc/tools/rustdocsrc/tools/rustdoc/src/main.rsa one-line shim torustdoc::mainlibrustc*dependencies insrc/librustdoc/Cargo.tomldist.rsto account moving therustdocexecutable into place.