1
Fork 0

auto merge of #11918 : omasanori/rust/reduce-warnings, r=alexcrichton

Moving forward to green waterfall.
This commit is contained in:
bors 2014-01-31 04:21:29 -08:00
commit 0a0f87b7b8
9 changed files with 5 additions and 14 deletions

View file

@ -366,7 +366,7 @@ mod test {
fn push_bytes_fail_reset_len() {
// push_bytes unsafely sets the vector length. This is testing that
// upon failure the length is reset correctly.
let reader = ErroringLaterReader {
let _reader = ErroringLaterReader {
count: 0,
};
// FIXME (#7049): Figure out some other way to do this.

View file

@ -102,10 +102,6 @@ fn lookup(hostname: Option<&str>, servname: Option<&str>, hint: Option<Hint>)
// permission without help of apk
#[cfg(test, not(target_os = "android"))]
mod test {
use io::net::ip::Ipv4Addr;
use prelude::*;
use super::*;
iotest!(fn dns_smoke_test() {
let ipaddrs = get_host_addresses("localhost").unwrap();
let mut found_local = false;

View file

@ -632,7 +632,7 @@ mod test {
spawn(proc() {
port.recv();
let stream = TcpStream::connect(addr);
let _stream = TcpStream::connect(addr);
// Close
port.recv();
});
@ -641,12 +641,12 @@ mod test {
let mut acceptor = TcpListener::bind(addr).listen();
chan.send(());
{
let stream = acceptor.accept();
let _stream = acceptor.accept();
// Close client
chan.send(());
}
// Close listener
}
let listener = TcpListener::bind(addr);
let _listener = TcpListener::bind(addr);
})
}

View file

@ -907,7 +907,6 @@ mod tests {
use num::*;
use num;
use mem;
#[test]
fn test_num() {

View file

@ -909,7 +909,6 @@ mod tests {
use num::*;
use num;
use mem;
#[test]
fn test_num() {

View file

@ -444,7 +444,6 @@ mod tests {
use num;
use num::CheckedDiv;
use num::Bitwise;
use mem;
#[test]
fn test_num() {

View file

@ -1075,7 +1075,6 @@ pub fn test_num<T:Num + NumCast>(ten: T, two: T) {
mod tests {
use prelude::*;
use super::*;
use num;
use i8;
use i16;
use i32;

View file

@ -315,7 +315,6 @@ mod tests {
use num;
use num::CheckedDiv;
use num::Bitwise;
use mem;
use u16;
#[test]

View file

@ -77,7 +77,7 @@ mod libunwind {
//! Unwind library interface
#[allow(non_camel_case_types)];
#[allow(dead_code)] // these are just bindings
#[allow(dead_code)]; // these are just bindings
use libc::{uintptr_t};