rust/tests
Yacin Tmimi 5f4811ed7b Handle DefinitiveListTactic::SpecialMacro when writing pre-comments
Resolves 4615

Previously only Vertical and Mixed enum variants of DefinitiveListTactic
were considered when rewriting pre-comments for inner items in
lists::write_list.

Because we failed to considering the SpecialMacro variant we ended up in
a scenario where a ListItem with a pre_comment and a pre_comment_style
of ListItemCommentStyle::DifferentLine was written on the same line as the
list item itself.

Now we apply the same pre-comment formatting to SpecialMacro, Vertical,
and Mixed variants of DefinitiveListTactic.
2021-10-17 16:27:05 -05:00
..
cargo-fmt tests: restructure and extend cargo-fmt tests 2021-09-23 21:12:57 -05:00
config
coverage
license-template
mod-resolver/issue-4874 fix(rustfmt): load nested out-of-line mods correctly 2021-06-17 22:35:19 -05:00
parser
rustfmt
source Handle DefinitiveListTactic::SpecialMacro when writing pre-comments 2021-10-17 16:27:05 -05:00
target Handle DefinitiveListTactic::SpecialMacro when writing pre-comments 2021-10-17 16:27:05 -05:00
writemode