about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorYacin Tmimi <ytmimi@horizonmedia.com>2021-10-14 17:16:28 -0400
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-10-17 16:27:05 -0500
commit5f4811ed7bc600e0cbe40c962e8933adb9baaddf (patch)
treeb21523a63c23b31f38ebcc9cc93a949976b5d0d5 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent0cff306b61922ed5f460a4f6cbd4134498a3c42f (diff)
downloadrust-5f4811ed7bc600e0cbe40c962e8933adb9baaddf.tar.gz
rust-5f4811ed7bc600e0cbe40c962e8933adb9baaddf.zip
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions