about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-30 01:22:42 +0200
committerGitHub <noreply@github.com>2023-07-30 01:22:42 +0200
commitfa94851b07d0cc0b5a8f0e0834b738735c041083 (patch)
tree4926b9bc81461c977211a5cb276643b3af0e4cb6 /compiler/rustc_macros/src
parent32303b219d4dffa447aa606bc11c7a648f44a862 (diff)
parentb7871e55374e1a38e3c6004eaa19fd839a777df3 (diff)
downloadrust-fa94851b07d0cc0b5a8f0e0834b738735c041083.tar.gz
rust-fa94851b07d0cc0b5a8f0e0834b738735c041083.zip
Rollup merge of #114129 - GuillaumeGomez:rustdoc-cleanup, r=notriddle
Rustdoc small cleanups

Each commit does some little cleanups:

 * We had some `Res` comparisons in multiple places (and still do, but unless we use a macro, it's not possible to "merge" any further) so I moved it into a function.
 * It was weird to have some utils function used everywhere in `visit_ast` so I instead moved it into `clean/utils.rs`.
 * In HTML rendering, we had some write "issues":
   * Multiple calls that could be merged into one.
   * Some `write!` that could be `write_str`.
   * We didn't use the new `format!` args much.

r? `@notriddle`
Diffstat (limited to 'compiler/rustc_macros/src')
0 files changed, 0 insertions, 0 deletions