From 5f9c9ec066e1c47e4f28508d4c68a800d267daa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 27 Sep 2022 15:33:36 -1000 Subject: [PATCH] config: Stabilize binop_separator again. See reasoning in #4144, which still applies. Other projects like bindgen etc also use it by default, and this would allow them to move to stable rust. Fixes #3368 again. --- CHANGELOG.md | 1 + Configurations.md | 2 +- src/config/mod.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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.