[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] checking Shimogawa/rDNS against try#7d2afcda7a9c043d5175cbca3ab08f0acf02b13a for pr-140824 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShimogawa%2FrDNS" "/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/Shimogawa/rDNS on toolchain 7d2afcda7a9c043d5175cbca3ab08f0acf02b13a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bfa856299a13c3ca0f6001471f437bb261d54029ab22d644d887d4de2eb685b [INFO] running `Command { std: "docker" "start" "-a" "0bfa856299a13c3ca0f6001471f437bb261d54029ab22d644d887d4de2eb685b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bfa856299a13c3ca0f6001471f437bb261d54029ab22d644d887d4de2eb685b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bfa856299a13c3ca0f6001471f437bb261d54029ab22d644d887d4de2eb685b", kill_on_drop: false }` [INFO] [stdout] 0bfa856299a13c3ca0f6001471f437bb261d54029ab22d644d887d4de2eb685b [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e16f6c3c0a3feeec2e9796abd894f47f86c51f02e38d122cca5c1ed95bb3d46 [INFO] running `Command { std: "docker" "start" "-a" "5e16f6c3c0a3feeec2e9796abd894f47f86c51f02e38d122cca5c1ed95bb3d46", kill_on_drop: false }` [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 syn v1.0.93 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking 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: 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] error: hi [INFO] [stdout] --> src/rdns/util.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait ReadExt: Read { [INFO] [stdout] | ----------------------- built-in `dyn ReadExt` implementation for this trait [INFO] [stdout] ... [INFO] [stdout] 38 | impl ReadExt for R {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overlaps with this blanket impl [INFO] [stdout] | [INFO] [stdout] = note: `#[forbid(dyn_overlap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hi [INFO] [stdout] --> src/rdns/util.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait WriteExt: Write { [INFO] [stdout] | ------------------------- built-in `dyn WriteExt` implementation for this trait [INFO] [stdout] ... [INFO] [stdout] 48 | impl WriteExt for W {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overlaps with this blanket impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hi [INFO] [stdout] --> src/rdns/util.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait ReadExt: Read { [INFO] [stdout] | ----------------------- built-in `dyn ReadExt` implementation for this trait [INFO] [stdout] ... [INFO] [stdout] 38 | impl ReadExt for R {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overlaps with this blanket impl [INFO] [stdout] | [INFO] [stdout] = note: `#[forbid(dyn_overlap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hi [INFO] [stdout] --> src/rdns/util.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait WriteExt: Write { [INFO] [stdout] | ------------------------- built-in `dyn WriteExt` implementation for this trait [INFO] [stdout] ... [INFO] [stdout] 48 | impl WriteExt for W {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overlaps with this blanket impl [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 `Clone` and `Debug`, 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 `Clone` and `Debug`, 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] error: could not compile `rdns` (bin "rdns") due to 2 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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 `Clone` and `Debug`, 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 `Clone` and `Debug`, 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] [stderr] error: could not compile `rdns` (bin "rdns" test) due to 2 previous errors; 10 warnings emitted [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] running `Command { std: "docker" "inspect" "5e16f6c3c0a3feeec2e9796abd894f47f86c51f02e38d122cca5c1ed95bb3d46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e16f6c3c0a3feeec2e9796abd894f47f86c51f02e38d122cca5c1ed95bb3d46", kill_on_drop: false }` [INFO] [stdout] 5e16f6c3c0a3feeec2e9796abd894f47f86c51f02e38d122cca5c1ed95bb3d46