[INFO] fetching crate rustdns 0.4.0... [INFO] checking rustdns-0.4.0 against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] extracting crate rustdns 0.4.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate rustdns 0.4.0 [INFO] finished tweaking crates.io crate rustdns 0.4.0 [INFO] tweaked toml for crates.io crate rustdns 0.4.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustdns 0.4.0 on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 199 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding env_logger v0.9.3 (available: v0.11.8) [INFO] [stderr] Adding http v0.2.12 (available: v1.3.1) [INFO] [stderr] Adding hyper v0.14.32 (available: v1.7.0) [INFO] [stderr] Adding hyper-alpn v0.3.0 (available: v0.4.1) [INFO] [stderr] Adding idna v0.2.3 (available: v1.1.0) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding serde_yaml v0.8.26 (available: v0.9.34+deprecated) [INFO] [stderr] Adding strum v0.23.0 (available: v0.27.2) [INFO] [stderr] Adding strum_macros v0.23.1 (available: v0.27.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest_consume_macros v1.1.0 [INFO] [stderr] Downloaded test-env-log v0.2.8 [INFO] [stderr] Downloaded pest_consume v1.1.3 [INFO] [stderr] Downloaded hyper-alpn v0.3.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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 719f01d263051b59f6181d4328da9a6f11d2cdc4b0fa3710963126748566591d [INFO] running `Command { std: "docker" "start" "-a" "719f01d263051b59f6181d4328da9a6f11d2cdc4b0fa3710963126748566591d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "719f01d263051b59f6181d4328da9a6f11d2cdc4b0fa3710963126748566591d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "719f01d263051b59f6181d4328da9a6f11d2cdc4b0fa3710963126748566591d", kill_on_drop: false }` [INFO] [stdout] 719f01d263051b59f6181d4328da9a6f11d2cdc4b0fa3710963126748566591d [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a1ddf31fbd8ea96ccec58c83f713a7c1b33304baafba47c34e690918b5da497 [INFO] running `Command { std: "docker" "start" "-a" "9a1ddf31fbd8ea96ccec58c83f713a7c1b33304baafba47c34e690918b5da497", kill_on_drop: false }` [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling pest_meta v2.8.3 [INFO] [stderr] Checking pest v2.8.3 [INFO] [stderr] Compiling pest_consume_macros v1.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Compiling strum_macros v0.23.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling pest_generator v2.8.3 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking strum v0.23.0 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Compiling test-env-log v0.2.8 [INFO] [stderr] Checking json_comments v0.2.2 [INFO] [stderr] Compiling pest_derive v2.8.3 [INFO] [stderr] Checking pest_consume v1.1.3 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-alpn v0.3.0 [INFO] [stderr] Checking rustdns v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `arbitrary` [INFO] [stdout] --> src/types.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `base64`, `clients`, `default`, `doh`, `http`, `http_deps`, `hyper`, `hyper-alpn`, `json`, `mime`, `pest`, `pest_consume`, `pest_derive`, `serde`, `serde_json`, `tcp`, `udp`, `url`, and `zones` [INFO] [stdout] = help: consider adding `arbitrary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dns.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(buf: &[u8]) -> MessageParser { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn new(buf: &[u8]) -> MessageParser<'_> { [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/types.rs:261:61 [INFO] [stdout] | [INFO] [stdout] 261 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, Hash, FromPrimitive, 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_Opcode` [INFO] [stdout] ... [INFO] [stdout] 264 | pub enum Opcode { [INFO] [stdout] | ------ `Opcode` 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/types.rs:303:61 [INFO] [stdout] | [INFO] [stdout] 303 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, Hash, FromPrimitive, 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_Rcode` [INFO] [stdout] ... [INFO] [stdout] 306 | pub enum Rcode { [INFO] [stdout] | ----- `Rcode` 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/types.rs:391:55 [INFO] [stdout] | [INFO] [stdout] 391 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, FromPrimitive, Hash, 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_Type` [INFO] [stdout] ... [INFO] [stdout] 394 | pub enum Type { [INFO] [stdout] | ---- `Type` 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/types.rs:446:55 [INFO] [stdout] | [INFO] [stdout] 446 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, FromPrimitive, Hash, 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_Class` [INFO] [stdout] 447 | #[repr(u16)] [INFO] [stdout] 448 | pub enum Class { [INFO] [stdout] | ----- `Class` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/zones/parser.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | fn string(input: Node) -> Result<&str> { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 59 | fn string(input: Node<'_>) -> Result<&str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/zones/parser.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | fn domain(input: Node) -> Result<&str> { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 65 | fn domain(input: Node<'_>) -> Result<&str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dns.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(buf: &[u8]) -> MessageParser { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn new(buf: &[u8]) -> MessageParser<'_> { [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/types.rs:261:61 [INFO] [stdout] | [INFO] [stdout] 261 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, Hash, FromPrimitive, 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_Opcode` [INFO] [stdout] ... [INFO] [stdout] 264 | pub enum Opcode { [INFO] [stdout] | ------ `Opcode` 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/types.rs:303:61 [INFO] [stdout] | [INFO] [stdout] 303 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, Hash, FromPrimitive, 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_Rcode` [INFO] [stdout] ... [INFO] [stdout] 306 | pub enum Rcode { [INFO] [stdout] | ----- `Rcode` 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/types.rs:391:55 [INFO] [stdout] | [INFO] [stdout] 391 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, FromPrimitive, Hash, 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_Type` [INFO] [stdout] ... [INFO] [stdout] 394 | pub enum Type { [INFO] [stdout] | ---- `Type` 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/types.rs:446:55 [INFO] [stdout] | [INFO] [stdout] 446 | #[derive(Copy, Clone, Debug, Display, EnumString, Eq, FromPrimitive, Hash, 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_Class` [INFO] [stdout] 447 | #[repr(u16)] [INFO] [stdout] 448 | pub enum Class { [INFO] [stdout] | ----- `Class` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/zones/parser.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | fn string(input: Node) -> Result<&str> { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 59 | fn string(input: Node<'_>) -> Result<&str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/zones/parser.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | fn domain(input: Node) -> Result<&str> { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 65 | fn domain(input: Node<'_>) -> Result<&str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockClient` is never constructed [INFO] [stdout] --> tests/resolver.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | struct MockClient {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.93s [INFO] running `Command { std: "docker" "inspect" "9a1ddf31fbd8ea96ccec58c83f713a7c1b33304baafba47c34e690918b5da497", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a1ddf31fbd8ea96ccec58c83f713a7c1b33304baafba47c34e690918b5da497", kill_on_drop: false }` [INFO] [stdout] 9a1ddf31fbd8ea96ccec58c83f713a7c1b33304baafba47c34e690918b5da497