[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 against master#4b9792692fbb675174d4d2082e7c37b2bc930e71 for pr-153692-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkjangwon%2Fbal" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-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-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/parkjangwon/bal on toolchain 4b9792692fbb675174d4d2082e7c37b2bc930e71
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4b9792692fbb675174d4d2082e7c37b2bc930e71" "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" "+4b9792692fbb675174d4d2082e7c37b2bc930e71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded daemonize v0.5.0
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.113
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.113
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.113
[INFO] [stderr]   Downloaded jiff-static v0.2.21
[INFO] [stderr]   Downloaded js-sys v0.3.90
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.113
[INFO] [stderr]   Downloaded jiff v0.2.21
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4b9792692fbb675174d4d2082e7c37b2bc930e71" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] bb20c98a68611168f1da18fd05f4f398317a22d9717dc2552b52d08a2845e8f2
[INFO] running `Command { std: "docker" "start" "-a" "bb20c98a68611168f1da18fd05f4f398317a22d9717dc2552b52d08a2845e8f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bb20c98a68611168f1da18fd05f4f398317a22d9717dc2552b52d08a2845e8f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bb20c98a68611168f1da18fd05f4f398317a22d9717dc2552b52d08a2845e8f2", kill_on_drop: false }`
[INFO] [stdout] bb20c98a68611168f1da18fd05f4f398317a22d9717dc2552b52d08a2845e8f2
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4b9792692fbb675174d4d2082e7c37b2bc930e71" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4871134e20d00f249554c79a9496624b6e802be278a3b6cfc6adc027ae316a6c
[INFO] running `Command { std: "docker" "start" "-a" "4871134e20d00f249554c79a9496624b6e802be278a3b6cfc6adc027ae316a6c", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.182
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling unicode-ident v1.0.24
[INFO] [stderr]     Checking memchr v2.8.0
[INFO] [stderr]     Checking utf8parse v0.2.2
[INFO] [stderr]     Checking anstyle v1.0.13
[INFO] [stderr]     Checking anstyle-query v1.1.5
[INFO] [stderr]     Checking regex-syntax v0.8.10
[INFO] [stderr]     Checking colorchoice v1.0.4
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.2
[INFO] [stderr]     Checking bitflags v2.11.0
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling zmij v1.0.21
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling nix v0.29.0
[INFO] [stderr]     Checking strsim v0.11.1
[INFO] [stderr]     Checking clap_lex v1.0.0
[INFO] [stderr]    Compiling rustix v1.1.4
[INFO] [stderr]    Compiling getrandom v0.4.1
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]     Checking hashbrown v0.16.1
[INFO] [stderr]     Checking bytes v1.11.1
[INFO] [stderr]     Checking anstyle-parse v0.2.7
[INFO] [stderr]     Checking unsafe-libyaml v0.2.11
[INFO] [stderr]     Checking ryu v1.0.23
[INFO] [stderr]     Checking jiff v0.2.21
[INFO] [stderr]     Checking linux-raw-sys v0.12.1
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]     Checking iana-time-zone v0.1.65
[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 arc-swap v1.8.2
[INFO] [stderr]     Checking indexmap v2.13.0
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]     Checking chrono v0.4.44
[INFO] [stderr]     Checking errno v0.3.14
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking socket2 v0.6.2
[INFO] [stderr]     Checking dirs-sys v0.4.1
[INFO] [stderr]     Checking mio v1.1.1
[INFO] [stderr]     Checking daemonize v0.5.0
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking dirs v5.0.1
[INFO] [stderr]     Checking signal-hook-registry v1.4.8
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking tempfile v3.26.0
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling clap_derive v4.5.55
[INFO] [stderr]     Checking regex v1.12.3
[INFO] [stderr]     Checking env_filter v1.0.0
[INFO] [stderr]     Checking tokio v1.49.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: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<Arc<BackendState>> {
[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<SocketAddr> {
[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<std::path::PathBuf>) -> 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<T> {
[INFO] [stdout]    |           --------- methods in this trait
[INFO] [stdout] 42 |     /// Add configuration error context
[INFO] [stdout] 43 |     fn context_config(self, msg: &str) -> anyhow::Result<T>;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     /// Add network error context
[INFO] [stdout] 45 |     fn context_network(self, msg: &str) -> anyhow::Result<T>;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     fn context_backend(self, msg: &str) -> anyhow::Result<T>;
[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<bool> {
[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<BackendPool> {
[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] [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<Arc<BackendState>> {
[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<SocketAddr> {
[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<std::path::PathBuf>) -> 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<T> {
[INFO] [stdout]    |           --------- methods in this trait
[INFO] [stdout] 42 |     /// Add configuration error context
[INFO] [stdout] 43 |     fn context_config(self, msg: &str) -> anyhow::Result<T>;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     /// Add network error context
[INFO] [stdout] 45 |     fn context_network(self, msg: &str) -> anyhow::Result<T>;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     fn context_backend(self, msg: &str) -> anyhow::Result<T>;
[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<bool> {
[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<BackendPool> {
[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 30.28s
[INFO] running `Command { std: "docker" "inspect" "4871134e20d00f249554c79a9496624b6e802be278a3b6cfc6adc027ae316a6c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4871134e20d00f249554c79a9496624b6e802be278a3b6cfc6adc027ae316a6c", kill_on_drop: false }`
[INFO] [stdout] 4871134e20d00f249554c79a9496624b6e802be278a3b6cfc6adc027ae316a6c
