about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/reference-links.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-03 06:29:42 +0000
committerbors <bors@rust-lang.org>2021-01-03 06:29:42 +0000
commite821a6ef78b915305c4d659c813f27d4180baec0 (patch)
tree0b81ff4614f0fe616589649195ea7920c8a5f870 /src/test/rustdoc-ui/reference-links.rs
parent05dfaba442258c3378070c0af41cd8b0735f7a0a (diff)
parentdf2df14424b6fa3b2b2a8a8cdd6cb2307ddbb474 (diff)
downloadrust-e821a6ef78b915305c4d659c813f27d4180baec0.tar.gz
rust-e821a6ef78b915305c4d659c813f27d4180baec0.zip
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`
Diffstat (limited to 'src/test/rustdoc-ui/reference-links.rs')
0 files changed, 0 insertions, 0 deletions