Skip to content

Commit 54e6589

Browse files
committed
---
yaml --- r: 21527 b: refs/heads/snap-stage3 c: 5236a30 h: refs/heads/master i: 21525: 0b3e8d9 21523: ecab8c3 21519: 67612ac v: v3
1 parent 554f1f1 commit 54e6589

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5b4d5cee03bdc297361f52b34e6e09b7b64161ea
4+
refs/heads/snap-stage3: 5236a304c46f6f08bf43f08187e071c77c6622f5
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/run-pass/expr-alt-generic.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ fn test_bool() {
1515
}
1616

1717
type t = {a: int, b: int};
18-
impl t : cmp::Eq {
19-
pure fn eq(&&other: t) -> bool {
20-
self.a == other.a && self.b == other.b
21-
}
22-
}
2318

2419
fn test_rec() {
25-
fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; }
20+
fn compare_rec(t1: t, t2: t) -> bool {
21+
t1.a == t2.a && t1.b == t2.b
22+
}
2623
test_generic::<t>({a: 1, b: 2}, compare_rec);
2724
}
2825

branches/snap-stage3/src/test/run-pass/expr-block-generic.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ fn test_bool() {
1717
}
1818

1919
type t = {a: int, b: int};
20-
impl t : cmp::Eq {
21-
pure fn eq(&&other: t) -> bool {
22-
self.a == other.a && self.b == other.b
23-
}
24-
}
2520

2621
fn test_rec() {
27-
fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; }
22+
fn compare_rec(t1: t, t2: t) -> bool {
23+
t1.a == t2.a && t1.b == t2.b
24+
}
2825
test_generic::<t>({a: 1, b: 2}, compare_rec);
2926
}
3027

branches/snap-stage3/src/test/run-pass/expr-if-generic.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ fn test_bool() {
1717
}
1818

1919
type t = {a: int, b: int};
20-
impl t : cmp::Eq {
21-
pure fn eq(&&other: t) -> bool {
22-
self.a == other.a && self.b == other.b
23-
}
24-
}
2520

2621
fn test_rec() {
27-
fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; }
22+
fn compare_rec(t1: t, t2: t) -> bool {
23+
t1.a == t2.a && t1.b == t2.b
24+
}
2825
test_generic::<t>({a: 1, b: 2}, {a: 2, b: 3}, compare_rec);
2926
}
3027

0 commit comments

Comments
 (0)