[INFO] fetching crate rigetti-pyo3 0.4.3... [INFO] testing rigetti-pyo3-0.4.3 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate rigetti-pyo3 0.4.3 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate rigetti-pyo3 0.4.3 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rigetti-pyo3 0.4.3 [INFO] tweaked toml for crates.io crate rigetti-pyo3 0.4.3 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rigetti-pyo3 0.4.3 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rigetti-pyo3 0.4.3 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c0a77b06f8afc0969a502db32e49c118bf8ac10df01f39ba2f6ab9e9f9a4790 [INFO] running `Command { std: "docker" "start" "-a" "6c0a77b06f8afc0969a502db32e49c118bf8ac10df01f39ba2f6ab9e9f9a4790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c0a77b06f8afc0969a502db32e49c118bf8ac10df01f39ba2f6ab9e9f9a4790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c0a77b06f8afc0969a502db32e49c118bf8ac10df01f39ba2f6ab9e9f9a4790", kill_on_drop: false }` [INFO] [stdout] 6c0a77b06f8afc0969a502db32e49c118bf8ac10df01f39ba2f6ab9e9f9a4790 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb3e15c908a953a436b781976c90b1dd3f443958158f5305fafc11d984c154e3 [INFO] running `Command { std: "docker" "start" "-a" "cb3e15c908a953a436b781976c90b1dd3f443958158f5305fafc11d984c154e3", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling portable-atomic v1.11.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling unindent v0.2.4 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling inventory v0.3.20 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling time v0.3.37 [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.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.26s [INFO] running `Command { std: "docker" "inspect" "cb3e15c908a953a436b781976c90b1dd3f443958158f5305fafc11d984c154e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb3e15c908a953a436b781976c90b1dd3f443958158f5305fafc11d984c154e3", kill_on_drop: false }` [INFO] [stdout] cb3e15c908a953a436b781976c90b1dd3f443958158f5305fafc11d984c154e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0b2b3054be7affadf16ede58391b98faa767413940ae99706abc4da457a9747 [INFO] running `Command { std: "docker" "start" "-a" "a0b2b3054be7affadf16ede58391b98faa767413940ae99706abc4da457a9747", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Compiling rigetti-pyo3 v0.4.3 (/opt/rustwide/workdir) [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] [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 18.55s [INFO] running `Command { std: "docker" "inspect" "a0b2b3054be7affadf16ede58391b98faa767413940ae99706abc4da457a9747", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0b2b3054be7affadf16ede58391b98faa767413940ae99706abc4da457a9747", kill_on_drop: false }` [INFO] [stdout] a0b2b3054be7affadf16ede58391b98faa767413940ae99706abc4da457a9747 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e3e288c33297af02d31f5d87a3d6d74c7e0a12bd7ee72c72bb3f229b8992d9aa [INFO] running `Command { std: "docker" "start" "-a" "e3e288c33297af02d31f5d87a3d6d74c7e0a12bd7ee72c72bb3f229b8992d9aa", 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] --> 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` (test "tests") generated 2 warnings [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: `rigetti-pyo3` (example "yak_shaving") generated 4 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rigetti_pyo3-9f093a98e0f93146) [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] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-89a7d2caa502c76b) [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.04s [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_type (line 74) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_struct (line 337) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_error (line 25) ... 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 169) ... ok [INFO] [stdout] test src/wrappers.rs - wrappers::py_wrap_simple_enum (line 201) ... 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.84s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e3e288c33297af02d31f5d87a3d6d74c7e0a12bd7ee72c72bb3f229b8992d9aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3e288c33297af02d31f5d87a3d6d74c7e0a12bd7ee72c72bb3f229b8992d9aa", kill_on_drop: false }` [INFO] [stdout] e3e288c33297af02d31f5d87a3d6d74c7e0a12bd7ee72c72bb3f229b8992d9aa