Skip to content

Only generic impl blocks get formatted in macros #6036

@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-macrosArea: macros (procedural macros, macro_rules! macros, etc.)C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions