diff --git a/CHANGELOG.md b/CHANGELOG.md index 69fc38a416d..b364e2f1e08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -354,6 +354,7 @@ ### Changed - Properly sort imports containing raw identifiers [#3791](https://github.com/rust-lang/rustfmt/issues/3791) (note this is change version gated, and not applied by default) +- `binop_separator` is now stable ([#3368](https://github.com/rust-lang/rustfmt/issues/3368)). ### Added diff --git a/Configurations.md b/Configurations.md index fce37eecac3..d07dcb8b055 100644 --- a/Configurations.md +++ b/Configurations.md @@ -47,7 +47,7 @@ Where to put a binary operator when a binary expression goes multiline. - **Default value**: `"Front"` - **Possible values**: `"Front"`, `"Back"` -- **Stable**: No (tracking issue: [#3368](https://github.com/rust-lang/rustfmt/issues/3368)) +- **Stable**: Yes #### `"Front"` (default): diff --git a/src/config/mod.rs b/src/config/mod.rs index b03674b6b3c..26b3fb1ec1f 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -112,7 +112,7 @@ create_config! { space_after_colon: SpaceAfterColon, false, "Leave a space after the colon"; spaces_around_ranges: SpacesAroundRanges, false, "Put spaces around the .. and ..= range \ operators"; - binop_separator: BinopSeparator, false, + binop_separator: BinopSeparator, true, "Where to put a binary operator when a binary expression goes multiline"; // Misc.