[INFO] cloning repository https://github.com/jprio/dns-resolver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jprio/dns-resolver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjprio%2Fdns-resolver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjprio%2Fdns-resolver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d6b0a6a1e3e427fcda02a3b57da188cee176c71 [INFO] checking jprio/dns-resolver against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjprio%2Fdns-resolver" "/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/jprio/dns-resolver on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jprio/dns-resolver [INFO] finished tweaking git repo https://github.com/jprio/dns-resolver [INFO] tweaked toml for git repo https://github.com/jprio/dns-resolver written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jprio/dns-resolver 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded byte_struct v0.9.0 [INFO] [stderr] Downloaded byte_struct_derive v0.9.0 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f40da2345237f7a63a2071246b08556ac5f564b90e27f8e084628e9381ddc65 [INFO] running `Command { std: "docker" "start" "-a" "3f40da2345237f7a63a2071246b08556ac5f564b90e27f8e084628e9381ddc65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f40da2345237f7a63a2071246b08556ac5f564b90e27f8e084628e9381ddc65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f40da2345237f7a63a2071246b08556ac5f564b90e27f8e084628e9381ddc65", kill_on_drop: false }` [INFO] [stdout] 3f40da2345237f7a63a2071246b08556ac5f564b90e27f8e084628e9381ddc65 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d1218e8d4a8909f1a0609cbe998340b3c3e2d9d06563b1ce01c65e4147c4e38 [INFO] running `Command { std: "docker" "start" "-a" "0d1218e8d4a8909f1a0609cbe998340b3c3e2d9d06563b1ce01c65e4147c4e38", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling serde v1.0.174 [INFO] [stderr] Compiling serde_derive v1.0.174 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling quote v1.0.31 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling byte_struct_derive v0.9.0 [INFO] [stderr] Checking byte_struct v0.9.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking dns-resolver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `byte_struct::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use byte_struct::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | return ( [INFO] [stdout] | ____________^ [INFO] [stdout] 92 | | domain_name [INFO] [stdout] | |________^ [INFO] [stdout] ... [INFO] [stdout] 96 | .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap() [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 ~ return domain_name [INFO] [stdout] 92 | .split('.') [INFO] [stdout] 93 | .map(|t| String::from_utf8((t.len() as u8).to_be_bytes().to_vec()).unwrap() + t) [INFO] [stdout] 94 | .collect::>() [INFO] [stdout] 95 ~ .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `byte_struct::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use byte_struct::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | return ( [INFO] [stdout] | ____________^ [INFO] [stdout] 92 | | domain_name [INFO] [stdout] | |________^ [INFO] [stdout] ... [INFO] [stdout] 96 | .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap() [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 ~ return domain_name [INFO] [stdout] 92 | .split('.') [INFO] [stdout] 93 | .map(|t| String::from_utf8((t.len() as u8).to_be_bytes().to_vec()).unwrap() + t) [INFO] [stdout] 94 | .collect::>() [INFO] [stdout] 95 ~ .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | let q = DnsQuestion { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsAnswer` is never constructed [INFO] [stdout] --> src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct DnsAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_bytes` is never used [INFO] [stdout] --> src/main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn to_bytes(vec_u8: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:173:10 [INFO] [stdout] | [INFO] [stdout] 173 | Data(Vec), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 173 | Data(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `questions` are never read [INFO] [stdout] --> src/main.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 179 | struct DnsPacket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 180 | header: DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 181 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsPacket` 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 `class` and `ttl` are never read [INFO] [stdout] --> src/main.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 233 | struct DnsRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 236 | class: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 237 | ttl: u32, [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: variable `RECURSION_DESIRED` should have a snake case name [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let RECURSION_DESIRED = 1 << 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recursion_desired` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | let q = DnsQuestion { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsAnswer` is never constructed [INFO] [stdout] --> src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct DnsAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_bytes` is never used [INFO] [stdout] --> src/main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn to_bytes(vec_u8: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:173:10 [INFO] [stdout] | [INFO] [stdout] 173 | Data(Vec), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 173 | Data(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `questions` are never read [INFO] [stdout] --> src/main.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 179 | struct DnsPacket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 180 | header: DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 181 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsPacket` 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 `class` and `ttl` are never read [INFO] [stdout] --> src/main.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 233 | struct DnsRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 236 | class: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 237 | ttl: u32, [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: variable `RECURSION_DESIRED` should have a snake case name [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let RECURSION_DESIRED = 1 << 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recursion_desired` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | send_query(Ipv4Addr::new(8, 8, 8, 8), "google.com", 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 396 | let _ = send_query(Ipv4Addr::new(8, 8, 8, 8), "google.com", 1); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.26s [INFO] running `Command { std: "docker" "inspect" "0d1218e8d4a8909f1a0609cbe998340b3c3e2d9d06563b1ce01c65e4147c4e38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d1218e8d4a8909f1a0609cbe998340b3c3e2d9d06563b1ce01c65e4147c4e38", kill_on_drop: false }` [INFO] [stdout] 0d1218e8d4a8909f1a0609cbe998340b3c3e2d9d06563b1ce01c65e4147c4e38 [INFO] checking jprio/dns-resolver against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjprio%2Fdns-resolver" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jprio/dns-resolver on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jprio/dns-resolver [INFO] finished tweaking git repo https://github.com/jprio/dns-resolver [INFO] tweaked toml for git repo https://github.com/jprio/dns-resolver written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jprio/dns-resolver 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92abfecdc9f59513d4811455c7fa61d808b8cd82a1ce3e94b955fd11ba138853 [INFO] running `Command { std: "docker" "start" "-a" "92abfecdc9f59513d4811455c7fa61d808b8cd82a1ce3e94b955fd11ba138853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92abfecdc9f59513d4811455c7fa61d808b8cd82a1ce3e94b955fd11ba138853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92abfecdc9f59513d4811455c7fa61d808b8cd82a1ce3e94b955fd11ba138853", kill_on_drop: false }` [INFO] [stdout] 92abfecdc9f59513d4811455c7fa61d808b8cd82a1ce3e94b955fd11ba138853 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e74468478344a18bf2035e2509380e428e0f8eb9d5494ee76b2fa2b2bcc74ddc [INFO] running `Command { std: "docker" "start" "-a" "e74468478344a18bf2035e2509380e428e0f8eb9d5494ee76b2fa2b2bcc74ddc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling serde v1.0.174 [INFO] [stderr] Compiling serde_derive v1.0.174 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling quote v1.0.31 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling byte_struct_derive v0.9.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking byte_struct v0.9.0 [INFO] [stderr] Checking dns-resolver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `byte_struct::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use byte_struct::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | return ( [INFO] [stdout] | ____________^ [INFO] [stdout] 92 | | domain_name [INFO] [stdout] | |________^ [INFO] [stdout] ... [INFO] [stdout] 96 | .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap() [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 ~ return domain_name [INFO] [stdout] 92 | .split('.') [INFO] [stdout] 93 | .map(|t| String::from_utf8((t.len() as u8).to_be_bytes().to_vec()).unwrap() + t) [INFO] [stdout] 94 | .collect::>() [INFO] [stdout] 95 ~ .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `byte_struct::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use byte_struct::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | return ( [INFO] [stdout] | ____________^ [INFO] [stdout] 92 | | domain_name [INFO] [stdout] | |________^ [INFO] [stdout] ... [INFO] [stdout] 96 | .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap() [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 ~ return domain_name [INFO] [stdout] 92 | .split('.') [INFO] [stdout] 93 | .map(|t| String::from_utf8((t.len() as u8).to_be_bytes().to_vec()).unwrap() + t) [INFO] [stdout] 94 | .collect::>() [INFO] [stdout] 95 ~ .join("") + &String::from_utf8((0 as u8).to_be_bytes().to_vec()).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | let q = DnsQuestion { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsAnswer` is never constructed [INFO] [stdout] --> src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct DnsAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_bytes` is never used [INFO] [stdout] --> src/main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn to_bytes(vec_u8: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:173:10 [INFO] [stdout] | [INFO] [stdout] 173 | Data(Vec), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 173 | Data(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `questions` are never read [INFO] [stdout] --> src/main.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 179 | struct DnsPacket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 180 | header: DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 181 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsPacket` 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 `class` and `ttl` are never read [INFO] [stdout] --> src/main.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 233 | struct DnsRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 236 | class: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 237 | ttl: u32, [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: variable `RECURSION_DESIRED` should have a snake case name [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let RECURSION_DESIRED = 1 << 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recursion_desired` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | send_query(Ipv4Addr::new(8, 8, 8, 8), "google.com", 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 396 | let _ = send_query(Ipv4Addr::new(8, 8, 8, 8), "google.com", 1); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut query: Vec = vec![]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | let q = DnsQuestion { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsAnswer` is never constructed [INFO] [stdout] --> src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct DnsAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_bytes` is never used [INFO] [stdout] --> src/main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn to_bytes(vec_u8: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:173:10 [INFO] [stdout] | [INFO] [stdout] 173 | Data(Vec), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 173 | Data(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `questions` are never read [INFO] [stdout] --> src/main.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 179 | struct DnsPacket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 180 | header: DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 181 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsPacket` 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 `class` and `ttl` are never read [INFO] [stdout] --> src/main.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 233 | struct DnsRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 236 | class: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 237 | ttl: u32, [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: variable `RECURSION_DESIRED` should have a snake case name [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let RECURSION_DESIRED = 1 << 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recursion_desired` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.86s [INFO] running `Command { std: "docker" "inspect" "e74468478344a18bf2035e2509380e428e0f8eb9d5494ee76b2fa2b2bcc74ddc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e74468478344a18bf2035e2509380e428e0f8eb9d5494ee76b2fa2b2bcc74ddc", kill_on_drop: false }` [INFO] [stdout] e74468478344a18bf2035e2509380e428e0f8eb9d5494ee76b2fa2b2bcc74ddc