about summary refs log tree commit diff
path: root/src/test/rustdoc/intra-doc-crate
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-19/+0
2021-04-17rustdoc: use more precise relative URLSMichael Howell-2/+2
Instead of using a depth counter and adding "../" to get to the top, this commit makes rustdoc actually compare the path of what it's linking from to the path that it's linking to. This makes the resulting HTML shorter. Here's a comparison of one of the largest (non-source) files in the Rust standard library docs (about 4% improvement before gzipping). $ wc -c struct.Wrapping.old.html struct.Wrapping.new.html 2387389 struct.Wrapping.old.html 2298538 struct.Wrapping.new.html Most if it can be efficiently gzipped away. $ wc -c struct.Wrapping.old.html.gz struct.Wrapping.new.html.gz 70679 struct.Wrapping.old.html.gz 70050 struct.Wrapping.new.html.gz But it also makes a difference in the final DOM size, reducing it from 91MiB to 82MiB.
2021-01-10Fix intra-doc links to `Self` and `crate`Joshua Nelson-0/+6
2020-12-01Rollup merge of #79527 - jyn514:intra-doc-tests, r=ManishearthMara Bos-198/+0
Move intra-doc link tests into a subdirectory They were starting to get unwieldy. r? ``@Manishearth``
2020-11-29Add test for cross-crate SelfJoshua Nelson-0/+13
2020-11-28Move `src/test/rustdoc` intra-doc link tests into a subdirectoryJoshua Nelson-198/+0
They were starting to get unwieldy.
2020-08-29rustdoc: Fix intra-doc links for cross-crate re-exports of traitsJoshua Nelson-2/+0
#58972 ignored extern_traits because before #65983 was fixed, they would always fail to resolve, giving spurious warnings. This undoes that change, so extern traits are now seen by the `collect_intra_doc_links` pass. There are also some minor changes in librustdoc/fold.rs to avoid borrowing the extern_traits RefCell more than once at a time.
2020-07-30intra_doc_resolution_failures -> broken_intra_doc_linksManish Goregaokar-15/+15
2020-07-30Rename to intra_doc_resolution_failuresManish Goregaokar-15/+15
2020-07-29Rename usage of intra_doc_link_resolution_failureManish Goregaokar-15/+15
2020-07-16Update src/test/rustdoc/intra-doc-crate/auxiliary/hidden.rsManish Goregaokar-2/+2
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-07-16Add test for doc(hidden) intra-doc cross-crate reexportsManish Goregaokar-0/+29
2020-07-16Fix invalid lintJoshua Nelson-10/+10
intra_doc_resolution_failure is not a lint.
2020-07-16Add (broken and ignored) test for #73829Joshua Nelson-2/+4
2020-07-16Support intra-doc links on trait and module re-exportsJoshua Nelson-0/+46
Trait implementations are treated the same as modules for the purposes of intra-doc links.
2020-07-16Support intra-doc links on macro re-exportsJoshua Nelson-0/+42
This includes both `macro_rules!` and proc-macros.
2020-07-16rand -> my_randJoshua Nelson-4/+4
This fixes a failure in stage2 rustdoc tests.
2020-07-16 #![deny(intra_doc_resolution_failure)]Joshua Nelson-0/+12
2020-07-16Add test for submodules in inner crateJoshua Nelson-3/+20
2020-07-16Add test for documenting the re-exportJoshua Nelson-0/+13
2020-07-16Add test for re-exportsJoshua Nelson-0/+28
I had a hard time getting this to work without the `extern crate`, suggestions are welcome.
2020-07-16Add tests for basic intra-doc linksJoshua Nelson-0/+11