diff options
| author | Eric Huss <eric@huss.org> | 2021-09-29 19:33:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-29 19:33:34 -0700 |
| commit | 42ea15be0a55ae7624a21f00818c2fcdf0d21e59 (patch) | |
| tree | 4002240ed47788c1efdaab7c82376e8099998c32 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 24a789b666f2c36d443cde48b5baef04e5b3c76d (diff) | |
| parent | ee3811671b8f4b7e6d1498a408182e2586d22613 (diff) | |
| download | rust-42ea15be0a55ae7624a21f00818c2fcdf0d21e59.tar.gz rust-42ea15be0a55ae7624a21f00818c2fcdf0d21e59.zip | |
Rollup merge of #87428 - GuillaumeGomez:union-highlighting, r=notriddle
Fix union keyword highlighting in rustdoc HTML sources I followed this logic: if I find an ident "union", I check if it followed by another ident or not. If it's the case, then I consider this is a keyword because it's declaring a union type. To do so I created a new Iterator which allows to peek the next items without moving the current iterator position. This is part of https://github.com/rust-lang/rust/issues/85016. If the fix makes sense, I'll extend it to other weak keywords (the issue only mentions they exist but https://doc.rust-lang.org/nightly/reference/keywords.html#weak-keywords only talks about `dyn` and `'static` so not sure if there is anything else to be done?). cc `@notriddle` (you're one of the last ones who worked on this part of rustdoc so here you go :wink: ) r? `@jyn514`
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
