[INFO] cloning repository https://github.com/pmalmgren/dnsclient-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pmalmgren/dnsclient-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpmalmgren%2Fdnsclient-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpmalmgren%2Fdnsclient-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f9fb783919bfbdefd61539e09e90a04de66fc5a2 [INFO] checking pmalmgren/dnsclient-rust against master#568f6a8641e391ffcdcdb03e79d0901731d8d399 for pr-117164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpmalmgren%2Fdnsclient-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pmalmgren/dnsclient-rust on toolchain 568f6a8641e391ffcdcdb03e79d0901731d8d399 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+568f6a8641e391ffcdcdb03e79d0901731d8d399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pmalmgren/dnsclient-rust [INFO] finished tweaking git repo https://github.com/pmalmgren/dnsclient-rust [INFO] tweaked toml for git repo https://github.com/pmalmgren/dnsclient-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pmalmgren/dnsclient-rust 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" "+568f6a8641e391ffcdcdb03e79d0901731d8d399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking pmalmgren/dnsclient-rust against try#eb3956d47f58f1c7c0a5694b1d3401945bc41dce for pr-117164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpmalmgren%2Fdnsclient-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pmalmgren/dnsclient-rust on toolchain eb3956d47f58f1c7c0a5694b1d3401945bc41dce [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pmalmgren/dnsclient-rust [INFO] finished tweaking git repo https://github.com/pmalmgren/dnsclient-rust [INFO] tweaked toml for git repo https://github.com/pmalmgren/dnsclient-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pmalmgren/dnsclient-rust 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" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22e73da9d1010e61cba72759823ec6fe6f751528ab64742ba454bfed1888579d [INFO] running `Command { std: "docker" "start" "-a" "22e73da9d1010e61cba72759823ec6fe6f751528ab64742ba454bfed1888579d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22e73da9d1010e61cba72759823ec6fe6f751528ab64742ba454bfed1888579d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22e73da9d1010e61cba72759823ec6fe6f751528ab64742ba454bfed1888579d", kill_on_drop: false }` [INFO] [stdout] 22e73da9d1010e61cba72759823ec6fe6f751528ab64742ba454bfed1888579d [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dc97fe024cebfb3cc7f42dcea7bf04d000724edf40404f08db9b1c488f7c988 [INFO] running `Command { std: "docker" "start" "-a" "4dc97fe024cebfb3cc7f42dcea7bf04d000724edf40404f08db9b1c488f7c988", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking dig-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/dns.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/dns.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/dns.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | fn set_query(&mut self, hostname: String, query: DnsQueryType, record: DnsRecordType) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/dns.rs:134:68 [INFO] [stdout] | [INFO] [stdout] 134 | fn set_query(&mut self, hostname: String, query: DnsQueryType, record: DnsRecordType) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | fn query(config: AppConfig) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hostname` and `dns_server` are never read [INFO] [stdout] --> src/config.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 7 | hostname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | dns_server: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/dns.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum DnsRecordType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 9 | A = 1, [INFO] [stdout] | ^ [INFO] [stdout] 10 | NS = 2, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | CNAME = 5, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | SOA = 6, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | PTR = 12, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | MX = 15, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | TXT = 16, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | AAAA = 28, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | SRV = 33, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | NAPTR = 35, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | OPT = 41, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | IXFR = 251, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | AXFR = 252, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | ANY = 255, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsRecordType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/dns.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl DnsRecordType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 26 | fn value(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Iterative` and `Recursive` are never constructed [INFO] [stdout] --> src/dns.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum DnsQueryType { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Iterative = 0, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | Recursive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsQueryType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/dns.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl DnsQueryType { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 44 | fn value(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InternetClass`, `NoClass`, and `AllClass` are never constructed [INFO] [stdout] --> src/dns.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum DnsQueryClass { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 52 | InternetClass = 1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | NoClass = 254, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 54 | AllClass = 255, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsQueryClass` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `qz_name`, `qz_type`, and `qz_class` are never read [INFO] [stdout] --> src/dns.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct QueryZone { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 60 | qz_name: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 61 | qz_type: DnsRecordType, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 62 | qz_class: DnsQueryClass, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryZone` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rr_name` is never read [INFO] [stdout] --> src/dns.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct ResourceRecord { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 69 | rr_name: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceRecord` 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 `queries`, `answers`, `authority`, and `additional` are never read [INFO] [stdout] --> src/dns.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct DnsMessageSection { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 77 | /// Queries and zone sections have their own format [INFO] [stdout] 78 | queries: Box>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | answers: Box>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 82 | authority: Box>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 83 | additional: Box>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsMessageSection` 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 `new` is never used [INFO] [stdout] --> src/dns.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl DnsMessageSection { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 87 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/dns.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct DnsMessage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 105 | /// Transaction ID is used by the client to match requests to responses [INFO] [stdout] 106 | transaction_id: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 107 | /// Flags are split into 10 fields [INFO] [stdout] 108 | flags: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | /// The number of queries, generally 1 for a DNS request, 0 for response [INFO] [stdout] 110 | query_count: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | /// The number of answers, generally 1 for a DNS response, 0 for request [INFO] [stdout] 112 | answer_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 113 | /// The number of authority messages [INFO] [stdout] 114 | authority_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | /// The number of additional messages, used to reduce number of queries [INFO] [stdout] 116 | additional_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 117 | /// The data [INFO] [stdout] 118 | records: DnsMessageSection, [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 items `new` and `set_query` are never used [INFO] [stdout] --> src/dns.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl DnsMessage { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 122 | pub fn new(trans_id: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn set_query(&mut self, hostname: String, query: DnsQueryType, record: DnsRecordType) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `udp_sock` and `trans_id` are never read [INFO] [stdout] --> src/dns.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct DnsSocket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 145 | udp_sock: UdpSocket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 146 | trans_id: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsSocket` 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 items `new` and `query` are never used [INFO] [stdout] --> src/dns.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 149 | impl DnsSocket { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 150 | pub fn new(server: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn query( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/dns.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | fn set_query(&mut self, hostname: String, query: DnsQueryType, record: DnsRecordType) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/dns.rs:134:68 [INFO] [stdout] | [INFO] [stdout] 134 | fn set_query(&mut self, hostname: String, query: DnsQueryType, record: DnsRecordType) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | fn query(config: AppConfig) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/dns.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum DnsRecordType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 9 | A = 1, [INFO] [stdout] | ^ [INFO] [stdout] 10 | NS = 2, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | CNAME = 5, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | SOA = 6, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | PTR = 12, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | MX = 15, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | TXT = 16, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | AAAA = 28, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | SRV = 33, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | NAPTR = 35, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | OPT = 41, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | IXFR = 251, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | AXFR = 252, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | ANY = 255, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsRecordType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/dns.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl DnsRecordType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 26 | fn value(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Iterative` and `Recursive` are never constructed [INFO] [stdout] --> src/dns.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum DnsQueryType { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Iterative = 0, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | Recursive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsQueryType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/dns.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl DnsQueryType { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 44 | fn value(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InternetClass`, `NoClass`, and `AllClass` are never constructed [INFO] [stdout] --> src/dns.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum DnsQueryClass { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 52 | InternetClass = 1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | NoClass = 254, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 54 | AllClass = 255, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsQueryClass` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `qz_name`, `qz_type`, and `qz_class` are never read [INFO] [stdout] --> src/dns.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct QueryZone { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 60 | qz_name: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 61 | qz_type: DnsRecordType, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 62 | qz_class: DnsQueryClass, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryZone` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rr_name` is never read [INFO] [stdout] --> src/dns.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct ResourceRecord { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 69 | rr_name: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceRecord` 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 `queries`, `answers`, `authority`, and `additional` are never read [INFO] [stdout] --> src/dns.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct DnsMessageSection { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 77 | /// Queries and zone sections have their own format [INFO] [stdout] 78 | queries: Box>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | answers: Box>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 82 | authority: Box>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 83 | additional: Box>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsMessageSection` 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 `new` is never used [INFO] [stdout] --> src/dns.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl DnsMessageSection { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 87 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/dns.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct DnsMessage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 105 | /// Transaction ID is used by the client to match requests to responses [INFO] [stdout] 106 | transaction_id: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 107 | /// Flags are split into 10 fields [INFO] [stdout] 108 | flags: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | /// The number of queries, generally 1 for a DNS request, 0 for response [INFO] [stdout] 110 | query_count: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | /// The number of answers, generally 1 for a DNS response, 0 for request [INFO] [stdout] 112 | answer_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 113 | /// The number of authority messages [INFO] [stdout] 114 | authority_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | /// The number of additional messages, used to reduce number of queries [INFO] [stdout] 116 | additional_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 117 | /// The data [INFO] [stdout] 118 | records: DnsMessageSection, [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 items `new` and `set_query` are never used [INFO] [stdout] --> src/dns.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl DnsMessage { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 122 | pub fn new(trans_id: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn set_query(&mut self, hostname: String, query: DnsQueryType, record: DnsRecordType) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `udp_sock` and `trans_id` are never read [INFO] [stdout] --> src/dns.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct DnsSocket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 145 | udp_sock: UdpSocket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 146 | trans_id: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsSocket` 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 items `new` and `query` are never used [INFO] [stdout] --> src/dns.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 149 | impl DnsSocket { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 150 | pub fn new(server: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn query( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.36s [INFO] running `Command { std: "docker" "inspect" "4dc97fe024cebfb3cc7f42dcea7bf04d000724edf40404f08db9b1c488f7c988", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dc97fe024cebfb3cc7f42dcea7bf04d000724edf40404f08db9b1c488f7c988", kill_on_drop: false }` [INFO] [stdout] 4dc97fe024cebfb3cc7f42dcea7bf04d000724edf40404f08db9b1c488f7c988