about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-19 22:57:40 +0200
committerGitHub <noreply@github.com>2022-04-19 22:57:40 +0200
commita0ba15bfab46c987f910449f44ad8db9cdd0cea7 (patch)
treed122b8a0ecd4b1be0e3931f65748b0a55d04784b /compiler/rustc_mir_transform/src/coverage/debug.rs
parent69e45d73b9435e20aa33c8b2ba559e478412974c (diff)
parentf7ce145d83311f7d288d1169376bbcc5f88ea5f9 (diff)
downloadrust-a0ba15bfab46c987f910449f44ad8db9cdd0cea7.tar.gz
rust-a0ba15bfab46c987f910449f44ad8db9cdd0cea7.zip
Rollup merge of #95813 - Urgau:rustdoc-where-clause-space, r=GuillaumeGomez
Remove extra space before a where clause

Remove extra space before where clause in the generated documentation.

The fix is to move the space before the break-line so that it doesn't appear visually but is still here. Removing it completely would create things like this `impl<D> Delta<D>where D: MyTrait` (missing a space before the where) which I don't think we want.

Added two regression test, first one test that the `<br>` is after the space and the second check that the `<br>` is before the spaces.

Before:
![image](https://user-images.githubusercontent.com/3616612/162475212-d4bb6727-ed66-4a55-a4a2-4f55189bf8bd.png)

After:
![image](https://user-images.githubusercontent.com/3616612/162475467-508fd082-60a7-4a8c-b693-8b188e8843e6.png)

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