Skip to content

#[rustfmt::skip::attributes(derive)] not work. #5270

Closed
@rise0chen

Description

@rise0chen
    #[rustfmt::skip::attributes(derive)]
    #[allow(dead_code)]
    #[derive(StructField)]
    #[derive(Clone)]
    struct Struct {
        field: String,
    }

It will merge #derive(StructField) and #[derive(Clone)] to #derive(StructField, Clone)], when i run cargo fmt.

I don't want to merge #derive(StructField) and #[derive(Clone)].

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-rustfmt::skipbugPanic, 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