-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionA-rustfmtArea: RustfmtArea: RustfmtC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-style-nominatedNominated for discussion during a style team meeting.Nominated for discussion during a style team meeting.S-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.Status: This issue is ready for inclusion in the edition.T-styleRelevant to the style team, which will review and decide on the PR/issue.Relevant to the style team, which will review and decide on the PR/issue.
Description
This is a tracking issue for the Rust 2024-relevant parts of:
- [style edition 2024] Combine all delimited exprs as last argument #114764
- [unstable option] overflow_delimited_expr rustfmt#3370
This issue is for tracking readiness for the Rust 2024 edition.
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
- Implement in nightly Rust 2024.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.Add documentation to the edition guide.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.Add formatting for new syntax to the style guide.
- See the nightly style procedure.
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.Ensure ready for Rust 2024 stabilization.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
cc @rust-lang/style @rust-lang/rustfmt @calebcartwright @pitaj
Metadata
Metadata
Assignees
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionA-rustfmtArea: RustfmtArea: RustfmtC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-style-nominatedNominated for discussion during a style team meeting.Nominated for discussion during a style team meeting.S-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.Status: This issue is ready for inclusion in the edition.T-styleRelevant to the style team, which will review and decide on the PR/issue.Relevant to the style team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
tmandry commentedon Apr 17, 2024
It looks like there's no owner driving forward on an implementation, which we need by May 1. If there's no owner of this we should take it out of the style guide for 2024.
@calebcartwright Is this something you can own the implementation of? If not, is there an alternative owner?
calebcartwright commentedon Apr 17, 2024
Not objecting to this specific deadline, but also first I'm hearing of a May 1st date. Is there a communication channel I should be monitoring?
Sure put my name down. I'm a little puzzled by the overall approach to tracking these, likely due to my own ignorance. The "implementation" is changing a boolean value, so for my own 0.02 this all feels a bit too detailed and granular 🤷
pitaj commentedon Apr 17, 2024
Just want to bring up a caveat.
I don't know how well tested the rustfmt feature is. There may or may not be some behavior differences between the current implementation in rustfmt and the specified behavior in the style guide.
ytmimi commentedon Apr 17, 2024
rustdoc? do you mean rustfmt?
pitaj commentedon Apr 17, 2024
Woops yes, fixed
ytmimi commentedon Apr 17, 2024
looks like there are some tests in rustfmt. Given that
overflow_delimited_expr
is still unstable I think it wouldn't hurt to double check that the implementation matches what's described in the style guide and maybe add some extra test cases.ytmimi commentedon Apr 17, 2024
@pitaj I believe the formatting issues you brought up in #114764 (comment) and #114764 (comment) are still issues for rustfmt unless this is the correct formatting based on the style guide:
running with
overflow_delimited_expr=true
into
pitaj commentedon Apr 17, 2024
I consider those cases unfortunate, but they actually do match the behavior as currently specified by the style guide.
I did try my hand at writing up a policy to adjust for those, but it wasn't included in the end.
I think users can use comments to force specific formatting in those cases.
ytmimi commentedon Apr 17, 2024
How common are those cases? I can image that some users might find this formatting worse than
overflow_delimited_expr=false
.@calebcartwright I know that technically the implementation is as simple as flipping a boolean to enable this by default, but I'd also want to stabilize
overflow_delimited_expr
at the same time so users at least have the option to turn this off.19 remaining items