Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Conversation

@eddyb
Copy link
Contributor

@eddyb eddyb commented Jun 3, 2023

Was checking something about SPIR-T CI and realized I'd forgotten I ended up with a rustfmt.toml for SPIR-T that contained version = "Two" because of this PR:

I'm not really sure why a decision was taken to not enable formatting array/slice patterns by default, making them nearly-unusable in non-trivial cases, but this is the result.

You'll notice there's many more changes than just array/slice patterns, looks like version = "Two" also enables a few more quality-of-life improvements as well, and I'm not sure if it's the direct cause but I was also able to remove some #[rustfmt::skip]s which didn't do anything anymore (see the second commit).

@eddyb eddyb requested review from VZout and repi June 3, 2023 05:20
@eddyb eddyb requested a review from fu5ha as a code owner June 3, 2023 05:20
@eddyb eddyb enabled auto-merge (rebase) June 3, 2023 05:20
Copy link
Contributor

@repi repi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, didn't know about this either. but is another nightly rustfmt feature but sounds fine to use here!

@eddyb eddyb merged commit 188aba2 into EmbarkStudios:main Jun 3, 2023
@eddyb eddyb deleted the rustfmt-arrays branch June 3, 2023 08:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants