about summary refs log tree commit diff
path: root/src/test/rustdoc/macro_rules-matchers.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-34/+0
2022-08-14Update rustdoc testsGuillaume Gomez-4/+2
2022-08-13Rename `@hastext` to `@hasraw` (same for `matches`)Noah Lev-12/+12
I think `@hasraw` is slightly clearer than `@hastext` since it is actually matching against the raw HTML, not the text nodes.
2022-08-13Update tests: arity-2 `@{has,matches}` -> `...text`Noah Lev-12/+12
2022-08-11rustdoc: don't generate DOM element for operatorJacob Hoffman-Andrews-4/+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-10-04Fix rustdoc test caseMichael Howell-12/+6
2021-07-03rustc_ast_pretty: Don't print space after `$`Noah Lev-5/+9
For example, this code: $arg:expr used to be pretty-printed as: $ arg : expr but is now pretty-printed as: $arg : expr
2021-07-03Pretty-print macro matchers instead of using source codeNoah Lev-5/+4
The output is not quite as nice as it used to be, but it does work.
2021-06-28Add regression test for #86208Noah Lev-0/+42
This test does not test the output as well as I would like, but I think I am limited by htmldocck. I would really just like to strip all the HTML tags from the output for the sake of the different `@has` checks, but that doesn't seem to be currently possible.