Skip to content

Commit 032421a

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 37489e4 commit 032421a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
### Changed
169169

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

172173
### Added
173174

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

src/config/mod.rs

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

114114
// Misc.

0 commit comments

Comments
 (0)