[INFO] cloning repository https://github.com/KhaledSMQ/cncnet-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KhaledSMQ/cncnet-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhaledSMQ%2Fcncnet-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhaledSMQ%2Fcncnet-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 239d3cf9cd5669ae631b2c50459b3faae7e8e682 [INFO] building KhaledSMQ/cncnet-server against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhaledSMQ%2Fcncnet-server" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KhaledSMQ/cncnet-server [INFO] finished tweaking git repo https://github.com/KhaledSMQ/cncnet-server [INFO] tweaked toml for git repo https://github.com/KhaledSMQ/cncnet-server written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KhaledSMQ/cncnet-server on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 287 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.5.1 (available: v0.7.0) [INFO] [stderr] Adding prometheus v0.13.4 (available: v0.14.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.inline-threshold [INFO] [stderr] warning: unused manifest key: target.cfg(target_arch = "aarch64").rustflags [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.104 [INFO] [stderr] Downloaded tikv-jemallocator v0.6.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.104 [INFO] [stderr] Downloaded windows-targets v0.53.4 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.104 [INFO] [stderr] Downloaded wasm-bindgen v0.2.104 [INFO] [stderr] Downloaded wait-timeout v0.2.1 [INFO] [stderr] Downloaded windows-implement v0.60.1 [INFO] [stderr] Downloaded windows-core v0.62.1 [INFO] [stderr] Downloaded rater v0.1.1 [INFO] [stderr] Downloaded tinyvec v1.10.0 [INFO] [stderr] Downloaded js-sys v0.3.81 [INFO] [stderr] Downloaded prometheus v0.13.4 [INFO] [stderr] Downloaded protobuf v2.28.0 [INFO] [stderr] Downloaded rayon v1.11.0 [INFO] [stderr] Downloaded rayon-core v1.13.0 [INFO] [stderr] Downloaded quinn v0.11.9 [INFO] [stderr] Downloaded quinn-proto v0.11.13 [INFO] [stderr] Downloaded oorandom v11.1.5 [INFO] [stderr] Downloaded quinn-udp v0.5.14 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Downloaded windows-interface v0.59.2 [INFO] [stderr] Downloaded proptest v1.8.0 [INFO] [stderr] Downloaded rand_xorshift v0.4.0 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.54 [INFO] [stderr] Downloaded web-sys v0.3.81 [INFO] [stderr] Downloaded tikv-jemalloc-sys v0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 774a18fbba40fd2cfd4fd0ce72882d34379c26f531d45d81c1e4ae8c7af633d1 [INFO] running `Command { std: "docker" "start" "-a" "774a18fbba40fd2cfd4fd0ce72882d34379c26f531d45d81c1e4ae8c7af633d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "774a18fbba40fd2cfd4fd0ce72882d34379c26f531d45d81c1e4ae8c7af633d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "774a18fbba40fd2cfd4fd0ce72882d34379c26f531d45d81c1e4ae8c7af633d1", kill_on_drop: false }` [INFO] [stdout] 774a18fbba40fd2cfd4fd0ce72882d34379c26f531d45d81c1e4ae8c7af633d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22683a58de5a6ccde1a758b9db909a4c9ab83f96178a071f9f615fcf5a82189d [INFO] running `Command { std: "docker" "start" "-a" "22683a58de5a6ccde1a758b9db909a4c9ab83f96178a071f9f615fcf5a82189d", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.inline-threshold [INFO] [stderr] warning: unused manifest key: target.cfg(target_arch = "aarch64").rustflags [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling anstyle v1.0.12 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling compression-core v0.4.29 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling compression-codecs v0.4.31 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling rustls-webpki v0.103.6 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling rater v0.1.1 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling async-compression v0.4.32 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling cncnet-server v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Buf` and `BytesMut` [INFO] [stdout] --> src/tunnel_v2.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use bytes::{Buf, BytesMut}; [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: `Ipv4Addr` [INFO] [stdout] --> src/tunnel_v2.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufferGuard` [INFO] [stdout] --> src/tunnel_v3.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::buffer_pool::{self, BufferGuard}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerError` [INFO] [stdout] --> src/tunnel_v3.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::errors::{Result, ServerError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/tunnel_v3.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use bytes::{Buf, BufMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv4Addr` [INFO] [stdout] --> src/tunnel_v3.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/peer_to_peer.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/buffer_pool.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BytesMut, Bytes}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BodyExt` [INFO] [stdout] --> src/health.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use http_body_util::{BodyExt, Full}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/tunnel_v2.rs:356:29 [INFO] [stdout] | [INFO] [stdout] 356 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/tunnel_v3.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | let accept = rand::thread_rng().gen_range(0..1000) >= rejection_prob; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/peer_to_peer.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | rand::thread_rng().fill(&mut send_buffer[..]); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/tunnel_v2.rs:362:33 [INFO] [stdout] | [INFO] [stdout] 362 | let client_id = rng.gen::(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tunnel_v3.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | mut packet: bytes::BytesMut, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinator` [INFO] [stdout] --> src/main.rs:316:27 [INFO] [stdout] | [INFO] [stdout] 316 | async fn shutdown_handler(coordinator: shutdown::ShutdownCoordinator) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/tunnel_v3.rs:118:41 [INFO] [stdout] | [INFO] [stdout] 118 | let accept = rand::thread_rng().gen_range(0..1000) >= rejection_prob; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BodyExt` [INFO] [stdout] --> src/tunnel_v2.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use http_body_util::{BodyExt, Full}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buf` [INFO] [stdout] --> src/tunnel_v3.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use bytes::{Buf, BufMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_packets_rx` [INFO] [stdout] --> src/metrics.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let v3_packets_rx = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 212 | let _v3_packets_rx = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 212 - let v3_packets_rx = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] 212 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_packets_tx` [INFO] [stdout] --> src/metrics.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let v3_packets_tx = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 213 | let _v3_packets_tx = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 213 - let v3_packets_tx = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] 213 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_bytes_rx` [INFO] [stdout] --> src/metrics.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | let v3_bytes_rx = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 214 | let _v3_bytes_rx = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 214 - let v3_bytes_rx = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] 214 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_bytes_tx` [INFO] [stdout] --> src/metrics.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let v3_bytes_tx = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 215 | let _v3_bytes_tx = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 215 - let v3_bytes_tx = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] 215 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2_packets_rx` [INFO] [stdout] --> src/metrics.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let v2_packets_rx = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 218 | let _v2_packets_rx = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 218 - let v2_packets_rx = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] 218 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2_packets_tx` [INFO] [stdout] --> src/metrics.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let v2_packets_tx = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 219 | let _v2_packets_tx = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 219 - let v2_packets_tx = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] 219 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2_http` [INFO] [stdout] --> src/metrics.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let v2_http = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 221 | let _v2_http = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 221 - let v2_http = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] 221 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rate_limits` [INFO] [stdout] --> src/metrics.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let rate_limits = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 223 | let _rate_limits = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 223 - let rate_limits = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] 223 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dropped_pkts` [INFO] [stdout] --> src/metrics.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let dropped_pkts = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 224 | let _dropped_pkts = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 224 - let dropped_pkts = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] 224 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dropped_conns` [INFO] [stdout] --> src/metrics.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let dropped_conns = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 225 | let _dropped_conns = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 225 - let dropped_conns = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] 225 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/rate_limiter.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn remove(&self, ip: &IpAddr) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_global` [INFO] [stdout] --> src/rate_limiter.rs:79:56 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(window_seconds: u64, max_per_ip: usize, max_global: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(window_seconds: u64, max_per_ip: usize, _max_global: usize) -> Self { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_CONNECTIONS_GLOBAL` [INFO] [stdout] | [INFO] [stdout] 79 - pub fn new(window_seconds: u64, max_per_ip: usize, max_global: usize) -> Self { [INFO] [stdout] 79 + pub fn new(window_seconds: u64, max_per_ip: usize, peer_to_peer::MAX_CONNECTIONS_GLOBAL: usize) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `worker_threads` is never read [INFO] [stdout] --> src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ServerConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub worker_threads: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Config`, `RateLimitExceeded`, `ServiceUnavailable`, `InvalidPacket`, `ClientTimeout`, and `MaintenanceMode` are never constructed [INFO] [stdout] --> src/errors.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ServerError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Config(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | RateLimitExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ServiceUnavailable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | InvalidPacket, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | ClientTimeout, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | MaintenanceMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/metrics.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Metrics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub memory_usage: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | pub cpu_usage: AtomicU64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub forwarding_latency_us: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | prom_v3_packets_received: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | prom_v3_packets_sent: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | prom_v3_bytes_received: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | prom_v3_bytes_sent: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | prom_v2_packets_received: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | prom_v2_packets_sent: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | prom_v2_active_clients: IntGauge, [INFO] [stdout] 52 | prom_v2_http_requests: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | [INFO] [stdout] 54 | prom_rate_limit_hits: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | prom_dropped_packets: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | prom_dropped_connections: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `record_packet_latency`, `get_stats_summary`, `report`, `reset_counters`, and `update_memory_usage` are never used [INFO] [stdout] --> src/metrics.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Metrics { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn record_packet_latency(&self, latency_us: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn get_stats_summary(&self) -> StatsSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn report(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn reset_counters(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | pub fn update_memory_usage(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatsSummary` is never constructed [INFO] [stdout] --> src/metrics.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub struct StatsSummary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `throughput_mbps`, `packets_per_second`, and `drop_rate_percent` are never used [INFO] [stdout] --> src/metrics.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl StatsSummary { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 345 | pub fn throughput_mbps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | pub fn packets_per_second(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn drop_rate_percent(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connection_limiter` is never read [INFO] [stdout] --> src/tunnel_v2.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct TunnelV2 { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | connection_limiter: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TunnelV2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_latency`, `set_packet_loss_rate`, `get_connection_info`, and `reset_stats` are never used [INFO] [stdout] --> src/tunnel_client.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl TunnelClient { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn set_latency(&self, latency_ms: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn set_packet_loss_rate(&self, rate: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn get_connection_info(&self) -> ConnectionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn reset_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionInfo` is never constructed [INFO] [stdout] --> src/tunnel_client.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct ConnectionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bandwidth_kbps` and `packet_loss_percent` are never used [INFO] [stdout] --> src/tunnel_client.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ConnectionInfo { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 217 | pub fn bandwidth_kbps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn packet_loss_percent(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `samples` is never read [INFO] [stdout] --> src/tunnel_client.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 249 | pub struct QualityAnalyzer { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 250 | samples: Vec<(u64, u32)>, // (timestamp, latency) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_latency_sample`, `get_average_latency`, `get_packet_loss_rate`, and `get_jitter` are never used [INFO] [stdout] --> src/tunnel_client.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 255 | impl QualityAnalyzer { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn add_latency_sample(&mut self, latency_ms: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn get_average_latency(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn get_packet_loss_rate(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn get_jitter(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_per_ip` is never read [INFO] [stdout] --> src/rate_limiter.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ConnectionLimiter { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 7 | manager: Arc, [INFO] [stdout] 8 | max_per_ip: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_connection_count` is never used [INFO] [stdout] --> src/rate_limiter.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ConnectionLimiter { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_connection_count(&self, _ip: &IpAddr) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_current_load` is never used [INFO] [stdout] --> src/rate_limiter.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl RateLimiter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_current_load(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `acquire_small`, `acquire_large`, `release_small`, `release_large`, and `clear_pools` are never used [INFO] [stdout] --> src/buffer_pool.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl BufferPool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn acquire_small(&self) -> BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn acquire_large(&self) -> BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn release_small(&self, mut buf: BytesMut) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn release_large(&self, mut buf: BytesMut) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 382 | pub fn clear_pools(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufferGuard` is never constructed [INFO] [stdout] --> src/buffer_pool.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub struct BufferGuard { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SizeClass` is never used [INFO] [stdout] --> src/buffer_pool.rs:449:6 [INFO] [stdout] | [INFO] [stdout] 449 | enum SizeClass { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `small`, `medium`, `large`, `take`, `as_ref`, and `as_mut` are never used [INFO] [stdout] --> src/buffer_pool.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 455 | impl BufferGuard { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 456 | pub fn small(buf: BytesMut) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 463 | pub fn medium(buf: BytesMut) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 470 | pub fn large(buf: BytesMut) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub fn as_ref(&self) -> Option<&BytesMut> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | pub fn as_mut(&mut self) -> Option<&mut BytesMut> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_shutting_down` is never used [INFO] [stdout] --> src/shutdown.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl ShutdownCoordinator { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn is_shutting_down(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 29s [INFO] running `Command { std: "docker" "inspect" "22683a58de5a6ccde1a758b9db909a4c9ab83f96178a071f9f615fcf5a82189d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22683a58de5a6ccde1a758b9db909a4c9ab83f96178a071f9f615fcf5a82189d", kill_on_drop: false }` [INFO] [stdout] 22683a58de5a6ccde1a758b9db909a4c9ab83f96178a071f9f615fcf5a82189d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ad36435a152e006affc98867183ddb95dec0d860455af662c92d611e67501a1 [INFO] running `Command { std: "docker" "start" "-a" "8ad36435a152e006affc98867183ddb95dec0d860455af662c92d611e67501a1", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.inline-threshold [INFO] [stderr] warning: unused manifest key: target.cfg(target_arch = "aarch64").rustflags [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling rater v0.1.1 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling proptest v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling async-compression v0.4.32 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling cncnet-server v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Buf` and `BytesMut` [INFO] [stdout] --> src/tunnel_v2.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use bytes::{Buf, BytesMut}; [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: `Ipv4Addr` [INFO] [stdout] --> src/tunnel_v2.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufferGuard` [INFO] [stdout] --> src/tunnel_v3.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::buffer_pool::{self, BufferGuard}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerError` [INFO] [stdout] --> src/tunnel_v3.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::errors::{Result, ServerError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/tunnel_v3.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use bytes::{Buf, BufMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv4Addr` [INFO] [stdout] --> src/tunnel_v3.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | use std::net::{IpAddr, Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/peer_to_peer.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/buffer_pool.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BytesMut, Bytes}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BodyExt` [INFO] [stdout] --> src/health.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use http_body_util::{BodyExt, Full}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/tunnel_v2.rs:356:29 [INFO] [stdout] | [INFO] [stdout] 356 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/tunnel_v3.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | let accept = rand::thread_rng().gen_range(0..1000) >= rejection_prob; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/peer_to_peer.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | rand::thread_rng().fill(&mut send_buffer[..]); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/tunnel_v2.rs:362:33 [INFO] [stdout] | [INFO] [stdout] 362 | let client_id = rng.gen::(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tunnel_v3.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | mut packet: bytes::BytesMut, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinator` [INFO] [stdout] --> src/main.rs:316:27 [INFO] [stdout] | [INFO] [stdout] 316 | async fn shutdown_handler(coordinator: shutdown::ShutdownCoordinator) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/tunnel_v3.rs:118:41 [INFO] [stdout] | [INFO] [stdout] 118 | let accept = rand::thread_rng().gen_range(0..1000) >= rejection_prob; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BodyExt` [INFO] [stdout] --> src/tunnel_v2.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use http_body_util::{BodyExt, Full}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buf` [INFO] [stdout] --> src/tunnel_v3.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use bytes::{Buf, BufMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_packets_rx` [INFO] [stdout] --> src/metrics.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let v3_packets_rx = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 212 | let _v3_packets_rx = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 212 - let v3_packets_rx = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] 212 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_packets_tx` [INFO] [stdout] --> src/metrics.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let v3_packets_tx = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 213 | let _v3_packets_tx = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 213 - let v3_packets_tx = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] 213 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_bytes_rx` [INFO] [stdout] --> src/metrics.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | let v3_bytes_rx = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 214 | let _v3_bytes_rx = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 214 - let v3_bytes_rx = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] 214 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_bytes_received.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3_bytes_tx` [INFO] [stdout] --> src/metrics.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let v3_bytes_tx = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 215 | let _v3_bytes_tx = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 215 - let v3_bytes_tx = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] 215 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v3_bytes_sent.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2_packets_rx` [INFO] [stdout] --> src/metrics.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let v2_packets_rx = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 218 | let _v2_packets_rx = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 218 - let v2_packets_rx = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] 218 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v2_packets_received.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2_packets_tx` [INFO] [stdout] --> src/metrics.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let v2_packets_tx = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 219 | let _v2_packets_tx = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 219 - let v2_packets_tx = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] 219 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v2_packets_sent.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2_http` [INFO] [stdout] --> src/metrics.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let v2_http = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 221 | let _v2_http = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 221 - let v2_http = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] 221 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.v2_http_requests.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rate_limits` [INFO] [stdout] --> src/metrics.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let rate_limits = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 223 | let _rate_limits = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 223 - let rate_limits = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] 223 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.rate_limit_hits.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dropped_pkts` [INFO] [stdout] --> src/metrics.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let dropped_pkts = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 224 | let _dropped_pkts = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 224 - let dropped_pkts = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] 224 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.dropped_packets.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dropped_conns` [INFO] [stdout] --> src/metrics.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let dropped_conns = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 225 | let _dropped_conns = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `LOG_INTERVAL` [INFO] [stdout] | [INFO] [stdout] 225 - let dropped_conns = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] 225 + let tunnel_v3::TunnelV3::process_batch::{closure#0}::LOG_INTERVAL = self.dropped_connections.load(Ordering::Relaxed); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/rate_limiter.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn remove(&self, ip: &IpAddr) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_global` [INFO] [stdout] --> src/rate_limiter.rs:79:56 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(window_seconds: u64, max_per_ip: usize, max_global: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(window_seconds: u64, max_per_ip: usize, _max_global: usize) -> Self { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_CONNECTIONS_GLOBAL` [INFO] [stdout] | [INFO] [stdout] 79 - pub fn new(window_seconds: u64, max_per_ip: usize, max_global: usize) -> Self { [INFO] [stdout] 79 + pub fn new(window_seconds: u64, max_per_ip: usize, peer_to_peer::MAX_CONNECTIONS_GLOBAL: usize) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `worker_threads` is never read [INFO] [stdout] --> src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ServerConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub worker_threads: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Config`, `RateLimitExceeded`, `ServiceUnavailable`, `InvalidPacket`, `ClientTimeout`, and `MaintenanceMode` are never constructed [INFO] [stdout] --> src/errors.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ServerError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Config(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | RateLimitExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ServiceUnavailable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | InvalidPacket, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | ClientTimeout, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | MaintenanceMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/metrics.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Metrics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub memory_usage: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | pub cpu_usage: AtomicU64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub forwarding_latency_us: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | prom_v3_packets_received: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | prom_v3_packets_sent: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | prom_v3_bytes_received: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | prom_v3_bytes_sent: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | prom_v2_packets_received: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | prom_v2_packets_sent: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | prom_v2_active_clients: IntGauge, [INFO] [stdout] 52 | prom_v2_http_requests: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | [INFO] [stdout] 54 | prom_rate_limit_hits: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | prom_dropped_packets: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | prom_dropped_connections: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `record_packet_latency`, `get_stats_summary`, `report`, `reset_counters`, and `update_memory_usage` are never used [INFO] [stdout] --> src/metrics.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Metrics { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn record_packet_latency(&self, latency_us: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn get_stats_summary(&self) -> StatsSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn report(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn reset_counters(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | pub fn update_memory_usage(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatsSummary` is never constructed [INFO] [stdout] --> src/metrics.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub struct StatsSummary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `throughput_mbps`, `packets_per_second`, and `drop_rate_percent` are never used [INFO] [stdout] --> src/metrics.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl StatsSummary { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 345 | pub fn throughput_mbps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | pub fn packets_per_second(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn drop_rate_percent(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connection_limiter` is never read [INFO] [stdout] --> src/tunnel_v2.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct TunnelV2 { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | connection_limiter: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TunnelV2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_latency`, `set_packet_loss_rate`, `get_connection_info`, and `reset_stats` are never used [INFO] [stdout] --> src/tunnel_client.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl TunnelClient { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn set_latency(&self, latency_ms: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn set_packet_loss_rate(&self, rate: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn get_connection_info(&self) -> ConnectionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn reset_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionInfo` is never constructed [INFO] [stdout] --> src/tunnel_client.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct ConnectionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bandwidth_kbps` and `packet_loss_percent` are never used [INFO] [stdout] --> src/tunnel_client.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ConnectionInfo { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 217 | pub fn bandwidth_kbps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn packet_loss_percent(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `samples` is never read [INFO] [stdout] --> src/tunnel_client.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 249 | pub struct QualityAnalyzer { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 250 | samples: Vec<(u64, u32)>, // (timestamp, latency) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_latency_sample`, `get_average_latency`, `get_packet_loss_rate`, and `get_jitter` are never used [INFO] [stdout] --> src/tunnel_client.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 255 | impl QualityAnalyzer { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn add_latency_sample(&mut self, latency_ms: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn get_average_latency(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn get_packet_loss_rate(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn get_jitter(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_per_ip` is never read [INFO] [stdout] --> src/rate_limiter.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ConnectionLimiter { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 7 | manager: Arc, [INFO] [stdout] 8 | max_per_ip: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_connection_count` is never used [INFO] [stdout] --> src/rate_limiter.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ConnectionLimiter { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_connection_count(&self, _ip: &IpAddr) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_current_load` is never used [INFO] [stdout] --> src/rate_limiter.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl RateLimiter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_current_load(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `acquire_small`, `acquire_large`, `release_small`, `release_large`, and `clear_pools` are never used [INFO] [stdout] --> src/buffer_pool.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl BufferPool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn acquire_small(&self) -> BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn acquire_large(&self) -> BytesMut { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn release_small(&self, mut buf: BytesMut) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn release_large(&self, mut buf: BytesMut) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 382 | pub fn clear_pools(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufferGuard` is never constructed [INFO] [stdout] --> src/buffer_pool.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub struct BufferGuard { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SizeClass` is never used [INFO] [stdout] --> src/buffer_pool.rs:449:6 [INFO] [stdout] | [INFO] [stdout] 449 | enum SizeClass { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `small`, `medium`, `large`, `take`, `as_ref`, and `as_mut` are never used [INFO] [stdout] --> src/buffer_pool.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 455 | impl BufferGuard { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 456 | pub fn small(buf: BytesMut) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 463 | pub fn medium(buf: BytesMut) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 470 | pub fn large(buf: BytesMut) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub fn as_ref(&self) -> Option<&BytesMut> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | pub fn as_mut(&mut self) -> Option<&mut BytesMut> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_shutting_down` is never used [INFO] [stdout] --> src/shutdown.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl ShutdownCoordinator { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn is_shutting_down(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 50.76s [INFO] running `Command { std: "docker" "inspect" "8ad36435a152e006affc98867183ddb95dec0d860455af662c92d611e67501a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ad36435a152e006affc98867183ddb95dec0d860455af662c92d611e67501a1", kill_on_drop: false }` [INFO] [stdout] 8ad36435a152e006affc98867183ddb95dec0d860455af662c92d611e67501a1