Skip to content

Commit c952415

Browse files
Paul Woolcockmarijnh
authored andcommitted
---
yaml --- r: 7915 b: refs/heads/snap-stage3 c: e1f15a7 h: refs/heads/master i: 7913: 990d7b0 7911: 4a29d9a v: v3
1 parent 356278b commit c952415

File tree

6 files changed

+4
-53
lines changed

6 files changed

+4
-53
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 86d473ad1fa297536b56fb3e1012d7dcbe4f21a3
4+
refs/heads/snap-stage3: e1f15a71e3dc1d24454594e068ed3df2271448e3
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/test/pretty/block-disambig.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn test7() -> uint {
2424
(*regs < 2) as uint
2525
}
2626

27-
fn test8() -> int { let val = @0; alt true { true { } } *val < 1 ? 0 : 1 }
27+
fn test8() -> int { let val = @0; alt true { true { } } if *val < 1 { 0 } else { 1 } }
2828

2929
fn test9() { let regs = @mutable 0; alt true { true { } } *regs += 1; }
3030

branches/snap-stage3/src/test/run-pass/block-arg-in-ternary.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

branches/snap-stage3/src/test/run-pass/operator-overloading.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ impl point_ops for point {
1111
{x: -self.x, y: -self.y}
1212
}
1313
fn [](x: bool) -> int {
14-
x ? self.x : self.y
14+
if x { self.x } else { self.y }
1515
}
1616
}
1717

branches/snap-stage3/src/test/run-pass/ternary.rs

Lines changed: 0 additions & 43 deletions
This file was deleted.

branches/snap-stage3/src/test/run-pass/weird-exprs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn zombiejesus() {
1919
do {
2020
while (ret) {
2121
if (ret) {
22-
alt (ret) { _ { ret ? ret : ret } };
22+
alt (ret) { _ { if ret { ret } else { ret } } };
2323
} else if (ret) {
2424
ret;
2525
}

0 commit comments

Comments
 (0)