[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/44681c2220ef9b8f9aa5b3ef7c18c15a58178c7e against master#38352b01ae4af9300be03b805d6db68c45e51068 for pr-129864 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMng-dev-ai%2Fschemars" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mng-dev-ai/schemars on toolchain 38352b01ae4af9300be03b805d6db68c45e51068 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "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-0-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" "+38352b01ae4af9300be03b805d6db68c45e51068" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rkyv v0.7.42 [INFO] [stderr] Downloaded pyo3-macros v0.20.0 [INFO] [stderr] Downloaded ahash v0.8.6 [INFO] [stderr] Downloaded pyo3-ffi v0.20.0 [INFO] [stderr] Downloaded pyo3-macros-backend v0.20.0 [INFO] [stderr] Downloaded pyo3-build-config v0.20.0 [INFO] [stderr] Downloaded rust_decimal v1.32.0 [INFO] [stderr] Downloaded zerocopy v0.7.25 [INFO] [stderr] Downloaded rkyv_derive v0.7.42 [INFO] [stderr] Downloaded speedate v0.13.0 [INFO] [stderr] Downloaded pyo3 v0.20.0 [INFO] [stderr] Downloaded zerocopy-derive v0.7.25 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5e4009207e1ae7d27c5ce0c9da44d5a8aa47f848a67f0b9f4e3d3eb82330999 [INFO] running `Command { std: "docker" "start" "-a" "a5e4009207e1ae7d27c5ce0c9da44d5a8aa47f848a67f0b9f4e3d3eb82330999", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5e4009207e1ae7d27c5ce0c9da44d5a8aa47f848a67f0b9f4e3d3eb82330999", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5e4009207e1ae7d27c5ce0c9da44d5a8aa47f848a67f0b9f4e3d3eb82330999", kill_on_drop: false }` [INFO] [stdout] a5e4009207e1ae7d27c5ce0c9da44d5a8aa47f848a67f0b9f4e3d3eb82330999 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be5a736a418fe45b150dfba1e82060f3c9d8d03f2c3ac907a393aafb4129755c [INFO] running `Command { std: "docker" "start" "-a" "be5a736a418fe45b150dfba1e82060f3c9d8d03f2c3ac907a393aafb4129755c", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.12 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling lock_api v0.4.11 [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] Compiling rust_decimal v1.32.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling pyo3-build-config v0.20.0 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking uuid v1.6.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] Checking strum v0.25.0 [INFO] [stderr] Checking speedate v0.13.0 [INFO] [stderr] Compiling pyo3-macros v0.20.0 [INFO] [stderr] Checking schemars v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/errors.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 9 | impl ValidationError { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | `ValidationError` is not local [INFO] [stdout] | `ValidationError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/any.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl_py_methods!(Any, none, { [INFO] [stdout] | - --- [INFO] [stdout] | | | [INFO] [stdout] | | `Any` is not local [INFO] [stdout] | _| `Any` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bool.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl_py_methods!(Bool, none, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Bool` is not local [INFO] [stdout] | _| `Bool` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bytes.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Bytes, none, { [INFO] [stdout] | - ----- [INFO] [stdout] | | | [INFO] [stdout] | | `Bytes` is not local [INFO] [stdout] | _| `Bytes` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/date.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl_py_methods!(Date, optional, { format: Option}, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Date` is not local [INFO] [stdout] | _| `Date` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/datetime.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl_py_methods!(DateTime, optional, { format: Option}, { [INFO] [stdout] | - -------- [INFO] [stdout] | | | [INFO] [stdout] | | `DateTime` is not local [INFO] [stdout] | _| `DateTime` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/decimal.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl_py_methods!(Decimal, none, { [INFO] [stdout] | - ------- [INFO] [stdout] | | | [INFO] [stdout] | | `Decimal` is not local [INFO] [stdout] | _| `Decimal` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/dict.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Dict, optional, { child: Option}, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Dict` is not local [INFO] [stdout] | _| `Dict` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/float.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Float, none, { [INFO] [stdout] | - ----- [INFO] [stdout] | | | [INFO] [stdout] | | `Float` is not local [INFO] [stdout] | _| `Float` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/int.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Int, none, { [INFO] [stdout] | - --- [INFO] [stdout] | | | [INFO] [stdout] | | `Int` is not local [INFO] [stdout] | _| `Int` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/list.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl_py_methods!(List, optional, { child: Option }, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `List` is not local [INFO] [stdout] | _| `List` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/fields/method.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 11 | impl Method { [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | `Method` is not local [INFO] [stdout] | `Method` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/str.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl_py_methods!(Str, none, { [INFO] [stdout] | - --- [INFO] [stdout] | | | [INFO] [stdout] | | `Str` is not local [INFO] [stdout] | _| `Str` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/errors.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 9 | impl ValidationError { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | `ValidationError` is not local [INFO] [stdout] | `ValidationError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/union.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Union, required, { fields: Vec }, { [INFO] [stdout] | - ----- [INFO] [stdout] | | | [INFO] [stdout] | | `Union` is not local [INFO] [stdout] | _| `Union` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/uuid.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl_py_methods!(Uuid, none, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Uuid` is not local [INFO] [stdout] | _| `Uuid` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl_py_methods!(Schema, required, { fields: HashMap, context: HashMap}, { [INFO] [stdout] | - ------ [INFO] [stdout] | | | [INFO] [stdout] | | `Schema` is not local [INFO] [stdout] | _| `Schema` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/any.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl_py_methods!(Any, none, { [INFO] [stdout] | - --- [INFO] [stdout] | | | [INFO] [stdout] | | `Any` is not local [INFO] [stdout] | _| `Any` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bool.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl_py_methods!(Bool, none, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Bool` is not local [INFO] [stdout] | _| `Bool` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/bytes.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Bytes, none, { [INFO] [stdout] | - ----- [INFO] [stdout] | | | [INFO] [stdout] | | `Bytes` is not local [INFO] [stdout] | _| `Bytes` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/date.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl_py_methods!(Date, optional, { format: Option}, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Date` is not local [INFO] [stdout] | _| `Date` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/datetime.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl_py_methods!(DateTime, optional, { format: Option}, { [INFO] [stdout] | - -------- [INFO] [stdout] | | | [INFO] [stdout] | | `DateTime` is not local [INFO] [stdout] | _| `DateTime` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/decimal.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl_py_methods!(Decimal, none, { [INFO] [stdout] | - ------- [INFO] [stdout] | | | [INFO] [stdout] | | `Decimal` is not local [INFO] [stdout] | _| `Decimal` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/dict.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Dict, optional, { child: Option}, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Dict` is not local [INFO] [stdout] | _| `Dict` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/float.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Float, none, { [INFO] [stdout] | - ----- [INFO] [stdout] | | | [INFO] [stdout] | | `Float` is not local [INFO] [stdout] | _| `Float` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/int.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Int, none, { [INFO] [stdout] | - --- [INFO] [stdout] | | | [INFO] [stdout] | | `Int` is not local [INFO] [stdout] | _| `Int` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/list.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl_py_methods!(List, optional, { child: Option }, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `List` is not local [INFO] [stdout] | _| `List` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/fields/method.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 11 | impl Method { [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | `Method` is not local [INFO] [stdout] | `Method` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/str.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl_py_methods!(Str, none, { [INFO] [stdout] | - --- [INFO] [stdout] | | | [INFO] [stdout] | | `Str` is not local [INFO] [stdout] | _| `Str` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/union.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl_py_methods!(Union, required, { fields: Vec }, { [INFO] [stdout] | - ----- [INFO] [stdout] | | | [INFO] [stdout] | | `Union` is not local [INFO] [stdout] | _| `Union` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/fields/uuid.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl_py_methods!(Uuid, none, { [INFO] [stdout] | - ---- [INFO] [stdout] | | | [INFO] [stdout] | | `Uuid` is not local [INFO] [stdout] | _| `Uuid` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/macros.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl_py_methods!(Schema, required, { fields: HashMap, context: HashMap}, { [INFO] [stdout] | - ------ [INFO] [stdout] | | | [INFO] [stdout] | | `Schema` is not local [INFO] [stdout] | _| `Schema` is not local [INFO] [stdout] | | [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] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning 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] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.50s [INFO] running `Command { std: "docker" "inspect" "be5a736a418fe45b150dfba1e82060f3c9d8d03f2c3ac907a393aafb4129755c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be5a736a418fe45b150dfba1e82060f3c9d8d03f2c3ac907a393aafb4129755c", kill_on_drop: false }` [INFO] [stdout] be5a736a418fe45b150dfba1e82060f3c9d8d03f2c3ac907a393aafb4129755c