[INFO] cloning repository https://github.com/exec/ferrous-dns [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/exec/ferrous-dns" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexec%2Fferrous-dns", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexec%2Fferrous-dns'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 34620d829c334dd097e7c7cde7bcb6a70143cf16 [INFO] testing exec/ferrous-dns against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexec%2Fferrous-dns" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/exec/ferrous-dns [INFO] finished tweaking git repo https://github.com/exec/ferrous-dns [INFO] tweaked toml for git repo https://github.com/exec/ferrous-dns written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/exec/ferrous-dns on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/exec/ferrous-dns 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fc781ac39559c026173932d432a3b15d76ee0706ea3e2975c2c5d91fd6f12ab [INFO] running `Command { std: "docker" "start" "-a" "2fc781ac39559c026173932d432a3b15d76ee0706ea3e2975c2c5d91fd6f12ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fc781ac39559c026173932d432a3b15d76ee0706ea3e2975c2c5d91fd6f12ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fc781ac39559c026173932d432a3b15d76ee0706ea3e2975c2c5d91fd6f12ab", kill_on_drop: false }` [INFO] [stdout] 2fc781ac39559c026173932d432a3b15d76ee0706ea3e2975c2c5d91fd6f12ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afe9775fcd90b911b7aa1be8212f788d3c2cd63a1eebaa716225b3ce549f4fc3 [INFO] running `Command { std: "docker" "start" "-a" "afe9775fcd90b911b7aa1be8212f788d3c2cd63a1eebaa716225b3ce549f4fc3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling askama_escape v0.10.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling clap_builder v4.5.41 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling askama_parser v0.2.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling clap_derive v4.5.41 [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 regex v1.11.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling clap v4.5.41 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling basic-toml v0.1.10 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling askama_derive v0.12.5 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling askama v0.12.1 [INFO] [stderr] Compiling askama_axum v0.4.0 [INFO] [stderr] Compiling hickory-client v0.24.4 [INFO] [stderr] Compiling hickory-server v0.24.4 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling ferrous-dns v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Name` [INFO] [stdout] --> src/blocklist/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use hickory_proto::rr::{Name, RData, Record, RecordType}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/metrics/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/metrics/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/server/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | client_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Name` [INFO] [stdout] --> src/blocklist/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use hickory_proto::rr::{Name, RData, Record, RecordType}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/metrics/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/metrics/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimpleWebUIState as WebUIState` [INFO] [stdout] --> src/web_ui/mod.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | pub use simple::{SimpleWebUIServer as WebUIServer, SimpleWebUIState as WebUIState}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/server/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | client_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BlockResponse` is never used [INFO] [stdout] --> src/blocklist/mod.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum BlockResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_string` is never used [INFO] [stdout] --> src/blocklist/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl BlockResponse { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 30 | fn from_string(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockListManager` is never constructed [INFO] [stdout] --> src/blocklist/mod.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct BlockListManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/blocklist/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl BlockListManager { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(config: BlocklistConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn is_blocked(&self, domain: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub async fn start_updater(self: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | async fn load_from_sources(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | async fn load_from_source(&self, client: &reqwest::Client, source: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | async fn parse_blocklist(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn parse_hosts_format(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn parse_adblock_format(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn parse_plain_domain(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn is_valid_domain(&self, domain: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn create_blocked_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub async fn get_stats(&self) -> BlocklistStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlocklistStats` is never constructed [INFO] [stdout] --> src/blocklist/mod.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct BlocklistStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cached_at` is never read [INFO] [stdout] --> src/cache/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CachedRecord { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 17 | pub record: Record, [INFO] [stdout] 18 | pub cached_at: Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedRecord` 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: methods `cleanup_expired` and `get_stats` are never used [INFO] [stdout] --> src/cache/mod.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 42 | impl DnsCache { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn cleanup_expired(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_stats(&self) -> CacheStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheStats` is never constructed [INFO] [stdout] --> src/cache/mod.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct CacheStats { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_cache_cleanup` is never used [INFO] [stdout] --> src/cache/mod.rs:307:14 [INFO] [stdout] | [INFO] [stdout] 307 | pub async fn run_cache_cleanup(cache: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/metrics/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DnsMetrics { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | queries_total: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | query_duration: HistogramVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | responses_total: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | response_size: Histogram, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | cache_hits: Counter, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | cache_misses: Counter, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | cache_size: IntGauge, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | blocked_queries: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | active_connections: IntGauge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | memory_usage: IntGauge, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | errors_total: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/metrics/mod.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl DnsMetrics { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn record_query(&self, protocol: &str, record_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn record_query_duration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn record_response(&self, protocol: &str, response_code: &str, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn record_cache_hit(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn record_cache_miss(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn update_cache_size(&self, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn record_blocked_query(&self, reason: &str, response_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn update_active_connections(&self, count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn update_memory_usage(&self, bytes: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn record_error(&self, error_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryTimer` is never constructed [INFO] [stdout] --> src/metrics/mod.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct QueryTimer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `elapsed` are never used [INFO] [stdout] --> src/metrics/mod.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 330 | impl QueryTimer { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 331 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn elapsed(&self) -> std::time::Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_memory_usage` is never used [INFO] [stdout] --> src/metrics/mod.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn get_memory_usage() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cpu_usage` is never used [INFO] [stdout] --> src/metrics/mod.rs:349:8 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_cpu_usage() -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_health_check` is never used [INFO] [stdout] --> src/protocols/doh.rs:224:14 [INFO] [stdout] | [INFO] [stdout] 224 | pub async fn handle_health_check() -> Result, Infallible> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsRecord` is never constructed [INFO] [stdout] --> src/resolver/recursive.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DnsRecord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsView` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DnsView { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZoneConfig` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ZoneConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SplitHorizonResolver` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct SplitHorizonResolver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/resolver/splithorizon.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 32 | impl SplitHorizonResolver { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 33 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn resolve_query( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn classify_client(&self, client_ip: IpAddr) -> Option<&DnsView> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn get_default_view(&self) -> Option<&DnsView> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | async fn get_view_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn add_zone(&mut self, view_name: &str, zone: ZoneConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn add_view(&mut self, view: DnsView) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn get_view_stats(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewStats` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct ViewStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metrics` is never read [INFO] [stdout] --> src/web_ui/simple.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct SimpleWebUIState { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 129 | pub config: Arc>, [INFO] [stdout] 130 | pub metrics: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleWebUIState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s [INFO] running `Command { std: "docker" "inspect" "afe9775fcd90b911b7aa1be8212f788d3c2cd63a1eebaa716225b3ce549f4fc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afe9775fcd90b911b7aa1be8212f788d3c2cd63a1eebaa716225b3ce549f4fc3", kill_on_drop: false }` [INFO] [stdout] afe9775fcd90b911b7aa1be8212f788d3c2cd63a1eebaa716225b3ce549f4fc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a258cd26e307934a106f235f1c2086e67e52c17c2ea541a2efc4ce1223f0fab9 [INFO] running `Command { std: "docker" "start" "-a" "a258cd26e307934a106f235f1c2086e67e52c17c2ea541a2efc4ce1223f0fab9", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tokio v1.47.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 itertools v0.10.5 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling basic-toml v0.1.10 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling askama_derive v0.12.5 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling askama v0.12.1 [INFO] [stderr] Compiling askama_axum v0.4.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling hickory-server v0.24.4 [INFO] [stderr] Compiling hickory-client v0.24.4 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling ferrous-dns v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Name` [INFO] [stdout] --> src/blocklist/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use hickory_proto::rr::{Name, RData, Record, RecordType}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/metrics/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/metrics/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/server/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | client_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Name` [INFO] [stdout] --> src/blocklist/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use hickory_proto::rr::{Name, RData, Record, RecordType}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/metrics/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/metrics/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Name` [INFO] [stdout] --> src/blocklist/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use hickory_proto::rr::{Name, RData, Record, RecordType}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/metrics/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/metrics/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimpleWebUIState as WebUIState` [INFO] [stdout] --> src/web_ui/mod.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | pub use simple::{SimpleWebUIServer as WebUIServer, SimpleWebUIState as WebUIState}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/server/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | client_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/server/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | client_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BlockResponse` is never used [INFO] [stdout] --> src/blocklist/mod.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum BlockResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_string` is never used [INFO] [stdout] --> src/blocklist/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl BlockResponse { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 30 | fn from_string(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockListManager` is never constructed [INFO] [stdout] --> src/blocklist/mod.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct BlockListManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/blocklist/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl BlockListManager { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(config: BlocklistConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn is_blocked(&self, domain: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub async fn start_updater(self: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | async fn load_from_sources(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | async fn load_from_source(&self, client: &reqwest::Client, source: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | async fn parse_blocklist(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn parse_hosts_format(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn parse_adblock_format(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn parse_plain_domain(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn is_valid_domain(&self, domain: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn create_blocked_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub async fn get_stats(&self) -> BlocklistStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlocklistStats` is never constructed [INFO] [stdout] --> src/blocklist/mod.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct BlocklistStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cached_at` is never read [INFO] [stdout] --> src/cache/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CachedRecord { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 17 | pub record: Record, [INFO] [stdout] 18 | pub cached_at: Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedRecord` 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: methods `cleanup_expired` and `get_stats` are never used [INFO] [stdout] --> src/cache/mod.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 42 | impl DnsCache { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn cleanup_expired(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_stats(&self) -> CacheStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheStats` is never constructed [INFO] [stdout] --> src/cache/mod.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct CacheStats { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_cache_cleanup` is never used [INFO] [stdout] --> src/cache/mod.rs:307:14 [INFO] [stdout] | [INFO] [stdout] 307 | pub async fn run_cache_cleanup(cache: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/metrics/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DnsMetrics { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | queries_total: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | query_duration: HistogramVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | responses_total: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | response_size: Histogram, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | cache_hits: Counter, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | cache_misses: Counter, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | cache_size: IntGauge, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | blocked_queries: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | active_connections: IntGauge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | memory_usage: IntGauge, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | errors_total: IntCounterVec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/metrics/mod.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl DnsMetrics { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn record_query(&self, protocol: &str, record_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn record_query_duration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn record_response(&self, protocol: &str, response_code: &str, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn record_cache_hit(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn record_cache_miss(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn update_cache_size(&self, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn record_blocked_query(&self, reason: &str, response_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn update_active_connections(&self, count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn update_memory_usage(&self, bytes: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn record_error(&self, error_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryTimer` is never constructed [INFO] [stdout] --> src/metrics/mod.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct QueryTimer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `elapsed` are never used [INFO] [stdout] --> src/metrics/mod.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 330 | impl QueryTimer { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 331 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn elapsed(&self) -> std::time::Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_memory_usage` is never used [INFO] [stdout] --> src/metrics/mod.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn get_memory_usage() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cpu_usage` is never used [INFO] [stdout] --> src/metrics/mod.rs:349:8 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_cpu_usage() -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_health_check` is never used [INFO] [stdout] --> src/protocols/doh.rs:224:14 [INFO] [stdout] | [INFO] [stdout] 224 | pub async fn handle_health_check() -> Result, Infallible> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsRecord` is never constructed [INFO] [stdout] --> src/resolver/recursive.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DnsRecord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsView` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DnsView { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZoneConfig` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ZoneConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SplitHorizonResolver` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct SplitHorizonResolver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/resolver/splithorizon.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 32 | impl SplitHorizonResolver { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 33 | pub async fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn resolve_query( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn classify_client(&self, client_ip: IpAddr) -> Option<&DnsView> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn get_default_view(&self) -> Option<&DnsView> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | async fn get_view_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn add_zone(&mut self, view_name: &str, zone: ZoneConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn add_view(&mut self, view: DnsView) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn get_view_stats(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewStats` is never constructed [INFO] [stdout] --> src/resolver/splithorizon.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct ViewStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metrics` is never read [INFO] [stdout] --> src/web_ui/simple.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct SimpleWebUIState { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 129 | pub config: Arc>, [INFO] [stdout] 130 | pub metrics: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleWebUIState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 51.51s [INFO] running `Command { std: "docker" "inspect" "a258cd26e307934a106f235f1c2086e67e52c17c2ea541a2efc4ce1223f0fab9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a258cd26e307934a106f235f1c2086e67e52c17c2ea541a2efc4ce1223f0fab9", kill_on_drop: false }` [INFO] [stdout] a258cd26e307934a106f235f1c2086e67e52c17c2ea541a2efc4ce1223f0fab9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 01fffca94061dbc56ee9b282f71ead8366999ca3061865e6802f2210d1e4a515 [INFO] running `Command { std: "docker" "start" "-a" "01fffca94061dbc56ee9b282f71ead8366999ca3061865e6802f2210d1e4a515", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Name` [INFO] [stderr] --> src/blocklist/mod.rs:4:25 [INFO] [stderr] | [INFO] [stderr] 4 | use hickory_proto::rr::{Name, RData, Record, RecordType}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/metrics/mod.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::net::TcpListener` [INFO] [stderr] --> src/metrics/mod.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use tokio::net::TcpListener; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client_addr` [INFO] [stderr] --> src/server/mod.rs:250:9 [INFO] [stderr] | [INFO] [stderr] 250 | client_addr: SocketAddr, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `ferrous-dns` (lib) generated 4 warnings (run `cargo fix --lib -p ferrous-dns` to apply 3 suggestions) [INFO] [stderr] warning: unused import: `SimpleWebUIState as WebUIState` [INFO] [stderr] --> src/web_ui/mod.rs:3:52 [INFO] [stderr] | [INFO] [stderr] 3 | pub use simple::{SimpleWebUIServer as WebUIServer, SimpleWebUIState as WebUIState}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `BlockResponse` is never used [INFO] [stderr] --> src/blocklist/mod.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum BlockResponse { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `from_string` is never used [INFO] [stderr] --> src/blocklist/mod.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 29 | impl BlockResponse { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 30 | fn from_string(s: &str) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BlockListManager` is never constructed [INFO] [stderr] --> src/blocklist/mod.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub struct BlockListManager { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/blocklist/mod.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 48 | impl BlockListManager { [INFO] [stderr] | --------------------- associated items in this implementation [INFO] [stderr] 49 | pub fn new(config: BlocklistConfig) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | pub async fn is_blocked(&self, domain: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 92 | pub async fn start_updater(self: Arc) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 120 | async fn load_from_sources(&self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 141 | async fn load_from_source(&self, client: &reqwest::Client, source: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 153 | async fn parse_blocklist(&self, content: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 187 | fn parse_hosts_format(&self, line: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | fn parse_adblock_format(&self, line: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 216 | fn parse_plain_domain(&self, line: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 224 | fn is_valid_domain(&self, domain: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 241 | pub async fn create_blocked_response( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 300 | pub async fn get_stats(&self) -> BlocklistStats { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BlocklistStats` is never constructed [INFO] [stderr] --> src/blocklist/mod.rs:314:12 [INFO] [stderr] | [INFO] [stderr] 314 | pub struct BlocklistStats { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `cached_at` is never read [INFO] [stderr] --> src/cache/mod.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct CachedRecord { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 17 | pub record: Record, [INFO] [stderr] 18 | pub cached_at: Instant, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CachedRecord` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `cleanup_expired` and `get_stats` are never used [INFO] [stderr] --> src/cache/mod.rs:241:18 [INFO] [stderr] | [INFO] [stderr] 42 | impl DnsCache { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 241 | pub async fn cleanup_expired(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 265 | pub async fn get_stats(&self) -> CacheStats { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CacheStats` is never constructed [INFO] [stderr] --> src/cache/mod.rs:300:12 [INFO] [stderr] | [INFO] [stderr] 300 | pub struct CacheStats { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_cache_cleanup` is never used [INFO] [stderr] --> src/cache/mod.rs:307:14 [INFO] [stderr] | [INFO] [stderr] 307 | pub async fn run_cache_cleanup(cache: Arc) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/metrics/mod.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct DnsMetrics { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 21 | queries_total: IntCounterVec, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 22 | query_duration: HistogramVec, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | responses_total: IntCounterVec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 26 | response_size: Histogram, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | cache_hits: Counter, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 30 | cache_misses: Counter, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 31 | cache_size: IntGauge, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | blocked_queries: IntCounterVec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | active_connections: IntGauge, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 38 | memory_usage: IntGauge, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | errors_total: IntCounterVec, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/metrics/mod.rs:142:12 [INFO] [stderr] | [INFO] [stderr] 44 | impl DnsMetrics { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 142 | pub fn record_query(&self, protocol: &str, record_type: &str) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 148 | pub fn record_query_duration( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | pub fn record_response(&self, protocol: &str, response_code: &str, size: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 167 | pub fn record_cache_hit(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub fn record_cache_miss(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | pub fn update_cache_size(&self, size: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 179 | pub fn record_blocked_query(&self, reason: &str, response_type: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 185 | pub fn update_active_connections(&self, count: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 189 | pub fn update_memory_usage(&self, bytes: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 193 | pub fn record_error(&self, error_type: &str) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `QueryTimer` is never constructed [INFO] [stderr] --> src/metrics/mod.rs:326:12 [INFO] [stderr] | [INFO] [stderr] 326 | pub struct QueryTimer { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `elapsed` are never used [INFO] [stderr] --> src/metrics/mod.rs:331:12 [INFO] [stderr] | [INFO] [stderr] 330 | impl QueryTimer { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] 331 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 337 | pub fn elapsed(&self) -> std::time::Duration { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_memory_usage` is never used [INFO] [stderr] --> src/metrics/mod.rs:343:8 [INFO] [stderr] | [INFO] [stderr] 343 | pub fn get_memory_usage() -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_cpu_usage` is never used [INFO] [stderr] --> src/metrics/mod.rs:349:8 [INFO] [stderr] | [INFO] [stderr] 349 | pub fn get_cpu_usage() -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_health_check` is never used [INFO] [stderr] --> src/protocols/doh.rs:224:14 [INFO] [stderr] | [INFO] [stderr] 224 | pub async fn handle_health_check() -> Result, Infallible> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DnsRecord` is never constructed [INFO] [stderr] --> src/resolver/recursive.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct DnsRecord { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DnsView` is never constructed [INFO] [stderr] --> src/resolver/splithorizon.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct DnsView { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ZoneConfig` is never constructed [INFO] [stderr] --> src/resolver/splithorizon.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct ZoneConfig { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SplitHorizonResolver` is never constructed [INFO] [stderr] --> src/resolver/splithorizon.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct SplitHorizonResolver { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/resolver/splithorizon.rs:33:18 [INFO] [stderr] | [INFO] [stderr] 32 | impl SplitHorizonResolver { [INFO] [stderr] | ------------------------- associated items in this implementation [INFO] [stderr] 33 | pub async fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | pub async fn resolve_query( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | fn classify_client(&self, client_ip: IpAddr) -> Option<&DnsView> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 121 | fn get_default_view(&self) -> Option<&DnsView> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | async fn get_view_response( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub fn add_zone(&mut self, view_name: &str, zone: ZoneConfig) -> Result<()> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 180 | pub fn add_view(&mut self, view: DnsView) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 184 | pub fn get_view_stats(&self) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ViewStats` is never constructed [INFO] [stderr] --> src/resolver/splithorizon.rs:202:12 [INFO] [stderr] | [INFO] [stderr] 202 | pub struct ViewStats { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `metrics` is never read [INFO] [stderr] --> src/web_ui/simple.rs:130:9 [INFO] [stderr] | [INFO] [stderr] 128 | pub struct SimpleWebUIState { [INFO] [stderr] | ---------------- field in this struct [INFO] [stderr] 129 | pub config: Arc>, [INFO] [stderr] 130 | pub metrics: Arc, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SimpleWebUIState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `ferrous-dns` (bin "ferrous-dns" test) generated 28 warnings (4 duplicates) (run `cargo fix --bin "ferrous-dns" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `ferrous-dns` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ferrous_dns-df65967f82c6eeec) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test web_ui::simple::tests::test_index_handler ... ok [INFO] [stdout] test web_ui::simple::tests::test_config_handler ... ok [INFO] [stdout] test web_ui::simple::tests::test_status_handler ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ferrous_dns-c663c6aa78479822) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test web_ui::simple::tests::test_status_handler ... ok [INFO] [stdout] test web_ui::simple::tests::test_config_handler ... ok [INFO] [stdout] test web_ui::simple::tests::test_index_handler ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests ferrous_dns [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 16) - compile ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "01fffca94061dbc56ee9b282f71ead8366999ca3061865e6802f2210d1e4a515", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01fffca94061dbc56ee9b282f71ead8366999ca3061865e6802f2210d1e4a515", kill_on_drop: false }` [INFO] [stdout] 01fffca94061dbc56ee9b282f71ead8366999ca3061865e6802f2210d1e4a515