Update pretty-printing of '...' in record patterns to be ', _' instead

This commit is contained in:
Marijn Haverbeke 2011-07-12 09:52:03 +02:00
parent a5ec51d6a1
commit bde52808f0

View file

@ -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, "}");
}
}