- 
                Notifications
    You must be signed in to change notification settings 
- Fork 963
Closed
Labels
A-rustfmt::skipArea: `rustfmt::skip` tool attributeArea: `rustfmt::skip` tool attributeC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEE-fixed-needs-confirmationCall for participation: expected to have been fixed, needs confirmationCall for participation: expected to have been fixed, needs confirmation
Description
When formatting the following code with nightly rustfmt:
fn test(x: &str) {
    // Then handle terminating intrinsics.
    match intrinsic_name {
        // Raw memory accesses
        #[rustfmt::skip]
        | "copy"
        | "copy_nonoverlapping"
        => {
        }
    }
}The result is that #[rustfmt::skip] gets duplicated.
(We had this problem before and it got fixed, but now it seems it came back: #3974.)
$ rustfmt --version
rustfmt 1.4.18-nightly (c1e9b7b 2020-06-13)
Metadata
Metadata
Assignees
Labels
A-rustfmt::skipArea: `rustfmt::skip` tool attributeArea: `rustfmt::skip` tool attributeC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEE-fixed-needs-confirmationCall for participation: expected to have been fixed, needs confirmationCall for participation: expected to have been fixed, needs confirmation