Skip to content

Commit

Permalink
config: Stabilize binop_separator again.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emilio committed Dec 19, 2022
1 parent ee2bed9 commit c2dcf8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c2dcf8b

Please sign in to comment.