Skip to content

rustdoc: Don't load all extern crates unconditionally#83738

Merged
bors merged 1 commit intorust-lang:masterfrom
jyn514:only-load-some-crates
Apr 3, 2021
Merged

rustdoc: Don't load all extern crates unconditionally#83738
bors merged 1 commit intorust-lang:masterfrom
jyn514:only-load-some-crates

Conversation

@jyn514
Copy link
Copy Markdown
Member

@jyn514 jyn514 commented Apr 1, 2021

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 #82496.

Closes #68427. Opened #83761 to track the more fundamental issues.
r? @petrochenkov cc @eddyb @ollie27

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-metadata Area: Crate metadata A-resolve Area: Name/path resolution done by `rustc_resolve` specifically merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustdoc only: duplicate lang item panic_halt

9 participants