[INFO] cloning repository https://github.com/Mng-dev-ai/schemars [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mng-dev-ai/schemars" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMng-dev-ai%2Fschemars", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMng-dev-ai%2Fschemars'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 44681c2220ef9b8f9aa5b3ef7c18c15a58178c7e [INFO] checking Mng-dev-ai/schemars against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMng-dev-ai%2Fschemars" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mng-dev-ai/schemars 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 git repo https://github.com/Mng-dev-ai/schemars [INFO] finished tweaking git repo https://github.com/Mng-dev-ai/schemars [INFO] tweaked toml for git repo https://github.com/Mng-dev-ai/schemars written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Mng-dev-ai/schemars already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mimalloc v0.1.39 [INFO] [stderr] Downloaded speedate v0.13.0 [INFO] [stderr] Downloaded libmimalloc-sys v0.1.35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] d6fe394ffb89bfbaf2a909953e6f1c5f3ed214ac1d3982554711c8d83231ca72 [INFO] running `Command { std: "docker" "start" "-a" "d6fe394ffb89bfbaf2a909953e6f1c5f3ed214ac1d3982554711c8d83231ca72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6fe394ffb89bfbaf2a909953e6f1c5f3ed214ac1d3982554711c8d83231ca72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6fe394ffb89bfbaf2a909953e6f1c5f3ed214ac1d3982554711c8d83231ca72", kill_on_drop: false }` [INFO] [stdout] d6fe394ffb89bfbaf2a909953e6f1c5f3ed214ac1d3982554711c8d83231ca72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6906089885caa659500b5868f378b3df358ffe5c48bb3a51ebdcbbb65a638c22 [INFO] running `Command { std: "docker" "start" "-a" "6906089885caa659500b5868f378b3df358ffe5c48bb3a51ebdcbbb65a638c22", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.12 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking uuid v1.6.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling pyo3-build-config v0.20.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling libmimalloc-sys v0.1.35 [INFO] [stderr] Compiling pyo3-ffi v0.20.0 [INFO] [stderr] Compiling pyo3 v0.20.0 [INFO] [stderr] Checking mimalloc v0.1.39 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.0 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling pyo3-macros v0.20.0 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking speedate v0.13.0 [INFO] [stderr] Checking schemars v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.71s [INFO] running `Command { std: "docker" "inspect" "6906089885caa659500b5868f378b3df358ffe5c48bb3a51ebdcbbb65a638c22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6906089885caa659500b5868f378b3df358ffe5c48bb3a51ebdcbbb65a638c22", kill_on_drop: false }` [INFO] [stdout] 6906089885caa659500b5868f378b3df358ffe5c48bb3a51ebdcbbb65a638c22 [INFO] checking Mng-dev-ai/schemars against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMng-dev-ai%2Fschemars" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mng-dev-ai/schemars 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 git repo https://github.com/Mng-dev-ai/schemars [INFO] finished tweaking git repo https://github.com/Mng-dev-ai/schemars [INFO] tweaked toml for git repo https://github.com/Mng-dev-ai/schemars written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Mng-dev-ai/schemars already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 20af390f69169b47fdc1cb19f307447b59a837c2c6dbcd03024155472e7b4d16 [INFO] running `Command { std: "docker" "start" "-a" "20af390f69169b47fdc1cb19f307447b59a837c2c6dbcd03024155472e7b4d16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20af390f69169b47fdc1cb19f307447b59a837c2c6dbcd03024155472e7b4d16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20af390f69169b47fdc1cb19f307447b59a837c2c6dbcd03024155472e7b4d16", kill_on_drop: false }` [INFO] [stdout] 20af390f69169b47fdc1cb19f307447b59a837c2c6dbcd03024155472e7b4d16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a4a08bea1bd02dcc01de32d297b67d194d269cd0b756acbabcc4fc48d67875c8 [INFO] running `Command { std: "docker" "start" "-a" "a4a08bea1bd02dcc01de32d297b67d194d269cd0b756acbabcc4fc48d67875c8", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.12 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Checking uuid v1.6.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling pyo3-build-config v0.20.0 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling libmimalloc-sys v0.1.35 [INFO] [stderr] Compiling pyo3-ffi v0.20.0 [INFO] [stderr] Compiling pyo3 v0.20.0 [INFO] [stderr] Checking mimalloc v0.1.39 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.0 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling pyo3-macros v0.20.0 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking speedate v0.13.0 [INFO] [stderr] Checking schemars v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/errors.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/any.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / impl_py_methods!(Any, none, { [INFO] [stdout] 10 | | fn serialize(&self, _py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 11 | | Ok(value.into()) [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bool.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / impl_py_methods!(Bool, none, { [INFO] [stdout] 16 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 17 | | if let Ok(py_bool) = value.downcast::() { [INFO] [stdout] 18 | | return Ok(py_bool.into()); [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bytes.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Bytes, none, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_bytes) = value.downcast::() { [INFO] [stdout] 15 | | return Ok(py_bytes.into()); [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] 26 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/date.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / impl_py_methods!(Date, optional, { format: Option}, { [INFO] [stdout] 15 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 16 | | if let Ok(py_datetime) = value.downcast::() { [INFO] [stdout] 17 | | let py_date = py_datetime.call_method0(intern!(py, "date"))?; [INFO] [stdout] ... | [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/errors.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/any.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / impl_py_methods!(Any, none, { [INFO] [stdout] 10 | | fn serialize(&self, _py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 11 | | Ok(value.into()) [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/datetime.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / impl_py_methods!(DateTime, optional, { format: Option}, { [INFO] [stdout] 15 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 16 | | if let Ok(py_datetime) = value.downcast::() { [INFO] [stdout] 17 | | return self.format_and_return(py, py_datetime); [INFO] [stdout] ... | [INFO] [stdout] 82 | | } [INFO] [stdout] 83 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/decimal.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / impl_py_methods!(Decimal, none, { [INFO] [stdout] 17 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 18 | | if value.downcast::()?.getattr("quantize").is_ok() { [INFO] [stdout] 19 | | return Ok(value.to_string().to_object(py)); [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/dict.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Dict, optional, { child: Option}, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_dict) = value.downcast::() { [INFO] [stdout] 15 | | let dict = PyDict::new(py); [INFO] [stdout] ... | [INFO] [stdout] 40 | | [INFO] [stdout] 41 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bool.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / impl_py_methods!(Bool, none, { [INFO] [stdout] 16 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 17 | | if let Ok(py_bool) = value.downcast::() { [INFO] [stdout] 18 | | return Ok(py_bool.into()); [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/float.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Float, none, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_float) = value.downcast::() { [INFO] [stdout] 15 | | return Ok(py_float.into()); [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bytes.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Bytes, none, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_bytes) = value.downcast::() { [INFO] [stdout] 15 | | return Ok(py_bytes.into()); [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] 26 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/int.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Int, none, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_int) = value.downcast::() { [INFO] [stdout] 15 | | return Ok(py_int.into()); [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/list.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl_py_methods!(List, optional, { child: Option }, { [INFO] [stdout] 14 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 15 | | let as_list = |v: &PyAny| -> PyResult<_> { [INFO] [stdout] 16 | | match v.downcast::() { [INFO] [stdout] ... | [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/date.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / impl_py_methods!(Date, optional, { format: Option}, { [INFO] [stdout] 15 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 16 | | if let Ok(py_datetime) = value.downcast::() { [INFO] [stdout] 17 | | let py_date = py_datetime.call_method0(intern!(py, "date"))?; [INFO] [stdout] ... | [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/fields/method.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/datetime.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / impl_py_methods!(DateTime, optional, { format: Option}, { [INFO] [stdout] 15 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 16 | | if let Ok(py_datetime) = value.downcast::() { [INFO] [stdout] 17 | | return self.format_and_return(py, py_datetime); [INFO] [stdout] ... | [INFO] [stdout] 82 | | } [INFO] [stdout] 83 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/str.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl_py_methods!(Str, none, { [INFO] [stdout] 14 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 15 | | if let Ok(py_str) = value.downcast::() { [INFO] [stdout] 16 | | return Ok(py_str.into()); [INFO] [stdout] ... | [INFO] [stdout] 30 | | } [INFO] [stdout] 31 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/decimal.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / impl_py_methods!(Decimal, none, { [INFO] [stdout] 17 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 18 | | if value.downcast::()?.getattr("quantize").is_ok() { [INFO] [stdout] 19 | | return Ok(value.to_string().to_object(py)); [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/union.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Union, required, { fields: Vec }, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | for field in &self.fields { [INFO] [stdout] 15 | | if let Ok(py_field) = field.downcast::(py) { [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/dict.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Dict, optional, { child: Option}, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_dict) = value.downcast::() { [INFO] [stdout] 15 | | let dict = PyDict::new(py); [INFO] [stdout] ... | [INFO] [stdout] 40 | | [INFO] [stdout] 41 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/uuid.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl_py_methods!(Uuid, none, { [INFO] [stdout] 14 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 15 | | if let Ok(uuid_obj) = value.downcast::() { [INFO] [stdout] 16 | | if uuid_obj [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/float.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Float, none, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_float) = value.downcast::() { [INFO] [stdout] 15 | | return Ok(py_float.into()); [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / impl_py_methods!(Schema, required, { fields: HashMap, context: HashMap}, { [INFO] [stdout] 19 | | fn get_attr_value( [INFO] [stdout] 20 | | &self, [INFO] [stdout] 21 | | py: Python, [INFO] [stdout] ... | [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/int.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Int, none, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | if let Ok(py_int) = value.downcast::() { [INFO] [stdout] 15 | | return Ok(py_int.into()); [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/list.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl_py_methods!(List, optional, { child: Option }, { [INFO] [stdout] 14 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 15 | | let as_list = |v: &PyAny| -> PyResult<_> { [INFO] [stdout] 16 | | match v.downcast::() { [INFO] [stdout] ... | [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/fields/method.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/str.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl_py_methods!(Str, none, { [INFO] [stdout] 14 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 15 | | if let Ok(py_str) = value.downcast::() { [INFO] [stdout] 16 | | return Ok(py_str.into()); [INFO] [stdout] ... | [INFO] [stdout] 30 | | } [INFO] [stdout] 31 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/union.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl_py_methods!(Union, required, { fields: Vec }, { [INFO] [stdout] 13 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 14 | | for field in &self.fields { [INFO] [stdout] 15 | | if let Ok(py_field) = field.downcast::(py) { [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/fields/uuid.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl_py_methods!(Uuid, none, { [INFO] [stdout] 14 | | fn serialize(&self, py: Python, value: &PyAny) -> PyResult { [INFO] [stdout] 15 | | if let Ok(uuid_obj) = value.downcast::() { [INFO] [stdout] 16 | | if uuid_obj [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (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/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / impl_py_methods!(Schema, required, { fields: HashMap, context: HashMap}, { [INFO] [stdout] 19 | | fn get_attr_value( [INFO] [stdout] 20 | | &self, [INFO] [stdout] 21 | | py: Python, [INFO] [stdout] ... | [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `trampoline` and up 4 bodies [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 attribute macro `pymethods` which comes from the expansion of the macro `impl_py_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `schemars` (lib) due to 17 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `schemars` (lib test) due to 17 previous errors [INFO] running `Command { std: "docker" "inspect" "a4a08bea1bd02dcc01de32d297b67d194d269cd0b756acbabcc4fc48d67875c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4a08bea1bd02dcc01de32d297b67d194d269cd0b756acbabcc4fc48d67875c8", kill_on_drop: false }` [INFO] [stdout] a4a08bea1bd02dcc01de32d297b67d194d269cd0b756acbabcc4fc48d67875c8