mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Update pretty-printing of '...' in record patterns to be ', _' instead
This commit is contained in:
@@ -1160,7 +1160,10 @@ fn get_span(&ast::field_pat f) -> codemap::span {
|
||||
ret f.pat.span;
|
||||
}
|
||||
commasep_cmnt_ivec(s, consistent, fields, print_field, get_span);
|
||||
if (etc) { space(s.s); word(s.s, "..."); }
|
||||
if (etc) {
|
||||
if (ivec::len(fields) != 0u) { word_space(s, ","); }
|
||||
word(s.s, "_");
|
||||
}
|
||||
word(s.s, "}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user