[INFO] cloning repository https://github.com/Shimogawa/rDNS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shimogawa/rDNS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShimogawa%2FrDNS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShimogawa%2FrDNS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 002e6d6e6bf0a83f2a1e93f442375e978823ea4c [INFO] testing Shimogawa/rDNS against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShimogawa%2FrDNS" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Shimogawa/rDNS [INFO] finished tweaking git repo https://github.com/Shimogawa/rDNS [INFO] tweaked toml for git repo https://github.com/Shimogawa/rDNS written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Shimogawa/rDNS on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Shimogawa/rDNS 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.93 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ddf2b303857f12474262486aff808bb041be2ce872f468dc9dc2400e94b5099 [INFO] running `Command { std: "docker" "start" "-a" "4ddf2b303857f12474262486aff808bb041be2ce872f468dc9dc2400e94b5099", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ddf2b303857f12474262486aff808bb041be2ce872f468dc9dc2400e94b5099", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ddf2b303857f12474262486aff808bb041be2ce872f468dc9dc2400e94b5099", kill_on_drop: false }` [INFO] [stdout] 4ddf2b303857f12474262486aff808bb041be2ce872f468dc9dc2400e94b5099 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 9be2bd92b1121e464df2cdd0e8c81a630641b353cfc0737a78e259a95d5488bf [INFO] running `Command { std: "docker" "start" "-a" "9be2bd92b1121e464df2cdd0e8c81a630641b353cfc0737a78e259a95d5488bf", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling proc-macro2 v1.0.38 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.93 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling clap_lex v0.2.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling clap v3.1.18 [INFO] [stderr] Compiling rdns v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DNSClass` [INFO] [stdout] --> src/rdns/dns.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | DNSClass, DNSHeader, DNSPacket, DNSQuestion, DNSRcode, DNSRdata, DNSResourceRecord, DNSType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_num` is never used [INFO] [stdout] --> src/rdns/records.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl DNSRcode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 34 | pub fn from_num(n: u16) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tc` is never read [INFO] [stdout] --> src/rdns/records.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct DNSHeader { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | pub tc: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSHeader` 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: field `rdlength` is never read [INFO] [stdout] --> src/rdns/records.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct DNSResourceRecord { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | pub rdlength: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSResourceRecord` 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: associated function `from_num` is never used [INFO] [stdout] --> src/rdns/records.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 224 | impl DNSClass { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 225 | pub fn from_num(n: u16) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `domain_name` is never used [INFO] [stdout] --> src/rdns/records.rs:381:12 [INFO] [stdout] | [INFO] [stdout] 365 | impl DNSQuestion { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 381 | pub fn domain_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `WriteExt` is never used [INFO] [stdout] --> src/rdns/util.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait WriteExt: Write { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/rdns/records.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(FromPrimitive, Debug, Copy, Clone)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSRcode` [INFO] [stdout] 22 | pub enum DNSRcode { [INFO] [stdout] | -------- `DNSRcode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/rdns/records.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(FromPrimitive, Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSType` [INFO] [stdout] 170 | pub enum DNSType { [INFO] [stdout] | ------- `DNSType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/rdns/records.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | #[derive(FromPrimitive, Debug, Copy, Clone)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSClass` [INFO] [stdout] 214 | pub enum DNSClass { [INFO] [stdout] | -------- `DNSClass` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.49s [INFO] running `Command { std: "docker" "inspect" "9be2bd92b1121e464df2cdd0e8c81a630641b353cfc0737a78e259a95d5488bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9be2bd92b1121e464df2cdd0e8c81a630641b353cfc0737a78e259a95d5488bf", kill_on_drop: false }` [INFO] [stdout] 9be2bd92b1121e464df2cdd0e8c81a630641b353cfc0737a78e259a95d5488bf [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e9d48a6b37bb44d7a7c2880a67af10f55475fec1cfb691f975fe8103ef435aaa [INFO] running `Command { std: "docker" "start" "-a" "e9d48a6b37bb44d7a7c2880a67af10f55475fec1cfb691f975fe8103ef435aaa", kill_on_drop: false }` [INFO] [stderr] Compiling rdns v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DNSClass` [INFO] [stdout] --> src/rdns/dns.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | DNSClass, DNSHeader, DNSPacket, DNSQuestion, DNSRcode, DNSRdata, DNSResourceRecord, DNSType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_num` is never used [INFO] [stdout] --> src/rdns/records.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl DNSRcode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 34 | pub fn from_num(n: u16) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tc` is never read [INFO] [stdout] --> src/rdns/records.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct DNSHeader { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | pub tc: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSHeader` 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: field `rdlength` is never read [INFO] [stdout] --> src/rdns/records.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct DNSResourceRecord { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | pub rdlength: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DNSResourceRecord` 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: associated function `from_num` is never used [INFO] [stdout] --> src/rdns/records.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 224 | impl DNSClass { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 225 | pub fn from_num(n: u16) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `domain_name` is never used [INFO] [stdout] --> src/rdns/records.rs:381:12 [INFO] [stdout] | [INFO] [stdout] 365 | impl DNSQuestion { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 381 | pub fn domain_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `WriteExt` is never used [INFO] [stdout] --> src/rdns/util.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait WriteExt: Write { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/rdns/records.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(FromPrimitive, Debug, Copy, Clone)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSRcode` [INFO] [stdout] 22 | pub enum DNSRcode { [INFO] [stdout] | -------- `DNSRcode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/rdns/records.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(FromPrimitive, Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSType` [INFO] [stdout] 170 | pub enum DNSType { [INFO] [stdout] | ------- `DNSType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/rdns/records.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | #[derive(FromPrimitive, Debug, Copy, Clone)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSClass` [INFO] [stdout] 214 | pub enum DNSClass { [INFO] [stdout] | -------- `DNSClass` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.65s [INFO] running `Command { std: "docker" "inspect" "e9d48a6b37bb44d7a7c2880a67af10f55475fec1cfb691f975fe8103ef435aaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9d48a6b37bb44d7a7c2880a67af10f55475fec1cfb691f975fe8103ef435aaa", kill_on_drop: false }` [INFO] [stdout] e9d48a6b37bb44d7a7c2880a67af10f55475fec1cfb691f975fe8103ef435aaa [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 6be1535d2e6830559c8fe7cafd90602dd10560f87909284125b9fdfec0b5cf34 [INFO] running `Command { std: "docker" "start" "-a" "6be1535d2e6830559c8fe7cafd90602dd10560f87909284125b9fdfec0b5cf34", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `DNSClass` [INFO] [stderr] --> src/rdns/dns.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | DNSClass, DNSHeader, DNSPacket, DNSQuestion, DNSRcode, DNSRdata, DNSResourceRecord, DNSType, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `from_num` is never used [INFO] [stderr] --> src/rdns/records.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 33 | impl DNSRcode { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 34 | pub fn from_num(n: u16) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `tc` is never read [INFO] [stderr] --> src/rdns/records.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 41 | pub struct DNSHeader { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 53 | pub tc: u8, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `DNSHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `rdlength` is never read [INFO] [stderr] --> src/rdns/records.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 78 | pub struct DNSResourceRecord { [INFO] [stderr] | ----------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 85 | pub rdlength: u16, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DNSResourceRecord` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `from_num` is never used [INFO] [stderr] --> src/rdns/records.rs:225:12 [INFO] [stderr] | [INFO] [stderr] 224 | impl DNSClass { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 225 | pub fn from_num(n: u16) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `domain_name` is never used [INFO] [stderr] --> src/rdns/records.rs:381:12 [INFO] [stderr] | [INFO] [stderr] 365 | impl DNSQuestion { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 381 | pub fn domain_name(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `WriteExt` is never used [INFO] [stderr] --> src/rdns/util.rs:40:11 [INFO] [stderr] | [INFO] [stderr] 40 | pub trait WriteExt: Write { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rdns/records.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(FromPrimitive, Debug, Copy, Clone)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSRcode` [INFO] [stderr] 22 | pub enum DNSRcode { [INFO] [stderr] | -------- `DNSRcode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rdns/records.rs:169:10 [INFO] [stderr] | [INFO] [stderr] 169 | #[derive(FromPrimitive, Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSType` [INFO] [stderr] 170 | pub enum DNSType { [INFO] [stderr] | ------- `DNSType` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] running 0 tests [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rdns/records.rs:213:10 [INFO] [stderr] | [INFO] [stderr] 213 | #[derive(FromPrimitive, Debug, Copy, Clone)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DNSClass` [INFO] [stderr] 214 | pub enum DNSClass { [INFO] [stderr] | -------- `DNSClass` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rdns` (bin "rdns" test) generated 10 warnings (run `cargo fix --bin "rdns" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rdns-77d104d097f369d6) [INFO] running `Command { std: "docker" "inspect" "6be1535d2e6830559c8fe7cafd90602dd10560f87909284125b9fdfec0b5cf34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6be1535d2e6830559c8fe7cafd90602dd10560f87909284125b9fdfec0b5cf34", kill_on_drop: false }` [INFO] [stdout] 6be1535d2e6830559c8fe7cafd90602dd10560f87909284125b9fdfec0b5cf34