Skip to content

Commit c83e729

Browse files
emiliocalebcartwright
authored andcommitted
Stabilize binop_separator.
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 #3368
1 parent 2da4f63 commit c83e729

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
@@ -51,7 +51,7 @@ Where to put a binary operator when a binary expression goes multiline.
5151

5252
- **Default value**: `"Front"`
5353
- **Possible values**: `"Front"`, `"Back"`
54-
- **Stable**: No (tracking issue: [#3368](https://github.com./rust-lang/rustfmt/issues/3368))
54+
- **Stable**: Yes
5555

5656
#### `"Front"` (default):
5757

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ create_config! {
9292
space_around_attr_eq: bool, true, false,
9393
"Determines if '=' are wrapped in spaces in attributes.";
9494
spaces_around_ranges: bool, false, false, "Put spaces around the .. and ..= range operators";
95-
binop_separator: SeparatorPlace, SeparatorPlace::Front, false,
95+
binop_separator: SeparatorPlace, SeparatorPlace::Front, true,
9696
"Where to put a binary operator when a binary expression goes multiline";
9797

9898
// Misc.

0 commit comments

Comments
 (0)