diff options
| author | Yacin Tmimi <ytmimi@horizonmedia.com> | 2021-10-14 17:16:28 -0400 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-10-17 16:27:05 -0500 |
| commit | 5f4811ed7bc600e0cbe40c962e8933adb9baaddf (patch) | |
| tree | b21523a63c23b31f38ebcc9cc93a949976b5d0d5 /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | 0cff306b61922ed5f460a4f6cbd4134498a3c42f (diff) | |
| download | rust-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 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
