Skip to content

Commit 3b36708

Browse files
committed
testsuite: De-record pretty tests
1 parent 58ec84a commit 3b36708

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/test/pretty/block-disambig.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ fn test1() { let val = @0; { } *val; }
1616

1717
fn test2() -> int { let val = @0; { } *val }
1818

19+
struct S { mut eax: int }
20+
1921
fn test3() {
20-
let regs = @{mut eax: 0};
22+
let regs = @S {mut eax: 0};
2123
match true { true => { } _ => { } }
2224
(*regs).eax = 1;
2325
}

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// NOTE this is a pretty-printer bug that I fixed, but it's
12+
// not in the snapshot yet. After a new snapshot, can un-xfail
13+
// xfail-pretty
1114
// pp-exact
12-
type thing = {x: int, y: int,};
15+
struct Thing {
16+
x: int,
17+
y: int,
18+
}
1319

1420
fn main() {
15-
let sth = {x: 0, y: 1,};
16-
let sth2 = {y: 9, ..sth};
21+
let sth = Thing{x: 0, y: 1,};
22+
let sth2 = Thing{y: 9 , ..sth};
1723
assert sth.x + sth2.y == 9;
1824
}

0 commit comments

Comments
 (0)