[INFO] cloning repository https://github.com/3fffff/TCP-server
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/3fffff/TCP-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F3fffff%2FTCP-server", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F3fffff%2FTCP-server'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8b4107c97eb6f0e7e014701add9a8e488c7fef55
[INFO] checking 3fffff/TCP-server against master#3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 for pr-143164
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F3fffff%2FTCP-server" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/3fffff/TCP-server
[INFO] finished tweaking git repo https://github.com/3fffff/TCP-server
[INFO] tweaked toml for git repo https://github.com/3fffff/TCP-server written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/3fffff/TCP-server on toolchain 3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/3fffff/TCP-server already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] efc75134c0ecf851d4f9e74cc2bb8b75c3e0475577fe3106b7779b2ead025ca3
[INFO] running `Command { std: "docker" "start" "-a" "efc75134c0ecf851d4f9e74cc2bb8b75c3e0475577fe3106b7779b2ead025ca3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "efc75134c0ecf851d4f9e74cc2bb8b75c3e0475577fe3106b7779b2ead025ca3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "efc75134c0ecf851d4f9e74cc2bb8b75c3e0475577fe3106b7779b2ead025ca3", kill_on_drop: false }`
[INFO] [stdout] efc75134c0ecf851d4f9e74cc2bb8b75c3e0475577fe3106b7779b2ead025ca3
[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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9702f836fa72e191a1cb5547e84041cb8d6c167745d6bfdf5771287c37a082dd
[INFO] running `Command { std: "docker" "start" "-a" "9702f836fa72e191a1cb5547e84041cb8d6c167745d6bfdf5771287c37a082dd", kill_on_drop: false }`
[INFO] [stderr]     Checking TCP-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/tcp_server.rs:4:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::sync::mpsc::{channel, Sender};
[INFO] [stdout]   |                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/tcp_server.rs:4:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::sync::mpsc::{channel, Sender};
[INFO] [stdout]   |                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `client_data`
[INFO] [stdout]   --> src/tcp_server.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 85 |                     let client_data: ClientData =  (tcp_client, stream );
[INFO] [stdout]    |                         ----------- move occurs because `client_data` has type `(std::net::SocketAddr, TcpStream)`, which does not implement the `Copy` trait
[INFO] [stdout] 86 |                     let result =
[INFO] [stdout] 87 |                         self_.add_client(tcp_client.ip().to_string(), client_data);
[INFO] [stdout]    |                                                                       ----------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 95 |                     func(&client_data);
[INFO] [stdout]    |                          ^^^^^^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in method `add_client` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/tcp_server.rs:52:55
[INFO] [stdout]    |
[INFO] [stdout] 52 |     fn add_client(&mut self, ip_port: String, client: ClientData) -> io::Result<()> {
[INFO] [stdout]    |        ---------- in this method                      ^^^^^^^^^^ this parameter takes ownership of the value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]    --> src/tcp_server.rs:117:14
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let (index, socket) = socket_data;
[INFO] [stdout]     |              ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `socket`
[INFO] [stdout]    --> src/tcp_server.rs:118:17
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let mut socket = socket.try_clone()?;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `socket_data` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/tcp_server.rs:121:28
[INFO] [stdout]     |
[INFO] [stdout] 121 |             handle_client((&mut socket_data, _self.handle_type.clone(), &mut _self));
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 114 |         mut socket_data: ClientData,
[INFO] [stdout]     |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tcp_server.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let mut socket = socket.try_clone()?;
[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] error[E0382]: use of partially moved value: `socket_data`
[INFO] [stdout]    --> src/tcp_server.rs:120:23
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let (index, socket) = socket_data;
[INFO] [stdout]     |                     ------ value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 120 |         thread::spawn(move || {
[INFO] [stdout]     |                       ^^^^^^^ value used here after partial move
[INFO] [stdout] 121 |             handle_client((&mut socket_data, _self.handle_type.clone(), &mut _self));
[INFO] [stdout]     |                                 ----------- use occurs due to use in closure
[INFO] [stdout]     |
[INFO] [stdout]     = note: partial move occurs because `socket_data.1` has type `TcpStream`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let (index, ref socket) = socket_data;
[INFO] [stdout]     |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `client_data`
[INFO] [stdout]   --> src/tcp_server.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 85 |                     let client_data: ClientData =  (tcp_client, stream );
[INFO] [stdout]    |                         ----------- move occurs because `client_data` has type `(std::net::SocketAddr, TcpStream)`, which does not implement the `Copy` trait
[INFO] [stdout] 86 |                     let result =
[INFO] [stdout] 87 |                         self_.add_client(tcp_client.ip().to_string(), client_data);
[INFO] [stdout]    |                                                                       ----------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 95 |                     func(&client_data);
[INFO] [stdout]    |                          ^^^^^^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in method `add_client` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/tcp_server.rs:52:55
[INFO] [stdout]    |
[INFO] [stdout] 52 |     fn add_client(&mut self, ip_port: String, client: ClientData) -> io::Result<()> {
[INFO] [stdout]    |        ---------- in this method                      ^^^^^^^^^^ this parameter takes ownership of the value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]    --> src/tcp_server.rs:147:14
[INFO] [stdout]     |
[INFO] [stdout] 147 |         let (addr, socket) = client;
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]    --> src/tcp_server.rs:117:14
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let (index, socket) = socket_data;
[INFO] [stdout]     |              ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `socket`
[INFO] [stdout]    --> src/tcp_server.rs:118:17
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let mut socket = socket.try_clone()?;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `socket`
[INFO] [stdout]    --> src/tcp_server.rs:165:20
[INFO] [stdout]     |
[INFO] [stdout] 165 |         let (addr, socket) = client;
[INFO] [stdout]     |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `socket_data` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/tcp_server.rs:121:28
[INFO] [stdout]     |
[INFO] [stdout] 121 |             handle_client((&mut socket_data, _self.handle_type.clone(), &mut _self));
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 114 |         mut socket_data: ClientData,
[INFO] [stdout]     |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow data in a `&` reference as mutable
[INFO] [stdout]    --> src/tcp_server.rs:167:42
[INFO] [stdout]     |
[INFO] [stdout] 167 |             if !self.is_client_connected(&mut client) {
[INFO] [stdout]     |                                          ^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]   --> src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let server = TcpServer::<AtomicInteger>::new("127.0.0.1",3000);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tcp_server.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let mut socket = socket.try_clone()?;
[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] error[E0382]: use of partially moved value: `socket_data`
[INFO] [stdout]    --> src/tcp_server.rs:120:23
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let (index, socket) = socket_data;
[INFO] [stdout]     |                     ------ value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 120 |         thread::spawn(move || {
[INFO] [stdout]     |                       ^^^^^^^ value used here after partial move
[INFO] [stdout] 121 |             handle_client((&mut socket_data, _self.handle_type.clone(), &mut _self));
[INFO] [stdout]     |                                 ----------- use occurs due to use in closure
[INFO] [stdout]     |
[INFO] [stdout]     = note: partial move occurs because `socket_data.1` has type `TcpStream`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let (index, ref socket) = socket_data;
[INFO] [stdout]     |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]    --> src/tcp_server.rs:147:14
[INFO] [stdout]     |
[INFO] [stdout] 147 |         let (addr, socket) = client;
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `socket`
[INFO] [stdout]    --> src/tcp_server.rs:165:20
[INFO] [stdout]     |
[INFO] [stdout] 165 |         let (addr, socket) = client;
[INFO] [stdout]     |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow data in a `&` reference as mutable
[INFO] [stdout]    --> src/tcp_server.rs:167:42
[INFO] [stdout]     |
[INFO] [stdout] 167 |             if !self.is_client_connected(&mut client) {
[INFO] [stdout]     |                                          ^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]   --> src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let server = TcpServer::<AtomicInteger>::new("127.0.0.1",3000);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `TCP-server` (bin "TCP-server" test) due to 4 previous errors; 7 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `TCP-server` (bin "TCP-server") due to 4 previous errors; 7 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "9702f836fa72e191a1cb5547e84041cb8d6c167745d6bfdf5771287c37a082dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9702f836fa72e191a1cb5547e84041cb8d6c167745d6bfdf5771287c37a082dd", kill_on_drop: false }`
[INFO] [stdout] 9702f836fa72e191a1cb5547e84041cb8d6c167745d6bfdf5771287c37a082dd
