Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for Rust 2024: rustfmt assignment operators rhs indentation #132380

Closed
2 of 4 tasks
calebcartwright opened this issue Oct 31, 2024 · 3 comments
Closed
2 of 4 tasks
Assignees
Labels
A-edition-2024 Area: The 2024 edition A-rustfmt Area: Rustfmt C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC I-style-nominated Nominated for discussion during a style team meeting. S-tracking-impl-incomplete Status: The implementation is incomplete. T-style Relevant to the style team, which will review and decide on the PR/issue.

Comments

@calebcartwright
Copy link
Member

calebcartwright commented Oct 31, 2024

This is a tracking issue for changing the indentation level used in formatting assignment/op expressions where the left hand side expression has to be formatted across multiple lines, with the style/formatting changing to indent the right hand side expression relative to the last line of the left hand side expression

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

None.

Implementation history

cc @rust-lang/rustfmt @rust-lang/style

@calebcartwright calebcartwright added A-edition-2024 Area: The 2024 edition A-rustfmt Area: Rustfmt C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC I-style-nominated Nominated for discussion during a style team meeting. S-tracking-impl-incomplete Status: The implementation is incomplete. S-tracking-needs-documentation Status: Needs documentation. T-style Relevant to the style team, which will review and decide on the PR/issue. labels Oct 31, 2024
@calebcartwright
Copy link
Member Author

the Style and Rustfmt teams are already aware of this, but given the late date I will note for transparency that we do already have this "implemented" in rustfmt and have been doing some testing on it (and it's that testing that surfaced some formatting diffs that led to us winding back the operators where the new rule should be applied).

I am intentionally going to keep the impl-incomplete label here though until we get the PR merged in

@traviscross
Copy link
Contributor

Reminder: There are only 12 days left until the branch date for Rust 1.85. Anything not in master at that point will not make it into Rust 2024 unless it is accepted by compiler according to the conventions for backports to beta.

I.e., this item is in jeopardy.

@traviscross
Copy link
Contributor

traviscross commented Dec 30, 2024

This item unfortunately isn't going to make Rust 2024 (or, equivalently, the Style Edition 2024), given that it's not implemented in nightly and the branch date for Rust 1.85 (and Rust 2024) is 2025-01-03.

Hopefully this item can be included in a future edition.

We'll be reverting this chapter in the Edition Guide, and the relevant changes will also need to be reverted in the Style Guide.

@rustbot rustbot added A-maybe-future-edition Something we may consider for a future edition. and removed A-edition-2024 Area: The 2024 edition labels Dec 30, 2024
@traviscross traviscross changed the title Tracking Issue for Rust 2024: rustfmt assignment operators rhs indentation Tracking Issue for future edition: rustfmt assignment operators rhs indentation Dec 30, 2024
@traviscross traviscross changed the title Tracking Issue for future edition: rustfmt assignment operators rhs indentation Tracking Issue for Rust 2024: rustfmt assignment operators rhs indentation Dec 30, 2024
@traviscross traviscross added A-edition-2024 Area: The 2024 edition and removed A-maybe-future-edition Something we may consider for a future edition. labels Dec 30, 2024
@traviscross traviscross closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
Noratrieb added a commit to Noratrieb/rust that referenced this issue Dec 31, 2024
…, r=compiler-errors

Revert style guide rhs break

This reverts rust-lang#132369 and rust-lang#119838. The style-guide change for indentation of rhs was not implemented in time for the 2024 style edition.
See tracking issue rust-lang#132380.

cc rust-lang#134974 for the other style guide change in 2024.

r? `@compiler-errors`
tgross35 added a commit to tgross35/rust that referenced this issue Dec 31, 2024
…, r=compiler-errors

Revert style guide rhs break

This reverts rust-lang#132369 and rust-lang#119838. The style-guide change for indentation of rhs was not implemented in time for the 2024 style edition.
See tracking issue rust-lang#132380.

cc rust-lang#134974 for the other style guide change in 2024.

r? ``@compiler-errors``
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Jan 1, 2025
Rollup merge of rust-lang#134975 - ehuss:revert-style-guide-rhs-break, r=compiler-errors

Revert style guide rhs break

This reverts rust-lang#132369 and rust-lang#119838. The style-guide change for indentation of rhs was not implemented in time for the 2024 style edition.
See tracking issue rust-lang#132380.

cc rust-lang#134974 for the other style guide change in 2024.

r? ``@compiler-errors``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-edition-2024 Area: The 2024 edition A-rustfmt Area: Rustfmt C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC I-style-nominated Nominated for discussion during a style team meeting. S-tracking-impl-incomplete Status: The implementation is incomplete. T-style Relevant to the style team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants