rust/compiler
Matthias Krüger 6c627d25f6
Rollup merge of #93038 - GuillaumeGomez:block-doc-comments, r=notriddle
Fix star handling in block doc comments

Fixes #92872.

Some extra explanation about this PR and why https://github.com/rust-lang/rust/pull/92357 created this regression: when we merge doc comment kinds for example in:

```rust
/// he
/**
* hello
*/
#[doc = "boom"]
```

We don't want to remove the empty lines between them. However, to correctly compute the "horizontal trim", we still need it, so instead, I put back a part of the "vertical trim" directly in the "horizontal trim" computation so it doesn't impact the output buffer but allows us to correctly handle the stars.

r? `@camelid`
2022-01-20 17:10:41 +01:00
..
2021-12-14 18:50:31 -04:00
2022-01-19 13:58:29 +01:00
2022-01-12 16:09:01 +01:00
2022-01-13 03:57:44 +00:00
2022-01-19 13:58:29 +01:00
2022-01-15 01:16:55 +00:00