[INFO] cloning repository https://github.com/sofiworker/xray-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sofiworker/xray-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Fxray-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Fxray-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ad3ef01562cd175f30d2912be59c3efe6a7ca2d [INFO] checking sofiworker/xray-rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Fxray-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sofiworker/xray-rust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sofiworker/xray-rust [INFO] finished tweaking git repo https://github.com/sofiworker/xray-rust [INFO] tweaked toml for git repo https://github.com/sofiworker/xray-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sofiworker/xray-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e010c74554a88c83dd5550c16e9f529997c140baf77832902a9cf92dbef0ae8 [INFO] running `Command { std: "docker" "start" "-a" "9e010c74554a88c83dd5550c16e9f529997c140baf77832902a9cf92dbef0ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e010c74554a88c83dd5550c16e9f529997c140baf77832902a9cf92dbef0ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e010c74554a88c83dd5550c16e9f529997c140baf77832902a9cf92dbef0ae8", kill_on_drop: false }` [INFO] [stdout] 9e010c74554a88c83dd5550c16e9f529997c140baf77832902a9cf92dbef0ae8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8b248ba737d6b448cec82a67415cae2065bd29e634cbad1bfd53055f3b3dbb2 [INFO] running `Command { std: "docker" "start" "-a" "a8b248ba737d6b448cec82a67415cae2065bd29e634cbad1bfd53055f3b3dbb2", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling async-trait v0.1.79 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling time-macros v0.2.17 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking filetime v0.2.23 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking rustc_version v0.4.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking notify v5.2.0 [INFO] [stderr] Checking ordered-multimap v0.6.0 [INFO] [stderr] Checking rust-ini v0.19.0 [INFO] [stderr] Checking time v0.3.34 [INFO] [stderr] Checking simple_logger v4.3.3 [INFO] [stderr] Checking clap v4.5.3 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling pest v2.7.8 [INFO] [stderr] Compiling pest_meta v2.7.8 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Compiling pest_generator v2.7.8 [INFO] [stderr] Compiling pest_derive v2.7.8 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking config v0.14.0 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking xray-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `simple_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use simple_logger; [INFO] [stdout] | ^^^^^^^^^^^^^ the item `simple_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/app_conf.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/setting_conf.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `net`, `string` [INFO] [stdout] --> src/core/server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net, string}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/core/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf` [INFO] [stdout] --> src/core/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::conf; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error` [INFO] [stdout] --> src/core/server.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io` [INFO] [stdout] --> src/core/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/core/server.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpListener`, `TcpStream` [INFO] [stdout] --> src/core/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf::AppConfig` [INFO] [stdout] --> src/core/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::conf::AppConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::stream::{}` [INFO] [stdout] --> src/core/server.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::core::stream::{}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::server::Server` [INFO] [stdout] --> src/core/app.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::server::Server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log` [INFO] [stdout] --> src/core/stream.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{log, warn}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokioExecutor` [INFO] [stdout] --> src/proxy/http.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper_util::rt::{TokioExecutor, TokioIo}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_util::server::conn::auto` [INFO] [stdout] --> src/proxy/http.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper_util::server::conn::auto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/proxy/http.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `simple_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use simple_logger; [INFO] [stdout] | ^^^^^^^^^^^^^ the item `simple_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/app_conf.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/setting_conf.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `net`, `string` [INFO] [stdout] --> src/core/server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net, string}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/core/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf` [INFO] [stdout] --> src/core/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::conf; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error` [INFO] [stdout] --> src/core/server.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io` [INFO] [stdout] --> src/core/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/core/server.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpListener`, `TcpStream` [INFO] [stdout] --> src/core/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf::AppConfig` [INFO] [stdout] --> src/core/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::conf::AppConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::stream::{}` [INFO] [stdout] --> src/core/server.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::core::stream::{}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::server::Server` [INFO] [stdout] --> src/core/app.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::server::Server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log` [INFO] [stdout] --> src/core/stream.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{log, warn}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokioExecutor` [INFO] [stdout] --> src/proxy/http.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper_util::rt::{TokioExecutor, TokioIo}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_util::server::conn::auto` [INFO] [stdout] --> src/proxy/http.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper_util::server::conn::auto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/proxy/http.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/proxy/http.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 52 | / loop { [INFO] [stdout] 53 | | // When an incoming TCP connection is received grab a TCP stream for [INFO] [stdout] 54 | | // client<->server communication. [INFO] [stdout] 55 | | // [INFO] [stdout] ... | [INFO] [stdout] 78 | | }); [INFO] [stdout] 79 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 80 | 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/proxy/http.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 52 | / loop { [INFO] [stdout] 53 | | // When an incoming TCP connection is received grab a TCP stream for [INFO] [stdout] 54 | | // client<->server communication. [INFO] [stdout] 55 | | // [INFO] [stdout] ... | [INFO] [stdout] 78 | | }); [INFO] [stdout] 79 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 80 | 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: `notify::Watcher` [INFO] [stdout] --> src/conf/app_conf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::Watcher` [INFO] [stdout] --> src/conf/setting_conf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::Watcher` [INFO] [stdout] --> src/conf/app_conf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::Watcher` [INFO] [stdout] --> src/conf/setting_conf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/core/stream.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/proxy/http.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_data` is never used [INFO] [stdout] --> src/conf/setting_conf.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SettingConfig { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_data() -> SettingConfig { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Server` is never used [INFO] [stdout] --> src/core/server.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dns` is never constructed [INFO] [stdout] --> src/core/dns.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Dns { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_client` and `new_server` are never used [INFO] [stdout] --> src/core/dns.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Dns { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn new_client() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn new_server() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RouteStrategy` is never used [INFO] [stdout] --> src/core/route.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum RouteStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Route` is never constructed [INFO] [stdout] --> src/core/route.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Route { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/filter.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Filter { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/handler.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Handler { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `app_config` and `setting_config` are never read [INFO] [stdout] --> src/core/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | app_config: AppConfig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | setting_config: SettingConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `start`, `close`, `feature`, and `handle` are never used [INFO] [stdout] --> src/core/stream.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Stream { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] 7 | async fn start(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn close(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn feature(&self) -> Box; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthKind` is never used [INFO] [stdout] --> src/core/auth.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum AuthKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Auth` is never constructed [INFO] [stdout] --> src/core/auth.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Auth { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/core/session.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Run` is never constructed [INFO] [stdout] --> src/cmd/run.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Run { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VlessStream` is never constructed [INFO] [stdout] --> src/proxy/vless.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VlessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmessStream` is never constructed [INFO] [stdout] --> src/proxy/vmess.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VmessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SocksVersion` is never used [INFO] [stdout] --> src/proxy/socks.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SocksVersion { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SocksStream` is never constructed [INFO] [stdout] --> src/proxy/socks.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SocksStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `V2` and `V3` are never constructed [INFO] [stdout] --> src/proxy/http.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum HttpVersion { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 18 | V1, [INFO] [stdout] 19 | V2, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | V3, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interface` and `version` are never read [INFO] [stdout] --> src/proxy/http.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct HttpConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub interface: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | pub version: HttpVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/proxy/http.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl HttpStream { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(config: HttpConfig) -> HttpStream { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/core/stream.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/proxy/http.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_data` is never used [INFO] [stdout] --> src/conf/setting_conf.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SettingConfig { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_data() -> SettingConfig { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Server` is never used [INFO] [stdout] --> src/core/server.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dns` is never constructed [INFO] [stdout] --> src/core/dns.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Dns { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_client` and `new_server` are never used [INFO] [stdout] --> src/core/dns.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Dns { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn new_client() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn new_server() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RouteStrategy` is never used [INFO] [stdout] --> src/core/route.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum RouteStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Route` is never constructed [INFO] [stdout] --> src/core/route.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Route { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/filter.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Filter { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/handler.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Handler { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `app_config` and `setting_config` are never read [INFO] [stdout] --> src/core/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | app_config: AppConfig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | setting_config: SettingConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `close`, `feature`, and `handle` are never used [INFO] [stdout] --> src/core/stream.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Stream { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn close(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn feature(&self) -> Box; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthKind` is never used [INFO] [stdout] --> src/core/auth.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum AuthKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Auth` is never constructed [INFO] [stdout] --> src/core/auth.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Auth { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/core/session.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Run` is never constructed [INFO] [stdout] --> src/cmd/run.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Run { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VlessStream` is never constructed [INFO] [stdout] --> src/proxy/vless.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VlessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmessStream` is never constructed [INFO] [stdout] --> src/proxy/vmess.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VmessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SocksVersion` is never used [INFO] [stdout] --> src/proxy/socks.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SocksVersion { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SocksStream` is never constructed [INFO] [stdout] --> src/proxy/socks.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SocksStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `V2` and `V3` are never constructed [INFO] [stdout] --> src/proxy/http.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum HttpVersion { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 18 | V1, [INFO] [stdout] 19 | V2, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | V3, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interface` and `version` are never read [INFO] [stdout] --> src/proxy/http.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct HttpConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub interface: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | pub version: HttpVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.87s [INFO] running `Command { std: "docker" "inspect" "a8b248ba737d6b448cec82a67415cae2065bd29e634cbad1bfd53055f3b3dbb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8b248ba737d6b448cec82a67415cae2065bd29e634cbad1bfd53055f3b3dbb2", kill_on_drop: false }` [INFO] [stdout] a8b248ba737d6b448cec82a67415cae2065bd29e634cbad1bfd53055f3b3dbb2 [INFO] checking sofiworker/xray-rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsofiworker%2Fxray-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sofiworker/xray-rust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sofiworker/xray-rust [INFO] finished tweaking git repo https://github.com/sofiworker/xray-rust [INFO] tweaked toml for git repo https://github.com/sofiworker/xray-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sofiworker/xray-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35328e6e7497c850acc94607fe6f3952ae36335d6ea903c1272fac6393a3476f [INFO] running `Command { std: "docker" "start" "-a" "35328e6e7497c850acc94607fe6f3952ae36335d6ea903c1272fac6393a3476f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35328e6e7497c850acc94607fe6f3952ae36335d6ea903c1272fac6393a3476f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35328e6e7497c850acc94607fe6f3952ae36335d6ea903c1272fac6393a3476f", kill_on_drop: false }` [INFO] [stdout] 35328e6e7497c850acc94607fe6f3952ae36335d6ea903c1272fac6393a3476f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3420642c37f638d4b6bcfdd5afb3e19d162650ad8c5aa7a4b3155b6b307ec31f [INFO] running `Command { std: "docker" "start" "-a" "3420642c37f638d4b6bcfdd5afb3e19d162650ad8c5aa7a4b3155b6b307ec31f", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling async-trait v0.1.79 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Compiling time-macros v0.2.17 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking rustc_version v0.4.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking filetime v0.2.23 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking notify v5.2.0 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking ordered-multimap v0.6.0 [INFO] [stderr] Checking time v0.3.34 [INFO] [stderr] Checking rust-ini v0.19.0 [INFO] [stderr] Checking clap v4.5.3 [INFO] [stderr] Checking simple_logger v4.3.3 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling pest v2.7.8 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling pest_meta v2.7.8 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Compiling pest_generator v2.7.8 [INFO] [stderr] Compiling pest_derive v2.7.8 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking config v0.14.0 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking xray-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `simple_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use simple_logger; [INFO] [stdout] | ^^^^^^^^^^^^^ the item `simple_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/app_conf.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/setting_conf.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `net`, `string` [INFO] [stdout] --> src/core/server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net, string}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/core/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf` [INFO] [stdout] --> src/core/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::conf; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error` [INFO] [stdout] --> src/core/server.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io` [INFO] [stdout] --> src/core/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/core/server.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpListener`, `TcpStream` [INFO] [stdout] --> src/core/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf::AppConfig` [INFO] [stdout] --> src/core/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::conf::AppConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::stream::{}` [INFO] [stdout] --> src/core/server.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::core::stream::{}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::server::Server` [INFO] [stdout] --> src/core/app.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::server::Server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log` [INFO] [stdout] --> src/core/stream.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{log, warn}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokioExecutor` [INFO] [stdout] --> src/proxy/http.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper_util::rt::{TokioExecutor, TokioIo}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_util::server::conn::auto` [INFO] [stdout] --> src/proxy/http.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper_util::server::conn::auto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/proxy/http.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `simple_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use simple_logger; [INFO] [stdout] | ^^^^^^^^^^^^^ the item `simple_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/app_conf.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/conf/setting_conf.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `net`, `string` [INFO] [stdout] --> src/core/server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net, string}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/core/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf` [INFO] [stdout] --> src/core/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::conf; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error` [INFO] [stdout] --> src/core/server.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io` [INFO] [stdout] --> src/core/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/core/server.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpListener`, `TcpStream` [INFO] [stdout] --> src/core/server.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conf::AppConfig` [INFO] [stdout] --> src/core/server.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::conf::AppConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::stream::{}` [INFO] [stdout] --> src/core/server.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::core::stream::{}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::server::Server` [INFO] [stdout] --> src/core/app.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::server::Server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log` [INFO] [stdout] --> src/core/stream.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{log, warn}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokioExecutor` [INFO] [stdout] --> src/proxy/http.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper_util::rt::{TokioExecutor, TokioIo}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_util::server::conn::auto` [INFO] [stdout] --> src/proxy/http.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper_util::server::conn::auto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/proxy/http.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/proxy/http.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 52 | / loop { [INFO] [stdout] 53 | | // When an incoming TCP connection is received grab a TCP stream for [INFO] [stdout] 54 | | // client<->server communication. [INFO] [stdout] 55 | | // [INFO] [stdout] ... | [INFO] [stdout] 78 | | }); [INFO] [stdout] 79 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 80 | 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/proxy/http.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 52 | / loop { [INFO] [stdout] 53 | | // When an incoming TCP connection is received grab a TCP stream for [INFO] [stdout] 54 | | // client<->server communication. [INFO] [stdout] 55 | | // [INFO] [stdout] ... | [INFO] [stdout] 78 | | }); [INFO] [stdout] 79 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 80 | 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: `notify::Watcher` [INFO] [stdout] --> src/conf/app_conf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::Watcher` [INFO] [stdout] --> src/conf/setting_conf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::Watcher` [INFO] [stdout] --> src/conf/app_conf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notify::Watcher` [INFO] [stdout] --> src/conf/setting_conf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use notify::Watcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/core/stream.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/core/stream.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/proxy/http.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bs` [INFO] [stdout] --> src/proxy/http.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_data` is never used [INFO] [stdout] --> src/conf/setting_conf.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SettingConfig { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_data() -> SettingConfig { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_data` is never used [INFO] [stdout] --> src/conf/setting_conf.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SettingConfig { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_data() -> SettingConfig { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Server` is never used [INFO] [stdout] --> src/core/server.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dns` is never constructed [INFO] [stdout] --> src/core/dns.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Dns { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_client` and `new_server` are never used [INFO] [stdout] --> src/core/dns.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Dns { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn new_client() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn new_server() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RouteStrategy` is never used [INFO] [stdout] --> src/core/route.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum RouteStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Route` is never constructed [INFO] [stdout] --> src/core/route.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Route { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/filter.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Filter { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/handler.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Handler { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `app_config` and `setting_config` are never read [INFO] [stdout] --> src/core/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | app_config: AppConfig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | setting_config: SettingConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `start`, `close`, `feature`, and `handle` are never used [INFO] [stdout] --> src/core/stream.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Stream { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] 7 | async fn start(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn close(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn feature(&self) -> Box; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthKind` is never used [INFO] [stdout] --> src/core/auth.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum AuthKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Auth` is never constructed [INFO] [stdout] --> src/core/auth.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Auth { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/core/session.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Run` is never constructed [INFO] [stdout] --> src/cmd/run.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Run { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VlessStream` is never constructed [INFO] [stdout] --> src/proxy/vless.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VlessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmessStream` is never constructed [INFO] [stdout] --> src/proxy/vmess.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VmessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Server` is never used [INFO] [stdout] --> src/core/server.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SocksVersion` is never used [INFO] [stdout] --> src/proxy/socks.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SocksVersion { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SocksStream` is never constructed [INFO] [stdout] --> src/proxy/socks.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SocksStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dns` is never constructed [INFO] [stdout] --> src/core/dns.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Dns { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `V2` and `V3` are never constructed [INFO] [stdout] --> src/proxy/http.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum HttpVersion { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 18 | V1, [INFO] [stdout] 19 | V2, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | V3, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interface` and `version` are never read [INFO] [stdout] --> src/proxy/http.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct HttpConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub interface: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | pub version: HttpVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/proxy/http.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl HttpStream { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(config: HttpConfig) -> HttpStream { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_client` and `new_server` are never used [INFO] [stdout] --> src/core/dns.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Dns { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn new_client() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn new_server() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RouteStrategy` is never used [INFO] [stdout] --> src/core/route.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum RouteStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Route` is never constructed [INFO] [stdout] --> src/core/route.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Route { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/filter.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Filter { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_version`, `get_order`, `do_reject`, `do_route`, and `do_record` are never used [INFO] [stdout] --> src/core/handler.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Handler { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 2 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | fn get_version(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | fn get_order(&self) -> i16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | fn do_reject(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | fn do_route(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | fn do_record(&self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `app_config` and `setting_config` are never read [INFO] [stdout] --> src/core/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | app_config: AppConfig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | setting_config: SettingConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `close`, `feature`, and `handle` are never used [INFO] [stdout] --> src/core/stream.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Stream { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn close(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn feature(&self) -> Box; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | fn handle(bs: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthKind` is never used [INFO] [stdout] --> src/core/auth.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum AuthKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Auth` is never constructed [INFO] [stdout] --> src/core/auth.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Auth { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/core/session.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Run` is never constructed [INFO] [stdout] --> src/cmd/run.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Run { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VlessStream` is never constructed [INFO] [stdout] --> src/proxy/vless.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VlessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmessStream` is never constructed [INFO] [stdout] --> src/proxy/vmess.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct VmessStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SocksVersion` is never used [INFO] [stdout] --> src/proxy/socks.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SocksVersion { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SocksStream` is never constructed [INFO] [stdout] --> src/proxy/socks.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SocksStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `V2` and `V3` are never constructed [INFO] [stdout] --> src/proxy/http.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum HttpVersion { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 18 | V1, [INFO] [stdout] 19 | V2, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | V3, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interface` and `version` are never read [INFO] [stdout] --> src/proxy/http.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct HttpConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub interface: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | pub version: HttpVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.70s [INFO] running `Command { std: "docker" "inspect" "3420642c37f638d4b6bcfdd5afb3e19d162650ad8c5aa7a4b3155b6b307ec31f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3420642c37f638d4b6bcfdd5afb3e19d162650ad8c5aa7a4b3155b6b307ec31f", kill_on_drop: false }` [INFO] [stdout] 3420642c37f638d4b6bcfdd5afb3e19d162650ad8c5aa7a4b3155b6b307ec31f