Skip to content

Commit

Permalink
Stabilize match_block_trailing_comma. (#4145)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emilio authored May 16, 2020
1 parent 27d5871 commit 99edc88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ Put a trailing comma after a block based match arm (non-block arms are not affec

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

#### `false` (default):

Expand Down
2 changes: 1 addition & 1 deletion rustfmt-core/rustfmt-lib/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ create_config! {
"Add trailing semicolon after break, continue and return";
trailing_comma: SeparatorTactic, SeparatorTactic::Vertical, false,
"How to handle trailing commas for lists";
match_block_trailing_comma: bool, false, false,
match_block_trailing_comma: bool, false, true,
"Put a trailing comma after a block based match arm (non-block arms are not affected)";
blank_lines_upper_bound: usize, 1, false,
"Maximum number of blank lines which can be put between items";
Expand Down

0 comments on commit 99edc88

Please sign in to comment.