diff options
| author | GambitingMan <68272188+GambitingMan@users.noreply.github.com> | 2023-10-24 02:27:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-23 20:27:26 -0400 |
| commit | 041f11315923b0e4b0328b3bb6366de9148c7b6b (patch) | |
| tree | 1fa9dc8b60728c845712321444ed3b09c6a002d5 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 81fe905ca83cffe84322f27ca43950b617861ff7 (diff) | |
| download | rust-041f11315923b0e4b0328b3bb6366de9148c7b6b.tar.gz rust-041f11315923b0e4b0328b3bb6366de9148c7b6b.zip | |
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`.Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
