about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/counters.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-10-20 04:35:15 +0900
committerGitHub <noreply@github.com>2021-10-20 04:35:15 +0900
commit7ceab9ef142a465c554bd96c3844accd425d3270 (patch)
tree99e9632990a148eb08ba1cb9fc0f0a6eae7fc3dd /compiler/rustc_mir_transform/src/coverage/counters.rs
parent9f2ad0a06185db6a3184780c665778bdcc33f0b2 (diff)
parent77c29294be4b7d25893eeb283c90d139f898c054 (diff)
downloadrust-7ceab9ef142a465c554bd96c3844accd425d3270.tar.gz
rust-7ceab9ef142a465c554bd96c3844accd425d3270.zip
Rollup merge of #90018 - GuillaumeGomez:too-long-item-names, r=jsha
Fix rustdoc UI for very long type names

Fixes #89972.

While working on it, I also discovered that when the item name is too long, it also breaks the flow of the page.

To make things right, I also renamed the `type-decl` CSS class into `item-decl` (because this PR also generates it for more than type declarations).

So here are the before/after screenshots:

![Screenshot from 2021-10-18 16-58-03](https://user-images.githubusercontent.com/3050060/137757247-637fcf04-4406-49c6-8a8a-18c2074aacd9.png)
![Screenshot from 2021-10-18 16-58-26](https://user-images.githubusercontent.com/3050060/137757252-17935e63-53b3-449f-a535-7be91ff0e257.png)

![Screenshot from 2021-10-18 16-58-07](https://user-images.githubusercontent.com/3050060/137757278-8b12e348-2980-4fc4-8853-bef99d58981f.png)
![Screenshot from 2021-10-18 16-58-28](https://user-images.githubusercontent.com/3050060/137757282-534a0e1b-3016-49ba-b3ac-e45bdb9035cb.png)

r? ``@jsha``
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions