[INFO] cloning repository https://github.com/keithyin/ssr-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/keithyin/ssr-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeithyin%2Fssr-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeithyin%2Fssr-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c4ce4e89812167bcad15d557cd5b83c40c70f9cf [INFO] checking keithyin/ssr-rust against master#c5af0610196bc39c44e54f1e08bd9149bdc66929 for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeithyin%2Fssr-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/keithyin/ssr-rust on toolchain c5af0610196bc39c44e54f1e08bd9149bdc66929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c5af0610196bc39c44e54f1e08bd9149bdc66929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/keithyin/ssr-rust [INFO] finished tweaking git repo https://github.com/keithyin/ssr-rust [INFO] tweaked toml for git repo https://github.com/keithyin/ssr-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/keithyin/ssr-rust 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" "+c5af0610196bc39c44e54f1e08bd9149bdc66929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking keithyin/ssr-rust against try#a832c07a2bcc7587230eb0706f83d1d602ae5c2b for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeithyin%2Fssr-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/keithyin/ssr-rust on toolchain a832c07a2bcc7587230eb0706f83d1d602ae5c2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/keithyin/ssr-rust [INFO] finished tweaking git repo https://github.com/keithyin/ssr-rust [INFO] tweaked toml for git repo https://github.com/keithyin/ssr-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/keithyin/ssr-rust 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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking keithyin/ssr-rust against try#a832c07a2bcc7587230eb0706f83d1d602ae5c2b for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeithyin%2Fssr-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/keithyin/ssr-rust on toolchain a832c07a2bcc7587230eb0706f83d1d602ae5c2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/keithyin/ssr-rust [INFO] finished tweaking git repo https://github.com/keithyin/ssr-rust [INFO] tweaked toml for git repo https://github.com/keithyin/ssr-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/keithyin/ssr-rust 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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a57bd7ffd4c16f611a93a2ee4b38b0a2b0d921c270eacbd133082984017c32a [INFO] running `Command { std: "docker" "start" "-a" "5a57bd7ffd4c16f611a93a2ee4b38b0a2b0d921c270eacbd133082984017c32a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a57bd7ffd4c16f611a93a2ee4b38b0a2b0d921c270eacbd133082984017c32a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a57bd7ffd4c16f611a93a2ee4b38b0a2b0d921c270eacbd133082984017c32a", kill_on_drop: false }` [INFO] [stdout] 5a57bd7ffd4c16f611a93a2ee4b38b0a2b0d921c270eacbd133082984017c32a [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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09e6b054113513047f4f60d6904aae7c035933cd7d75c22d7660e549e848969b [INFO] running `Command { std: "docker" "start" "-a" "09e6b054113513047f4f60d6904aae7c035933cd7d75c22d7660e549e848969b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking ssr-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/socks5.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | port = ((data[(5+addr_len as usize)] as u32) << 8) + (data[(5+addr_len + 1) as usize] as u32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - port = ((data[(5+addr_len as usize)] as u32) << 8) + (data[(5+addr_len + 1) as usize] as u32); [INFO] [stdout] 25 + port = ((data[5+addr_len as usize] as u32) << 8) + (data[(5+addr_len + 1) as usize] as u32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/socks5.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | port_high8 = data[(5+addr_len as usize)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - port_high8 = data[(5+addr_len as usize)]; [INFO] [stdout] 26 + port_high8 = data[5+addr_len as usize]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::event::Event` [INFO] [stdout] --> src/proxy.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use mio::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Poll` [INFO] [stdout] --> src/proxy.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use mio::{Token, Interest, Poll}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::MapInto` [INFO] [stdout] --> src/proxy.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::future::MapInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/proxy.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::StreamExt` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/socks5.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | port = ((data[(5+addr_len as usize)] as u32) << 8) + (data[(5+addr_len + 1) as usize] as u32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - port = ((data[(5+addr_len as usize)] as u32) << 8) + (data[(5+addr_len + 1) as usize] as u32); [INFO] [stdout] 25 + port = ((data[5+addr_len as usize] as u32) << 8) + (data[(5+addr_len + 1) as usize] as u32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/socks5.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | port_high8 = data[(5+addr_len as usize)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - port_high8 = data[(5+addr_len as usize)]; [INFO] [stdout] 26 + port_high8 = data[5+addr_len as usize]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::event::Event` [INFO] [stdout] --> src/proxy.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use mio::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Poll` [INFO] [stdout] --> src/proxy.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use mio::{Token, Interest, Poll}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::MapInto` [INFO] [stdout] --> src/proxy.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::future::MapInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/proxy.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::StreamExt` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] 14 | | let (mut proxy, _) = listener.accept().await?; [INFO] [stdout] 15 | | tokio::spawn(async move { [INFO] [stdout] 16 | | let mut buf = [0; 4096]; [INFO] [stdout] ... | [INFO] [stdout] 51 | | }); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 53 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut n = proxy.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] 14 | | let (mut proxy, _) = listener.accept().await?; [INFO] [stdout] 15 | | tokio::spawn(async move { [INFO] [stdout] 16 | | let mut buf = [0; 4096]; [INFO] [stdout] ... | [INFO] [stdout] 51 | | }); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 53 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut n = proxy.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | let mut n = proxy.read(&mut buf).await.unwrap(); [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/main.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | let mut n = remote.read(&mut buf).await.unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | let mut n = proxy.read(&mut buf).await.unwrap(); [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/main.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | let mut n = remote.read(&mut buf).await.unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncReadExt` [INFO] [stdout] --> src/proxy.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/proxy.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let pairs = Arc::clone(&self.pairs); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncReadExt` [INFO] [stdout] --> src/proxy.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/proxy.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn which_is_ready(proxy: &mut TcpStream, remote: &mut TcpStream) -> Token { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote` [INFO] [stdout] --> src/proxy.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn which_is_ready(proxy: &mut TcpStream, remote: &mut TcpStream) -> Token { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_remote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/proxy.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut n = proxy.read(&mut buf).unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_n` [INFO] [stdout] --> src/proxy.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let write_n = remote.write(&buf[0..n]).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_n` [INFO] [stdout] --> src/proxy.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let write_n = proxy.write(&buf[0..n]).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/proxy.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 144 | listener_token=> { [INFO] [stdout] | -------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 181 | token => { [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/proxy.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | let mut n = proxy.read(&mut buf).unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/proxy.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | token => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/proxy.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | let mut n = proxy.read(&mut buf).unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/proxy.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let pairs = Arc::clone(&self.pairs); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [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/proxy.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut listener = std::net::TcpListener::bind(addr).unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/remote.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let t = thread::spawn(move || -> io::Result<()>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/proxy.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn which_is_ready(proxy: &mut TcpStream, remote: &mut TcpStream) -> Token { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote` [INFO] [stdout] --> src/proxy.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn which_is_ready(proxy: &mut TcpStream, remote: &mut TcpStream) -> Token { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_remote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/proxy.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut n = proxy.read(&mut buf).unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/remote.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut n = proxy_remote.read(&mut buf).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_n` [INFO] [stdout] --> src/proxy.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let write_n = remote.write(&buf[0..n]).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_n` [INFO] [stdout] --> src/proxy.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let write_n = proxy.write(&buf[0..n]).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_local` is never used [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn read_from_local() -> io::Result<()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_msg_to_remote` is never used [INFO] [stdout] --> src/main.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | async fn send_msg_to_remote() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_local_v2` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn read_from_local_v2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode`, `addr_type`, `port_high8`, `port_low8`, and `addr_len` are never read [INFO] [stdout] --> src/socks5.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Socks5 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | mode: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | addr_type: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | port_high8: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | port_low8: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | addr_len: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Socks5` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encrypt` are never used [INFO] [stdout] --> src/socks5.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Socks5 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(data: &[u8]) ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn encrypt(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/proxy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `append`, and `schedule` are never used [INFO] [stdout] --> src/proxy.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Scheduler { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 23 | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn append(&mut self, proxy: TcpStream, remote: TcpStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn schedule(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_event_ready` is never used [INFO] [stdout] --> src/proxy.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn wait_for_event_ready(poll: &mut mio::Poll, events: &mut mio::Events, token: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `which_is_ready` is never used [INFO] [stdout] --> src/proxy.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn which_is_ready(proxy: &mut TcpStream, remote: &mut TcpStream) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_token` is never used [INFO] [stdout] --> src/proxy.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_token(token: &Token) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_server` is never used [INFO] [stdout] --> src/proxy.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn proxy_server() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/proxy.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 144 | listener_token=> { [INFO] [stdout] | -------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 181 | token => { [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_server_v2` is never used [INFO] [stdout] --> src/proxy.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn proxy_server_v2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/proxy.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | let mut n = proxy.read(&mut buf).unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/proxy.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | token => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_server_v3` is never used [INFO] [stdout] --> src/proxy.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn proxy_server_v3() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/proxy.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | let mut n = proxy.read(&mut buf).unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/proxy.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut listener = std::net::TcpListener::bind(addr).unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/remote.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let t = thread::spawn(move || -> io::Result<()>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/remote.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut n = proxy_remote.read(&mut buf).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | stream.write("hello boy".as_bytes()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = stream.write("hello boy".as_bytes()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_local` is never used [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn read_from_local() -> io::Result<()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_msg_to_remote` is never used [INFO] [stdout] --> src/main.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | async fn send_msg_to_remote() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_local_v2` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn read_from_local_v2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode`, `addr_type`, `port_high8`, `port_low8`, and `addr_len` are never read [INFO] [stdout] --> src/socks5.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Socks5 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | mode: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | addr_type: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | port_high8: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | port_low8: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | addr_len: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Socks5` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encrypt` are never used [INFO] [stdout] --> src/socks5.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Socks5 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(data: &[u8]) ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn encrypt(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/proxy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `append`, and `schedule` are never used [INFO] [stdout] --> src/proxy.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Scheduler { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 23 | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn append(&mut self, proxy: TcpStream, remote: TcpStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn schedule(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_event_ready` is never used [INFO] [stdout] --> src/proxy.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn wait_for_event_ready(poll: &mut mio::Poll, events: &mut mio::Events, token: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `which_is_ready` is never used [INFO] [stdout] --> src/proxy.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn which_is_ready(proxy: &mut TcpStream, remote: &mut TcpStream) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_token` is never used [INFO] [stdout] --> src/proxy.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_token(token: &Token) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_server` is never used [INFO] [stdout] --> src/proxy.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn proxy_server() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_server_v2` is never used [INFO] [stdout] --> src/proxy.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn proxy_server_v2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_server_v3` is never used [INFO] [stdout] --> src/proxy.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn proxy_server_v3() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | stream.write("hello boy".as_bytes()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = stream.write("hello boy".as_bytes()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.06s [INFO] running `Command { std: "docker" "inspect" "09e6b054113513047f4f60d6904aae7c035933cd7d75c22d7660e549e848969b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09e6b054113513047f4f60d6904aae7c035933cd7d75c22d7660e549e848969b", kill_on_drop: false }` [INFO] [stdout] 09e6b054113513047f4f60d6904aae7c035933cd7d75c22d7660e549e848969b