Skip to content

Fixes for rustfmt now formatting cfg_select - #1243

Merged
tgross35 merged 3 commits into
rust-lang:mainfrom
tgross35:rustfmt
Aug 3, 2026
Merged

Fixes for rustfmt now formatting cfg_select#1243
tgross35 merged 3 commits into
rust-lang:mainfrom
tgross35:rustfmt

Conversation

@tgross35

@tgross35 tgross35 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The latest rustfmt now formats cfg_select syntax.

ci: skip-extensive

This shouldn't be part of our public API.

Fixes: 14155c5 ("replace cfg_if with cfg_select")
@tgross35 tgross35 changed the title Apply nightly rustfmt Fixes for rustfmt now formatting cfg_select Aug 3, 2026
rustfmt now formats the contents of `cfg_select`, including changing `x
=> { y }` to `x => y,`, which isn't supported by our macro. Rename it
until we can actually use the builtin `cfg_select`.
The latest rustfmt now formats `cfg_select` syntax. Update the place
where we use builtin `cfg_select`.
@tgross35
tgross35 enabled auto-merge (rebase) August 3, 2026 18:42
@tgross35
tgross35 merged commit 3c5b2e6 into rust-lang:main Aug 3, 2026
44 checks passed
@tgross35
tgross35 deleted the rustfmt branch August 3, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant