Skip to content

Commit 8271b3f

Browse files
committed
More attempts at fixing .. breakage.
1 parent 9600744 commit 8271b3f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,6 @@ fn print_expr(s: ps, &&expr: @ast::expr) {
10371037
commasep_cmnt(s, consistent, fields, print_field, get_span);
10381038
match wth {
10391039
some(expr) => {
1040-
if vec::len(fields) > 0u { space(s.s); }
10411040
ibox(s, indent_unit);
10421041
word(s.s, ~",");
10431042
space(s.s);

src/test/pretty/record-trailing-comma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ type thing = {x: int, y: int,};
33

44
fn main() {
55
let sth = {x: 0, y: 1,};
6-
let sth2 = {y: 9 ..sth};
6+
let sth2 = {y: 9, ..sth};
77
assert sth.x + sth2.y == 9;
88
}

0 commit comments

Comments
 (0)