Skip to content

Reorders imports of modules containing #![macro_use] #4959

Open
@nagisa

Description

@nagisa

Similar to #2399, rustfmt will still reorder mod statements of modules that contain a #![macro_use] attribute, as opposed to the mod itself being annotated with #[macro_use]. This is equivalently invalid reordering.

rustfmt 1.4.36-nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-modsModule resolution.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions