rust/src/librustdoc
bors e821a6ef78 Auto merge of #80261 - GuillaumeGomez:attr-rework, r=jyn514
rustdoc DocFragment rework

Kind of a follow-up of #80119.

A few things are happening in this PR. I'm not sure about the impact on perf though so I'm very interested about that too (if the perf is worse, then we can just close this PR).

The idea here is mostly about reducing the memory usage by relying even more on `Symbol` instead of `String`. The only issue is that `DocFragment` has 3 modifications performed on it:
 1. Unindenting
 2. Collapsing similar comments into one
 3. "Beautifying" (weird JS-like comments handling).

To do so, I saved the information about unindent and the "collapse" is now on-demand (which is why I'm not sure the perf will be better, it has to be run multiple times...).

r? `@jyn514`
2021-01-03 06:29:42 +00:00
..
clean Improve code for DocFragment rework 2021-01-02 19:16:27 +01:00
doctest Remove unnecessary semicolon from Rustdoc-generated code 2020-12-29 16:30:02 -05:00
formats Improve code for DocFragment rework 2021-01-02 19:16:27 +01:00
html Auto merge of #80261 - GuillaumeGomez:attr-rework, r=jyn514 2021-01-03 06:29:42 +00:00
json Box ItemKind to reduce the size of Item 2020-12-23 12:50:35 -05:00
passes Auto merge of #80261 - GuillaumeGomez:attr-rework, r=jyn514 2021-01-03 06:29:42 +00:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Simplfy color availability check 2020-11-17 10:33:14 +01:00
config.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00
core.rs Remove unused collapse pass 2021-01-02 19:16:27 +01:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs End of rework of Attributes struct 2021-01-02 16:55:12 +01:00
doctree.rs Don't unnecessarily override attrs for Module 2020-12-23 15:25:30 -05:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00
lib.rs Add Iterator::intersperse 2020-12-30 12:07:19 -08:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00
visit_ast.rs Don't unnecessarily override attrs for Module 2020-12-23 15:25:30 -05:00
visit_lib.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00

For more information about how librustdoc works, see the rustc dev guide.