[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeithyin%2Fssr-rust" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/keithyin/ssr-rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-3/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: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d6ecdbc3f40bab47df6f8312c830526c510af73f4ef65435b4e7c838e3deed7 [INFO] running `Command { std: "docker" "start" "-a" "9d6ecdbc3f40bab47df6f8312c830526c510af73f4ef65435b4e7c838e3deed7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d6ecdbc3f40bab47df6f8312c830526c510af73f4ef65435b4e7c838e3deed7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d6ecdbc3f40bab47df6f8312c830526c510af73f4ef65435b4e7c838e3deed7", kill_on_drop: false }` [INFO] [stdout] 9d6ecdbc3f40bab47df6f8312c830526c510af73f4ef65435b4e7c838e3deed7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc54d6121b8d4298e76916267e2c3ffc44a21c6e7d08b7dbf5512c8e64f52198 [INFO] running `Command { std: "docker" "start" "-a" "bc54d6121b8d4298e76916267e2c3ffc44a21c6e7d08b7dbf5512c8e64f52198", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] tokio v1.9.0: winapi [INFO] [stderr] [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Compiling syn v1.0.74 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (3 fixes) [INFO] [stderr] Fixed src/proxy.rs (11 fixes) [INFO] [stderr] Fixed src/remote.rs (2 fixes) [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: 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] = note: `#[warn(unused_imports)]` on by default [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/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut n = proxy.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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: 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: associated function is never used: `new` [INFO] [stdout] --> src/socks5.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(data: &[u8]) ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/socks5.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn encrypt(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Scheduler` [INFO] [stdout] --> src/proxy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/proxy.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [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: associated function is never used: `append` [INFO] [stdout] --> src/proxy.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn append(&mut self, proxy: TcpStream, remote: TcpStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `schedule` [INFO] [stdout] --> src/proxy.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn schedule(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wait_for_event_ready` [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 is never used: `which_is_ready` [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 is never used: `next_token` [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 is never used: `proxy_server` [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 is never used: `proxy_server_v2` [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 is never used: `proxy_server_v3` [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: function is never used: `read_from_local` [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] [INFO] [stdout] warning: function is never used: `send_msg_to_remote` [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 is never used: `read_from_local_v2` [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: 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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [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] = note: `#[warn(unused_imports)]` on by default [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/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut n = proxy.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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: 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: associated function is never used: `new` [INFO] [stdout] --> src/socks5.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(data: &[u8]) ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/socks5.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn encrypt(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Scheduler` [INFO] [stdout] --> src/proxy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/proxy.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/proxy.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn append(&mut self, proxy: TcpStream, remote: TcpStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `schedule` [INFO] [stdout] --> src/proxy.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn schedule(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wait_for_event_ready` [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 is never used: `which_is_ready` [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 is never used: `next_token` [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 is never used: `proxy_server` [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 is never used: `proxy_server_v2` [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 is never used: `proxy_server_v3` [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: function is never used: `read_from_local` [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] [INFO] [stdout] warning: function is never used: `send_msg_to_remote` [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 is never used: `read_from_local_v2` [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: 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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.10s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Checking ssr-rust v0.1.0 (/tmp/fixit) [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: 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: 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] = note: `#[warn(unused_imports)]` on by default [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/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut n = proxy.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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: 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 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] = note: `#[warn(unused_imports)]` on by default [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/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut n = proxy.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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: 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: associated function is never used: `new` [INFO] [stdout] --> src/socks5.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(data: &[u8]) ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/socks5.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn encrypt(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Scheduler` [INFO] [stdout] --> src/proxy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/proxy.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/proxy.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn append(&mut self, proxy: TcpStream, remote: TcpStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `schedule` [INFO] [stdout] --> src/proxy.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn schedule(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wait_for_event_ready` [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 is never used: `which_is_ready` [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 is never used: `next_token` [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 is never used: `proxy_server` [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 is never used: `proxy_server_v2` [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 is never used: `proxy_server_v3` [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: function is never used: `read_from_local` [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] [INFO] [stdout] warning: function is never used: `send_msg_to_remote` [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 is never used: `read_from_local_v2` [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: 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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/socks5.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(data: &[u8]) ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/socks5.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn encrypt(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Scheduler` [INFO] [stdout] --> src/proxy.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/proxy.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/proxy.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn append(&mut self, proxy: TcpStream, remote: TcpStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `schedule` [INFO] [stdout] --> src/proxy.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn schedule(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wait_for_event_ready` [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 is never used: `which_is_ready` [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 is never used: `next_token` [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 is never used: `proxy_server` [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 is never used: `proxy_server_v2` [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 is never used: `proxy_server_v3` [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: function is never used: `read_from_local` [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] [INFO] [stdout] warning: function is never used: `send_msg_to_remote` [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 is never used: `read_from_local_v2` [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: 23 warnings emitted [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.84s [INFO] running `Command { std: "docker" "inspect" "bc54d6121b8d4298e76916267e2c3ffc44a21c6e7d08b7dbf5512c8e64f52198", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc54d6121b8d4298e76916267e2c3ffc44a21c6e7d08b7dbf5512c8e64f52198", kill_on_drop: false }` [INFO] [stdout] bc54d6121b8d4298e76916267e2c3ffc44a21c6e7d08b7dbf5512c8e64f52198