[INFO] fetching crate net-utils 0.0.5...
[INFO] checking net-utils-0.0.5 against master#30f74ff0dc4d66debc8b50724c446f817e5f75f4 for pr-121848-1
[INFO] extracting crate net-utils 0.0.5 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate net-utils 0.0.5 on toolchain 30f74ff0dc4d66debc8b50724c446f817e5f75f4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate net-utils 0.0.5
[INFO] finished tweaking crates.io crate net-utils 0.0.5
[INFO] tweaked toml for crates.io crate net-utils 0.0.5 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded uuid v0.1.18
[INFO] [stderr]   Downloaded openssl v0.9.24
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cdc31fdb541d492a3a9c36cd0030a9d8bd6a287984e251a51ae6d33185b25e4d
[INFO] running `Command { std: "docker" "start" "-a" "cdc31fdb541d492a3a9c36cd0030a9d8bd6a287984e251a51ae6d33185b25e4d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cdc31fdb541d492a3a9c36cd0030a9d8bd6a287984e251a51ae6d33185b25e4d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cdc31fdb541d492a3a9c36cd0030a9d8bd6a287984e251a51ae6d33185b25e4d", kill_on_drop: false }`
[INFO] [stdout] cdc31fdb541d492a3a9c36cd0030a9d8bd6a287984e251a51ae6d33185b25e4d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 320f0abaeddacda3fc7cb77b3c75757d533a4dbc4600c582b19cde8054a005f7
[INFO] running `Command { std: "docker" "start" "-a" "320f0abaeddacda3fc7cb77b3c75757d533a4dbc4600c582b19cde8054a005f7", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling winapi-build v0.1.1
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]     Checking winapi v0.2.8
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]     Checking log v0.4.21
[INFO] [stderr]    Compiling serde_json v1.0.115
[INFO] [stderr]     Checking regex-syntax v0.3.9
[INFO] [stderr]     Checking ryu v1.0.17
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]     Checking rustc-serialize v0.3.25
[INFO] [stderr]     Checking utf8-ranges v0.1.3
[INFO] [stderr]     Checking log v0.3.9
[INFO] [stderr]    Compiling kernel32-sys v0.2.2
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling syn v2.0.57
[INFO] [stderr]     Checking thread-id v2.0.0
[INFO] [stderr]     Checking memchr v0.1.11
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking thread_local v0.2.7
[INFO] [stderr]     Checking aho-corasick v0.5.3
[INFO] [stderr]     Checking regex v0.1.80
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking uuid v0.1.18
[INFO] [stderr]     Checking env_logger v0.3.5
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]     Checking net-utils v0.0.5 (/opt/rustwide/workdir)
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/config.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/30f74ff0dc4d66debc8b50724c446f817e5f75f4/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/net/config.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::FromStr`
[INFO] [stdout]   --> src/net/conn.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::str::FromStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:151:22
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let server = try!(Connection::host_to_sock_address(host, port));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:154:29
[INFO] [stdout]     |
[INFO] [stdout] 154 |             stream_socket = try!(TcpStream::connect_timeout(
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:159:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |             stream_socket = try!(TcpStream::connect(server));
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:173:29
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let writer_socket = try!(stream_socket.try_clone());
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]    --> src/net/conn.rs:361:47
[INFO] [stdout]     |
[INFO] [stdout] 361 |     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout]     |                                               ^     ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 361 -     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout] 361 +     fn write(&mut self, buf: &[u8]) -> Result<usize> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/poolmgr.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/30f74ff0dc4d66debc8b50724c446f817e5f75f4/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/config.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/30f74ff0dc4d66debc8b50724c446f817e5f75f4/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/net/config.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]   --> src/net/config.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     use std::default::Default;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   --> /rustc/30f74ff0dc4d66debc8b50724c446f817e5f75f4/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]    |
[INFO] [stdout]    = note: the item `Default` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/net/config.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     use std::time::Duration;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::FromStr`
[INFO] [stdout]   --> src/net/conn.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::str::FromStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:151:22
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let server = try!(Connection::host_to_sock_address(host, port));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:154:29
[INFO] [stdout]     |
[INFO] [stdout] 154 |             stream_socket = try!(TcpStream::connect_timeout(
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:159:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |             stream_socket = try!(TcpStream::connect(server));
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:173:29
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let writer_socket = try!(stream_socket.try_clone());
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]    --> src/net/conn.rs:361:47
[INFO] [stdout]     |
[INFO] [stdout] 361 |     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout]     |                                               ^     ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 361 -     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout] 361 +     fn write(&mut self, buf: &[u8]) -> Result<usize> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/poolmgr.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/30f74ff0dc4d66debc8b50724c446f817e5f75f4/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]    --> src/net/poolmgr.rs:296:46
[INFO] [stdout]     |
[INFO] [stdout] 296 |         use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]    --> src/net/poolmgr.rs:297:43
[INFO] [stdout]     |
[INFO] [stdout] 297 |         static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT;
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]     |
[INFO] [stdout] 297 |         static NEXT_OFFSET: AtomicUsize = AtomicUsize::new(0);
[INFO] [stdout]     |                                           ~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/net/conn.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |           let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 121 | |             Ok(mut host_iter) => {
[INFO] [stdout] 122 | |                 match host_iter.next() {
[INFO] [stdout] 123 | |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout] ...   |
[INFO] [stdout] 135 | |             }
[INFO] [stdout] 136 | |         };
[INFO] [stdout]     | |_________- any code following this `match` expression is unreachable, as all arms diverge
[INFO] [stdout] 137 |           let err_str = format!("Failed to parse {}:{}. ", host, port);
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/net/conn.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |           let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 121 | |             Ok(mut host_iter) => {
[INFO] [stdout] 122 | |                 match host_iter.next() {
[INFO] [stdout] 123 | |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout] ...   |
[INFO] [stdout] 135 | |             }
[INFO] [stdout] 136 | |         };
[INFO] [stdout]     | |_________- any code following this `match` expression is unreachable, as all arms diverge
[INFO] [stdout] 137 |           let err_str = format!("Failed to parse {}:{}. ", host, port);
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]    --> src/net/conn.rs:120:13
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:123:26
[INFO] [stdout]     |
[INFO] [stdout] 123 |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout]     |                          ----^^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:149:13
[INFO] [stdout]     |
[INFO] [stdout] 149 |         let mut stream_socket;
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_file` is never used
[INFO] [stdout]   --> src/net/config.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl Config {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 58 |     fn from_file(file: &str) -> Config {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a method
[INFO] [stdout]   --> src/net/conn.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn get_peer_address(&self) -> &String {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> src/lib.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | #![warn(missing_docs)]
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a method
[INFO] [stdout]   --> src/net/conn.rs:67:5
[INFO] [stdout]    |
[INFO] [stdout] 67 |     pub fn get_local_address(&self) -> &String {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-binding let on a synchronization lock
[INFO] [stdout]    --> src/net/poolmgr.rs:155:13
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _ = a;
[INFO] [stdout]     |             ^ this lock is not assigned to a binding and is immediately dropped
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(let_underscore_lock)]` on by default
[INFO] [stdout] help: consider binding to an unused variable to avoid immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _unused = a;
[INFO] [stdout]     |             ~~~~~~~
[INFO] [stdout] help: consider immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         drop(a);
[INFO] [stdout]     |         ~~~~~ +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `net-utils` (lib) due to 2 previous errors; 16 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]    --> src/net/conn.rs:120:13
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:123:26
[INFO] [stdout]     |
[INFO] [stdout] 123 |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout]     |                          ----^^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:149:13
[INFO] [stdout]     |
[INFO] [stdout] 149 |         let mut stream_socket;
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_file` is never used
[INFO] [stdout]   --> src/net/config.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl Config {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 58 |     fn from_file(file: &str) -> Config {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-binding let on a synchronization lock
[INFO] [stdout]    --> src/net/poolmgr.rs:155:13
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _ = a;
[INFO] [stdout]     |             ^ this lock is not assigned to a binding and is immediately dropped
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(let_underscore_lock)]` on by default
[INFO] [stdout] help: consider binding to an unused variable to avoid immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _unused = a;
[INFO] [stdout]     |             ~~~~~~~
[INFO] [stdout] help: consider immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         drop(a);
[INFO] [stdout]     |         ~~~~~ +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 18 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `net-utils` (lib test) due to 2 previous errors; 18 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "320f0abaeddacda3fc7cb77b3c75757d533a4dbc4600c582b19cde8054a005f7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "320f0abaeddacda3fc7cb77b3c75757d533a4dbc4600c582b19cde8054a005f7", kill_on_drop: false }`
[INFO] [stdout] 320f0abaeddacda3fc7cb77b3c75757d533a4dbc4600c582b19cde8054a005f7
[INFO] checking net-utils-0.0.5 against try#72eda894eb3548c7ba774079ce0afab42958d4ee for pr-121848-1
[INFO] extracting crate net-utils 0.0.5 into /workspace/builds/worker-0-tc2/source
[INFO] validating manifest of crates.io crate net-utils 0.0.5 on toolchain 72eda894eb3548c7ba774079ce0afab42958d4ee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate net-utils 0.0.5
[INFO] finished tweaking crates.io crate net-utils 0.0.5
[INFO] tweaked toml for crates.io crate net-utils 0.0.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d9bdf149586d36d94a39f6539e60e06ff825a1a6d50b4c7174f05f1845d21150
[INFO] running `Command { std: "docker" "start" "-a" "d9bdf149586d36d94a39f6539e60e06ff825a1a6d50b4c7174f05f1845d21150", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d9bdf149586d36d94a39f6539e60e06ff825a1a6d50b4c7174f05f1845d21150", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d9bdf149586d36d94a39f6539e60e06ff825a1a6d50b4c7174f05f1845d21150", kill_on_drop: false }`
[INFO] [stdout] d9bdf149586d36d94a39f6539e60e06ff825a1a6d50b4c7174f05f1845d21150
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c9a6fe3525f123e38a1c2bcaadf2aba8408f3dd6b1f141d0ae0678ef7a1bbe04
[INFO] running `Command { std: "docker" "start" "-a" "c9a6fe3525f123e38a1c2bcaadf2aba8408f3dd6b1f141d0ae0678ef7a1bbe04", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling winapi-build v0.1.1
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]     Checking winapi v0.2.8
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]    Compiling serde_json v1.0.115
[INFO] [stderr]     Checking log v0.4.21
[INFO] [stderr]     Checking regex-syntax v0.3.9
[INFO] [stderr]     Checking utf8-ranges v0.1.3
[INFO] [stderr]     Checking ryu v1.0.17
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]     Checking rustc-serialize v0.3.25
[INFO] [stderr]    Compiling kernel32-sys v0.2.2
[INFO] [stderr]     Checking log v0.3.9
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling syn v2.0.57
[INFO] [stderr]     Checking memchr v0.1.11
[INFO] [stderr]     Checking thread-id v2.0.0
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking thread_local v0.2.7
[INFO] [stderr]     Checking aho-corasick v0.5.3
[INFO] [stderr]     Checking regex v0.1.80
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking uuid v0.1.18
[INFO] [stderr]     Checking env_logger v0.3.5
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]     Checking net-utils v0.0.5 (/opt/rustwide/workdir)
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/config.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/72eda894eb3548c7ba774079ce0afab42958d4ee/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/net/config.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::FromStr`
[INFO] [stdout]   --> src/net/conn.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::str::FromStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:151:22
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let server = try!(Connection::host_to_sock_address(host, port));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:154:29
[INFO] [stdout]     |
[INFO] [stdout] 154 |             stream_socket = try!(TcpStream::connect_timeout(
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:159:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |             stream_socket = try!(TcpStream::connect(server));
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:173:29
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let writer_socket = try!(stream_socket.try_clone());
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]    --> src/net/conn.rs:361:47
[INFO] [stdout]     |
[INFO] [stdout] 361 |     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout]     |                                               ^     ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 361 -     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout] 361 +     fn write(&mut self, buf: &[u8]) -> Result<usize> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/poolmgr.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/72eda894eb3548c7ba774079ce0afab42958d4ee/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/config.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/72eda894eb3548c7ba774079ce0afab42958d4ee/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/net/config.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]   --> src/net/config.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     use std::default::Default;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   --> /rustc/72eda894eb3548c7ba774079ce0afab42958d4ee/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]    |
[INFO] [stdout]    = note: the item `Default` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/net/config.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     use std::time::Duration;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::FromStr`
[INFO] [stdout]   --> src/net/conn.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::str::FromStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:151:22
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let server = try!(Connection::host_to_sock_address(host, port));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:154:29
[INFO] [stdout]     |
[INFO] [stdout] 154 |             stream_socket = try!(TcpStream::connect_timeout(
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:159:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |             stream_socket = try!(TcpStream::connect(server));
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/net/conn.rs:173:29
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let writer_socket = try!(stream_socket.try_clone());
[INFO] [stdout]     |                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]    --> src/net/conn.rs:361:47
[INFO] [stdout]     |
[INFO] [stdout] 361 |     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout]     |                                               ^     ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 361 -     fn write(&mut self, buf: &[u8]) -> Result<(usize)> {
[INFO] [stdout] 361 +     fn write(&mut self, buf: &[u8]) -> Result<usize> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Default` is imported redundantly
[INFO] [stdout]  --> src/net/poolmgr.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::default::Default;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  --> /rustc/72eda894eb3548c7ba774079ce0afab42958d4ee/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item `Default` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]    --> src/net/poolmgr.rs:296:46
[INFO] [stdout]     |
[INFO] [stdout] 296 |         use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]    --> src/net/poolmgr.rs:297:43
[INFO] [stdout]     |
[INFO] [stdout] 297 |         static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT;
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]     |
[INFO] [stdout] 297 |         static NEXT_OFFSET: AtomicUsize = AtomicUsize::new(0);
[INFO] [stdout]     |                                           ~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/net/conn.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |           let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 121 | |             Ok(mut host_iter) => {
[INFO] [stdout] 122 | |                 match host_iter.next() {
[INFO] [stdout] 123 | |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout] ...   |
[INFO] [stdout] 135 | |             }
[INFO] [stdout] 136 | |         };
[INFO] [stdout]     | |_________- any code following this `match` expression is unreachable, as all arms diverge
[INFO] [stdout] 137 |           let err_str = format!("Failed to parse {}:{}. ", host, port);
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/net/conn.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |           let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 121 | |             Ok(mut host_iter) => {
[INFO] [stdout] 122 | |                 match host_iter.next() {
[INFO] [stdout] 123 | |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout] ...   |
[INFO] [stdout] 135 | |             }
[INFO] [stdout] 136 | |         };
[INFO] [stdout]     | |_________- any code following this `match` expression is unreachable, as all arms diverge
[INFO] [stdout] 137 |           let err_str = format!("Failed to parse {}:{}. ", host, port);
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]    --> src/net/conn.rs:120:13
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:123:26
[INFO] [stdout]     |
[INFO] [stdout] 123 |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout]     |                          ----^^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:149:13
[INFO] [stdout]     |
[INFO] [stdout] 149 |         let mut stream_socket;
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_file` is never used
[INFO] [stdout]   --> src/net/config.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl Config {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 58 |     fn from_file(file: &str) -> Config {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a method
[INFO] [stdout]   --> src/net/conn.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn get_peer_address(&self) -> &String {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> src/lib.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | #![warn(missing_docs)]
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a method
[INFO] [stdout]   --> src/net/conn.rs:67:5
[INFO] [stdout]    |
[INFO] [stdout] 67 |     pub fn get_local_address(&self) -> &String {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-binding let on a synchronization lock
[INFO] [stdout]    --> src/net/poolmgr.rs:155:13
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _ = a;
[INFO] [stdout]     |             ^ this lock is not assigned to a binding and is immediately dropped
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(let_underscore_lock)]` on by default
[INFO] [stdout] help: consider binding to an unused variable to avoid immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _unused = a;
[INFO] [stdout]     |             ~~~~~~~
[INFO] [stdout] help: consider immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         drop(a);
[INFO] [stdout]     |         ~~~~~ +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `net-utils` (lib) due to 2 previous errors; 16 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]    --> src/net/conn.rs:120:13
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let server = match (host, port).to_socket_addrs() {
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:123:26
[INFO] [stdout]     |
[INFO] [stdout] 123 |                     Some(mut host_addr) => return Ok(host_addr),
[INFO] [stdout]     |                          ----^^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/net/conn.rs:149:13
[INFO] [stdout]     |
[INFO] [stdout] 149 |         let mut stream_socket;
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_file` is never used
[INFO] [stdout]   --> src/net/config.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl Config {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 58 |     fn from_file(file: &str) -> Config {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-binding let on a synchronization lock
[INFO] [stdout]    --> src/net/poolmgr.rs:155:13
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _ = a;
[INFO] [stdout]     |             ^ this lock is not assigned to a binding and is immediately dropped
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(let_underscore_lock)]` on by default
[INFO] [stdout] help: consider binding to an unused variable to avoid immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let _unused = a;
[INFO] [stdout]     |             ~~~~~~~
[INFO] [stdout] help: consider immediately dropping the value
[INFO] [stdout]     |
[INFO] [stdout] 155 |         drop(a);
[INFO] [stdout]     |         ~~~~~ +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 18 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `net-utils` (lib test) due to 2 previous errors; 18 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c9a6fe3525f123e38a1c2bcaadf2aba8408f3dd6b1f141d0ae0678ef7a1bbe04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c9a6fe3525f123e38a1c2bcaadf2aba8408f3dd6b1f141d0ae0678ef7a1bbe04", kill_on_drop: false }`
[INFO] [stdout] c9a6fe3525f123e38a1c2bcaadf2aba8408f3dd6b1f141d0ae0678ef7a1bbe04
