[INFO] fetching crate struct_deser 0.1.1... [INFO] building struct_deser-0.1.1 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate struct_deser 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate struct_deser 0.1.1 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate struct_deser 0.1.1 [INFO] finished tweaking crates.io crate struct_deser 0.1.1 [INFO] tweaked toml for crates.io crate struct_deser 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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 6 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded struct_deser-derive v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c97f4eebabbc4e17aba098dcab2dc79d21737c828430db697cc0e036eb9f0465 [INFO] running `Command { std: "docker" "start" "-a" "c97f4eebabbc4e17aba098dcab2dc79d21737c828430db697cc0e036eb9f0465", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c97f4eebabbc4e17aba098dcab2dc79d21737c828430db697cc0e036eb9f0465", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c97f4eebabbc4e17aba098dcab2dc79d21737c828430db697cc0e036eb9f0465", kill_on_drop: false }` [INFO] [stdout] c97f4eebabbc4e17aba098dcab2dc79d21737c828430db697cc0e036eb9f0465 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 802d2bf0f9d1426783b14fa77fca829d5a39170435899d1bf73b0a4f48260dfe [INFO] running `Command { std: "docker" "start" "-a" "802d2bf0f9d1426783b14fa77fca829d5a39170435899d1bf73b0a4f48260dfe", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling struct_deser v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "802d2bf0f9d1426783b14fa77fca829d5a39170435899d1bf73b0a4f48260dfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "802d2bf0f9d1426783b14fa77fca829d5a39170435899d1bf73b0a4f48260dfe", kill_on_drop: false }` [INFO] [stdout] 802d2bf0f9d1426783b14fa77fca829d5a39170435899d1bf73b0a4f48260dfe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f2845da120023c5575e210083422103b1dc13e819f16a03df7c053dfb71973e [INFO] running `Command { std: "docker" "start" "-a" "5f2845da120023c5575e210083422103b1dc13e819f16a03df7c053dfb71973e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling struct_deser-derive v0.1.0 [INFO] [stderr] Compiling struct_deser v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/test_tuple_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `Identifier` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `Identifier` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_tuple_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_tuple_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_tuple_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_struct.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Integers` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_Integers` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U16` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U16` [INFO] [stdout] ... [INFO] [stdout] 31 | test_primitive!(u16, U16, 42, [42, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U16` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U16` [INFO] [stdout] ... [INFO] [stdout] 31 | test_primitive!(u16, U16, 42, [42, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U16` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U16` [INFO] [stdout] ... [INFO] [stdout] 31 | test_primitive!(u16, U16, 42, [42, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U32` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U32` [INFO] [stdout] ... [INFO] [stdout] 32 | test_primitive!(u32, U32, 42, [42, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U32` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U32` [INFO] [stdout] ... [INFO] [stdout] 32 | test_primitive!(u32, U32, 42, [42, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U32` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U32` [INFO] [stdout] ... [INFO] [stdout] 32 | test_primitive!(u32, U32, 42, [42, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U64` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U64` [INFO] [stdout] ... [INFO] [stdout] 33 | test_primitive!(u64, U64, 42, [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U64` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U64` [INFO] [stdout] ... [INFO] [stdout] 33 | test_primitive!(u64, U64, 42, [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `U64` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_U64` [INFO] [stdout] ... [INFO] [stdout] 33 | test_primitive!(u64, U64, 42, [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I16` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I16` [INFO] [stdout] ... [INFO] [stdout] 34 | test_primitive!(i16, I16, 42, [42, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I16` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I16` [INFO] [stdout] ... [INFO] [stdout] 34 | test_primitive!(i16, I16, 42, [42, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I16` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I16` [INFO] [stdout] ... [INFO] [stdout] 34 | test_primitive!(i16, I16, 42, [42, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I32` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I32` [INFO] [stdout] ... [INFO] [stdout] 35 | test_primitive!(i32, I32, 42, [42, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I32` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I32` [INFO] [stdout] ... [INFO] [stdout] 35 | test_primitive!(i32, I32, 42, [42, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I32` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I32` [INFO] [stdout] ... [INFO] [stdout] 35 | test_primitive!(i32, I32, 42, [42, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I64` is not local [INFO] [stdout] | `FromBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I64` [INFO] [stdout] ... [INFO] [stdout] 36 | test_primitive!(i64, I64, 42, [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I64` is not local [INFO] [stdout] | `IntoBytes` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I64` [INFO] [stdout] ... [INFO] [stdout] 36 | test_primitive!(i64, I64, 42, [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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] --> tests/test_byte_order.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(StructDeser, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `I64` is not local [INFO] [stdout] | `SerializedByteLen` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCT_DESER_FOR_I64` [INFO] [stdout] ... [INFO] [stdout] 36 | test_primitive!(i64, I64, 42, [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42]); [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructDeser` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructDeser` may come from an old version of the `struct_deser_derive` crate, try updating your dependency with `cargo update -p struct_deser_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 `StructDeser` which comes from the expansion of the macro `test_primitive` (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 1.37s [INFO] running `Command { std: "docker" "inspect" "5f2845da120023c5575e210083422103b1dc13e819f16a03df7c053dfb71973e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f2845da120023c5575e210083422103b1dc13e819f16a03df7c053dfb71973e", kill_on_drop: false }` [INFO] [stdout] 5f2845da120023c5575e210083422103b1dc13e819f16a03df7c053dfb71973e