about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/fixtures/union.html
AgeCommit message (Collapse)AuthorLines
2022-08-14Update rustdoc testsGuillaume Gomez-5/+5
2022-08-11rustdoc: don't generate DOM element for operatorJacob Hoffman-Andrews-1/+1
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. [1]: https://doc.rust-lang.org/nightly/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
2021-08-06Add test for union keyword highlightingGuillaume Gomez-0/+8