diff options
| author | Yacin Tmimi <yacintmimi@gmail.com> | 2021-11-19 18:52:52 -0500 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-12-01 18:31:10 -0600 |
| commit | ec46ffd981d3d50572f1ad3f6033a7c33d27033f (patch) | |
| tree | 88ff61a36ac92d021be00619c5e8486ec5bf5eae /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 1f28683ffacebc91b3bc47b94c56690633226ff9 (diff) | |
| download | rust-ec46ffd981d3d50572f1ad3f6033a7c33d27033f.tar.gz rust-ec46ffd981d3d50572f1ad3f6033a7c33d27033f.zip | |
Determine when new comment lines are needed for itemized blocks
Fixes 5088 Previously, rustfmt would add a new comment line anytime it reformatted an itemized block within a comment when ``wrap_comments=true``. This would lead to rustfmt adding empty comments with trailing whitespace. Now, new comment lines are only added if the original comment spanned multiple lines, if the comment needs to be wrapped, or if the comment originally started with an empty comment line.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
