Update pretty-printing of '...' in record patterns to be ', _' instead
This commit is contained in:
parent
a5ec51d6a1
commit
bde52808f0
1 changed files with 4 additions and 1 deletions
|
|
@ -1160,7 +1160,10 @@ fn print_pat(&ps s, &@ast::pat pat) {
|
|||
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, "}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue