Skip to content

Commit c2fe7d2

Browse files
committed
---
yaml --- r: 42742 b: refs/heads/try c: 3b36708 h: refs/heads/master v: v3
1 parent 9bf36c0 commit c2fe7d2

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 58ec84a098376860c2126389938b340fbb810d78
5+
refs/heads/try: 3b36708ca78f82d226d53ed66b1878f482ced468
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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
}

branches/try/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)