[INFO] cloning repository https://github.com/peterpeerdeman/learning-rust-dnsserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peterpeerdeman/learning-rust-dnsserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeterpeerdeman%2Flearning-rust-dnsserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeterpeerdeman%2Flearning-rust-dnsserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63a2b3a33f704c26c587f69375d5ac1d5fdd7129 [INFO] checking peterpeerdeman/learning-rust-dnsserver against master#9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a for pr-138458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeterpeerdeman%2Flearning-rust-dnsserver" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/peterpeerdeman/learning-rust-dnsserver on toolchain 9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/peterpeerdeman/learning-rust-dnsserver [INFO] finished tweaking git repo https://github.com/peterpeerdeman/learning-rust-dnsserver [INFO] tweaked toml for git repo https://github.com/peterpeerdeman/learning-rust-dnsserver written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/peterpeerdeman/learning-rust-dnsserver 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" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af6b38af996915ab3ffffd646bb2ad594fad5bf81382d4cae7bcef2a717b4ff4 [INFO] running `Command { std: "docker" "start" "-a" "af6b38af996915ab3ffffd646bb2ad594fad5bf81382d4cae7bcef2a717b4ff4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af6b38af996915ab3ffffd646bb2ad594fad5bf81382d4cae7bcef2a717b4ff4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af6b38af996915ab3ffffd646bb2ad594fad5bf81382d4cae7bcef2a717b4ff4", kill_on_drop: false }` [INFO] [stdout] af6b38af996915ab3ffffd646bb2ad594fad5bf81382d4cae7bcef2a717b4ff4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b09f6a8815b25e669ea5bef984d535f95c49b1571293c6c631214caf38d7fa9 [INFO] running `Command { std: "docker" "start" "-a" "5b09f6a8815b25e669ea5bef984d535f95c49b1571293c6c631214caf38d7fa9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking clap_builder v4.5.32 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking clap v4.5.32 [INFO] [stderr] Checking dns-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SerializationErr` is never constructed [INFO] [stdout] --> src/dns.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ErrorCondition { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 5 | #[error("Serialization Error: {0}")] [INFO] [stdout] 6 | SerializationErr(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCondition` 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: field `qclass` is never read [INFO] [stdout] --> src/dns.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Question { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | pub qclass: Class, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Question` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/dns.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl Label { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AAAA` is never constructed [INFO] [stdout] --> src/dns.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 151 | AAAA = 28, // a ipv6 host address [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/dns.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 160 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn to_bytes(&self) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/dns.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl Class { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn to_bytes(&self) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SerializationErr` and `InvalidLabel` are never constructed [INFO] [stdout] --> src/dns.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ErrorCondition { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 5 | #[error("Serialization Error: {0}")] [INFO] [stdout] 6 | SerializationErr(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | InvalidLabel(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCondition` 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 fields are never read [INFO] [stdout] --> src/dns.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 37 | pub id: u16, [INFO] [stdout] | ^^ [INFO] [stdout] 38 | pub response: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 39 | pub opcode: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 40 | pub authorative: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | pub truncated: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 42 | pub recursion_desired: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 43 | pub recursion_available: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub z: bool, [INFO] [stdout] | ^ [INFO] [stdout] 45 | pub answer_authenticated: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | pub non_authenticated: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub rcode: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | pub question_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 49 | pub answer_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 50 | pub nameserver_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | pub additional_count: u16 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/dns.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Header { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Question` is never constructed [INFO] [stdout] --> src/dns.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Question { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Question` 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 `len` are never used [INFO] [stdout] --> src/dns.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl Label { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 120 | pub fn new(label: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/dns.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 134 | // Below are Resource Record Types and QTYPES [INFO] [stdout] 135 | A = 1, // a host address [INFO] [stdout] | ^ [INFO] [stdout] 136 | NS = 2, // an authoritative name server [INFO] [stdout] | ^^ [INFO] [stdout] 137 | MD = 3, // a mail destination (Obsolete - use MX) [INFO] [stdout] | ^^ [INFO] [stdout] 138 | MF = 4, // a mail forwarder (Obsolete - use MX) [INFO] [stdout] | ^^ [INFO] [stdout] 139 | CNAME = 5, // the canonical name for an alias [INFO] [stdout] | ^^^^^ [INFO] [stdout] 140 | SOA = 6, // marks the start of a zone of authority [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | MB = 7, // a mailbox domain name (EXPERIMENTAL) [INFO] [stdout] | ^^ [INFO] [stdout] 142 | MG = 8, // a mail group member (EXPERIMENTAL) [INFO] [stdout] | ^^ [INFO] [stdout] 143 | MR = 9, // a mail rename domain name (EXPERIMENTAL) [INFO] [stdout] | ^^ [INFO] [stdout] 144 | NULL = 10, // a null RR (EXPERIMENTAL) [INFO] [stdout] | ^^^^ [INFO] [stdout] 145 | WKS = 11, // a well known service description [INFO] [stdout] | ^^^ [INFO] [stdout] 146 | PTR = 12, // a domain name pointer [INFO] [stdout] | ^^^ [INFO] [stdout] 147 | HINFO = 13, // host information [INFO] [stdout] | ^^^^^ [INFO] [stdout] 148 | MINFO = 14, // mailbox or mail list information [INFO] [stdout] | ^^^^^ [INFO] [stdout] 149 | MX = 15, // mail exchange [INFO] [stdout] | ^^ [INFO] [stdout] 150 | TXT = 16, // text strings [INFO] [stdout] | ^^^ [INFO] [stdout] 151 | AAAA = 28, // a ipv6 host address [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | AXFR = 252, // A request for a transfer of an entire zone [INFO] [stdout] | ^^^^ [INFO] [stdout] 155 | MAILB = 253, // A request for mailbox-related records (MB, MG or MR) [INFO] [stdout] | ^^^^^ [INFO] [stdout] 156 | MAILA = 254, // A request for mail agent RRs (Obsolete - see MX) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_bytes` and `to_bytes` are never used [INFO] [stdout] --> src/dns.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 160 | impl Type { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 161 | pub fn from_bytes(bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn to_bytes(&self) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Class` is never used [INFO] [stdout] --> src/dns.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 219 | pub enum Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_bytes` and `to_bytes` are never used [INFO] [stdout] --> src/dns.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl Class { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 228 | pub fn from_bytes(buf: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn to_bytes(&self) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_bytes` is never used [INFO] [stdout] --> src/dns.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 254 | impl Question { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 255 | pub fn from_bytes(buf: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.10s [INFO] running `Command { std: "docker" "inspect" "5b09f6a8815b25e669ea5bef984d535f95c49b1571293c6c631214caf38d7fa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b09f6a8815b25e669ea5bef984d535f95c49b1571293c6c631214caf38d7fa9", kill_on_drop: false }` [INFO] [stdout] 5b09f6a8815b25e669ea5bef984d535f95c49b1571293c6c631214caf38d7fa9