Skip to content

skip_macro_invocations: Cannot configure from rustfmt.toml #5816

Closed
@DCNick3

Description

@DCNick3

skip_macro_invocations option doesn't parse as documented.

Writing skip_macro_invocations=["*", "println"] in rustfmt.toml leads to this error:

Error: Decoding config file failed:
unknown variant `*`, expected `Name` or `All`
in `skip_macro_invocations`

Please check your config file.

It seems that parsing rules are not what is actually designed (* or some name), but more like tagged serde enum. These config files work:

[[skip_macro_invocations]]
Name="aboba"
skip_macro_invocations = ["All"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions