[INFO] fetching crate rigetti-pyo3 0.4.4... [INFO] testing rigetti-pyo3-0.4.4 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rigetti-pyo3 0.4.4 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate rigetti-pyo3 0.4.4 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rigetti-pyo3 0.4.4 [INFO] tweaked toml for crates.io crate rigetti-pyo3 0.4.4 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rigetti-pyo3 0.4.4 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rigetti-pyo3 0.4.4 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded inventory v0.3.21 [INFO] [stderr] Downloaded wasi v0.14.5+wasi-0.2.4 [INFO] [stderr] Downloaded pyo3-macros v0.20.3 [INFO] [stderr] Downloaded pyo3-build-config v0.20.3 [INFO] [stderr] Downloaded internment v0.8.6 [INFO] [stderr] Downloaded wit-bindgen v0.45.1 [INFO] [stderr] Downloaded pyo3-ffi v0.20.3 [INFO] [stderr] Downloaded pyo3-macros-backend v0.20.3 [INFO] [stderr] Downloaded wasip2 v1.0.0+wasi-0.2.4 [INFO] [stderr] Downloaded pyo3 v0.20.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66459e107069bce5a5732ae4b3ceadc5bc73579e51dfa3a5dc77fdac4aea0aae [INFO] running `Command { std: "docker" "start" "-a" "66459e107069bce5a5732ae4b3ceadc5bc73579e51dfa3a5dc77fdac4aea0aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66459e107069bce5a5732ae4b3ceadc5bc73579e51dfa3a5dc77fdac4aea0aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66459e107069bce5a5732ae4b3ceadc5bc73579e51dfa3a5dc77fdac4aea0aae", kill_on_drop: false }` [INFO] [stdout] 66459e107069bce5a5732ae4b3ceadc5bc73579e51dfa3a5dc77fdac4aea0aae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f41153b2cb39a256fa95048b92c007a99207700be33dabc5bd6f4228786a287d [INFO] running `Command { std: "docker" "start" "-a" "f41153b2cb39a256fa95048b92c007a99207700be33dabc5bd6f4228786a287d", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling inventory v0.3.21 [INFO] [stderr] Compiling unindent v0.2.4 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling internment v0.8.6 [INFO] [stderr] Compiling pyo3-ffi v0.20.3 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Compiling rigetti-pyo3 v0.4.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.37s [INFO] running `Command { std: "docker" "inspect" "f41153b2cb39a256fa95048b92c007a99207700be33dabc5bd6f4228786a287d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f41153b2cb39a256fa95048b92c007a99207700be33dabc5bd6f4228786a287d", kill_on_drop: false }` [INFO] [stdout] f41153b2cb39a256fa95048b92c007a99207700be33dabc5bd6f4228786a287d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94d8f8e95a97abce994d9e74b791eaa7b7f7545a5e73f5c5d24ff4c9f12d39ae [INFO] running `Command { std: "docker" "start" "-a" "94d8f8e95a97abce994d9e74b791eaa7b7f7545a5e73f5c5d24ff4c9f12d39ae", kill_on_drop: false }` [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Compiling rigetti-pyo3 v0.4.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> tests/wrapper_tests/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / py_wrap_union_enum! { [INFO] [stdout] 36 | | PyTestUnionEnum(TestUnionEnum) as "TestUnionEnum" { [INFO] [stdout] | | --------------- [INFO] [stdout] | | | [INFO] [stdout] | | `PyTestUnionEnum` is not local [INFO] [stdout] | | `PyTestUnionEnum` is not local [INFO] [stdout] 37 | | unit: Unit, [INFO] [stdout] 38 | | string: String => String [INFO] [stdout] 39 | | } [INFO] [stdout] 40 | | } [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] = note: the attribute macro `$crate::pyo3::pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `$crate::pyo3::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: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `$crate::pyo3::pymethods` which comes from the expansion of the macro `py_wrap_union_enum` (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] --> tests/wrapper_tests/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | #[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] 64 | impl PyTestStruct { [INFO] [stdout] | ------------ [INFO] [stdout] | | [INFO] [stdout] | `PyTestStruct` is not local [INFO] [stdout] | `PyTestStruct` 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 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] --> examples/yak_shaving.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | / py_wrap_struct! { [INFO] [stdout] 133 | | PyYak(Yak) as "Yak" { [INFO] [stdout] | | ----- [INFO] [stdout] | | | [INFO] [stdout] | | `PyYak` is not local [INFO] [stdout] | | `PyYak` is not local [INFO] [stdout] 134 | | py -> rs { [INFO] [stdout] 135 | | py_dict: Py => Yak { [INFO] [stdout] ... | [INFO] [stdout] 158 | | } [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] = note: the attribute macro `$crate::pyo3::pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `$crate::pyo3::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: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `$crate::pyo3::pymethods` which comes from the expansion of the macro `py_wrap_struct` (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] --> examples/yak_shaving.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | #[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] 177 | impl PyShears { [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | `PyShears` is not local [INFO] [stdout] | `PyShears` 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 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] --> examples/yak_shaving.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | #[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] 192 | impl PyClippers { [INFO] [stdout] | ---------- [INFO] [stdout] | | [INFO] [stdout] | `PyClippers` is not local [INFO] [stdout] | `PyClippers` 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 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] --> examples/yak_shaving.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 207 | / py_wrap_union_enum! { [INFO] [stdout] 208 | | PyCuttingTool(CuttingTool) as "CuttingTool" { [INFO] [stdout] | | ------------- [INFO] [stdout] | | | [INFO] [stdout] | | `PyCuttingTool` is not local [INFO] [stdout] | | `PyCuttingTool` is not local [INFO] [stdout] 209 | | shears: Shears => PyShears, [INFO] [stdout] 210 | | clippers: Clippers => PyClippers [INFO] [stdout] 211 | | } [INFO] [stdout] 212 | | } [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] = note: the attribute macro `$crate::pyo3::pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `$crate::pyo3::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 warning originates in the attribute macro `$crate::pyo3::pymethods` which comes from the expansion of the macro `py_wrap_union_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.01s [INFO] running `Command { std: "docker" "inspect" "94d8f8e95a97abce994d9e74b791eaa7b7f7545a5e73f5c5d24ff4c9f12d39ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94d8f8e95a97abce994d9e74b791eaa7b7f7545a5e73f5c5d24ff4c9f12d39ae", kill_on_drop: false }` [INFO] [stdout] 94d8f8e95a97abce994d9e74b791eaa7b7f7545a5e73f5c5d24ff4c9f12d39ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 825ff7792118fb9b04c58745bb7f76e3bcc4f6c78f0bdecba1df854bc6efb736 [INFO] running `Command { std: "docker" "start" "-a" "825ff7792118fb9b04c58745bb7f76e3bcc4f6c78f0bdecba1df854bc6efb736", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/yak_shaving.rs:132:5 [INFO] [stderr] | [INFO] [stderr] 132 | / py_wrap_struct! { [INFO] [stderr] 133 | | PyYak(Yak) as "Yak" { [INFO] [stderr] | | ----- [INFO] [stderr] | | | [INFO] [stderr] | | `PyYak` is not local [INFO] [stderr] | | `PyYak` is not local [INFO] [stderr] 134 | | py -> rs { [INFO] [stderr] 135 | | py_dict: Py => Yak { [INFO] [stderr] ... | [INFO] [stderr] 158 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `PyClassImplCollector` is not local [INFO] [stderr] | |_____`PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `$crate::pyo3::pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the attribute macro `$crate::pyo3::pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the attribute macro `$crate::pyo3::pymethods` which comes from the expansion of the macro `py_wrap_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/yak_shaving.rs:176:5 [INFO] [stderr] | [INFO] [stderr] 176 | #[pymethods] [INFO] [stderr] | -^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `PyClassImplCollector` is not local [INFO] [stderr] | `PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] 177 | impl PyShears { [INFO] [stderr] | -------- [INFO] [stderr] | | [INFO] [stderr] | `PyShears` is not local [INFO] [stderr] | `PyShears` is not local [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/yak_shaving.rs:191:5 [INFO] [stderr] | [INFO] [stderr] 191 | #[pymethods] [INFO] [stderr] | -^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `PyClassImplCollector` is not local [INFO] [stderr] | `PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] 192 | impl PyClippers { [INFO] [stderr] | ---------- [INFO] [stderr] | | [INFO] [stderr] | `PyClippers` is not local [INFO] [stderr] | `PyClippers` is not local [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> examples/yak_shaving.rs:207:5 [INFO] [stderr] | [INFO] [stderr] 207 | / py_wrap_union_enum! { [INFO] [stderr] 208 | | PyCuttingTool(CuttingTool) as "CuttingTool" { [INFO] [stderr] | | ------------- [INFO] [stderr] | | | [INFO] [stderr] | | `PyCuttingTool` is not local [INFO] [stderr] | | `PyCuttingTool` is not local [INFO] [stderr] 209 | | shears: Shears => PyShears, [INFO] [stderr] 210 | | clippers: Clippers => PyClippers [INFO] [stderr] 211 | | } [INFO] [stderr] 212 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `PyClassImplCollector` is not local [INFO] [stderr] | |_____`PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `$crate::pyo3::pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the attribute macro `$crate::pyo3::pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: this warning originates in the attribute macro `$crate::pyo3::pymethods` which comes from the expansion of the macro `py_wrap_union_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/wrapper_tests/mod.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / py_wrap_union_enum! { [INFO] [stderr] 36 | | PyTestUnionEnum(TestUnionEnum) as "TestUnionEnum" { [INFO] [stderr] | | --------------- [INFO] [stderr] | | | [INFO] [stderr] | | `PyTestUnionEnum` is not local [INFO] [stderr] | | `PyTestUnionEnum` is not local [INFO] [stderr] 37 | | unit: Unit, [INFO] [stderr] 38 | | string: String => String [INFO] [stderr] 39 | | } [INFO] [stderr] 40 | | } [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `PyClassImplCollector` is not local [INFO] [stderr] | |_____`PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `$crate::pyo3::pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the attribute macro `$crate::pyo3::pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the attribute macro `$crate::pyo3::pymethods` which comes from the expansion of the macro `py_wrap_union_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> tests/wrapper_tests/mod.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | #[pymethods] [INFO] [stderr] | -^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `PyClassImplCollector` is not local [INFO] [stderr] | `PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] 64 | impl PyTestStruct { [INFO] [stderr] | ------------ [INFO] [stderr] | | [INFO] [stderr] | `PyTestStruct` is not local [INFO] [stderr] | `PyTestStruct` is not local [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rigetti-pyo3` (example "yak_shaving") generated 4 warnings [INFO] [stderr] warning: `rigetti-pyo3` (test "tests") generated 2 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rigetti_pyo3-1219863b12b83c8d) [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-b934c4cb624fef47) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_enum_as_data_struct_member ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stderr] Doc-tests rigetti_pyo3 [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/wrappers.rs - wrappers::wrap_error (line 764) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_error (line 25) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_simple_enum (line 201) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_type (line 74) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_data_struct (line 860) ... ok [INFO] [stdout] test src/lib.rs - create_init_submodule (line 170) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_struct (line 337) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_union_enum (line 530) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.56s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "825ff7792118fb9b04c58745bb7f76e3bcc4f6c78f0bdecba1df854bc6efb736", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "825ff7792118fb9b04c58745bb7f76e3bcc4f6c78f0bdecba1df854bc6efb736", kill_on_drop: false }` [INFO] [stdout] 825ff7792118fb9b04c58745bb7f76e3bcc4f6c78f0bdecba1df854bc6efb736