Skip to content

Commit fdd4aa1

Browse files
committed
Stabilize match_block_trailing_comma.
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 rust-lang#3380
1 parent 7194d52 commit fdd4aa1

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
@@ -1514,7 +1514,7 @@ Put a trailing comma after a block based match arm (non-block arms are not affec
15141514

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

15191519
#### `false` (default):
15201520

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

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

0 commit comments

Comments
 (0)