Skip to content

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

@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::skipArea: `rustfmt::skip` tool attributeC-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