Skip to content

Commit ad5c676

Browse files
committed
Fix warnings it tests
1 parent e20d460 commit ad5c676

File tree

400 files changed

+701
-581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+701
-581
lines changed

src/test/auxiliary/cci_capture_clause.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::comm::*;
1211
use std::task;
1312

1413
pub fn foo<T:Send + Clone>(x: T) -> Port<T> {

src/test/auxiliary/cci_class_5.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
// except according to those terms.
1010

1111
pub mod kitties {
12-
use std::uint;
13-
1412
pub struct cat {
1513
priv meows : uint,
1614
how_hungry : int,
@@ -26,5 +24,4 @@ pub mod kitties {
2624
how_hungry: in_y
2725
}
2826
}
29-
3027
}

src/test/auxiliary/cci_class_cast.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::to_str::*;
12-
1311
pub mod kitty {
1412
pub struct cat {
1513
priv meows : uint,

src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub mod name_pool {
2020
}
2121

2222
impl add for name_pool {
23-
fn add(&self, s: ~str) {
23+
fn add(&self, _s: ~str) {
2424
}
2525
}
2626
}

src/test/auxiliary/crateresolve5-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum e {
2525

2626
pub fn nominal() -> e { e_val }
2727

28-
pub fn nominal_eq(e1: e, e2: e) -> bool { true }
28+
pub fn nominal_eq(_e1: e, _e2: e) -> bool { true }
2929

3030
impl Eq for e {
3131
fn eq(&self, other: &e) -> bool { nominal_eq(*self, *other) }

src/test/auxiliary/crateresolve5-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ impl Eq for e {
2929

3030
pub fn nominal() -> e { e_val }
3131

32-
pub fn nominal_neq(e1: e, e2: e) -> bool { false }
32+
pub fn nominal_neq(_e1: e, _e2: e) -> bool { false }
3333

3434
pub fn f() -> int { 20 }

src/test/auxiliary/issue-2526.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ fn arc<T:Freeze>(_data: T) -> arc_destruct<T> {
3535
}
3636

3737
fn init() -> arc_destruct<context_res> {
38-
unsafe {
39-
arc(context_res())
40-
}
38+
arc(context_res())
4139
}
4240

4341
struct context_res {

src/test/auxiliary/issue2378a.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
enum maybe<T> { just(T), nothing }
1515

1616
impl <T:Clone> Index<uint,T> for maybe<T> {
17-
fn index(&self, idx: &uint) -> T {
17+
fn index(&self, _idx: &uint) -> T {
1818
match self {
1919
&just(ref t) => (*t).clone(),
2020
&nothing => { fail!(); }

src/test/auxiliary/issue_2316_b.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(unused_imports)];
12+
1113
extern mod issue_2316_a;
1214

1315
pub mod cloth {

src/test/auxiliary/moves_based_on_type_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ impl Drop for S {
2323
pub fn f() {
2424
let x = S { x: 1 };
2525
let y = x;
26-
let z = y;
26+
let _z = y;
2727
}

0 commit comments

Comments
 (0)