-
Notifications
You must be signed in to change notification settings - Fork 973
Closed
Labels
1x-backport:completedC-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-ICEonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Description
Describe the bug
Running cargo fmt on my project takes all #[derive(Debug, Clone, PartialEq, Eq)] and deletes exactly the last letter on each execution. It does not matter how many traits I derive. If I run it multiple times, it will stop at an empty derive().
To Reproduce
Setup a new library and add the following lines:
#[derive(Debug)]
pub enum Case {
Upper,
Lower
}
run cargo fmt
Expected behavior
cargo fmt finishes my project while I watch funny cat videos on youtube. At least rustfmt does not make my life harder than it is.
Meta
Metadata
Metadata
Assignees
Labels
1x-backport:completedC-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-ICEonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce