[INFO] cloning repository https://github.com/mdlayher/nbd-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mdlayher/nbd-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmdlayher%2Fnbd-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmdlayher%2Fnbd-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f16928160359c5a80074868b50de4f082849dff7
[INFO] checking mdlayher/nbd-rs against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmdlayher%2Fnbd-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/mdlayher/nbd-rs
[INFO] finished tweaking git repo https://github.com/mdlayher/nbd-rs
[INFO] tweaked toml for git repo https://github.com/mdlayher/nbd-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mdlayher/nbd-rs on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/mdlayher/nbd-rs 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr] |
[INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 23cdbee8721a57990a66d2aae3dcbfd499ebd21c9b89019304c1a843cd2a0540
[INFO] running `Command { std: "docker" "start" "-a" "23cdbee8721a57990a66d2aae3dcbfd499ebd21c9b89019304c1a843cd2a0540", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "23cdbee8721a57990a66d2aae3dcbfd499ebd21c9b89019304c1a843cd2a0540", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23cdbee8721a57990a66d2aae3dcbfd499ebd21c9b89019304c1a843cd2a0540", kill_on_drop: false }`
[INFO] [stdout] 23cdbee8721a57990a66d2aae3dcbfd499ebd21c9b89019304c1a843cd2a0540
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e5025b526fb8554e761efa4e3055a9e4e10a9b49791b6fd03cacc64b8774bcfc
[INFO] running `Command { std: "docker" "start" "-a" "e5025b526fb8554e761efa4e3055a9e4e10a9b49791b6fd03cacc64b8774bcfc", kill_on_drop: false }`
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr] |
[INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] [stderr] Compiling libc v0.2.112
[INFO] [stderr] Compiling proc-macro2 v1.0.36
[INFO] [stderr] Compiling syn v1.0.84
[INFO] [stderr] Compiling log v0.4.14
[INFO] [stderr] Compiling parking_lot_core v0.8.5
[INFO] [stderr] Checking smallvec v1.7.0
[INFO] [stderr] Compiling memchr v2.4.1
[INFO] [stderr] Checking bytes v1.1.0
[INFO] [stderr] Checking pin-project-lite v0.2.7
[INFO] [stderr] Checking once_cell v1.9.0
[INFO] [stderr] Checking instant v0.1.12
[INFO] [stderr] Compiling memoffset v0.6.5
[INFO] [stderr] Checking lock_api v0.4.5
[INFO] [stderr] Compiling num-integer v0.1.44
[INFO] [stderr] Compiling quote v1.0.14
[INFO] [stderr] Checking mio v0.7.14
[INFO] [stderr] Checking signal-hook-registry v1.4.0
[INFO] [stderr] Checking num_cpus v1.13.1
[INFO] [stderr] Checking nix v0.23.1
[INFO] [stderr] Checking time v0.1.44
[INFO] [stderr] Checking atty v0.2.14
[INFO] [stderr] Checking parking_lot v0.11.2
[INFO] [stderr] Checking chrono v0.4.19
[INFO] [stderr] Checking stderrlog v0.5.1
[INFO] [stderr] Compiling tokio-macros v1.7.0
[INFO] [stderr] Compiling num-derive v0.3.3
[INFO] [stderr] Checking tokio v1.15.0
[INFO] [stderr] Checking mdl-nbd v0.1.0 (/opt/rustwide/workdir/mdl-nbd)
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout] --> mdl-nbd/src/handshake/frame.rs:262:30
[INFO] [stdout] |
[INFO] [stdout] 262 | #[derive(Clone, Copy, Debug, 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_OptionCode`
[INFO] [stdout] 263 | pub(crate) enum OptionCode {
[INFO] [stdout] | ---------- `OptionCode` 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] --> mdl-nbd/src/handshake/frame.rs:444:30
[INFO] [stdout] |
[INFO] [stdout] 444 | #[derive(Clone, Copy, Debug, 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_InfoType`
[INFO] [stdout] 445 | pub(crate) enum InfoType {
[INFO] [stdout] | -------- `InfoType` 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] --> mdl-nbd/src/transmit/device.rs:26:29
[INFO] [stdout] |
[INFO] [stdout] 26 | pub(crate) fn handle_io(&mut self, req: Frame, buf: &mut [u8]) -> Option {
[INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden 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] 26 | pub(crate) fn handle_io(&mut self, req: Frame, buf: &mut [u8]) -> Option> {
[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] --> mdl-nbd/src/transmit/frame.rs:21:17
[INFO] [stdout] |
[INFO] [stdout] 21 | #[derive(Debug, FromPrimitive)]
[INFO] [stdout] | ^------------
[INFO] [stdout] | |
[INFO] [stdout] | `FromPrimitive` is not local
[INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Errno`
[INFO] [stdout] 22 | pub(crate) enum Errno {
[INFO] [stdout] | ----- `Errno` 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] --> mdl-nbd/src/transmit/frame.rs:99:30
[INFO] [stdout] |
[INFO] [stdout] 99 | #[derive(Copy, Clone, Debug, 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_MagicType`
[INFO] [stdout] 100 | pub(crate) enum MagicType {
[INFO] [stdout] | --------- `MagicType` 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] --> mdl-nbd/src/transmit/frame.rs:107:30
[INFO] [stdout] |
[INFO] [stdout] 107 | #[derive(Copy, Clone, Debug, 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_IoType`
[INFO] [stdout] 108 | pub(crate) enum IoType {
[INFO] [stdout] | ------ `IoType` 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] --> mdl-nbd/src/handshake/frame.rs:262:30
[INFO] [stdout] |
[INFO] [stdout] 262 | #[derive(Clone, Copy, Debug, 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_OptionCode`
[INFO] [stdout] 263 | pub(crate) enum OptionCode {
[INFO] [stdout] | ---------- `OptionCode` 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] --> mdl-nbd/src/handshake/frame.rs:444:30
[INFO] [stdout] |
[INFO] [stdout] 444 | #[derive(Clone, Copy, Debug, 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_InfoType`
[INFO] [stdout] 445 | pub(crate) enum InfoType {
[INFO] [stdout] | -------- `InfoType` 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] --> mdl-nbd/src/transmit/device.rs:26:29
[INFO] [stdout] |
[INFO] [stdout] 26 | pub(crate) fn handle_io(&mut self, req: Frame, buf: &mut [u8]) -> Option {
[INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden 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] 26 | pub(crate) fn handle_io(&mut self, req: Frame, buf: &mut [u8]) -> Option> {
[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] --> mdl-nbd/src/transmit/frame.rs:21:17
[INFO] [stdout] |
[INFO] [stdout] 21 | #[derive(Debug, FromPrimitive)]
[INFO] [stdout] | ^------------
[INFO] [stdout] | |
[INFO] [stdout] | `FromPrimitive` is not local
[INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Errno`
[INFO] [stdout] 22 | pub(crate) enum Errno {
[INFO] [stdout] | ----- `Errno` 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] --> mdl-nbd/src/transmit/frame.rs:99:30
[INFO] [stdout] |
[INFO] [stdout] 99 | #[derive(Copy, Clone, Debug, 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_MagicType`
[INFO] [stdout] 100 | pub(crate) enum MagicType {
[INFO] [stdout] | --------- `MagicType` 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] --> mdl-nbd/src/transmit/frame.rs:107:30
[INFO] [stdout] |
[INFO] [stdout] 107 | #[derive(Copy, Clone, Debug, 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_IoType`
[INFO] [stdout] 108 | pub(crate) enum IoType {
[INFO] [stdout] | ------ `IoType` 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] Checking mdl-nbd-demo v0.1.0 (/opt/rustwide/workdir/mdl-nbd-demo)
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.10s
[INFO] running `Command { std: "docker" "inspect" "e5025b526fb8554e761efa4e3055a9e4e10a9b49791b6fd03cacc64b8774bcfc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e5025b526fb8554e761efa4e3055a9e4e10a9b49791b6fd03cacc64b8774bcfc", kill_on_drop: false }`
[INFO] [stdout] e5025b526fb8554e761efa4e3055a9e4e10a9b49791b6fd03cacc64b8774bcfc