Skip to content

Commit 3a8db5e

Browse files
committed
---
yaml --- r: 4900 b: refs/heads/master c: c274d16 h: refs/heads/master v: v3
1 parent 33ced4b commit 3a8db5e

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 45b614f54ae7fa9f598917b9b220c2f10b0b37b8
2+
refs/heads/master: c274d16b7fdac7a1006dd43a1e27c54c46285540

trunk/src/test/stdtest/comm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import std::comm;
44
#[test]
55
fn create_port_and_chan() {
66
let p = comm::mk_port::<int>();
7-
let c = p.mk_chan();
7+
p.mk_chan();
88
}
99

1010
#[test]
@@ -39,5 +39,5 @@ fn chan_chan() {
3939
let p = comm::port(), p2 = comm::port::<int>();
4040
let c = comm::chan(p);
4141
comm::send(c, comm::chan(p2));
42-
let c2 = comm::recv(p);
42+
comm::recv(p);
4343
}

trunk/src/test/stdtest/either.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import std::vec::len;
66
fn test_either_left() {
77
let val = left(10);
88
fn f_left(x: &int) -> bool { x == 10 }
9-
fn f_right(x: &uint) -> bool { false }
9+
fn f_right(_x: &uint) -> bool { false }
1010
assert (either(f_left, f_right, val));
1111
}
1212

1313
#[test]
1414
fn test_either_right() {
1515
let val = right(10u);
16-
fn f_left(x: &int) -> bool { false }
16+
fn f_left(_x: &int) -> bool { false }
1717
fn f_right(x: &uint) -> bool { x == 10u }
1818
assert (either(f_left, f_right, val));
1919
}

trunk/src/test/stdtest/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn test_find_success() {
3535
#[test]
3636
fn test_find_fail() {
3737
let l = from_vec([0, 1, 2]);
38-
fn match(i: &int) -> option::t<int> { ret option::none::<int>; }
38+
fn match(_i: &int) -> option::t<int> { ret option::none::<int>; }
3939
let rs = list::find(l, match);
4040
assert (rs == option::none::<int>);
4141
}

trunk/src/test/stdtest/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
use std;
33

44
#[test]
5-
fn test() { let x = std::option::some::<int>(10); }
5+
fn test() { let _x = std::option::some::<int>(10); }

trunk/src/test/stdtest/vec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ fn reverse_and_reversed() {
359359
// Make sure they work with 0-length vectors too.
360360

361361
let v4 = vec::reversed::<int>([]);
362+
assert v4 == [];
362363
let v3: [mutable int] = [mutable];
363364
vec::reverse::<int>(v3);
364365
}

0 commit comments

Comments
 (0)