auto merge of #14186 : omasanori/rust/suppress-warnings, r=alexcrichton
This commit is contained in:
commit
d9906813c8
@ -1906,7 +1906,7 @@ mod test_map {
|
|||||||
}
|
}
|
||||||
assert_eq!(m.len(), 32);
|
assert_eq!(m.len(), 32);
|
||||||
|
|
||||||
let mut observed = 0;
|
let mut observed: u32 = 0;
|
||||||
|
|
||||||
for (k, v) in m.iter() {
|
for (k, v) in m.iter() {
|
||||||
assert_eq!(*v, *k * 2);
|
assert_eq!(*v, *k * 2);
|
||||||
@ -2102,7 +2102,7 @@ mod test_set {
|
|||||||
for i in range(0u, 32) {
|
for i in range(0u, 32) {
|
||||||
assert!(a.insert(i));
|
assert!(a.insert(i));
|
||||||
}
|
}
|
||||||
let mut observed = 0;
|
let mut observed: u32 = 0;
|
||||||
for k in a.iter() {
|
for k in a.iter() {
|
||||||
observed |= 1 << *k;
|
observed |= 1 << *k;
|
||||||
}
|
}
|
||||||
|
@ -1116,7 +1116,7 @@ mod test {
|
|||||||
spawn(proc() {
|
spawn(proc() {
|
||||||
tx.send(TcpStream::connect(addr.ip.to_str(), port).unwrap());
|
tx.send(TcpStream::connect(addr.ip.to_str(), port).unwrap());
|
||||||
});
|
});
|
||||||
let l = rx.recv();
|
let _l = rx.recv();
|
||||||
for i in range(0, 1001) {
|
for i in range(0, 1001) {
|
||||||
match a.accept() {
|
match a.accept() {
|
||||||
Ok(..) => break,
|
Ok(..) => break,
|
||||||
|
Loading…
Reference in New Issue
Block a user