[INFO] cloning repository https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomenicomastrangelo%2Fdns-over-tls-proxy-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomenicomastrangelo%2Fdns-over-tls-proxy-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d946a181a13f23c794f2e77c3a1460f75bbc976 [INFO] checking domenicomastrangelo/dns-over-tls-proxy-rs/0d946a181a13f23c794f2e77c3a1460f75bbc976 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomenicomastrangelo%2Fdns-over-tls-proxy-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs [INFO] finished tweaking git repo https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs [INFO] tweaked toml for git repo https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c91c73b23e2a8dbc0c0ee2135c778bb59e842668f6f27ffec3e3393a287710da [INFO] running `Command { std: "docker" "start" "-a" "c91c73b23e2a8dbc0c0ee2135c778bb59e842668f6f27ffec3e3393a287710da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c91c73b23e2a8dbc0c0ee2135c778bb59e842668f6f27ffec3e3393a287710da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c91c73b23e2a8dbc0c0ee2135c778bb59e842668f6f27ffec3e3393a287710da", kill_on_drop: false }` [INFO] [stdout] c91c73b23e2a8dbc0c0ee2135c778bb59e842668f6f27ffec3e3393a287710da [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3efcf6f4db254ddac43fb06f7104cd78909139bb997507e910b3631ecd8c00d8 [INFO] running `Command { std: "docker" "start" "-a" "3efcf6f4db254ddac43fb06f7104cd78909139bb997507e910b3631ecd8c00d8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.64 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking dns-over-tls-proxy-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_questions(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/dns/dns.rs:139:16 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_answers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_position` [INFO] [stdout] --> src/dns/dns.rs:139:28 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_answers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:139:54 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_answers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/dns/dns.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_name_servers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_position` [INFO] [stdout] --> src/dns/dns.rs:143:33 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_name_servers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:143:59 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_name_servers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/dns/dns.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | msg: &[u8], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_position` [INFO] [stdout] --> src/dns/dns.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | bit_position: &mut usize, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | question_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/proxy/udp.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | let (number_of_bytes, src_addr) = socket.recv_from(&mut buf)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/proxy/udp.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let response = handle_udp_connection(cnf, request); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnf` [INFO] [stdout] --> src/proxy/udp.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_udp_connection(cnf: &Config, request: &[u8]) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/proxy/udp.rs:16:40 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_udp_connection(cnf: &Config, request: &[u8]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnf` [INFO] [stdout] --> src/proxy/udp.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn forward_dns_query(cnf: &Config, msg: &str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/proxy/udp.rs:20:36 [INFO] [stdout] | [INFO] [stdout] 20 | fn forward_dns_query(cnf: &Config, msg: &str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set`, and `del` are never used [INFO] [stdout] --> src/cache/cache.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Cache { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 2 | fn get(&mut self, key: &str) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | fn set(&mut self, key: &str, value: &str); [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | fn del(&mut self, key: &str); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config/config.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | logger: tracing_subscriber::FmtSubscriber, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | dns_over_tls_host: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | dns_over_tls_port: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | dns_over_tls_cert_path: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | cache_host: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | cache_port: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | cache: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query_id`, `flags`, `question_count`, `answer_count`, `name_server_count`, and `additional_record_count` are never read [INFO] [stdout] --> src/dns/dns.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct DNSHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 5 | query_id: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | flags: Flags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | question_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | answer_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | name_server_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | additional_record_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSHeader` 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/dns/dns.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Flags { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 15 | qr: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 16 | opcode: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | aa: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 18 | tc: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | rd: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | ra: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | z: u8, [INFO] [stdout] | ^ [INFO] [stdout] 22 | rcode: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Flags` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `qname`, `qtype`, and `qclass` are never read [INFO] [stdout] --> src/dns/dns.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct DNSQuestion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 27 | qname: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | qtype: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | qclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSQuestion` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `rtype`, `rclass`, `ttl`, `data_length`, and `rdata` are never read [INFO] [stdout] --> src/dns/dns.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct DNSRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 34 | name: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | rtype: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | rclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | ttl: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 38 | data_length: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | rdata: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header`, `questions`, `answers`, `name_servers`, and `additional_records` are never read [INFO] [stdout] --> src/dns/dns.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct DNSMessage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 44 | header: DNSHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | answers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 47 | name_servers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | additional_records: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pack` is never used [INFO] [stdout] --> src/dns/dns.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl DNSMessage { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn pack() -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_BYTES_PER_UDP_PACKET` is never used [INFO] [stdout] --> src/proxy/udp.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_BYTES_PER_UDP_PACKET: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_upd_server` is never used [INFO] [stdout] --> src/proxy/udp.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn start_upd_server(cnf: &Config) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_udp_connection` is never used [INFO] [stdout] --> src/proxy/udp.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_udp_connection(cnf: &Config, request: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forward_dns_query` is never used [INFO] [stdout] --> src/proxy/udp.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn forward_dns_query(cnf: &Config, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_questions(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/dns/dns.rs:139:16 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_answers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_position` [INFO] [stdout] --> src/dns/dns.rs:139:28 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_answers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:139:54 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_answers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/dns/dns.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_name_servers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_position` [INFO] [stdout] --> src/dns/dns.rs:143:33 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_name_servers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:143:59 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_name_servers(msg: &[u8], bit_position: &mut usize, question_count: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/dns/dns.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | msg: &[u8], [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_position` [INFO] [stdout] --> src/dns/dns.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | bit_position: &mut usize, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `question_count` [INFO] [stdout] --> src/dns/dns.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | question_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/proxy/udp.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | let (number_of_bytes, src_addr) = socket.recv_from(&mut buf)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/proxy/udp.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let response = handle_udp_connection(cnf, request); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnf` [INFO] [stdout] --> src/proxy/udp.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_udp_connection(cnf: &Config, request: &[u8]) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/proxy/udp.rs:16:40 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_udp_connection(cnf: &Config, request: &[u8]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnf` [INFO] [stdout] --> src/proxy/udp.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn forward_dns_query(cnf: &Config, msg: &str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/proxy/udp.rs:20:36 [INFO] [stdout] | [INFO] [stdout] 20 | fn forward_dns_query(cnf: &Config, msg: &str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set`, and `del` are never used [INFO] [stdout] --> src/cache/cache.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Cache { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 2 | fn get(&mut self, key: &str) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | fn set(&mut self, key: &str, value: &str); [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | fn del(&mut self, key: &str); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config/config.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | logger: tracing_subscriber::FmtSubscriber, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | dns_over_tls_host: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | dns_over_tls_port: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | dns_over_tls_cert_path: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | cache_host: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | cache_port: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | cache: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query_id`, `flags`, `question_count`, `answer_count`, `name_server_count`, and `additional_record_count` are never read [INFO] [stdout] --> src/dns/dns.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct DNSHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 5 | query_id: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | flags: Flags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | question_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | answer_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | name_server_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | additional_record_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSHeader` 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/dns/dns.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Flags { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 15 | qr: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 16 | opcode: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | aa: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 18 | tc: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | rd: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | ra: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | z: u8, [INFO] [stdout] | ^ [INFO] [stdout] 22 | rcode: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Flags` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `qname`, `qtype`, and `qclass` are never read [INFO] [stdout] --> src/dns/dns.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct DNSQuestion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 27 | qname: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | qtype: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | qclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSQuestion` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `rtype`, `rclass`, `ttl`, `data_length`, and `rdata` are never read [INFO] [stdout] --> src/dns/dns.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct DNSRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 34 | name: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | rtype: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | rclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | ttl: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 38 | data_length: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | rdata: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header`, `questions`, `answers`, `name_servers`, and `additional_records` are never read [INFO] [stdout] --> src/dns/dns.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct DNSMessage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 44 | header: DNSHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | answers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 47 | name_servers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | additional_records: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pack` is never used [INFO] [stdout] --> src/dns/dns.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl DNSMessage { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn pack() -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_BYTES_PER_UDP_PACKET` is never used [INFO] [stdout] --> src/proxy/udp.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_BYTES_PER_UDP_PACKET: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_upd_server` is never used [INFO] [stdout] --> src/proxy/udp.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn start_upd_server(cnf: &Config) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_udp_connection` is never used [INFO] [stdout] --> src/proxy/udp.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn handle_udp_connection(cnf: &Config, request: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forward_dns_query` is never used [INFO] [stdout] --> src/proxy/udp.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn forward_dns_query(cnf: &Config, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.24s [INFO] running `Command { std: "docker" "inspect" "3efcf6f4db254ddac43fb06f7104cd78909139bb997507e910b3631ecd8c00d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3efcf6f4db254ddac43fb06f7104cd78909139bb997507e910b3631ecd8c00d8", kill_on_drop: false }` [INFO] [stdout] 3efcf6f4db254ddac43fb06f7104cd78909139bb997507e910b3631ecd8c00d8