rust/tests/target/issue-5042
Yacin Tmimi 606894eb0b Retain trailing separator when extracting the last inline post comment
Fixes 5042

Previously, trailing commas were removed from the last inline comment.
This lead to rustfmt refusing to format code snippets because
the original comment did not match the rewritten comment.

Now, when rustfmt extracts the last inline comment it leaves trailing
separators alone. Rustfmt does not need to remove these separators
because they are commented out.
2022-02-03 18:52:58 -06:00
..
multi-line_comment_with_trailing_comma.rs Retain trailing separator when extracting the last inline post comment 2022-02-03 18:52:58 -06:00
multi-line_comment_without_trailing_comma.rs Retain trailing separator when extracting the last inline post comment 2022-02-03 18:52:58 -06:00
single-line_comment_with_trailing_comma.rs Retain trailing separator when extracting the last inline post comment 2022-02-03 18:52:58 -06:00
single-line_comment_without_trailing_comma.rs Retain trailing separator when extracting the last inline post comment 2022-02-03 18:52:58 -06:00