rust/src/librustdoc
Matthias Krüger 77f0209fde
Rollup merge of #90905 - GuillaumeGomez:empty-impl-blocks, r=jsha
Add empty impl blocks if they have documentation

Fixes https://github.com/rust-lang/rust/issues/90866.

The update for the test script is needed to count the number of impl blocks we have with only the struct. To be noted that with https://github.com/rust-lang/rust/pull/89676 merged, it wouldn't be needed (I don't know what is the status of it btw. cc ```@Mark-Simulacrum).```

It looks like this:

![Screenshot from 2021-11-14 16-51-28](https://user-images.githubusercontent.com/3050060/141689100-e57123c0-bf50-4c42-adf5-d991e169a0e4.png)

cc ```@jyn514```
r? ```@camelid```
2022-06-06 08:36:59 +02:00
..
2022-05-24 16:55:29 +02:00
2022-05-24 12:24:41 -04:00
2022-05-26 23:27:41 +01:00
2022-05-25 08:25:15 +02:00
2022-05-24 12:24:41 -04:00

For more information about how librustdoc works, see the rustc dev guide.