mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
f96e56c3a0
* Add (failing) test for #1397 * Fix for #1397 Specifically, we end up double-adding a trailing comma for single-member struct patterns that are arranged vertically. One is added by write_list (since such structs return true for needs_trailing_separator), and another is added by the if in the old code.