[INFO] cloning repository https://github.com/sjbaker47/rust-nslookup [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sjbaker47/rust-nslookup" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjbaker47%2Frust-nslookup", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjbaker47%2Frust-nslookup'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ae35cc62e1c2401b077b320cb2d3404b02b40cb [INFO] checking sjbaker47/rust-nslookup against master#1280928a99ad3ef2c5735b42dc8852456ae3b974 for pr-120798 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjbaker47%2Frust-nslookup" "/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/sjbaker47/rust-nslookup on toolchain 1280928a99ad3ef2c5735b42dc8852456ae3b974 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1280928a99ad3ef2c5735b42dc8852456ae3b974" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sjbaker47/rust-nslookup [INFO] finished tweaking git repo https://github.com/sjbaker47/rust-nslookup [INFO] tweaked toml for git repo https://github.com/sjbaker47/rust-nslookup written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sjbaker47/rust-nslookup 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" "+1280928a99ad3ef2c5735b42dc8852456ae3b974" "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 sjbaker47/rust-nslookup against try#9b9e20bc79549d80ab413f49d990713851172cc1 for pr-120798 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjbaker47%2Frust-nslookup" "/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/sjbaker47/rust-nslookup on toolchain 9b9e20bc79549d80ab413f49d990713851172cc1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b9e20bc79549d80ab413f49d990713851172cc1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sjbaker47/rust-nslookup [INFO] finished tweaking git repo https://github.com/sjbaker47/rust-nslookup [INFO] tweaked toml for git repo https://github.com/sjbaker47/rust-nslookup written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sjbaker47/rust-nslookup 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" "+9b9e20bc79549d80ab413f49d990713851172cc1" "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" "+9b9e20bc79549d80ab413f49d990713851172cc1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 571265de8e0d5e6e8bb8b0d6285e57f1b89ef37e37eb31b6994611cfc141cd40 [INFO] running `Command { std: "docker" "start" "-a" "571265de8e0d5e6e8bb8b0d6285e57f1b89ef37e37eb31b6994611cfc141cd40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "571265de8e0d5e6e8bb8b0d6285e57f1b89ef37e37eb31b6994611cfc141cd40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "571265de8e0d5e6e8bb8b0d6285e57f1b89ef37e37eb31b6994611cfc141cd40", kill_on_drop: false }` [INFO] [stdout] 571265de8e0d5e6e8bb8b0d6285e57f1b89ef37e37eb31b6994611cfc141cd40 [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" "+9b9e20bc79549d80ab413f49d990713851172cc1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 677fab9fe0ecf5b6ff030005b1cf57013106901023898aa57d59c081e6e55799 [INFO] running `Command { std: "docker" "start" "-a" "677fab9fe0ecf5b6ff030005b1cf57013106901023898aa57d59c081e6e55799", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.18 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking nslookup v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/protocol/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:21:54 [INFO] [stdout] | [INFO] [stdout] 21 | fn run(hostname : String) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | fn run(hostname : String) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/protocol/name.rs:114:40 [INFO] [stdout] | [INFO] [stdout] 114 | let decoded = decode_name_rdr(&mut Cursor::new(&buf)).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use protocol::Cursor; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/protocol/name.rs:119:40 [INFO] [stdout] | [INFO] [stdout] 119 | let decoded = decode_name_rdr(&mut Cursor::new(&buf)).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use protocol::Cursor; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/protocol/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:21:54 [INFO] [stdout] | [INFO] [stdout] 21 | fn run(hostname : String) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | fn run(hostname : String) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/protocol/mod.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | for i in 0..nquestions { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/protocol/mod.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | for i in 0..nanswers { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `questions` are never read [INFO] [stdout] --> src/protocol/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct DnsResponse { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 19 | header: DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | questions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsResponse` 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: fields `name`, `qtype`, and `qclass` are never read [INFO] [stdout] --> src/protocol/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ResponseQuestion { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 43 | name: NameRef, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | qtype: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | qclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResponseQuestion` 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 `header` is never read [INFO] [stdout] --> src/protocol/mod.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct ResourceRecord { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 50 | header: RecordHeader, [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 `name`, `rr_class`, and `ttl` are never read [INFO] [stdout] --> src/protocol/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | struct RecordHeader { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 56 | name: NameRef, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | rr_type: u16, [INFO] [stdout] 58 | rr_class: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | ttl: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordHeader` 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 `0` is never read [INFO] [stdout] --> src/protocol/mod.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | Other(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] 67 | Other(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_name` in this scope [INFO] [stdout] --> src/protocol/name.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn encode_name(name : &str) -> Vec { [INFO] [stdout] | ------------------------------------------ similarly named function `encode_name` defined here [INFO] [stdout] ... [INFO] [stdout] 101 | let decoded = decode_name(&buf); [INFO] [stdout] | ^^^^^^^^^^^ help: a function with a similar name exists: `encode_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_name` in this scope [INFO] [stdout] --> src/protocol/name.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn encode_name(name : &str) -> Vec { [INFO] [stdout] | ------------------------------------------ similarly named function `encode_name` defined here [INFO] [stdout] ... [INFO] [stdout] 106 | let decoded = decode_name(&buf); [INFO] [stdout] | ^^^^^^^^^^^ help: a function with a similar name exists: `encode_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/protocol/mod.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | for i in 0..nquestions { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/protocol/mod.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | for i in 0..nanswers { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nslookup` (bin "nslookup" test) due to 5 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "677fab9fe0ecf5b6ff030005b1cf57013106901023898aa57d59c081e6e55799", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "677fab9fe0ecf5b6ff030005b1cf57013106901023898aa57d59c081e6e55799", kill_on_drop: false }` [INFO] [stdout] 677fab9fe0ecf5b6ff030005b1cf57013106901023898aa57d59c081e6e55799