rust/src/librustdoc
bors 640ce99bfe Auto merge of #83738 - jyn514:only-load-some-crates, r=petrochenkov
rustdoc: Don't load all extern crates unconditionally

Instead, only load the crates that are linked to with intra-doc links.

This doesn't help very much with any of rustdoc's fundamental issues
with freezing the resolver, but it at least fixes a stable-to-stable
regression, and makes the crate loading model somewhat more consistent
with rustc's. I tested and it unfortunately does not help at all with https://github.com/rust-lang/rust/pull/82496.

Closes https://github.com/rust-lang/rust/issues/68427. Let me know if you want me to open a separate issue for not freezing the resolver.
r? `@petrochenkov` cc `@eddyb` `@ollie27`
2021-04-03 10:59:24 +00:00
..
clean Auto merge of #80965 - camelid:rename-doc-spotlight, r=jyn514 2021-04-02 07:04:58 +00:00
doctest Fix injected errors when running doctests on a crate named after a keyword 2021-02-11 17:16:43 -05:00
formats Rollup merge of #83478 - jyn514:fine-grained-files, r=Mark-Simulacrum 2021-04-02 19:57:30 +02:00
html Rollup merge of #83478 - jyn514:fine-grained-files, r=Mark-Simulacrum 2021-04-02 19:57:30 +02:00
json Rollup merge of #83055 - aDotInTheVoid:selective-strip-item-doc, r=jyn514 2021-03-26 02:34:38 +01:00
passes Don't load all extern crates unconditionally 2021-04-02 16:34:53 -04:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml missing newline at eof 2021-03-22 19:42:05 +00:00
config.rs Rename CrateSpecific -> InvocationSpecific 2021-03-31 11:55:34 -04:00
core.rs Don't load all extern crates unconditionally 2021-04-02 16:34:53 -04:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Remove hir::CrateItem. 2021-03-30 20:31:06 +02:00
doctree.rs Remove another unnecessary Option 2021-03-23 11:19:42 -07:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs Remove unnecessary Option wrapping around Crate.module 2021-03-23 11:04:09 -07:00
lib.rs Auto merge of #83738 - jyn514:only-load-some-crates, r=petrochenkov 2021-04-03 10:59:24 +00:00
lint.rs Don't warn about old rustdoc lint names (temporarily) 2021-03-16 13:13:59 -04:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Replace under-used ImplPolarity enum with a boolean 2021-01-09 14:59:37 +01:00
visit_ast.rs Remove hir::CrateItem. 2021-03-30 20:31:06 +02:00
visit_lib.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00

For more information about how librustdoc works, see the rustc dev guide.