Skip to content

Commit 5883058

Browse files
committed
---
yaml --- r: 23635 b: refs/heads/master c: 5236a30 h: refs/heads/master i: 23633: 5957875 23631: c0f124a v: v3
1 parent fbe3da9 commit 5883058

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,5 +1,5 @@
11
---
2-
refs/heads/master: 5b4d5cee03bdc297361f52b34e6e09b7b64161ea
2+
refs/heads/master: 5236a304c46f6f08bf43f08187e071c77c6622f5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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

trunk/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

trunk/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)