about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-11 22:52:57 +0200
committerGitHub <noreply@github.com>2022-08-11 22:52:57 +0200
commit9606408688df29931e68cadb1558b1f9740d3d9b (patch)
tree190e911eb1f8ad9c8571febfd12bc33e8cc8b9ac /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8bbb54adfc85d584ddf75977f17933f8b59fba35 (diff)
parent5938fd704d4358a12081cba810f3055531da4386 (diff)
downloadrust-9606408688df29931e68cadb1558b1f9740d3d9b.tar.gz
rust-9606408688df29931e68cadb1558b1f9740d3d9b.zip
Rollup merge of #99337 - jsha:simplify-highlight, r=GuillaumeGomez
rustdoc: simplify highlight.rs

Split render_with_highlighting, which took many optional parameters, into three functions for specific purposes, which each take a smaller number of mostly required parameters.

Remove some plumbing to pass through an "edition" parameter, which was used solely to avoid highlighting some 2021 Edition keywords in non-2021 code.

I've tested a build of std docs before and after, and this does not change the generated HTML at all.

Followup from https://github.com/rust-lang/rust/pull/91264#discussion_r901151101

r? ```@GuillaumeGomez```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions