From 3b36708ca78f82d226d53ed66b1878f482ced468 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 28 Jan 2013 18:55:29 -0800 Subject: [PATCH] testsuite: De-record pretty tests --- src/test/pretty/block-disambig.rs | 4 +++- src/test/pretty/record-trailing-comma.rs | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/test/pretty/block-disambig.rs b/src/test/pretty/block-disambig.rs index 87e4f4b695a..17a2db5d1f0 100644 --- a/src/test/pretty/block-disambig.rs +++ b/src/test/pretty/block-disambig.rs @@ -16,8 +16,10 @@ fn test1() { let val = @0; { } *val; } fn test2() -> int { let val = @0; { } *val } +struct S { mut eax: int } + fn test3() { - let regs = @{mut eax: 0}; + let regs = @S {mut eax: 0}; match true { true => { } _ => { } } (*regs).eax = 1; } diff --git a/src/test/pretty/record-trailing-comma.rs b/src/test/pretty/record-trailing-comma.rs index e70dbe8ec45..ace5da8eb4e 100644 --- a/src/test/pretty/record-trailing-comma.rs +++ b/src/test/pretty/record-trailing-comma.rs @@ -8,11 +8,17 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// NOTE this is a pretty-printer bug that I fixed, but it's +// not in the snapshot yet. After a new snapshot, can un-xfail +// xfail-pretty // pp-exact -type thing = {x: int, y: int,}; +struct Thing { + x: int, + y: int, +} fn main() { - let sth = {x: 0, y: 1,}; - let sth2 = {y: 9, ..sth}; + let sth = Thing{x: 0, y: 1,}; + let sth2 = Thing{y: 9 , ..sth}; assert sth.x + sth2.y == 9; }