about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorGambitingMan <68272188+GambitingMan@users.noreply.github.com>2023-10-24 02:27:26 +0200
committerGitHub <noreply@github.com>2023-10-23 20:27:26 -0400
commit041f11315923b0e4b0328b3bb6366de9148c7b6b (patch)
tree1fa9dc8b60728c845712321444ed3b09c6a002d5 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent81fe905ca83cffe84322f27ca43950b617861ff7 (diff)
downloadrust-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