summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-28 14:43:15 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-28 19:41:56 -0800
commit91676f3fa699c3d715c5420b5c8c0828627aa09e (patch)
tree64e0997aabcdffa330faeda8af188f885619c3a3 /src/libsyntax
parent9f11485357f5de2a11f8d6feda36ee2fe63f3347 (diff)
downloadrust-91676f3fa699c3d715c5420b5c8c0828627aa09e.tar.gz
rust-91676f3fa699c3d715c5420b5c8c0828627aa09e.zip
syntax: Don't add an extra space before the last comma...
...when printing struct update expressions.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/print/pprust.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 47d139b8641..c3c8ecff9f7 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -1153,7 +1153,6 @@ fn print_expr(s: ps, &&expr: @ast::expr) {
         commasep_cmnt(s, consistent, (*fields), print_field, get_span);
         match wth {
             Some(expr) => {
-                if vec::len((*fields)) > 0u { space(s.s); }
                 ibox(s, indent_unit);
                 word(s.s, ~",");
                 space(s.s);