-
Notifications
You must be signed in to change notification settings - Fork 970
Closed
Labels
2x-port:pendingE-help-wantedCall for participation: help is requested to fix this issueCall for participation: help is requested to fix this issuegood first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributorsonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Description
Sending the following code through rustfmt --config struct_field_align_threshold=30 removes the .., changing the meaning of the code.
struct X { a: i32, b: i32 }
fn test(x: X) {
let y = matches!(x, X {
a: 1,
..
});
}becomes
struct X {
a: i32,
b: i32,
}
fn test(x: X) {
let y = matches!(x, X { a: 1 });
}Metadata
Metadata
Assignees
Labels
2x-port:pendingE-help-wantedCall for participation: help is requested to fix this issueCall for participation: help is requested to fix this issuegood first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributorsonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce