auto merge of #11918 : omasanori/rust/reduce-warnings, r=alexcrichton
Moving forward to green waterfall.
This commit is contained in:
commit
0a0f87b7b8
9 changed files with 5 additions and 14 deletions
|
@ -366,7 +366,7 @@ mod test {
|
||||||
fn push_bytes_fail_reset_len() {
|
fn push_bytes_fail_reset_len() {
|
||||||
// push_bytes unsafely sets the vector length. This is testing that
|
// push_bytes unsafely sets the vector length. This is testing that
|
||||||
// upon failure the length is reset correctly.
|
// upon failure the length is reset correctly.
|
||||||
let reader = ErroringLaterReader {
|
let _reader = ErroringLaterReader {
|
||||||
count: 0,
|
count: 0,
|
||||||
};
|
};
|
||||||
// FIXME (#7049): Figure out some other way to do this.
|
// FIXME (#7049): Figure out some other way to do this.
|
||||||
|
|
|
@ -102,10 +102,6 @@ fn lookup(hostname: Option<&str>, servname: Option<&str>, hint: Option<Hint>)
|
||||||
// permission without help of apk
|
// permission without help of apk
|
||||||
#[cfg(test, not(target_os = "android"))]
|
#[cfg(test, not(target_os = "android"))]
|
||||||
mod test {
|
mod test {
|
||||||
use io::net::ip::Ipv4Addr;
|
|
||||||
use prelude::*;
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
iotest!(fn dns_smoke_test() {
|
iotest!(fn dns_smoke_test() {
|
||||||
let ipaddrs = get_host_addresses("localhost").unwrap();
|
let ipaddrs = get_host_addresses("localhost").unwrap();
|
||||||
let mut found_local = false;
|
let mut found_local = false;
|
||||||
|
|
|
@ -632,7 +632,7 @@ mod test {
|
||||||
|
|
||||||
spawn(proc() {
|
spawn(proc() {
|
||||||
port.recv();
|
port.recv();
|
||||||
let stream = TcpStream::connect(addr);
|
let _stream = TcpStream::connect(addr);
|
||||||
// Close
|
// Close
|
||||||
port.recv();
|
port.recv();
|
||||||
});
|
});
|
||||||
|
@ -641,12 +641,12 @@ mod test {
|
||||||
let mut acceptor = TcpListener::bind(addr).listen();
|
let mut acceptor = TcpListener::bind(addr).listen();
|
||||||
chan.send(());
|
chan.send(());
|
||||||
{
|
{
|
||||||
let stream = acceptor.accept();
|
let _stream = acceptor.accept();
|
||||||
// Close client
|
// Close client
|
||||||
chan.send(());
|
chan.send(());
|
||||||
}
|
}
|
||||||
// Close listener
|
// Close listener
|
||||||
}
|
}
|
||||||
let listener = TcpListener::bind(addr);
|
let _listener = TcpListener::bind(addr);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -907,7 +907,6 @@ mod tests {
|
||||||
|
|
||||||
use num::*;
|
use num::*;
|
||||||
use num;
|
use num;
|
||||||
use mem;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_num() {
|
fn test_num() {
|
||||||
|
|
|
@ -909,7 +909,6 @@ mod tests {
|
||||||
|
|
||||||
use num::*;
|
use num::*;
|
||||||
use num;
|
use num;
|
||||||
use mem;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_num() {
|
fn test_num() {
|
||||||
|
|
|
@ -444,7 +444,6 @@ mod tests {
|
||||||
use num;
|
use num;
|
||||||
use num::CheckedDiv;
|
use num::CheckedDiv;
|
||||||
use num::Bitwise;
|
use num::Bitwise;
|
||||||
use mem;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_num() {
|
fn test_num() {
|
||||||
|
|
|
@ -1075,7 +1075,6 @@ pub fn test_num<T:Num + NumCast>(ten: T, two: T) {
|
||||||
mod tests {
|
mod tests {
|
||||||
use prelude::*;
|
use prelude::*;
|
||||||
use super::*;
|
use super::*;
|
||||||
use num;
|
|
||||||
use i8;
|
use i8;
|
||||||
use i16;
|
use i16;
|
||||||
use i32;
|
use i32;
|
||||||
|
|
|
@ -315,7 +315,6 @@ mod tests {
|
||||||
use num;
|
use num;
|
||||||
use num::CheckedDiv;
|
use num::CheckedDiv;
|
||||||
use num::Bitwise;
|
use num::Bitwise;
|
||||||
use mem;
|
|
||||||
use u16;
|
use u16;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -77,7 +77,7 @@ mod libunwind {
|
||||||
//! Unwind library interface
|
//! Unwind library interface
|
||||||
|
|
||||||
#[allow(non_camel_case_types)];
|
#[allow(non_camel_case_types)];
|
||||||
#[allow(dead_code)] // these are just bindings
|
#[allow(dead_code)]; // these are just bindings
|
||||||
|
|
||||||
use libc::{uintptr_t};
|
use libc::{uintptr_t};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue