[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 against try#943e2200e35c3825486c4671b6cab0107a07f8c1 for pr-148952
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomenicomastrangelo%2Fdns-over-tls-proxy-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[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-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/domenicomastrangelo/dns-over-tls-proxy-rs on toolchain 943e2200e35c3825486c4671b6cab0107a07f8c1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 06c41001125876e064088dc1a468756396b02b44643b21c9b688121b2d493d58
[INFO] running `Command { std: "docker" "start" "-a" "06c41001125876e064088dc1a468756396b02b44643b21c9b688121b2d493d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "06c41001125876e064088dc1a468756396b02b44643b21c9b688121b2d493d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "06c41001125876e064088dc1a468756396b02b44643b21c9b688121b2d493d58", kill_on_drop: false }`
[INFO] [stdout] 06c41001125876e064088dc1a468756396b02b44643b21c9b688121b2d493d58
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eecd78134e73b62cba3e019f42d7c8a54f8f2d57ebf7a532aa67b382273f3d1e
[INFO] running `Command { std: "docker" "start" "-a" "eecd78134e73b62cba3e019f42d7c8a54f8f2d57ebf7a532aa67b382273f3d1e", kill_on_drop: false }`
[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<DNSQuestion> {
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<String>;
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cache` is never read
[INFO] [stdout]  --> src/cache/cache.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct MemoryCache {
[INFO] [stdout]   |            ----------- field in this struct
[INFO] [stdout] 8 |     pub cache: std::collections::HashMap<String, String>,
[INFO] [stdout]   |         ^^^^^
[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<dyn cache::cache::Cache>,
[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<u8>,
[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<u8>,
[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<u8>,
[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<DNSQuestion>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 46 |     answers: Vec<DNSRecord>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 47 |     name_servers: Vec<DNSRecord>,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 48 |     additional_records: Vec<DNSRecord>,
[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<u8> {
[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: 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<DNSQuestion> {
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question_count`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<DNSRecord> {
[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<String>;
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cache` is never read
[INFO] [stdout]  --> src/cache/cache.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct MemoryCache {
[INFO] [stdout]   |            ----------- field in this struct
[INFO] [stdout] 8 |     pub cache: std::collections::HashMap<String, String>,
[INFO] [stdout]   |         ^^^^^
[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<dyn cache::cache::Cache>,
[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<u8>,
[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<u8>,
[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<u8>,
[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<DNSQuestion>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 46 |     answers: Vec<DNSRecord>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 47 |     name_servers: Vec<DNSRecord>,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 48 |     additional_records: Vec<DNSRecord>,
[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<u8> {
[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] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.18s
[INFO] running `Command { std: "docker" "inspect" "eecd78134e73b62cba3e019f42d7c8a54f8f2d57ebf7a532aa67b382273f3d1e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eecd78134e73b62cba3e019f42d7c8a54f8f2d57ebf7a532aa67b382273f3d1e", kill_on_drop: false }`
[INFO] [stdout] eecd78134e73b62cba3e019f42d7c8a54f8f2d57ebf7a532aa67b382273f3d1e
