Skip to content

Commit 775649a

Browse files
emiliocalebcartwright
authored andcommitted
Stabilize match_block_trailing_comma. (rust-lang#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 rust-lang#3380
1 parent 365a2f8 commit 775649a

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

16271627
- **Default value**: `false`
16281628
- **Possible values**: `true`, `false`
1629-
- **Stable**: No (tracking issue: #3380)
1629+
- **Stable**: Yes
16301630

16311631
#### `false` (default):
16321632

src/config/mod.rs

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

0 commit comments

Comments
 (0)