diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-12 20:39:17 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-12 20:39:17 +0530 |
| commit | 03560346c4d8c71cf745f61d4f19ffce9fd12670 (patch) | |
| tree | 4e345cc6f08d80271f94f2108421d579ab659280 /library/std/src/sys/unix/alloc.rs | |
| parent | 9914c96f0676dc212e3a1e854f5ee8d477351a15 (diff) | |
| parent | dd4613cbc091860d4b56f506b195b92c87f022a1 (diff) | |
| download | rust-03560346c4d8c71cf745f61d4f19ffce9fd12670.tar.gz rust-03560346c4d8c71cf745f61d4f19ffce9fd12670.zip | |
Rollup merge of #100409 - jsha:highlight-lighter, r=GuillaumeGomez
rustdoc: don't generate DOM element for operator In our source page highlighting, we were generating `<span class="op">` tags for all "operators", including e.g. `<` `>` around generic parameters, `*`, `&`. This contributed significantly to DOM size, but we don't actually style `.op` except in the ayu theme. Remove the styles for `.op` in ayu, and stop generating the `<span>`s. This reduces DOM size of an example page[1] from 265,938 HTML elements to 242,165 elements, a 9% reduction. r? ``@GuillaumeGomez`` Demo: (warning - slow!) https://rustdoc.crud.net/jsha/highlight-lighter/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html [1]: https://doc.rust-lang.org/nightly/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
Diffstat (limited to 'library/std/src/sys/unix/alloc.rs')
0 files changed, 0 insertions, 0 deletions
