rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

[unstable option] condense_wildcard_suffixes

Open scampi opened this issue 6 years ago • 4 comments

Tracking issue for condense_wildcard_suffixes

scampi avatar Feb 13 '19 22:02 scampi

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.

izyuumi avatar Jun 22 '24 06:06 izyuumi

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 (..).

ytmimi avatar Jun 23 '24 16:06 ytmimi

That makes so much sense! Thank you very much.

izyuumi avatar Jun 24 '24 04:06 izyuumi

what's currently in the way of stabilizing this?

PanieriLorenzo avatar Apr 21 '25 21:04 PanieriLorenzo