rust/tests
Yacin Tmimi ec46ffd981 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.
2021-12-01 18:31:10 -06:00
..
cargo-fmt ensure cargo-fmt tests are excluded from root workspace 2021-10-20 10:12:22 -05:00
config chore: backport 8157a3f0afe978d3e953420577f8344db7e905bf 2020-07-15 09:19:21 -05:00
coverage Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00
license-template fix: handling of empty str for license template path (#3804) 2019-09-24 09:24:05 +09:00
mod-resolver fix: handle external mods imported via external->inline load hierarchy 2021-11-04 18:35:38 -05:00
parser tests: add test for panic on new_parser_from_file 2020-11-02 18:31:51 -06:00
rustfmt Cargo fmt 2019-09-24 09:26:50 +09:00
source Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
target Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
writemode Fix line numbers in checkstyle output (#3694) 2019-08-19 11:11:35 +09:00