[INFO] fetching crate rust-async-tuyapi 1.0.0... [INFO] testing rust-async-tuyapi-1.0.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate rust-async-tuyapi 1.0.0 into /workspace/builds/worker-6-tc2/source [INFO] removed /workspace/builds/worker-6-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate rust-async-tuyapi 1.0.0 [INFO] finished tweaking crates.io crate rust-async-tuyapi 1.0.0 [INFO] tweaked toml for crates.io crate rust-async-tuyapi 1.0.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-async-tuyapi 1.0.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 77 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding md5 v0.7.0 (available: v0.8.0) [INFO] [stderr] Adding nom v7.1.3 (available: v8.0.0) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1317c90de1e380ffbd8dcd67379c728e03ec72f1c6be5581fc35302c116efa05 [INFO] running `Command { std: "docker" "start" "-a" "1317c90de1e380ffbd8dcd67379c728e03ec72f1c6be5581fc35302c116efa05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1317c90de1e380ffbd8dcd67379c728e03ec72f1c6be5581fc35302c116efa05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1317c90de1e380ffbd8dcd67379c728e03ec72f1c6be5581fc35302c116efa05", kill_on_drop: false }` [INFO] [stdout] 1317c90de1e380ffbd8dcd67379c728e03ec72f1c6be5581fc35302c116efa05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f9a2efe50cd0173691cf2b17726c551a4dfea20b7b7a34ca0be8558fc94ec38 [INFO] running `Command { std: "docker" "start" "-a" "2f9a2efe50cd0173691cf2b17726c551a4dfea20b7b7a34ca0be8558fc94ec38", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling block-padding v0.3.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling block-modes v0.9.1 [INFO] [stderr] Compiling atomic-counter v1.0.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ecb v0.1.2 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rust-async-tuyapi v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mesparse.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CommandType` [INFO] [stdout] 37 | pub enum CommandType { [INFO] [stdout] | ----------- `CommandType` 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/mesparse.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CommandType` [INFO] [stdout] 37 | pub enum CommandType { [INFO] [stdout] | ----------- `CommandType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.20s [INFO] running `Command { std: "docker" "inspect" "2f9a2efe50cd0173691cf2b17726c551a4dfea20b7b7a34ca0be8558fc94ec38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f9a2efe50cd0173691cf2b17726c551a4dfea20b7b7a34ca0be8558fc94ec38", kill_on_drop: false }` [INFO] [stdout] 2f9a2efe50cd0173691cf2b17726c551a4dfea20b7b7a34ca0be8558fc94ec38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fcb5488564b194b358ec5bbe47b02c62cc7dfcf6485de312dad01de63da98850 [INFO] running `Command { std: "docker" "start" "-a" "fcb5488564b194b358ec5bbe47b02c62cc7dfcf6485de312dad01de63da98850", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mesparse.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CommandType` [INFO] [stdout] 37 | pub enum CommandType { [INFO] [stdout] | ----------- `CommandType` 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/mesparse.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CommandType` [INFO] [stdout] 37 | pub enum CommandType { [INFO] [stdout] | ----------- `CommandType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-async-tuyapi v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mesparse.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CommandType` [INFO] [stdout] 37 | pub enum CommandType { [INFO] [stdout] | ----------- `CommandType` 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/mesparse.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CommandType` [INFO] [stdout] 37 | pub enum CommandType { [INFO] [stdout] | ----------- `CommandType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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 2.04s [INFO] running `Command { std: "docker" "inspect" "fcb5488564b194b358ec5bbe47b02c62cc7dfcf6485de312dad01de63da98850", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcb5488564b194b358ec5bbe47b02c62cc7dfcf6485de312dad01de63da98850", kill_on_drop: false }` [INFO] [stdout] fcb5488564b194b358ec5bbe47b02c62cc7dfcf6485de312dad01de63da98850 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e848403e8909f4225de99a838489ed47394099bd26b814e0179e91abcfb498ac [INFO] running `Command { std: "docker" "start" "-a" "e848403e8909f4225de99a838489ed47394099bd26b814e0179e91abcfb498ac", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] [INFO] [stderr] --> src/mesparse.rs:36:17 [INFO] [stdout] running 18 tests [INFO] [stderr] | [INFO] [stdout] test cipher::tests::decrypt_message_where_payload_is_not_json ... ok [INFO] [stderr] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] test cipher::tests::decrypt_message_with_header_and_base_64_encoding ... ok [INFO] [stderr] | ^------------ [INFO] [stdout] test cipher::tests::decrypt_message_with_version_threethree ... ok [INFO] [stderr] | | [INFO] [stdout] test cipher::tests::decrypt_message_without_header_and_base64_encoding ... ok [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stdout] test cipher::tests::encrypt_message ... ok [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CommandType` [INFO] [stdout] test cipher::tests::encrypt_message_without_base64_encoding ... ok [INFO] [stderr] 37 | pub enum CommandType { [INFO] [stdout] test cipher::tests::maybe_strip_header_with_correct_header ... ok [INFO] [stderr] | ----------- `CommandType` is not local [INFO] [stdout] test cipher::tests::maybe_strip_header_without_header ... ok [INFO] [stderr] | [INFO] [stdout] test crc::test_crc_calculation ... ok [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] test mesparse::tests::test_encode_with_and_without_encryption_and_version_three_three ... ok [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] test mesparse::tests::test_encode_with_and_without_encryption_and_version_three_one ... ok [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] test mesparse::tests::test_key_lenght_not_16_gives_error ... ok [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] test mesparse::tests::test_key_length_is_16 ... ok [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] test mesparse::tests::test_parse_data_format_error ... ok [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] test mesparse::tests::test_parse_double_messages ... ok [INFO] [stderr] [INFO] [stdout] test mesparse::tests::test_parse_messages_with_payload ... ok [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] test mesparse::tests::test_parse_messages ... ok [INFO] [stderr] --> src/mesparse.rs:36:32 [INFO] [stdout] test mesparse::tests::test_parse_mqttversion ... ok [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 36 | #[derive(Debug, FromPrimitive, ToPrimitive, Clone, PartialEq, Eq)] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^---------- [INFO] [stdout] [INFO] [stderr] | | [INFO] [stdout] [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stdout] running 7 tests [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CommandType` [INFO] [stdout] test decode_corrupt_crc_mismatch_message ... ok [INFO] [stderr] 37 | pub enum CommandType { [INFO] [stdout] test decode_corrupt_shortened_message ... ok [INFO] [stderr] | ----------- `CommandType` is not local [INFO] [stdout] test decode_corrupt_shorter_than_possible_message ... ok [INFO] [stderr] | [INFO] [stdout] test decode_empty_message ... ok [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] test encode_and_decode_get_message_version_three_three ... ok [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] test encode_and_decode_message ... ok [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] test encode_and_decode_set_message_version_three_three ... ok [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: `rust-async-tuyapi` (lib) generated 2 warnings [INFO] [stderr] warning: `rust-async-tuyapi` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_async_tuyapi-ee49d284f77dae24) [INFO] [stderr] Running tests/mesparse_integration.rs (/opt/rustwide/target/debug/deps/mesparse_integration-8fb4338982e7bcb0) [INFO] [stderr] Doc-tests rust_async_tuyapi [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 7) - compile ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e848403e8909f4225de99a838489ed47394099bd26b814e0179e91abcfb498ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e848403e8909f4225de99a838489ed47394099bd26b814e0179e91abcfb498ac", kill_on_drop: false }` [INFO] [stdout] e848403e8909f4225de99a838489ed47394099bd26b814e0179e91abcfb498ac