-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
rustfmt formatting of cfg_select! pending for Rust 1.99 diverges from style FCP #160944
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-style-nominatedNominated for discussion during a style team meeting.Nominated for discussion during a style team meeting.T-rustfmtRelevant to the rustfmt team, which will review and decide on the PR/issue.Relevant to the rustfmt team, which will review and decide on the PR/issue.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
Activity
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-style-nominatedNominated for discussion during a style team meeting.Nominated for discussion during a style team meeting.T-rustfmtRelevant to the rustfmt team, which will review and decide on the PR/issue.Relevant to the rustfmt team, which will review and decide on the PR/issue.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.
In rust-lang/style-team#201 (comment), the style team FCPed a decision about how to format code within
cfg_select. This included by reference the determination made in #144323 (comment). In that, we specified the following formatting:That PR was closed, and formatting for
cfg_select!landed in #154202 (thanks for that!). But the current formatting, for the above, on nightly, is:It's also not adding trailing commas, so it formats this —
— as:
I'd suspect we might want it to add the trailing commas there.
@ytmimi: What are you thoughts on how to handle this given the pending beta bump?
cc @rust-lang/rustfmt @rust-lang/style