[INFO] fetching crate gs11n 0.3.1... [INFO] checking gs11n-0.3.1 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] extracting crate gs11n 0.3.1 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate gs11n 0.3.1 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 gs11n 0.3.1 [INFO] finished tweaking crates.io crate gs11n 0.3.1 [INFO] tweaked toml for crates.io crate gs11n 0.3.1 written to /workspace/builds/worker-7-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] 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 semver v0.9.0 [INFO] [stderr] Downloaded toml v0.5.11 [INFO] [stderr] Downloaded rustc-hash v1.1.0 [INFO] [stderr] Downloaded semver-parser v0.7.0 [INFO] [stderr] Downloaded test-cdylib v1.1.0 [INFO] [stderr] Downloaded cargo_metadata v0.9.1 [INFO] [stderr] Downloaded ctor v0.1.26 [INFO] [stderr] Downloaded libloading v0.7.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 676323c52406931a9f95ef6bf70a3b771e775dccf33b77083a4badbdcdad9aa3 [INFO] running `Command { std: "docker" "start" "-a" "676323c52406931a9f95ef6bf70a3b771e775dccf33b77083a4badbdcdad9aa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "676323c52406931a9f95ef6bf70a3b771e775dccf33b77083a4badbdcdad9aa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "676323c52406931a9f95ef6bf70a3b771e775dccf33b77083a4badbdcdad9aa3", kill_on_drop: false }` [INFO] [stdout] 676323c52406931a9f95ef6bf70a3b771e775dccf33b77083a4badbdcdad9aa3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 23399856d7b169237d0201127af53587784eb16f2e46622c0a902a0bd1520c79 [INFO] running `Command { std: "docker" "start" "-a" "23399856d7b169237d0201127af53587784eb16f2e46622c0a902a0bd1520c79", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stderr] Checking gs11n v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem::MaybeUninit` [INFO] [stdout] --> src/serialization/encoder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::MaybeUninit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaybeUninit` [INFO] [stdout] --> src/types/string.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem::{size_of, MaybeUninit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking cargo_metadata v0.9.1 [INFO] [stderr] Checking test-cdylib v1.1.0 [INFO] [stdout] warning: unused import: `std::mem::MaybeUninit` [INFO] [stdout] --> src/serialization/encoder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::MaybeUninit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaybeUninit` [INFO] [stdout] --> src/types/string.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem::{size_of, MaybeUninit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.83s [INFO] running `Command { std: "docker" "inspect" "23399856d7b169237d0201127af53587784eb16f2e46622c0a902a0bd1520c79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23399856d7b169237d0201127af53587784eb16f2e46622c0a902a0bd1520c79", kill_on_drop: false }` [INFO] [stdout] 23399856d7b169237d0201127af53587784eb16f2e46622c0a902a0bd1520c79 [INFO] checking gs11n-0.3.1 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] extracting crate gs11n 0.3.1 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate gs11n 0.3.1 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 gs11n 0.3.1 [INFO] finished tweaking crates.io crate gs11n 0.3.1 [INFO] tweaked toml for crates.io crate gs11n 0.3.1 written to /workspace/builds/worker-7-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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] b9e13004b31e4335056c759dc3544077d44270077d832f014888d1cfd0147daf [INFO] running `Command { std: "docker" "start" "-a" "b9e13004b31e4335056c759dc3544077d44270077d832f014888d1cfd0147daf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9e13004b31e4335056c759dc3544077d44270077d832f014888d1cfd0147daf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9e13004b31e4335056c759dc3544077d44270077d832f014888d1cfd0147daf", kill_on_drop: false }` [INFO] [stdout] b9e13004b31e4335056c759dc3544077d44270077d832f014888d1cfd0147daf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 5d3c9a3de3ad76319f895ccf1bc68fb2433884e77e8b91995f695e65fdacc24d [INFO] running `Command { std: "docker" "start" "-a" "5d3c9a3de3ad76319f895ccf1bc68fb2433884e77e8b91995f695e65fdacc24d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stderr] Checking gs11n v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem::MaybeUninit` [INFO] [stdout] --> src/serialization/encoder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::MaybeUninit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaybeUninit` [INFO] [stdout] --> src/types/string.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem::{size_of, MaybeUninit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking cargo_metadata v0.9.1 [INFO] [stderr] Checking test-cdylib v1.1.0 [INFO] [stdout] warning: unused import: `std::mem::MaybeUninit` [INFO] [stdout] --> src/serialization/encoder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem::MaybeUninit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaybeUninit` [INFO] [stdout] --> src/types/string.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem::{size_of, MaybeUninit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/plugin_test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / impl dyn ToString { [INFO] [stdout] 21 | | #[doc(hidden)] [INFO] [stdout] 22 | | pub fn register_type(id: usize, decoder: gs11n::dynamic::DecodeFn) { [INFO] [stdout] 23 | | let mut v_table = VTABLE.write().unwrap(); [INFO] [stdout] 24 | | v_table.insert(id, decoder); [INFO] [stdout] 25 | | } [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/plugin_test.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | impl gs11n::WireTypeTrait for Box {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/plugin_test.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / impl gs11n::Serialization for Box { [INFO] [stdout] 29 | | fn encode(&self, ptr: &mut *mut u8, meta_data: &mut gs11n::meta_data::Metadata) { [INFO] [stdout] 30 | | self.type_id().encode(ptr, meta_data); [INFO] [stdout] 31 | | self.dyn_encode(ptr, meta_data) [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/plugin_test.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / impl gs11n::DeSerialization for Box { [INFO] [stdout] 38 | | fn decode( [INFO] [stdout] 39 | | ptr: &mut *const u8, [INFO] [stdout] 40 | | ctx: &gs11n::decoder::DecodeContext, [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gs11n` (test "plugin_test") due to 5 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] --> tests/dynamic_test.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / impl dyn ToString { [INFO] [stdout] 20 | | #[doc(hidden)] [INFO] [stdout] 21 | | pub fn register_type(id: usize, decoder: gs11n::dynamic::DecodeFn) { [INFO] [stdout] 22 | | let mut v_table = VTABLE.write().unwrap(); [INFO] [stdout] 23 | | v_table.insert(id, decoder); [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/dynamic_test.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | impl gs11n::WireTypeTrait for Box {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/dynamic_test.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / impl gs11n::Serialization for Box { [INFO] [stdout] 30 | | fn encode(&self, ptr: &mut *mut u8, meta_data: &mut gs11n::meta_data::Metadata) { [INFO] [stdout] 31 | | self.type_id().encode(ptr, meta_data); [INFO] [stdout] 32 | | self.dyn_encode(ptr, meta_data) [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/dynamic_test.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / impl gs11n::DeSerialization for Box { [INFO] [stdout] 40 | | fn decode( [INFO] [stdout] 41 | | ptr: &mut *const u8, [INFO] [stdout] 42 | | ctx: &gs11n::decoder::DecodeContext, [INFO] [stdout] ... | [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_DYN_METADATA_FOR_TO_STRING` [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] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gs11n` (test "dynamic_test") due to 5 previous errors [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5d3c9a3de3ad76319f895ccf1bc68fb2433884e77e8b91995f695e65fdacc24d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d3c9a3de3ad76319f895ccf1bc68fb2433884e77e8b91995f695e65fdacc24d", kill_on_drop: false }` [INFO] [stdout] 5d3c9a3de3ad76319f895ccf1bc68fb2433884e77e8b91995f695e65fdacc24d