diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-09-05 20:07:57 +0000 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-04-14 19:18:46 -0500 |
| commit | dd0ad7375e5c3eaa14c594af38e7e7821c8038cc (patch) | |
| tree | 795ca78c55fc13ddd91ac80ca64b41860ef04c44 /library/std/src/sys/unix/locks/pthread_remutex.rs | |
| parent | 027a232755fa9728e9699337267f6675dfd0a8ba (diff) | |
| download | rust-dd0ad7375e5c3eaa14c594af38e7e7821c8038cc.tar.gz rust-dd0ad7375e5c3eaa14c594af38e7e7821c8038cc.zip | |
Don't build the library and standard library before documenting them
Rustdoc doesn't require the build artifacts to generate the docs, and
especially in the case of rustc, it greatly increases the time needed to
run the build.
- Statically ensure that only the top_stage of a tool is documented
If another part of rustbuild tried to document a different stage, it
would run into errors because `check::Rustc` unconditionally uses the
top stage.
- Try building rustc instead of checking to avoid duplicate artifacts
Tries to workaround the following error:
```
error[E0464]: multiple matching crates for `rustc_ast`
--> src/librustdoc/lib.rs:40:1
|
40 | extern crate rustc_ast;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: candidates:
crate `rustc_ast`: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_ast-6d7c193782263d89.rlib
crate `rustc_ast`: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_ast-e5d09eda5beb759c.rmeta
```
Diffstat (limited to 'library/std/src/sys/unix/locks/pthread_remutex.rs')
0 files changed, 0 insertions, 0 deletions
