diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-04-17 13:26:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-17 13:26:20 -0400 |
| commit | 4ae25a60ba04d9b15f1d1eeda3b02cbd224b069d (patch) | |
| tree | bc7527958d8e27c9fc4c72aa2959e6777ba50450 /src/test/run-pass/thinlto | |
| parent | 914b6f1f14e62550c9b7ca7f59490aa0f10ef288 (diff) | |
| parent | 27bfbd56f08ab64122a79cb84446a27b99099590 (diff) | |
| download | rust-4ae25a60ba04d9b15f1d1eeda3b02cbd224b069d.tar.gz rust-4ae25a60ba04d9b15f1d1eeda3b02cbd224b069d.zip | |
Rollup merge of #41280 - QuietMisdreavus:rustdoc-toc, r=GuillaumeGomez
rustdoc: add a list of headings to the sidebar It's another misdreavus rustdoc PR, which means it's time for Bikeshed City once again! `:3` In an effort to aid navigation in long documentation pages, this PR adds a listing of headings to the sidebars of pages where such headings exist. For example, for structs, links to their fields, inherent methods, and trait implementations are available where applicable. Examples: * Modules/Crate roots  * Enums  * Primitives  * Traits  * Structs  Open questions: * Right now, these kinds of pages (and also unions) are the only pages that will receive the name header - pages for functions, constants, macros, etc, won't have the corresponding name in their sidebar. Should I print the name regardless and only add table-of-contents links for pages that have them? This would make them match, for example, a struct with no public fields, no methods, and no trait implementations. The latter would still have a "Struct MyStruct" line above the module contents, with no header links to speak of, whereas a function wouldn't even have "Function my\_function". * This is only a header listing, but there has been requests to include a more-complete listing of fields/methods/traits/etc, for example in #41123.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
