diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-19 01:51:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-19 01:51:58 +0200 |
| commit | 9a7016d67df095c59a5f27bf3856e2aed9cb0369 (patch) | |
| tree | 3223fdc4f545643e9c78ec614fe9367be2389e69 /src/test/ui/thinlto | |
| parent | 04a3dd8a872633ca1e4c217d11f741cc35cb19a5 (diff) | |
| parent | 45bb4097b4bb2670f93d0836d40d31bbde38aab2 (diff) | |
| download | rust-9a7016d67df095c59a5f27bf3856e2aed9cb0369.tar.gz rust-9a7016d67df095c59a5f27bf3856e2aed9cb0369.zip | |
Rollup merge of #61505 - ebarnard:doc-shrink, r=GuillaumeGomez
Only show methods that appear in `impl` blocks in the Implementors sections of trait doc pages In the "Implementors" and "Implementations on Foreign Types" sections, only show methods that appear in the `impl` block for that type. This has the benefit of - Reducing the size of the Iterator page, and other large trait documentation pages. - Retaining documentation on the `impl` blocks and functions in the `impl` blocks. - Indicating which provided methods are overridden. - Making the documentation match the structure of the code being documented. - Being a small change that can be easily backed out if issues arise. A set of Rust stdlib docs build with this change are [available here](https://ebarnard.github.io/2019-06-03-rust-smaller-trait-implementers-docs/). The size of the [`Iterator` doc page](https://ebarnard.github.io/2019-06-03-rust-smaller-trait-implementers-docs/std/iter/trait.Iterator.html) is reduced from 14.4MB (latest nightly) to 724kB. Before: <img width="1411" alt="Screenshot 2019-06-03 at 23 12 17" src="https://user-images.githubusercontent.com/1059683/58837971-1722a780-8655-11e9-8d81-51e48130951d.png"> After: <img width="1428" alt="Screenshot 2019-06-03 at 16 41 27" src="https://user-images.githubusercontent.com/1059683/58814907-84ffac80-861e-11e9-8692-79be473a5299.png"> cc #55900
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
