Skip to content

Commit c2dcf8b

Browse files
committed
config: Stabilize binop_separator again.
See reasoning in rust-lang#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 rust-lang#3368 again.
1 parent ee2bed9 commit c2dcf8b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
### Changed
1515

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

1819
### Added
1920

Diff for: Configurations.md

+1-1
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

Diff for: src/config/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ create_config! {
105105
space_before_colon: bool, false, false, "Leave a space before the colon";
106106
space_after_colon: bool, true, false, "Leave a space after the colon";
107107
spaces_around_ranges: bool, false, false, "Put spaces around the .. and ..= range operators";
108-
binop_separator: SeparatorPlace, SeparatorPlace::Front, false,
108+
binop_separator: SeparatorPlace, SeparatorPlace::Front, true,
109109
"Where to put a binary operator when a binary expression goes multiline";
110110

111111
// Misc.

0 commit comments

Comments
 (0)