Skip to content

Commit 99edc88

Browse files
authored
Stabilize match_block_trailing_comma. (#4145)
Servo has used this since forever, and it'd be useful to be able to use rustfmt stable there so that we can use the same rustfmt version in both Firefox and Servo. Feel free to close this if there's any reason it shouldn't be done. Closes #3380
1 parent 27d5871 commit 99edc88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Configurations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ Put a trailing comma after a block based match arm (non-block arms are not affec
15921592

15931593
- **Default value**: `false`
15941594
- **Possible values**: `true`, `false`
1595-
- **Stable**: No (tracking issue: [#3380](https://github.com/rust-lang/rustfmt/issues/3380))
1595+
- **Stable**: Yes
15961596

15971597
#### `false` (default):
15981598

rustfmt-core/rustfmt-lib/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ create_config! {
119119
"Add trailing semicolon after break, continue and return";
120120
trailing_comma: SeparatorTactic, SeparatorTactic::Vertical, false,
121121
"How to handle trailing commas for lists";
122-
match_block_trailing_comma: bool, false, false,
122+
match_block_trailing_comma: bool, false, true,
123123
"Put a trailing comma after a block based match arm (non-block arms are not affected)";
124124
blank_lines_upper_bound: usize, 1, false,
125125
"Maximum number of blank lines which can be put between items";

0 commit comments

Comments
 (0)