about summary refs log tree commit diff
path: root/src/test/rustdoc/intra-doc/auxiliary
AgeCommit message (Collapse)AuthorLines
2021-09-12Fix broken handling of primitive itemsJoshua Nelson-0/+4
- Fix broken handling of primitive associated items - Remove fragment hack Fixes 83083 - more logging - Update CrateNum hacks The CrateNum has no relation to where in the dependency tree the crate is, only when it's loaded. Explicitly special-case core instead of assuming it will be the first DefId. - Update and add tests - Cache calculation of primitive locations This could possibly be avoided by passing a Cache into collect_intra_doc_links; but that's a much larger change, and doesn't seem valuable other than for this.
2021-08-26Fix the bugs and add a regression testJoshua Nelson-0/+1
- All attributes for an item need to be considered at once, they can't be considered a line at a time. - The top-level crate was not being visited. This bug was caught by `extern-crate-used-only-in-link`, which I'm very glad I added. - Make the loader private to the module, so that only one function is exposed.
2021-04-10Preprocess intra-doc links consistentlyJoshua Nelson-0/+2
Previously, rustdoc would panic on links to external crates if they were surrounded by backticks.
2021-04-02Don't load all extern crates unconditionallyJoshua Nelson-0/+2
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.
2020-11-28Move `src/test/rustdoc` intra-doc link tests into a subdirectoryJoshua Nelson-0/+92
They were starting to get unwieldy.