about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-02-18 05:10:17 +0100
committerGitHub <noreply@github.com>2024-02-18 05:10:17 +0100
commit28c0fa87bbb34ba5ff6b21e69b9bf33fb528d612 (patch)
tree961330d310c24192ed3fa058e3b849a1cac7d12d /compiler/rustc_parse/src/errors.rs
parent6499eb5577a636c0dd40f8dd48df8f89a2bf958d (diff)
parent5fbb1b2f4dd858f21da7ba56f9e5011b43a0af4b (diff)
downloadrust-28c0fa87bbb34ba5ff6b21e69b9bf33fb528d612.tar.gz
rust-28c0fa87bbb34ba5ff6b21e69b9bf33fb528d612.zip
Rollup merge of #121160 - fmease:rustdoc-fix-n-refactor-html-rendering, r=GuillaumeGomez
rustdoc: fix and refactor HTML rendering a bit

* refactoring: get rid of a bunch of manual `f.alternate()` branches
  * not sure why this wasn't done so already, is this perf-sensitive?
* fix an ICE in debug builds of rustdoc
  * rustdoc used to crash on empty outlives-bounds: `where 'a:`
* properly escape const generic defaults
* actually print empty trait and outlives-bounds (doesn't work for cross-crate reexports yet, will fix that at some other point) since they can have semantic significance
  * outlives-bounds: forces lifetime params to be early-bound instead of late-bound which is technically speaking part of the public API
  * trait-bounds: can affect the well-formedness, consider
    * makeshift “const-evaluatable” bounds under `generic_const_exprs`
    * bounds to force wf-checking in light of #100041 (quite artificial I know, I couldn't figure out something better), see https://github.com/rust-lang/rust/pull/121160#discussion_r1491563816
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions