about summary refs log tree commit diff
path: root/src/test/rustdoc/intra-doc/auxiliary
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-124/+0
2022-10-30rustdoc: Do not add external traits to the crate in `register_res`Vadim Petrochenkov-0/+4
It's not clear why it was done, and apparently it's no longer necessary now. Such additions are unpredictable for early doc link resolution and would force us to collect all doc links from all external traits.
2022-03-30fix rustdoc wrt builtin impls switchlcnr-5/+4
2022-02-18rustdoc: Collect traits in scope for lang itemsVadim Petrochenkov-0/+29
2022-02-04rustdoc: Collect traits in scope for foreign inherent implsVadim Petrochenkov-0/+11
2021-11-28Fix warnings in rustdoc HTML testsNoah Lev-21/+1
Now that compiletest denies warnings in these tests, they need fixing!
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.