-
Notifications
You must be signed in to change notification settings - Fork 996
Closed
Labels
C-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-ICES-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR
Description
Describe the bug
Adding a generic type to a derive macro deletes all derives
To Reproduce
cat <<EOF | rustfmt
#[derive(Debug, Foo<T>)]
enum Bar{}
EOF
This produces the following output, removing all derive attributes:
#[derive()]
enum Bar {}
Expected behavior
Something less nefarious, like rustc's
error: malformed `derive` attribute input
Meta
- rustfmt version: rustrustfmt 1.4.24-stable (eb894d5 2020-11-05)
- From where did you install rustfmt?: rustup
- How do you run rustfmt: In an editor with undo hopefully 😈
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-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-ICES-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR