-
Notifications
You must be signed in to change notification settings - Fork 966
Closed
Labels
A-commentsArea: commentsArea: commentsC-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-ICE
Description
fn emulate_foreign_item() {
match link_name {
// A comment here will duplicate the attribute
#[rustfmt::skip]
| "pthread_mutexattr_init"
| "pthread_mutexattr_settype"
| "pthread_mutex_init"
=> {}
}
}gets rustformatted to
fn emulate_foreign_item() {
match link_name {
// A comment here will duplicate the attribute
#[rustfmt::skip]
#[rustfmt::skip]
| "pthread_mutexattr_init"
| "pthread_mutexattr_settype"
| "pthread_mutex_init"
=> {}
}
}if you continue rustfmting, the attributes get duplicated all the time, so you have exponential growth of attributes 😆
Metadata
Metadata
Assignees
Labels
A-commentsArea: commentsArea: commentsC-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-ICE