rust/tests/target/issue-5088
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
..
deeply_nested_long_comment_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
deeply_nested_long_comment_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
multi_line_itemized_block_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
multi_line_itemized_block_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
multi_line_text_with_itemized_block_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
multi_line_text_with_itemized_block_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
single_line_itemized_block_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
single_line_itemized_block_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
start_with_empty_comment_very_long_itemized_block_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
start_with_empty_comment_very_long_itemized_block_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
start_with_empty_comment_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
start_with_empty_comment_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
very_long_comment_wrap_comments_false.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00
very_long_comment_wrap_comments_true.rs Determine when new comment lines are needed for itemized blocks 2021-12-01 18:31:10 -06:00