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

[unstable option] condense_wildcard_suffixes #3384

Open
scampi opened this issue Feb 13, 2019 · 3 comments
Open

[unstable option] condense_wildcard_suffixes #3384

scampi opened this issue Feb 13, 2019 · 3 comments
Labels
unstable option tracking issue of an unstable option

Comments

@scampi
Copy link
Contributor

scampi commented Feb 13, 2019

Tracking issue for condense_wildcard_suffixes

@scampi scampi added the unstable option tracking issue of an unstable option label Feb 13, 2019
@izyuumi
Copy link

izyuumi commented Jun 22, 2024

Hello, I think this would be an interesting option to have. Just want to clarify, when the option is set to false, should it also have the .. to condense underscores? I saw that on (https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#condense_wildcard_suffixes)
CleanShot 20240622 062745@2x
So, I'm assuming that when this option is set to false, it can do both condensed and non-condensed versions.

@ytmimi
Copy link
Contributor

ytmimi commented Jun 23, 2024

The documentation demonstrates that when set to false rustfmt won't perform the transformation from (_, _, _) -> (..). If the user writes (..) in their code rustfmt won't change it either. When it's set to true rustfmt will always replace (_, _, _) with (..).

@izyuumi
Copy link

izyuumi commented Jun 24, 2024

That makes so much sense! Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unstable option tracking issue of an unstable option
Projects
None yet
Development

No branches or pull requests

3 participants