Closed
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 });
}