Skip to content

Commit 5f9c9ec

Browse files
committed
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.
1 parent 0332da0 commit 5f9c9ec

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@
354354
### Changed
355355

356356
- 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)
357+
- `binop_separator` is now stable ([#3368](https://github.com/rust-lang/rustfmt/issues/3368)).
357358

358359
### Added
359360

Configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Where to put a binary operator when a binary expression goes multiline.
4747

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

5252
#### `"Front"` (default):
5353

src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ create_config! {
112112
space_after_colon: SpaceAfterColon, false, "Leave a space after the colon";
113113
spaces_around_ranges: SpacesAroundRanges, false, "Put spaces around the .. and ..= range \
114114
operators";
115-
binop_separator: BinopSeparator, false,
115+
binop_separator: BinopSeparator, true,
116116
"Where to put a binary operator when a binary expression goes multiline";
117117

118118
// Misc.

0 commit comments

Comments
 (0)