[INFO] cloning repository https://github.com/parkjangwon/bal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/parkjangwon/bal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkjangwon%2Fbal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkjangwon%2Fbal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 704b15719d6a84d9ca8fb88b458092490be88239 [INFO] checking parkjangwon/bal/704b15719d6a84d9ca8fb88b458092490be88239 against master#fd0c901b00ee1e08a250039cdb90258603497e20 for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkjangwon%2Fbal" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/parkjangwon/bal [INFO] finished tweaking git repo https://github.com/parkjangwon/bal [INFO] tweaked toml for git repo https://github.com/parkjangwon/bal written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/parkjangwon/bal on toolchain fd0c901b00ee1e08a250039cdb90258603497e20 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fd0c901b00ee1e08a250039cdb90258603497e20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/parkjangwon/bal 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" "+fd0c901b00ee1e08a250039cdb90258603497e20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fd0c901b00ee1e08a250039cdb90258603497e20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 253c681949f2c31bcb35d1b402999ed29b67ca6e5ff028e28f0f695c80a62798 [INFO] running `Command { std: "docker" "start" "-a" "253c681949f2c31bcb35d1b402999ed29b67ca6e5ff028e28f0f695c80a62798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "253c681949f2c31bcb35d1b402999ed29b67ca6e5ff028e28f0f695c80a62798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "253c681949f2c31bcb35d1b402999ed29b67ca6e5ff028e28f0f695c80a62798", kill_on_drop: false }` [INFO] [stdout] 253c681949f2c31bcb35d1b402999ed29b67ca6e5ff028e28f0f695c80a62798 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fd0c901b00ee1e08a250039cdb90258603497e20" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1d47bf3d9a08601051eb0d8655e744dcb5b9b560e83603f13338ee45162efa0 [INFO] running `Command { std: "docker" "start" "-a" "c1d47bf3d9a08601051eb0d8655e744dcb5b9b560e83603f13338ee45162efa0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking clap_lex v1.0.0 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking jiff v0.2.21 [INFO] [stderr] Checking arc-swap v1.8.2 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking clap_builder v4.5.60 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking daemonize v0.5.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking tempfile v3.26.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking env_filter v1.0.0 [INFO] [stderr] Checking env_logger v0.11.9 [INFO] [stderr] Checking clap v4.5.60 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking bal v2.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `constants::get_pid_file_path` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use constants::get_pid_file_path; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::get_pid_file_path` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use constants::get_pid_file_path; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/backend_pool.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl BackendState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn set_healthy(&self, healthy: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn consecutive_failures(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn increment_failures(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn increment_successes(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn consecutive_successes(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn address(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn last_check_ms(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn timeout_count(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn refused_count(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn other_error_count(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_backend` is never used [INFO] [stdout] --> src/backend_pool.rs:323:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl BackendPool { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn find_backend(&self, host: &str, port: u16) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LeastConnections` is never constructed [INFO] [stdout] --> src/config.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum BalanceMethod { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 31 | LeastConnections, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalanceMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_socket_addr` is never used [INFO] [stdout] --> src/config.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl BackendConfig { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn to_socket_addr(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_config_file` is never used [INFO] [stdout] --> src/config.rs:546:14 [INFO] [stdout] | [INFO] [stdout] 546 | pub async fn validate_config_file(config_path: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_NAME` is never used [INFO] [stdout] --> src/constants.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const APP_NAME: &str = "bal"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERSION` is never used [INFO] [stdout] --> src/constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const VERSION: &str = env!("CARGO_PKG_VERSION"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BACKEND_CONNECT_TIMEOUT_SECS` is never used [INFO] [stdout] --> src/constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const BACKEND_CONNECT_TIMEOUT_SECS: u64 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PROXY_BUFFER_SIZE` is never used [INFO] [stdout] --> src/constants.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const PROXY_BUFFER_SIZE: usize = 8192; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Config`, `Network`, `Backend`, and `HealthCheck` are never constructed [INFO] [stdout] --> src/error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum BalError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | /// Configuration file related errors [INFO] [stdout] 15 | Config(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | /// Network/IO related errors [INFO] [stdout] 17 | Network(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | Backend(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | /// Health check related errors [INFO] [stdout] 23 | HealthCheck(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `context_config`, `context_network`, and `context_backend` are never used [INFO] [stdout] --> src/error.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub trait ResultExt { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 42 | /// Add configuration error context [INFO] [stdout] 43 | fn context_config(self, msg: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 44 | /// Add network error context [INFO] [stdout] 45 | fn context_network(self, msg: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn context_backend(self, msg: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_user_error` is never used [INFO] [stdout] --> src/error.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn format_user_error(error: &anyhow::Error) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_single_backend` is never used [INFO] [stdout] --> src/health.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl HealthChecker { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn check_single_backend(host: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `method` and `pool` are never used [INFO] [stdout] --> src/load_balancer.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl LoadBalancer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn method(&self) -> BalanceMethod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn pool(&self) -> &Arc { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_log_file` is never used [INFO] [stdout] --> src/logging.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn append_to_log_file(message: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_backend_connection` is never used [INFO] [stdout] --> src/proxy.rs:431:14 [INFO] [stdout] | [INFO] [stdout] 431 | pub async fn test_backend_connection(config: &BackendConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reload` is never read [INFO] [stdout] --> src/state.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | reload: tokio::sync::mpsc::Sender<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `trigger_reload`, `reload_receiver`, `port`, and `method` are never used [INFO] [stdout] --> src/state.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl AppState { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub async fn trigger_reload(&self) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn reload_receiver(&self) -> &tokio::sync::mpsc::Sender<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn port(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn method(&self) -> BalanceMethod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/backend_pool.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl BackendState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn consecutive_failures(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn increment_failures(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn increment_successes(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn consecutive_successes(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn address(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn last_check_ms(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn refused_count(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn other_error_count(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_backend` is never used [INFO] [stdout] --> src/backend_pool.rs:323:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl BackendPool { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn find_backend(&self, host: &str, port: u16) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_socket_addr` is never used [INFO] [stdout] --> src/config.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl BackendConfig { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn to_socket_addr(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_config_file` is never used [INFO] [stdout] --> src/config.rs:546:14 [INFO] [stdout] | [INFO] [stdout] 546 | pub async fn validate_config_file(config_path: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_NAME` is never used [INFO] [stdout] --> src/constants.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const APP_NAME: &str = "bal"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERSION` is never used [INFO] [stdout] --> src/constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const VERSION: &str = env!("CARGO_PKG_VERSION"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BACKEND_CONNECT_TIMEOUT_SECS` is never used [INFO] [stdout] --> src/constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const BACKEND_CONNECT_TIMEOUT_SECS: u64 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PROXY_BUFFER_SIZE` is never used [INFO] [stdout] --> src/constants.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const PROXY_BUFFER_SIZE: usize = 8192; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Config`, `Network`, `Backend`, and `HealthCheck` are never constructed [INFO] [stdout] --> src/error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum BalError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | /// Configuration file related errors [INFO] [stdout] 15 | Config(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | /// Network/IO related errors [INFO] [stdout] 17 | Network(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | Backend(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | /// Health check related errors [INFO] [stdout] 23 | HealthCheck(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BalError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `context_config`, `context_network`, and `context_backend` are never used [INFO] [stdout] --> src/error.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub trait ResultExt { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 42 | /// Add configuration error context [INFO] [stdout] 43 | fn context_config(self, msg: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 44 | /// Add network error context [INFO] [stdout] 45 | fn context_network(self, msg: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn context_backend(self, msg: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_user_error` is never used [INFO] [stdout] --> src/error.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn format_user_error(error: &anyhow::Error) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_single_backend` is never used [INFO] [stdout] --> src/health.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl HealthChecker { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn check_single_backend(host: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `method`, `pool`, and `current_index` are never used [INFO] [stdout] --> src/load_balancer.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl LoadBalancer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn method(&self) -> BalanceMethod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn pool(&self) -> &Arc { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn current_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_log_file` is never used [INFO] [stdout] --> src/logging.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn append_to_log_file(message: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_backend_connection` is never used [INFO] [stdout] --> src/proxy.rs:431:14 [INFO] [stdout] | [INFO] [stdout] 431 | pub async fn test_backend_connection(config: &BackendConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reload` is never read [INFO] [stdout] --> src/state.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | reload: tokio::sync::mpsc::Sender<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `trigger_reload`, `reload_receiver`, `port`, and `method` are never used [INFO] [stdout] --> src/state.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl AppState { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub async fn trigger_reload(&self) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn reload_receiver(&self) -> &tokio::sync::mpsc::Sender<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn port(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn method(&self) -> BalanceMethod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.25s [INFO] running `Command { std: "docker" "inspect" "c1d47bf3d9a08601051eb0d8655e744dcb5b9b560e83603f13338ee45162efa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1d47bf3d9a08601051eb0d8655e744dcb5b9b560e83603f13338ee45162efa0", kill_on_drop: false }` [INFO] [stdout] c1d47bf3d9a08601051eb0d8655e744dcb5b9b560e83603f13338ee45162efa0