diff --git a/CHANGELOG.md b/CHANGELOG.md index e9ce930dabc..fb3a5c8e739 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,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 49e7e4e6489..baae6020e99 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 14f27f3f8b6..32c338b6893 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -105,7 +105,7 @@ create_config! { space_before_colon: bool, false, false, "Leave a space before the colon"; space_after_colon: bool, true, false, "Leave a space after the colon"; spaces_around_ranges: bool, false, false, "Put spaces around the .. and ..= range operators"; - binop_separator: SeparatorPlace, SeparatorPlace::Front, false, + binop_separator: SeparatorPlace, SeparatorPlace::Front, true, "Where to put a binary operator when a binary expression goes multiline"; // Misc.