rust/tests
GambitingMan 041f113159
Fixed error caused by combination of match_arm_blocks and control_brace_style
Fixes 5912

When `control_brace_style = "AlwaysNextLine"`, the code seems to always assume that `body_prefix` is `{`. This is however not the case when `match_arm_blocks = false`. This causes `block_sep` to introduce extra white space that causes the error.

The fix was to check if `body_prefix` is empty before matching on `ControlBraceStyle::AlwaysNextLine`.
2023-10-23 20:27:26 -04:00
..
cargo-fmt Inline format arguments for easier reading (#5881) 2023-08-13 14:14:31 -05:00
config fix: handle skip_macro_invocations from config file 2023-07-05 17:46:03 -04:00
coverage Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00
mod-resolver Merge commit '1d8491b120' into sync-from-rustfmt 2023-01-24 14:16:03 -06:00
parser tests: add test for panic on new_parser_from_file 2020-11-02 18:31:51 -06:00
rustfmt Fixed error caused by combination of match_arm_blocks and control_brace_style 2023-10-23 20:27:26 -04:00
source Fixed error caused by combination of match_arm_blocks and control_brace_style 2023-10-23 20:27:26 -04:00
target Fixed error caused by combination of match_arm_blocks and control_brace_style 2023-10-23 20:27:26 -04:00
writemode Merge commit '5ff7b632a9' into sync-rustfmt-subtree 2022-03-29 23:17:30 -05:00