Skip to content

Only generic impl blocks get formatted in macros #6036

Open
@CAD97

Description

@CAD97

Ideally, both should be formatted.

Test:

> echo "m!(impl One {}); m!(impl<> Two {});" | rustup run nightly rustfmt
m!(impl One {});
m!(
    impl Two {}
);

> rustup run nightly rustfmt -Vv
rustfmt 1.7.0-nightly (88189a71 2024-01-19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-macrosbugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions