[INFO] fetching crate kubewarden-policy-sdk 0.9.8... [INFO] checking kubewarden-policy-sdk-0.9.8 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] extracting crate kubewarden-policy-sdk 0.9.8 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate kubewarden-policy-sdk 0.9.8 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate kubewarden-policy-sdk 0.9.8 [INFO] finished tweaking crates.io crate kubewarden-policy-sdk 0.9.8 [INFO] tweaked toml for crates.io crate kubewarden-policy-sdk 0.9.8 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-executor v0.3.30 [INFO] [stderr] Downloaded serde-value v0.7.0 [INFO] [stderr] Downloaded predicates-core v1.0.6 [INFO] [stderr] Downloaded termtree v0.4.1 [INFO] [stderr] Downloaded slog v2.7.0 [INFO] [stderr] Downloaded dashmap v5.5.3 [INFO] [stderr] Downloaded serial_test_derive v2.0.0 [INFO] [stderr] Downloaded downcast v0.11.0 [INFO] [stderr] Downloaded mockall v0.11.4 [INFO] [stderr] Downloaded ordered-float v2.10.1 [INFO] [stderr] Downloaded assert-json-diff v2.0.2 [INFO] [stderr] Downloaded futures v0.3.30 [INFO] [stderr] Downloaded unsafe-libyaml v0.2.10 [INFO] [stderr] Downloaded jsonpath_lib v0.3.0 [INFO] [stderr] Downloaded serde_yaml v0.9.31 [INFO] [stderr] Downloaded mockall_derive v0.11.4 [INFO] [stderr] Downloaded k8s-openapi v0.20.0 [INFO] [stderr] Downloaded wapc-guest v1.1.0 [INFO] [stderr] Downloaded serial_test v2.0.0 [INFO] [stderr] Downloaded difflib v0.4.0 [INFO] [stderr] Downloaded predicates-tree v1.0.9 [INFO] [stderr] Downloaded fragile v2.0.0 [INFO] [stderr] Downloaded normalize-line-endings v0.3.0 [INFO] [stderr] Downloaded base64 v0.21.7 [INFO] [stderr] Downloaded predicates v2.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 37268b97d0df6b0516a8313e1729f26eeed4b689ed3cc302baf6f06ff7dece56 [INFO] running `Command { std: "docker" "start" "-a" "37268b97d0df6b0516a8313e1729f26eeed4b689ed3cc302baf6f06ff7dece56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37268b97d0df6b0516a8313e1729f26eeed4b689ed3cc302baf6f06ff7dece56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37268b97d0df6b0516a8313e1729f26eeed4b689ed3cc302baf6f06ff7dece56", kill_on_drop: false }` [INFO] [stdout] 37268b97d0df6b0516a8313e1729f26eeed4b689ed3cc302baf6f06ff7dece56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b41bf54fe43c08628d3c644e1c94eecaef4ec9953c045420c06e097bfb0398f0 [INFO] running `Command { std: "docker" "start" "-a" "b41bf54fe43c08628d3c644e1c94eecaef4ec9953c045420c06e097bfb0398f0", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling k8s-openapi v0.20.0 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking unsafe-libyaml v0.2.10 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking wapc-guest v1.1.0 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling serial_test_derive v2.0.0 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serial_test v2.0.0 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking predicates v2.1.5 [INFO] [stderr] Checking mockall v0.11.4 [INFO] [stderr] Checking chrono v0.4.33 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking serde_yaml v0.9.31 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking jsonpath_lib v0.3.0 [INFO] [stderr] Checking kubewarden-policy-sdk v0.9.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.58s [INFO] running `Command { std: "docker" "inspect" "b41bf54fe43c08628d3c644e1c94eecaef4ec9953c045420c06e097bfb0398f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b41bf54fe43c08628d3c644e1c94eecaef4ec9953c045420c06e097bfb0398f0", kill_on_drop: false }` [INFO] [stdout] b41bf54fe43c08628d3c644e1c94eecaef4ec9953c045420c06e097bfb0398f0 [INFO] checking kubewarden-policy-sdk-0.9.8 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] extracting crate kubewarden-policy-sdk 0.9.8 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate kubewarden-policy-sdk 0.9.8 on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate kubewarden-policy-sdk 0.9.8 [INFO] finished tweaking crates.io crate kubewarden-policy-sdk 0.9.8 [INFO] tweaked toml for crates.io crate kubewarden-policy-sdk 0.9.8 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3147bc52722608532f5d37a5c69abee953816f408a24932084dbef19ffde19b [INFO] running `Command { std: "docker" "start" "-a" "c3147bc52722608532f5d37a5c69abee953816f408a24932084dbef19ffde19b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3147bc52722608532f5d37a5c69abee953816f408a24932084dbef19ffde19b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3147bc52722608532f5d37a5c69abee953816f408a24932084dbef19ffde19b", kill_on_drop: false }` [INFO] [stdout] c3147bc52722608532f5d37a5c69abee953816f408a24932084dbef19ffde19b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28e79f7f9a49c15e0b63315591c742bfcaecd11bfce4ffe8562a00d4c851a042 [INFO] running `Command { std: "docker" "start" "-a" "28e79f7f9a49c15e0b63315591c742bfcaecd11bfce4ffe8562a00d4c851a042", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling k8s-openapi v0.20.0 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking unsafe-libyaml v0.2.10 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking wapc-guest v1.1.0 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling serial_test_derive v2.0.0 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serial_test v2.0.0 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Checking predicates v2.1.5 [INFO] [stderr] Checking mockall v0.11.4 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking chrono v0.4.33 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking serde_yaml v0.9.31 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking jsonpath_lib v0.3.0 [INFO] [stderr] Checking kubewarden-policy-sdk v0.9.8 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/metadata.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Deserialize, Serialize, Debug, Clone, FromPrimitive, ToPrimitive, PartialEq, Eq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_ProtocolVersion` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/metadata.rs:10:63 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Deserialize, Serialize, Debug, Clone, FromPrimitive, ToPrimitive, PartialEq, Eq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_ProtocolVersion` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kubewarden-policy-sdk` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/metadata.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Deserialize, Serialize, Debug, Clone, FromPrimitive, ToPrimitive, PartialEq, Eq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_ProtocolVersion` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/metadata.rs:10:63 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Deserialize, Serialize, Debug, Clone, FromPrimitive, ToPrimitive, PartialEq, Eq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_ProtocolVersion` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kubewarden-policy-sdk` (lib test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "28e79f7f9a49c15e0b63315591c742bfcaecd11bfce4ffe8562a00d4c851a042", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28e79f7f9a49c15e0b63315591c742bfcaecd11bfce4ffe8562a00d4c851a042", kill_on_drop: false }` [INFO] [stdout] 28e79f7f9a49c15e0b63315591c742bfcaecd11bfce4ffe8562a00d4c851a042