diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-02-18 05:10:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-18 05:10:17 +0100 |
| commit | 28c0fa87bbb34ba5ff6b21e69b9bf33fb528d612 (patch) | |
| tree | 961330d310c24192ed3fa058e3b849a1cac7d12d /tests/rustdoc/const-generics/generic_const_exprs.rs | |
| parent | 6499eb5577a636c0dd40f8dd48df8f89a2bf958d (diff) | |
| parent | 5fbb1b2f4dd858f21da7ba56f9e5011b43a0af4b (diff) | |
| download | rust-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 'tests/rustdoc/const-generics/generic_const_exprs.rs')
| -rw-r--r-- | tests/rustdoc/const-generics/generic_const_exprs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/const-generics/generic_const_exprs.rs b/tests/rustdoc/const-generics/generic_const_exprs.rs index e23b3006da6..2d2d31d7231 100644 --- a/tests/rustdoc/const-generics/generic_const_exprs.rs +++ b/tests/rustdoc/const-generics/generic_const_exprs.rs @@ -3,5 +3,5 @@ #![allow(incomplete_features)] // make sure that `ConstEvaluatable` predicates dont cause rustdoc to ICE #77647 // @has foo/struct.Ice.html '//pre[@class="rust item-decl"]' \ -// 'pub struct Ice<const N: usize>;' +// 'pub struct Ice<const N: usize> where [(); { _ }]:;' pub struct Ice<const N: usize> where [(); N + 1]:; |
