Skip to content

[unstable option] condense_wildcard_suffixes #3384

@scampi

Description

@scampi
Contributor

Tracking issue for condense_wildcard_suffixes

Activity

izyuumi

izyuumi commented on Jun 22, 2024

@izyuumi

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

ytmimi commented on Jun 23, 2024

@ytmimi
Contributor

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

izyuumi commented on Jun 24, 2024

@izyuumi

That makes so much sense! Thank you very much.

PanieriLorenzo

PanieriLorenzo commented on Apr 21, 2025

@PanieriLorenzo

what's currently in the way of stabilizing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    unstable optiontracking issue of an unstable option

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @scampi@ytmimi@PanieriLorenzo@izyuumi

        Issue actions

          [unstable option] condense_wildcard_suffixes · Issue #3384 · rust-lang/rustfmt