[INFO] fetching crate pyo3 0.21.2... [INFO] checking pyo3-0.21.2 against master#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] extracting crate pyo3 0.21.2 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate pyo3 0.21.2 on toolchain 91c0823ee63e793d990bb9fed898dc95b5d6db51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pyo3 0.21.2 [INFO] finished tweaking crates.io crate pyo3 0.21.2 [INFO] tweaked toml for crates.io crate pyo3 0.21.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 129 packages to latest compatible versions [INFO] [stderr] Adding chrono-tz v0.8.6 (latest: v0.9.0) [INFO] [stderr] Adding chrono-tz-build v0.2.1 (latest: v0.3.0) [INFO] [stderr] Adding heck v0.4.1 (latest: v0.5.0) [INFO] [stderr] Adding siphasher v0.3.11 (latest: v1.0.1) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.56.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3-ffi v0.21.2 [INFO] [stderr] Downloaded assert_approx_eq v1.1.0 [INFO] [stderr] Downloaded chrono-tz-build v0.2.1 [INFO] [stderr] Downloaded inventory v0.3.15 [INFO] [stderr] Downloaded parse-zoneinfo v0.3.1 [INFO] [stderr] Downloaded python3-dll-a v0.2.9 [INFO] [stderr] Downloaded pyo3-macros-backend v0.21.2 [INFO] [stderr] Downloaded chrono-tz v0.8.6 [INFO] [stderr] Downloaded rust_decimal v1.35.0 [INFO] [stderr] Downloaded pyo3-build-config v0.21.2 [INFO] [stderr] Downloaded pyo3-macros v0.21.2 [INFO] [stderr] Downloaded unindent v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0e41bd566d249e09afc78775b3b3da8096c2c94096179b459b6eeba4427b3c89 [INFO] running `Command { std: "docker" "start" "-a" "0e41bd566d249e09afc78775b3b3da8096c2c94096179b459b6eeba4427b3c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0e41bd566d249e09afc78775b3b3da8096c2c94096179b459b6eeba4427b3c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e41bd566d249e09afc78775b3b3da8096c2c94096179b459b6eeba4427b3c89", kill_on_drop: false }` [INFO] [stdout] 0e41bd566d249e09afc78775b3b3da8096c2c94096179b459b6eeba4427b3c89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7796cd708763648f3bee11891ce0b1b53ee7f59f9d1011ff1f08d751802b0f8f [INFO] running `Command { std: "docker" "start" "-a" "7796cd708763648f3bee11891ce0b1b53ee7f59f9d1011ff1f08d751802b0f8f", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling trybuild v1.0.96 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking proptest v1.4.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Checking send_wrapper v0.6.0 [INFO] [stderr] Compiling pyo3-ffi v0.21.2 [INFO] [stderr] Compiling pyo3 v0.21.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling pyo3-macros-backend v0.21.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling pyo3-macros v0.21.2 [INFO] [stderr] Checking serde v1.0.203 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking toml_datetime v0.6.6 [INFO] [stderr] Checking serde_spanned v0.6.6 [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking toml_edit v0.22.13 [INFO] [stderr] Checking toml v0.8.13 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "7796cd708763648f3bee11891ce0b1b53ee7f59f9d1011ff1f08d751802b0f8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7796cd708763648f3bee11891ce0b1b53ee7f59f9d1011ff1f08d751802b0f8f", kill_on_drop: false }` [INFO] [stdout] 7796cd708763648f3bee11891ce0b1b53ee7f59f9d1011ff1f08d751802b0f8f [INFO] checking pyo3-0.21.2 against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] extracting crate pyo3 0.21.2 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate pyo3 0.21.2 on toolchain 519d6e23a6cb73c4d0f295f71ad37db8e95c54ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pyo3 0.21.2 [INFO] finished tweaking crates.io crate pyo3 0.21.2 [INFO] tweaked toml for crates.io crate pyo3 0.21.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 129 packages to latest compatible versions [INFO] [stderr] Adding chrono-tz v0.8.6 (latest: v0.9.0) [INFO] [stderr] Adding chrono-tz-build v0.2.1 (latest: v0.3.0) [INFO] [stderr] Adding heck v0.4.1 (latest: v0.5.0) [INFO] [stderr] Adding siphasher v0.3.11 (latest: v1.0.1) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.56.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 97b3885a4236abe81356681fb51ec4f63717fd0250e21dde8e0caa5c08711b40 [INFO] running `Command { std: "docker" "start" "-a" "97b3885a4236abe81356681fb51ec4f63717fd0250e21dde8e0caa5c08711b40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "97b3885a4236abe81356681fb51ec4f63717fd0250e21dde8e0caa5c08711b40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97b3885a4236abe81356681fb51ec4f63717fd0250e21dde8e0caa5c08711b40", kill_on_drop: false }` [INFO] [stdout] 97b3885a4236abe81356681fb51ec4f63717fd0250e21dde8e0caa5c08711b40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 303ffb63443c9fe49d14e1469261df7b42f061dca8eeb9da6ecb9a5d50aa7cc6 [INFO] running `Command { std: "docker" "start" "-a" "303ffb63443c9fe49d14e1469261df7b42f061dca8eeb9da6ecb9a5d50aa7cc6", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (16 fixes) [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling trybuild v1.0.96 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking proptest v1.4.0 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Checking send_wrapper v0.6.0 [INFO] [stderr] Compiling pyo3-ffi v0.21.2 [INFO] [stderr] Compiling pyo3 v0.21.2 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling pyo3-macros-backend v0.21.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling pyo3-macros v0.21.2 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking serde v1.0.203 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking toml_datetime v0.6.6 [INFO] [stderr] Checking serde_spanned v0.6.6 [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking toml_edit v0.22.13 [INFO] [stderr] Checking toml v0.8.13 [INFO] [stderr] Fixed src/types/list.rs (3 fixes) [INFO] [stderr] Fixed src/types/string.rs (3 fixes) [INFO] [stderr] Fixed src/impl_/trampoline.rs (6 fixes) [INFO] [stderr] Fixed src/gil.rs (5 fixes) [INFO] [stderr] Fixed src/instance.rs (15 fixes) [INFO] [stderr] Fixed src/pyclass_init.rs (4 fixes) [INFO] [stderr] Fixed src/py_result_ext.rs (1 fix) [INFO] [stderr] Fixed src/types/bytearray.rs (6 fixes) [INFO] [stderr] Fixed src/pycell/impl_.rs (2 fixes) [INFO] [stderr] Fixed src/type_object.rs (2 fixes) [INFO] [stderr] Fixed src/types/capsule.rs (4 fixes) [INFO] [stderr] Fixed src/err/err_state.rs (1 fix) [INFO] [stderr] Fixed src/ffi_ptr_ext.rs (7 fixes) [INFO] [stderr] Fixed src/pyclass/create_type_object.rs (7 fixes) [INFO] [stderr] Fixed src/types/sequence.rs (1 fix) [INFO] [stderr] Fixed src/marker.rs (9 fixes) [INFO] [stderr] Fixed src/types/datetime.rs (1 fix) [INFO] [stderr] Fixed src/types/mapping.rs (1 fix) [INFO] [stderr] Fixed src/pycell.rs (1 fix) [INFO] [stderr] Fixed src/types/tuple.rs (5 fixes) [INFO] [stderr] Fixed src/impl_/pyclass.rs (10 fixes) [INFO] [stderr] Fixed src/types/complex.rs (1 fix) [INFO] [stderr] Fixed src/types/iterator.rs (1 fix) [INFO] [stderr] Fixed src/impl_/extract_argument.rs (2 fixes) [INFO] [stderr] Fixed src/types/typeobject.rs (2 fixes) [INFO] [stderr] Fixed src/impl_/pymethods.rs (5 fixes) [INFO] [stderr] Fixed src/types/bytes.rs (2 fixes) [INFO] [stderr] Fixed src/types/any.rs (3 fixes) [INFO] [stderr] Fixed src/types/function.rs (1 fix) [INFO] [stderr] Fixed src/conversion.rs (10 fixes) [INFO] [stderr] Migrating tests/test_exceptions.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/test_variable_arguments.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_datetime.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_serde.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_class_attributes.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_unsendable_dict.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_arithmetics.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_arithmetics` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_arithmetics.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_arithmetics.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_datetime_import.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(value: f64) -> Self { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | fn __repr__(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | fn __neg__(&self) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | fn __pos__(&self) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | fn __abs__(&self) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | fn __round__(&self, _ndigits: Option) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | fn __index__(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | fn __int__(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | fn __float__(&self) -> f64 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | fn __invert__(&self) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | fn __repr__(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | fn __iadd__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | fn __isub__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | fn __imul__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | fn __ilshift__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | fn __irshift__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | fn __iand__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | fn __ixor__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:127:16 [INFO] [stdout] | [INFO] [stdout] 127 | fn __ior__(&mut self, other: u32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | fn __ipow__(&mut self, other: u32, _modulo: Option) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | fn __add__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:173:16 [INFO] [stdout] | [INFO] [stdout] 173 | fn __sub__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:177:16 [INFO] [stdout] | [INFO] [stdout] 177 | fn __mul__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 181 | fn __truediv__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | fn __lshift__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 189 | fn __rshift__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:193:16 [INFO] [stdout] | [INFO] [stdout] 193 | fn __and__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:197:16 [INFO] [stdout] | [INFO] [stdout] 197 | fn __xor__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:201:15 [INFO] [stdout] | [INFO] [stdout] 201 | fn __or__(&self, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:205:16 [INFO] [stdout] | [INFO] [stdout] 205 | fn __pow__(&self, rhs: &Bound<'_, PyAny>, mod_: Option) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | fn __repr__(&self) -> &'static str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | fn __radd__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:264:17 [INFO] [stdout] | [INFO] [stdout] 264 | fn __rsub__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | fn __rmul__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:272:20 [INFO] [stdout] | [INFO] [stdout] 272 | fn __rlshift__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:276:20 [INFO] [stdout] | [INFO] [stdout] 276 | fn __rrshift__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:280:17 [INFO] [stdout] | [INFO] [stdout] 280 | fn __rand__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | fn __rxor__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 288 | fn __ror__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | fn __rpow__(&self, other: &Bound<'_, PyAny>, _mod: Option<&Bound<'_, PyAny>>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:337:21 [INFO] [stdout] | [INFO] [stdout] 337 | fn __add__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | fn __sub__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | fn __mul__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:349:24 [INFO] [stdout] | [INFO] [stdout] 349 | fn __lshift__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:353:24 [INFO] [stdout] | [INFO] [stdout] 353 | fn __rshift__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:357:21 [INFO] [stdout] | [INFO] [stdout] 357 | fn __and__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:361:21 [INFO] [stdout] | [INFO] [stdout] 361 | fn __xor__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | fn __or__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | fn __pow__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>, _mod: Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:373:24 [INFO] [stdout] | [INFO] [stdout] 373 | fn __matmul__(lhs: PyRef<'_, Self>, rhs: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | fn __radd__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | fn __rsub__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:385:17 [INFO] [stdout] | [INFO] [stdout] 385 | fn __rmul__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:389:20 [INFO] [stdout] | [INFO] [stdout] 389 | fn __rlshift__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:393:20 [INFO] [stdout] | [INFO] [stdout] 393 | fn __rrshift__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:397:17 [INFO] [stdout] | [INFO] [stdout] 397 | fn __rand__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | fn __rxor__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:405:16 [INFO] [stdout] | [INFO] [stdout] 405 | fn __ror__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:409:17 [INFO] [stdout] | [INFO] [stdout] 409 | fn __rpow__(&self, other: &Bound<'_, PyAny>, _mod: Option<&Bound<'_, PyAny>>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:413:20 [INFO] [stdout] | [INFO] [stdout] 413 | fn __rmatmul__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:417:21 [INFO] [stdout] | [INFO] [stdout] 417 | fn __rtruediv__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:421:22 [INFO] [stdout] | [INFO] [stdout] 421 | fn __rfloordiv__(&self, other: &Bound<'_, PyAny>) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:460:17 [INFO] [stdout] | [INFO] [stdout] 460 | fn __repr__(&self) -> &'static str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:458:1 [INFO] [stdout] | [INFO] [stdout] 458 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | fn __richcmp__(&self, other: &Bound<'_, PyAny>, op: CompareOp) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:458:1 [INFO] [stdout] | [INFO] [stdout] 458 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | fn __repr__(&self) -> &'static str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 479 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:485:20 [INFO] [stdout] | [INFO] [stdout] 485 | fn __richcmp__(&self, other: &Bound<'_, PyAny>, op: CompareOp) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 479 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:562:29 [INFO] [stdout] | [INFO] [stdout] 562 | fn __add__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | fn __sub__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:568:29 [INFO] [stdout] | [INFO] [stdout] 568 | fn __mul__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:571:32 [INFO] [stdout] | [INFO] [stdout] 571 | fn __matmul__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:574:33 [INFO] [stdout] | [INFO] [stdout] 574 | fn __truediv__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:577:34 [INFO] [stdout] | [INFO] [stdout] 577 | fn __floordiv__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:580:29 [INFO] [stdout] | [INFO] [stdout] 580 | fn __mod__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | fn __pow__(slf: PyRef<'_, Self>, _other: u8, _modulo: Option) -> PyRef<'_, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:586:32 [INFO] [stdout] | [INFO] [stdout] 586 | fn __lshift__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:589:32 [INFO] [stdout] | [INFO] [stdout] 589 | fn __rshift__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:592:32 [INFO] [stdout] | [INFO] [stdout] 592 | fn __divmod__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:595:29 [INFO] [stdout] | [INFO] [stdout] 595 | fn __and__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:598:28 [INFO] [stdout] | [INFO] [stdout] 598 | fn __or__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:601:29 [INFO] [stdout] | [INFO] [stdout] 601 | fn __xor__<'p>(slf: PyRef<'p, Self>, _other: PyRef<'p, Self>) -> PyRef<'p, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:554:21 [INFO] [stdout] | [INFO] [stdout] 554 | fn __repr__(&self) -> &'static str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:558:24 [INFO] [stdout] | [INFO] [stdout] 558 | fn __richcmp__(&self, other: PyRef<'_, Self>, _op: CompareOp) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:606:21 [INFO] [stdout] | [INFO] [stdout] 606 | fn __iadd__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:607:21 [INFO] [stdout] | [INFO] [stdout] 607 | fn __isub__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:608:21 [INFO] [stdout] | [INFO] [stdout] 608 | fn __imul__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:609:24 [INFO] [stdout] | [INFO] [stdout] 609 | fn __imatmul__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:610:25 [INFO] [stdout] | [INFO] [stdout] 610 | fn __itruediv__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:611:26 [INFO] [stdout] | [INFO] [stdout] 611 | fn __ifloordiv__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:612:21 [INFO] [stdout] | [INFO] [stdout] 612 | fn __imod__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:613:24 [INFO] [stdout] | [INFO] [stdout] 613 | fn __ilshift__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:614:24 [INFO] [stdout] | [INFO] [stdout] 614 | fn __irshift__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:615:21 [INFO] [stdout] | [INFO] [stdout] 615 | fn __iand__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:616:20 [INFO] [stdout] | [INFO] [stdout] 616 | fn __ior__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:617:21 [INFO] [stdout] | [INFO] [stdout] 617 | fn __ixor__(&mut self, _other: PyRef<'_, Self>) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_arithmetics.rs:618:21 [INFO] [stdout] | [INFO] [stdout] 618 | fn __ipow__(&mut self, _other: PyRef<'_, Self>, _modulo: Option) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_arithmetics.rs:552:5 [INFO] [stdout] | [INFO] [stdout] 552 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 97 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_getter_setter.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_getter_setter` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_getter_setter.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_getter_setter.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_buffer_protocol.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_num(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_data(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_data(&mut self, value: i32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_data(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_unwrapped(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | fn set_unwrapped(&mut self, value: i32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | fn set_unwrapped(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:45:77 [INFO] [stdout] | [INFO] [stdout] 45 | fn set_from_len(&mut self, #[pyo3(from_py_with = "extract_len")] value: i32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | fn set_from_len(&mut self, #[pyo3(from_py_with = "extract_len")] value: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | fn set_from_any(&mut self, value: &Bound<'_, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | fn set_from_any(&mut self, value: &Bound<'_, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_data_list<'py>(&self, py: Python<'py>) -> Bound<'py, PyList> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_num2(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | fn get_num(slf: PyRef<'_, Self>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 135 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:143:52 [INFO] [stdout] | [INFO] [stdout] 143 | fn set_num(mut slf: PyRefMut<'_, Self>, value: i32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | fn set_num(mut slf: PyRefMut<'_, Self>, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | fn get_num(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:170:34 [INFO] [stdout] | [INFO] [stdout] 170 | fn set_num(&mut self, value: i32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | fn set_num(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_getter_setter.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | fn value(&self) -> &str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_getter_setter.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 247 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed tests/test_buffer_protocol.rs (4 fixes) [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_buffer_protocol.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | slf: Bound<'_, Self>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_buffer_protocol.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe fn __releasebuffer__(&self, view: *mut ffi::Py_buffer) { unsafe { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_buffer_protocol.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | slf: Bound<'_, Self>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_buffer_protocol.rs:116:37 [INFO] [stdout] | [INFO] [stdout] 116 | unsafe fn __releasebuffer__(&self, _view: *mut ffi::Py_buffer) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_multiple_pymethods.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_gc.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_gc` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_gc.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_gc.rs:84:1 [INFO] [stderr] | [INFO] [stderr] 84 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_frompyobject.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | fn __clear__(&mut self) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_gc.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | fn __clear__(&mut self) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_gc.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:244:18 [INFO] [stdout] | [INFO] [stdout] 244 | fn __clear__(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_gc.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:443:18 [INFO] [stdout] | [INFO] [stdout] 443 | fn __clear__(&mut self) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_gc.rs:435:1 [INFO] [stdout] | [INFO] [stdout] 435 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:519:18 [INFO] [stdout] | [INFO] [stdout] 519 | fn __clear__(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_gc.rs:517:1 [INFO] [stdout] | [INFO] [stdout] 517 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:569:5 [INFO] [stdout] | [INFO] [stdout] 569 | std::mem::transmute(pyo3::ffi::PyType_GetSlot(tp, pyo3::ffi::Py_tp_traverse)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_gc.rs:568:1 [INFO] [stdout] | [INFO] [stdout] 568 | unsafe fn get_type_traverse(tp: *mut pyo3::ffi::PyTypeObject) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::ffi::PyType_GetSlot` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_gc.rs:569:25 [INFO] [stdout] | [INFO] [stdout] 569 | std::mem::transmute(pyo3::ffi::PyType_GetSlot(tp, pyo3::ffi::Py_tp_traverse)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_frompyobject` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_frompyobject.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_frompyobject.rs:42:1 [INFO] [stderr] | [INFO] [stderr] 42 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_class_new.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_frompyobject.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | fn __getitem__(&self, key: String) -> pyo3::PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_frompyobject.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_new.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn new(arg: i32) -> Self { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_new.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | fn new(arg: i32) -> NewWithOneArg { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_new.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 116 | fn new(arg1: i32, arg2: i32) -> Self { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_new.rs:116:29 [INFO] [stdout] | [INFO] [stdout] 116 | fn new(arg1: i32, arg2: i32) -> Self { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_new.rs:218:39 [INFO] [stdout] | [INFO] [stdout] 218 | fn new(py: pyo3::Python<'_>, val: usize) -> pyo3::Py { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_dict_iter.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_inheritance.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_macro_docs.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | fn base_method(&self, x: usize) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | fn base_method(&self, x: usize) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | fn base_set(&mut self, fn_: &Bound<'_, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | fn base_set(&mut self, fn_: &Bound<'_, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | fn sub_method(&self, x: usize) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | fn sub_method(&self, x: usize) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | fn sub_set_and_ret(&mut self, x: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:66:38 [INFO] [stdout] | [INFO] [stdout] 66 | fn sub_set_and_ret(&mut self, x: usize) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(value: isize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | fn new(value: isize) -> PyResult<(Self, BaseClassWithResult)> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_inheritance.rs:267:26 [INFO] [stdout] | [INFO] [stdout] 267 | fn new(_exc_arg: &Bound<'_, PyAny>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_mapping.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_macro_docs` [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_macro_docs.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | fn macro_doc(&self) {} [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_macro_docs.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] * tests/test_macro_docs.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_macro_docs.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_mapping` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_mapping.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_mapping.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_class_conversion.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_mapping.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | fn __setitem__(&mut self, key: String, value: usize) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_mapping.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_mapping.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | fn __delitem__(&mut self, key: String) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_mapping.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_mapping.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | fn __len__(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_mapping.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_mapping.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | fn __getitem__(&self, query: String) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_mapping.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_mapping.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | fn get(&self, py: Python<'_>, key: &str, default: Option) -> Option { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_mapping.rs:62:40 [INFO] [stdout] | [INFO] [stdout] 62 | fn get(&self, py: Python<'_>, key: &str, default: Option) -> Option { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_class_conversion` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_class_conversion.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_class_conversion.rs:40:1 [INFO] [stderr] | [INFO] [stderr] 40 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_conversion.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | fn foo(&self) -> &'static str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_class_conversion.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_conversion.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | fn foo(&self) -> &'static str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_class_conversion.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `pyo3` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/tests/./common.rs [INFO] [stderr] * src/tests/hygiene/pyfunction.rs [INFO] [stderr] * src/tests/hygiene/pymethods.rs [INFO] [stderr] * src/tests/hygiene/pymodule.rs [INFO] [stderr] * src/types/any.rs [INFO] [stderr] * src/types/iterator.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | { unsafe #[crate::pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: expected statement after outer attribute [INFO] [stderr] --> src/types/any.rs:2502:18 [INFO] [stderr] | [INFO] [stderr] 2502 | { unsafe #[pymethods(crate = "crate")]} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `{`, found `#` [INFO] [stderr] --> src/types/any.rs:2502:18 [INFO] [stderr] | [INFO] [stderr] 2502 | { unsafe #[pymethods(crate = "crate")]} [INFO] [stderr] | ------ ^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stderr] --> src/tests/./common.rs:74:25 [INFO] [stderr] | [INFO] [stderr] 74 | #[pymethods(crate = "pyo3")] [INFO] [stderr] | _________________________^ [INFO] [stderr] 75 | | impl UnraisableCapture { [INFO] [stderr] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stderr] | |_____________________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/tests/./common.rs:74:25 [INFO] [stderr] | [INFO] [stderr] 74 | #[pymethods(crate = "pyo3")] [INFO] [stderr] | _________________________^ [INFO] [stderr] 75 | | impl UnraisableCapture { [INFO] [stderr] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stderr] | |___________________________________________________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/tests/hygiene/pyfunction.rs:5:16 [INFO] [stderr] | [INFO] [stderr] 5 | #[pyo3(crate = "crate")] [INFO] [stderr] | ________________^ [INFO] [stderr] 6 | | fn do_something(x: i32) -> crate::PyResult { [INFO] [stderr] | |______________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/tests/hygiene/pymodule.rs:5:16 [INFO] [stderr] | [INFO] [stderr] 5 | #[pyo3(crate = "crate")] [INFO] [stderr] | ________________^ [INFO] [stderr] 6 | | fn do_something(x: i32) -> crate::PyResult { [INFO] [stderr] | |______________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stderr] --> src/types/iterator.rs:321:36 [INFO] [stderr] | [INFO] [stderr] 321 | #[crate::pymethods(crate = "crate")] [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 322 | | impl Downcaster { [INFO] [stderr] 323 | | fn downcast_iterator(&mut self, obj: &PyAny) { [INFO] [stderr] | |__________________________________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/types/iterator.rs:321:36 [INFO] [stderr] | [INFO] [stderr] 321 | #[crate::pymethods(crate = "crate")] [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 322 | | impl Downcaster { [INFO] [stderr] 323 | | fn downcast_iterator(&mut self, obj: &PyAny) { [INFO] [stderr] | |_______________________________________________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/types/iterator.rs:361:37 [INFO] [stderr] | [INFO] [stderr] 361 | #[crate::pyfunction(crate = "crate")] [INFO] [stderr] | _____________________________________^ [INFO] [stderr] 362 | | fn assert_iterator(obj: &PyAny) { [INFO] [stderr] | |______________________________________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors; 7 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/./common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/test_sequence.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/./common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pyfunction.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 6 | | fn do_something(x: i32) -> crate::PyResult { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 33 | | [INFO] [stdout] 34 | | fn __lt__(&self, other: &Self) -> bool { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 37 | | [INFO] [stdout] 38 | | fn __le__(&self, other: &Self) -> bool { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] 41 | | fn __eq__(&self, other: &Self) -> bool { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | fn __ne__(&self, other: &Self) -> bool { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | fn __gt__(&self, other: &Self) -> bool { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | fn __ge__(&self, other: &Self) -> bool { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 65 | | [INFO] [stdout] 66 | | fn __getattr__(&self, name: ::std::string::String) -> &crate::Bound<'_, crate::PyAny> { [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 69 | | [INFO] [stdout] 70 | | fn __getattribute__(&self, name: ::std::string::String) -> &crate::Bound<'_, crate::PyAny> { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 73 | | [INFO] [stdout] 74 | | fn __setattr__(&mut self, name: ::std::string::String, value: ::std::string::String) {} [INFO] [stdout] | |____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 75 | | [INFO] [stdout] 76 | | fn __delattr__(&mut self, name: ::std::string::String) {} [INFO] [stdout] | |____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 94 | | fn __set__( [INFO] [stdout] 95 | | &self, [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 100 | | [INFO] [stdout] 101 | | fn __delete__(&self, instance: &crate::Bound<'_, crate::PyAny>) {} [INFO] [stdout] | |_______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 121 | | [INFO] [stdout] 122 | | fn __setitem__(&self, key: u32, value: u32) {} [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 123 | | [INFO] [stdout] 124 | | fn __delitem__(&self, key: u32) {} [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 148 | | [INFO] [stdout] 149 | | fn __add__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 152 | | [INFO] [stdout] 153 | | fn __sub__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 156 | | [INFO] [stdout] 157 | | fn __mul__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 160 | | [INFO] [stdout] 161 | | fn __truediv__(&self, _other: &Self) -> crate::PyResult<()> { [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 164 | | [INFO] [stdout] 165 | | fn __floordiv__(&self, _other: &Self) -> crate::PyResult<()> { [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 168 | | [INFO] [stdout] 169 | | fn __mod__(&self, _other: &Self) -> u32 { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 172 | | [INFO] [stdout] 173 | | fn __divmod__(&self, _other: &Self) -> (u32, u32) { [INFO] [stdout] | |_______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 176 | | [INFO] [stdout] 177 | | fn __pow__(&self, _other: &Self, modulo: ::std::option::Option) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 180 | | [INFO] [stdout] 181 | | fn __lshift__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |_______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 184 | | [INFO] [stdout] 185 | | fn __rshift__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |_______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 188 | | [INFO] [stdout] 189 | | fn __and__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 192 | | [INFO] [stdout] 193 | | fn __xor__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 196 | | [INFO] [stdout] 197 | | fn __or__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |___________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 200 | | [INFO] [stdout] 201 | | fn __radd__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 208 | | [INFO] [stdout] 209 | | fn __rmul__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 212 | | [INFO] [stdout] 213 | | fn __rtruediv__(&self, _other: &Self) -> crate::PyResult<()> { [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 216 | | [INFO] [stdout] 217 | | fn __rfloordiv__(&self, _other: &Self) -> crate::PyResult<()> { [INFO] [stdout] | |__________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 220 | | [INFO] [stdout] 221 | | fn __rmod__(&self, _other: &Self) -> u32 { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 224 | | [INFO] [stdout] 225 | | fn __rdivmod__(&self, _other: &Self) -> (u32, u32) { [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 228 | | [INFO] [stdout] 229 | | fn __rpow__(&self, _other: &Self, modulo: ::std::option::Option) -> Dummy { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 232 | | [INFO] [stdout] 233 | | fn __rlshift__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 236 | | [INFO] [stdout] 237 | | fn __rrshift__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 240 | | [INFO] [stdout] 241 | | fn __rand__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 244 | | [INFO] [stdout] 245 | | fn __rxor__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 248 | | [INFO] [stdout] 249 | | fn __ror__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::getattrofunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | / $crate::impl_::trampoline::getattrofunc(_slf, attr, |py, _slf, attr| { [INFO] [stdout] 347 | | use ::std::result::Result::*; [INFO] [stdout] 348 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 349 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] ... | [INFO] [stdout] 362 | | } [INFO] [stdout] 363 | | }) [INFO] [stdout] | |______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 343 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 344 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 345 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_getattro_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__getattribute__SlotFragment::__getattribute__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:356:23 [INFO] [stdout] | [INFO] [stdout] 356 | match collector.__getattribute__(py, _slf, attr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_getattro_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__getattr__SlotFragment::__getattr__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:359:25 [INFO] [stdout] | [INFO] [stdout] 359 | collector.__getattr__(py, _slf, attr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_getattro_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::setattrofunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:430:21 [INFO] [stdout] | [INFO] [stdout] 430 | / $crate::impl_::trampoline::setattrofunc( [INFO] [stdout] 431 | | _slf, [INFO] [stdout] 432 | | attr, [INFO] [stdout] 433 | | value, [INFO] [stdout] ... | [INFO] [stdout] 444 | | }, [INFO] [stdout] 445 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:425:17 [INFO] [stdout] | [INFO] [stdout] 425 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 426 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 427 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 428 | | value: *mut $crate::ffi::PyObject, [INFO] [stdout] 429 | | ) -> ::std::os::raw::c_int { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setattr_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__setattr__SlotFragment::__setattr__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:440:33 [INFO] [stdout] | [INFO] [stdout] 440 | ... collector.$set(py, _slf, attr, value).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setattr_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__delattr__SlotFragment::__delattr__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:442:33 [INFO] [stdout] | [INFO] [stdout] 442 | ... collector.$del(py, _slf, attr).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setattr_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::setattrofunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:430:21 [INFO] [stdout] | [INFO] [stdout] 430 | / $crate::impl_::trampoline::setattrofunc( [INFO] [stdout] 431 | | _slf, [INFO] [stdout] 432 | | attr, [INFO] [stdout] 433 | | value, [INFO] [stdout] ... | [INFO] [stdout] 444 | | }, [INFO] [stdout] 445 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:425:17 [INFO] [stdout] | [INFO] [stdout] 425 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 426 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 427 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 428 | | value: *mut $crate::ffi::PyObject, [INFO] [stdout] 429 | | ) -> ::std::os::raw::c_int { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setdescr_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__set__SlotFragment::__set__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:440:33 [INFO] [stdout] | [INFO] [stdout] 440 | ... collector.$set(py, _slf, attr, value).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setdescr_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__delete__SlotFragment::__delete__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:442:33 [INFO] [stdout] | [INFO] [stdout] 442 | ... collector.$del(py, _slf, attr).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setdescr_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::setattrofunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:430:21 [INFO] [stdout] | [INFO] [stdout] 430 | / $crate::impl_::trampoline::setattrofunc( [INFO] [stdout] 431 | | _slf, [INFO] [stdout] 432 | | attr, [INFO] [stdout] 433 | | value, [INFO] [stdout] ... | [INFO] [stdout] 444 | | }, [INFO] [stdout] 445 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:425:17 [INFO] [stdout] | [INFO] [stdout] 425 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 426 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 427 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 428 | | value: *mut $crate::ffi::PyObject, [INFO] [stdout] 429 | | ) -> ::std::os::raw::c_int { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setitem_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__setitem__SlotFragment::__setitem__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:440:33 [INFO] [stdout] | [INFO] [stdout] 440 | ... collector.$set(py, _slf, attr, value).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setitem_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__delitem__SlotFragment::__delitem__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:442:33 [INFO] [stdout] | [INFO] [stdout] 442 | ... collector.$del(py, _slf, attr).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_setitem_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_add_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__add__SlotFragment::__add__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_add_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_add_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_add_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__radd__SlotFragment::__radd__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_add_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_sub_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__sub__SlotFragment::__sub__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_sub_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_sub_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_sub_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rsub__SlotFragment::__rsub__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_sub_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mul_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__mul__SlotFragment::__mul__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mul_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mul_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mul_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rmul__SlotFragment::__rmul__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mul_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__mod__SlotFragment::__mod__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rmod__SlotFragment::__rmod__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_mod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_divmod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__divmod__SlotFragment::__divmod__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_divmod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_divmod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_divmod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rdivmod__SlotFragment::__rdivmod__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_divmod_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_lshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__lshift__SlotFragment::__lshift__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_lshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_lshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_lshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rlshift__SlotFragment::__rlshift__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_lshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_rshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rshift__SlotFragment::__rshift__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_rshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_rshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_rshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rrshift__SlotFragment::__rrshift__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_rshift_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_and_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__and__SlotFragment::__and__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_and_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_and_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_and_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rand__SlotFragment::__rand__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_and_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_or_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__or__SlotFragment::__or__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_or_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_or_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_or_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__ror__SlotFragment::__ror__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_or_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_xor_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__xor__SlotFragment::__xor__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_xor_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_xor_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_xor_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rxor__SlotFragment::__rxor__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_xor_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_truediv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__truediv__SlotFragment::__truediv__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_truediv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_truediv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_truediv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rtruediv__SlotFragment::__rtruediv__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_truediv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::binaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 546 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 547 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 548 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 554 | | } [INFO] [stdout] 555 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:541:17 [INFO] [stdout] | [INFO] [stdout] 541 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 542 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 543 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 544 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_floordiv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__floordiv__SlotFragment::__floordiv__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 548 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_floordiv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_floordiv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_floordiv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rfloordiv__SlotFragment::__rfloordiv__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:551:29 [INFO] [stdout] | [INFO] [stdout] 551 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_floordiv_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::ternaryfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:738:13 [INFO] [stdout] | [INFO] [stdout] 738 | / $crate::impl_::trampoline::ternaryfunc(_slf, _other, _mod, |py, _slf, _other, _mod| { [INFO] [stdout] 739 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 740 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 741 | | let lhs_result = collector.__pow__(py, _slf, _other, _mod)?; [INFO] [stdout] ... | [INFO] [stdout] 747 | | } [INFO] [stdout] 748 | | }) [INFO] [stdout] | |______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:733:9 [INFO] [stdout] | [INFO] [stdout] 733 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 734 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 735 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 736 | | _mod: *mut $crate::ffi::PyObject, [INFO] [stdout] 737 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_pow_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__pow__SlotFragment::__pow__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:741:34 [INFO] [stdout] | [INFO] [stdout] 741 | let lhs_result = collector.__pow__(py, _slf, _other, _mod)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_pow_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_NotImplemented` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:742:34 [INFO] [stdout] | [INFO] [stdout] 742 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_pow_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::Py_DECREF` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:743:21 [INFO] [stdout] | [INFO] [stdout] 743 | $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_pow_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__rpow__SlotFragment::__rpow__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:744:21 [INFO] [stdout] | [INFO] [stdout] 744 | collector.__rpow__(py, _other, _slf, _mod) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_pow_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::trampoline::richcmpfunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:863:17 [INFO] [stdout] | [INFO] [stdout] 863 | / $crate::impl_::trampoline::richcmpfunc(slf, other, op, |py, slf, other, op| { [INFO] [stdout] 864 | | use $crate::class::basic::CompareOp; [INFO] [stdout] 865 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 866 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] ... | [INFO] [stdout] 874 | | } [INFO] [stdout] 875 | | }) [INFO] [stdout] | |__________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:858:13 [INFO] [stdout] | [INFO] [stdout] 858 | / unsafe extern "C" fn __pymethod___richcmp____( [INFO] [stdout] 859 | | slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 860 | | other: *mut $crate::ffi::PyObject, [INFO] [stdout] 861 | | op: ::std::os::raw::c_int, [INFO] [stdout] 862 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__lt__SlotFragment::__lt__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:868:42 [INFO] [stdout] | [INFO] [stdout] 868 | CompareOp::Lt => collector.__lt__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__le__SlotFragment::__le__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:869:42 [INFO] [stdout] | [INFO] [stdout] 869 | CompareOp::Le => collector.__le__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__eq__SlotFragment::__eq__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:870:42 [INFO] [stdout] | [INFO] [stdout] 870 | CompareOp::Eq => collector.__eq__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__ne__SlotFragment::__ne__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:871:42 [INFO] [stdout] | [INFO] [stdout] 871 | CompareOp::Ne => collector.__ne__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__gt__SlotFragment::__gt__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:872:42 [INFO] [stdout] | [INFO] [stdout] 872 | CompareOp::Gt => collector.__gt__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__ge__SlotFragment::__ge__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:873:42 [INFO] [stdout] | [INFO] [stdout] 873 | CompareOp::Ge => collector.__ge__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] 17 | | ////////////////////// [INFO] [stdout] 18 | | fn __repr__(&self) -> &'static str { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 21 | | [INFO] [stdout] 22 | | fn __str__(&self) -> &'static str { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 25 | | [INFO] [stdout] 26 | | fn __bytes__<'py>(&self, py: crate::Python<'py>) -> crate::Bound<'py, crate::types::PyBytes> { [INFO] [stdout] | |___________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 29 | | [INFO] [stdout] 30 | | fn __format__(&self, format_spec: ::std::string::String) -> ::std::string::String { [INFO] [stdout] | |_______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 29 | | [INFO] [stdout] 30 | | fn __format__(&self, format_spec: ::std::string::String) -> ::std::string::String { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 53 | | [INFO] [stdout] 54 | | fn __hash__(&self) -> u64 { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 57 | | [INFO] [stdout] 58 | | fn __bool__(&self) -> bool { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 77 | | [INFO] [stdout] 78 | | fn __dir__<'py>(&self, py: crate::Python<'py>) -> crate::Bound<'py, crate::types::PyList> { [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 86 | | fn __get__( [INFO] [stdout] 87 | | &self, [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 103 | | fn __set_name__( [INFO] [stdout] 104 | | &self, [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 104 | | &self, [INFO] [stdout] 105 | | owner: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |______________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 105 | | owner: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 106 | | name: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |_____________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 113 | | [INFO] [stdout] 114 | | fn __len__(&self) -> usize { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 117 | | [INFO] [stdout] 118 | | fn __getitem__(&self, key: u32) -> crate::PyResult { [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 125 | | [INFO] [stdout] 126 | | fn __iter__(_: crate::pycell::PyRef<'_, Self>, py: crate::Python<'_>) -> crate::Py { [INFO] [stdout] | |_________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 129 | | [INFO] [stdout] 130 | | fn __next__(&mut self) -> ::std::option::Option<()> { [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 134 | | fn __reversed__( [INFO] [stdout] 135 | | slf: crate::pycell::PyRef<'_, Self>, [INFO] [stdout] | |___________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 140 | | [INFO] [stdout] 141 | | fn __contains__(&self, item: u32) -> bool { [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 204 | | [INFO] [stdout] 205 | | fn __rrsub__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 204 | | [INFO] [stdout] 205 | | fn __rrsub__(&self, other: &Self) -> Dummy { [INFO] [stdout] | |____________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 252 | | [INFO] [stdout] 253 | | fn __iadd__(&mut self, other: &Self) {} [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 254 | | [INFO] [stdout] 255 | | fn __irsub__(&mut self, other: &Self) {} [INFO] [stdout] | |__________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 254 | | [INFO] [stdout] 255 | | fn __irsub__(&mut self, other: &Self) {} [INFO] [stdout] | |________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 256 | | [INFO] [stdout] 257 | | fn __imul__(&mut self, other: &Self) {} [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 258 | | [INFO] [stdout] 259 | | fn __itruediv__(&mut self, _other: &Self) {} [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 260 | | [INFO] [stdout] 261 | | fn __ifloordiv__(&mut self, _other: &Self) {} [INFO] [stdout] | |______________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 262 | | [INFO] [stdout] 263 | | fn __imod__(&mut self, _other: &Self) {} [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 264 | | [INFO] [stdout] 265 | | fn __ipow__(&mut self, _other: &Self, modulo: ::std::option::Option) {} [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 266 | | [INFO] [stdout] 267 | | fn __ilshift__(&mut self, other: &Self) {} [INFO] [stdout] | |____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 268 | | [INFO] [stdout] 269 | | fn __irshift__(&mut self, other: &Self) {} [INFO] [stdout] | |____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 270 | | [INFO] [stdout] 271 | | fn __iand__(&mut self, other: &Self) {} [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 272 | | [INFO] [stdout] 273 | | fn __ixor__(&mut self, other: &Self) {} [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 274 | | [INFO] [stdout] 275 | | fn __ior__(&mut self, other: &Self) {} [INFO] [stdout] | |________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 276 | | [INFO] [stdout] 277 | | fn __neg__(slf: crate::pycell::PyRef<'_, Self>) -> crate::pycell::PyRef<'_, Self> { [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 280 | | [INFO] [stdout] 281 | | fn __pos__(slf: crate::pycell::PyRef<'_, Self>) -> crate::pycell::PyRef<'_, Self> { [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 284 | | [INFO] [stdout] 285 | | fn __abs__(slf: crate::pycell::PyRef<'_, Self>) -> crate::pycell::PyRef<'_, Self> { [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 288 | | [INFO] [stdout] 289 | | fn __invert__(slf: crate::pycell::PyRef<'_, Self>) -> crate::pycell::PyRef<'_, Self> { [INFO] [stdout] | |_____________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 293 | | fn __complex__<'py>( [INFO] [stdout] 294 | | &self, [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 299 | | [INFO] [stdout] 300 | | fn __int__(&self) -> u32 { [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 303 | | [INFO] [stdout] 304 | | fn __float__(&self) -> f64 { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 307 | | [INFO] [stdout] 308 | | fn __index__(&self) -> u32 { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 311 | | [INFO] [stdout] 312 | | fn __round__(&self, ndigits: ::std::option::Option) -> u32 { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 315 | | [INFO] [stdout] 316 | | fn __trunc__(&self) -> u32 { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 319 | | [INFO] [stdout] 320 | | fn __floor__(&self) -> u32 { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 323 | | [INFO] [stdout] 324 | | fn __ceil__(&self) -> u32 { [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 331 | | [INFO] [stdout] 332 | | fn __enter__(&mut self) {} [INFO] [stdout] | |__________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 334 | | fn __exit__( [INFO] [stdout] 335 | | &mut self, [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 335 | | &mut self, [INFO] [stdout] 336 | | exc_type: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |_________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 336 | | exc_type: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 337 | | exc_value: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 337 | | exc_value: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 338 | | traceback: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 345 | | [INFO] [stdout] 346 | | fn __await__(slf: crate::pycell::PyRef<'_, Self>) -> crate::pycell::PyRef<'_, Self> { [INFO] [stdout] | |____________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 355 | | fn __aiter__( [INFO] [stdout] 356 | | slf: crate::pycell::PyRef<'_, Self>, [INFO] [stdout] | |___________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 361 | | [INFO] [stdout] 362 | | fn __anext__(&mut self) -> ::std::option::Option<()> { [INFO] [stdout] | |__________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 369 | | [INFO] [stdout] 370 | | fn __aenter__(&mut self) {} [INFO] [stdout] | |___________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 372 | | fn __aexit__( [INFO] [stdout] 373 | | &mut self, [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 373 | | &mut self, [INFO] [stdout] 374 | | exc_type: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |_________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 374 | | exc_type: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 375 | | exc_value: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 375 | | exc_value: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 376 | | traceback: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 382 | | #[pyo3(signature = (_y, *, _z=2))] [INFO] [stdout] 383 | | fn test(&self, _y: &Dummy, _z: i32) {} [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 382 | | #[pyo3(signature = (_y, *, _z=2))] [INFO] [stdout] 383 | | fn test(&self, _y: &Dummy, _z: i32) {} [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 386 | | #[classmethod] [INFO] [stdout] 387 | | fn clsmethod(_: &crate::Bound<'_, crate::types::PyType>) {} [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 386 | | #[classmethod] [INFO] [stdout] 387 | | fn clsmethod(_: &crate::Bound<'_, crate::types::PyType>) {} [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:387:21 [INFO] [stdout] | [INFO] [stdout] 387 | fn clsmethod(_: &crate::Bound<'_, crate::types::PyType>) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 389 | | fn __call__( [INFO] [stdout] 390 | | &self, [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 396 | | #[new] [INFO] [stdout] 397 | | fn new(a: u8) -> Self { [INFO] [stdout] | |________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 400 | | #[getter] [INFO] [stdout] 401 | | fn get(&self) -> i32 { [INFO] [stdout] | |________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[crate::pymethods] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 404 | | #[setter] [INFO] [stdout] 405 | | fn set(&mut self, _v: i32) {} [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymethods.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 14 | | impl Dummy { [INFO] [stdout] 15 | | ////////////////////// [INFO] [stdout] 16 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 404 | | #[setter] [INFO] [stdout] 405 | | fn set(&mut self, _v: i32) {} [INFO] [stdout] | |____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pymodule.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 6 | | fn do_something(x: i32) -> crate::PyResult { [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `gil::GILPool::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/gil.rs:922:28 [INFO] [stdout] | [INFO] [stdout] 922 | let pool = GILPool::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/gil.rs:918:13 [INFO] [stdout] | [INFO] [stdout] 918 | unsafe extern "C" fn capsule_drop(capsule: *mut ffi::PyObject) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `instance::Py::::from_owned_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/gil.rs:925:17 [INFO] [stdout] | [INFO] [stdout] 925 | / PyObject::from_owned_ptr( [INFO] [stdout] 926 | | pool.python(), [INFO] [stdout] 927 | | ffi::PyCapsule_GetPointer(capsule, std::ptr::null()) as _, [INFO] [stdout] 928 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3_ffi::PyCapsule_GetPointer` is unsafe and requires unsafe block [INFO] [stdout] --> src/gil.rs:927:21 [INFO] [stdout] | [INFO] [stdout] 927 | ffi::PyCapsule_GetPointer(capsule, std::ptr::null()) as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/types/any.rs:2502:29 [INFO] [stdout] | [INFO] [stdout] 2502 | #[pymethods(crate = "crate")] [INFO] [stdout] | _____________________________^ [INFO] [stdout] 2503 | | impl GetattrFail { [INFO] [stdout] 2504 | | fn __getattr__(&self, attr: PyObject) -> PyResult { [INFO] [stdout] | |________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/types/any.rs:2502:9 [INFO] [stdout] | [INFO] [stdout] 2502 | #[pymethods(crate = "crate")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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[E0133]: call to unsafe function `impl_::trampoline::getattrofunc` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | / $crate::impl_::trampoline::getattrofunc(_slf, attr, |py, _slf, attr| { [INFO] [stdout] 347 | | use ::std::result::Result::*; [INFO] [stdout] 348 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 349 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] ... | [INFO] [stdout] 362 | | } [INFO] [stdout] 363 | | }) [INFO] [stdout] | |______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2502:9 [INFO] [stdout] | [INFO] [stdout] 2502 | #[pymethods(crate = "crate")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/impl_/pyclass.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 343 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 344 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 345 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2502:9 [INFO] [stdout] | [INFO] [stdout] 2502 | #[pymethods(crate = "crate")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_getattro_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__getattribute__SlotFragment::__getattribute__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:356:23 [INFO] [stdout] | [INFO] [stdout] 356 | match collector.__getattribute__(py, _slf, attr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2502:9 [INFO] [stdout] | [INFO] [stdout] 2502 | #[pymethods(crate = "crate")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_getattro_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pyclass::PyClass__getattr__SlotFragment::__getattr__` is unsafe and requires unsafe block [INFO] [stdout] --> src/impl_/pyclass.rs:359:25 [INFO] [stdout] | [INFO] [stdout] 359 | collector.__getattr__(py, _slf, attr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2502:9 [INFO] [stdout] | [INFO] [stdout] 2502 | #[pymethods(crate = "crate")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `crate::impl_::pyclass::generate_pyclass_getattro_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/types/iterator.rs:321:36 [INFO] [stdout] | [INFO] [stdout] 321 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 322 | | impl Downcaster { [INFO] [stdout] 323 | | fn downcast_iterator(&mut self, obj: &PyAny) { [INFO] [stdout] | |__________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/types/iterator.rs:321:36 [INFO] [stdout] | [INFO] [stdout] 321 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 322 | | impl Downcaster { [INFO] [stdout] 323 | | fn downcast_iterator(&mut self, obj: &PyAny) { [INFO] [stdout] | |_______________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/types/iterator.rs:361:37 [INFO] [stdout] | [INFO] [stdout] 361 | #[crate::pyfunction(crate = "crate")] [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 362 | | fn assert_iterator(obj: &PyAny) { [INFO] [stdout] | |______________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 205 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_sequence` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_sequence.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_sequence.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_anyhow.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | fn __setitem__(&mut self, idx: isize, value: u8) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | fn __delitem__(&mut self, mut idx: isize) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | fn __len__(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | fn __getitem__(&self, idx: isize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | fn __contains__(&self, other: &Bound<'_, PyAny>) -> bool { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | fn __concat__(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:76:36 [INFO] [stdout] | [INFO] [stdout] 76 | fn __inplace_concat__(mut slf: PyRefMut<'_, Self>, other: &Self) -> Py { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | fn __repeat__(&self, count: isize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:93:36 [INFO] [stdout] | [INFO] [stdout] 93 | fn __inplace_repeat__(mut slf: PyRefMut<'_, Self>, count: isize) -> PyResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:291:16 [INFO] [stdout] | [INFO] [stdout] 291 | fn __len__(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:289:1 [INFO] [stdout] | [INFO] [stdout] 289 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_sequence.rs:295:20 [INFO] [stdout] | [INFO] [stdout] 295 | fn __getitem__(&self, idx: isize) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_sequence.rs:289:1 [INFO] [stdout] | [INFO] [stdout] 289 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_proto_methods.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_static_slots.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_proto_methods` [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn __getattr__(&self, py: Python<'_>, attr: &str) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | fn __setattr__(&mut self, attr: &str, value: &Bound<'_, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | fn __delattr__(&mut self, attr: &str) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] * tests/test_proto_methods.rs [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | fn __str__(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | fn __repr__(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | fn __hash__(&self) -> u64 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | fn __bool__(&self) -> bool { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] a number of compiler warnings after this message which cargo [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:172:16 [INFO] [stdout] | [INFO] [stdout] 172 | fn __len__(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | fn __setitem__<'py>(&self, key: &Bound<'py, PyAny>, value: &Bound<'py, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | fn __delitem__(&self, key: &Bound<'_, PyAny>) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | fn __len__(&self, py: Python<'_>) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] Note that you may be able to make some more progress in the near-term [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:196:25 [INFO] [stdout] | [INFO] [stdout] 196 | fn __getitem__<'py>(&self, key: &Bound<'py, PyAny>) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] fixing code with the `--broken-code` flag [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:280:20 [INFO] [stdout] | [INFO] [stdout] 280 | fn __setitem__(&mut self, index: isize, value: PyObject) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:260:1 [INFO] [stdout] | [INFO] [stdout] 260 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:288:20 [INFO] [stdout] | [INFO] [stdout] 288 | fn __delitem__(&mut self, index: isize) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:260:1 [INFO] [stdout] | [INFO] [stdout] 260 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_proto_methods.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:262:16 [INFO] [stdout] | [INFO] [stdout] 262 | fn __len__(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:260:1 [INFO] [stdout] | [INFO] [stdout] 260 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 266 | fn __getitem__(&self, index: SequenceIndex<'_>, py: Python<'_>) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:260:1 [INFO] [stdout] | [INFO] [stdout] 260 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:298:15 [INFO] [stdout] | [INFO] [stdout] 298 | fn append(&mut self, value: PyObject) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | fn append(&mut self, value: PyObject) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:372:22 [INFO] [stdout] | [INFO] [stdout] 372 | fn __iter__(slf: PyRef<'_, Self>) -> PyRef<'_, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:370:1 [INFO] [stdout] | [INFO] [stdout] 370 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:376:26 [INFO] [stdout] | [INFO] [stdout] 376 | fn __next__(mut slf: PyRefMut<'_, Self>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:370:1 [INFO] [stdout] | [INFO] [stdout] 370 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | fn __call__(&self, arg: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:401:29 [INFO] [stdout] | [INFO] [stdout] 401 | fn __call__(&self, arg: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:430:20 [INFO] [stdout] | [INFO] [stdout] 430 | fn __setitem__(&mut self, key: i32, val: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:428:1 [INFO] [stdout] | [INFO] [stdout] 428 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:457:20 [INFO] [stdout] | [INFO] [stdout] 457 | fn __delitem__(&mut self, key: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:455:1 [INFO] [stdout] | [INFO] [stdout] 455 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:482:20 [INFO] [stdout] | [INFO] [stdout] 482 | fn __setitem__(&mut self, _key: i32, val: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:480:1 [INFO] [stdout] | [INFO] [stdout] 480 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:486:20 [INFO] [stdout] | [INFO] [stdout] 486 | fn __delitem__(&mut self, _key: i32) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:480:1 [INFO] [stdout] | [INFO] [stdout] 480 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:511:21 [INFO] [stdout] | [INFO] [stdout] 511 | fn __contains__(&self, item: i32) -> bool { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:509:1 [INFO] [stdout] | [INFO] [stdout] 509 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:531:20 [INFO] [stdout] | [INFO] [stdout] 531 | fn __getitem__(&self, idx: &Bound<'_, PyAny>) -> PyResult<&'static str> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:529:1 [INFO] [stdout] | [INFO] [stdout] 529 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:564:20 [INFO] [stdout] | [INFO] [stdout] 564 | fn __getattr__(&self, _name: &str) -> u32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:562:1 [INFO] [stdout] | [INFO] [stdout] 562 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:586:25 [INFO] [stdout] | [INFO] [stdout] 586 | fn __getattribute__(&self, _name: &str) -> u32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:584:1 [INFO] [stdout] | [INFO] [stdout] 584 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:605:25 [INFO] [stdout] | [INFO] [stdout] 605 | fn __getattribute__(&self, name: &str) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:603:1 [INFO] [stdout] | [INFO] [stdout] 603 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:615:20 [INFO] [stdout] | [INFO] [stdout] 615 | fn __getattr__(&self, name: &str) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:603:1 [INFO] [stdout] | [INFO] [stdout] 603 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:646:20 [INFO] [stdout] | [INFO] [stdout] 646 | fn new(future: PyObject) -> Self { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:653:23 [INFO] [stdout] | [INFO] [stdout] 653 | fn __await__(slf: PyRef<'_, Self>) -> PyRef<'_, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:643:1 [INFO] [stdout] | [INFO] [stdout] 643 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:657:22 [INFO] [stdout] | [INFO] [stdout] 657 | fn __iter__(slf: PyRef<'_, Self>) -> PyRef<'_, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:643:1 [INFO] [stdout] | [INFO] [stdout] 643 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:660:22 [INFO] [stdout] | [INFO] [stdout] 660 | fn __next__<'py>(&mut self, py: Python<'py>) -> Option<&Bound<'py, PyAny>> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:643:1 [INFO] [stdout] | [INFO] [stdout] 643 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:705:20 [INFO] [stdout] | [INFO] [stdout] 705 | fn new(future: Py) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:711:23 [INFO] [stdout] | [INFO] [stdout] 711 | fn __aiter__(slf: PyRef<'_, Self>) -> PyRef<'_, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:702:1 [INFO] [stdout] | [INFO] [stdout] 702 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:715:18 [INFO] [stdout] | [INFO] [stdout] 715 | fn __anext__(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:702:1 [INFO] [stdout] | [INFO] [stdout] 702 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:777:16 [INFO] [stdout] | [INFO] [stdout] 777 | fn __set__(&self, _instance: &Bound<'_, PyAny>, new_value: &mut Self) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:761:1 [INFO] [stdout] | [INFO] [stdout] 761 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:781:19 [INFO] [stdout] | [INFO] [stdout] 781 | fn __delete__(&mut self, _instance: &Bound<'_, PyAny>) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:761:1 [INFO] [stdout] | [INFO] [stdout] 761 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:769:18 [INFO] [stdout] | [INFO] [stdout] 769 | mut slf: PyRefMut<'a, Self>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:761:1 [INFO] [stdout] | [INFO] [stdout] 761 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:851:17 [INFO] [stdout] | [INFO] [stdout] 851 | fn __iter__(&self, py: Python<'_>) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:849:1 [INFO] [stdout] | [INFO] [stdout] 849 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_proto_methods.rs:865:17 [INFO] [stdout] | [INFO] [stdout] 865 | fn __iter__(&self, py: Python<'_>) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_proto_methods.rs:863:1 [INFO] [stdout] | [INFO] [stdout] 863 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/test_buffer.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed tests/test_buffer.rs (1 fix) [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_buffer.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | slf: PyRefMut<'_, Self>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_default_impls.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_methods.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_default_impls` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_default_impls.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_default_impls.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_default_impls.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | fn __repr__(&self) -> &str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_default_impls.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_methods` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_methods.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_methods.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_pyself.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | fn method(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | fn add_other(&self, other: &Self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | fn add_other(&self, other: &Self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | fn method(&self, multiplier: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | fn method(&self, multiplier: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | fn method(cls: &Bound<'_, PyType>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | fn method(cls: &Bound<'_, PyType>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | fn method(cls: &Bound<'_, PyType>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | fn method_owned(cls: Py) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | fn method_owned(cls: Py) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | fn method_owned(cls: Py) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:116:20 [INFO] [stdout] | [INFO] [stdout] 116 | fn method(cls: &Bound<'_, PyType>, input: &Bound<'_, PyString>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:116:20 [INFO] [stdout] | [INFO] [stdout] 116 | fn method(cls: &Bound<'_, PyType>, input: &Bound<'_, PyString>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:116:20 [INFO] [stdout] | [INFO] [stdout] 116 | fn method(cls: &Bound<'_, PyType>, input: &Bound<'_, PyString>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:116:47 [INFO] [stdout] | [INFO] [stdout] 116 | fn method(cls: &Bound<'_, PyType>, input: &Bound<'_, PyString>) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | fn method(_py: Python<'_>, input: i32) -> String { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | fn get_optional(&self, test: Option) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:194:22 [INFO] [stdout] | [INFO] [stdout] 194 | fn get_optional2(&self, test: Option) -> Option { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:207:20 [INFO] [stdout] | [INFO] [stdout] 207 | fn get_default(&self, test: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:211:18 [INFO] [stdout] | [INFO] [stdout] 211 | fn get_kwarg(&self, test: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 228 | a: i32, [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:236:21 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_pos_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:236:31 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_pos_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:236:39 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_pos_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:241:29 [INFO] [stdout] | [INFO] [stdout] 241 | fn get_pos_only_and_pos(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:241:39 [INFO] [stdout] | [INFO] [stdout] 241 | fn get_pos_only_and_pos(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:241:47 [INFO] [stdout] | [INFO] [stdout] 241 | fn get_pos_only_and_pos(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:246:36 [INFO] [stdout] | [INFO] [stdout] 246 | fn get_pos_only_and_pos_and_kw(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:246:46 [INFO] [stdout] | [INFO] [stdout] 246 | fn get_pos_only_and_pos_and_kw(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:246:54 [INFO] [stdout] | [INFO] [stdout] 246 | fn get_pos_only_and_pos_and_kw(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:251:33 [INFO] [stdout] | [INFO] [stdout] 251 | fn get_pos_only_and_kw_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:251:43 [INFO] [stdout] | [INFO] [stdout] 251 | fn get_pos_only_and_kw_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:251:51 [INFO] [stdout] | [INFO] [stdout] 251 | fn get_pos_only_and_kw_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:256:46 [INFO] [stdout] | [INFO] [stdout] 256 | fn get_pos_only_and_kw_only_with_default(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:256:56 [INFO] [stdout] | [INFO] [stdout] 256 | fn get_pos_only_and_kw_only_with_default(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:261:35 [INFO] [stdout] | [INFO] [stdout] 261 | fn get_all_arg_types_together(&self, a: i32, b: i32, c: i32, d: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:261:45 [INFO] [stdout] | [INFO] [stdout] 261 | fn get_all_arg_types_together(&self, a: i32, b: i32, c: i32, d: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:261:53 [INFO] [stdout] | [INFO] [stdout] 261 | fn get_all_arg_types_together(&self, a: i32, b: i32, c: i32, d: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:261:61 [INFO] [stdout] | [INFO] [stdout] 261 | fn get_all_arg_types_together(&self, a: i32, b: i32, c: i32, d: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | fn get_pos_only_with_varargs(&self, a: i32, args: Vec) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:266:44 [INFO] [stdout] | [INFO] [stdout] 266 | fn get_pos_only_with_varargs(&self, a: i32, args: Vec) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:274:12 [INFO] [stdout] | [INFO] [stdout] 274 | a: i32, [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:291:38 [INFO] [stdout] | [INFO] [stdout] 291 | fn get_kwargs_only_with_defaults(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:296:24 [INFO] [stdout] | [INFO] [stdout] 296 | fn get_kwargs_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:296:34 [INFO] [stdout] | [INFO] [stdout] 296 | fn get_kwargs_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:296:42 [INFO] [stdout] | [INFO] [stdout] 296 | fn get_kwargs_only(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:301:42 [INFO] [stdout] | [INFO] [stdout] 301 | fn get_kwargs_only_with_some_default(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:301:60 [INFO] [stdout] | [INFO] [stdout] 301 | fn get_kwargs_only_with_some_default(&self, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | a: i32, [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:316:28 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_pos_arg_kw_sep1(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | fn get_pos_arg_kw_sep1(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_pos_arg_kw_sep2(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:321:38 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_pos_arg_kw_sep2(&self, a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:326:19 [INFO] [stdout] | [INFO] [stdout] 326 | fn get_pos_kw(&self, py: Python<'_>, a: i32, kwargs: Option<&Bound<'_, PyDict>>) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:326:45 [INFO] [stdout] | [INFO] [stdout] 326 | fn get_pos_kw(&self, py: Python<'_>, a: i32, kwargs: Option<&Bound<'_, PyDict>>) -> PyObject { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:332:20 [INFO] [stdout] | [INFO] [stdout] 332 | fn args_as_vec(&self, args: Vec) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:673:15 [INFO] [stdout] | [INFO] [stdout] 673 | fn method(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:670:1 [INFO] [stdout] | [INFO] [stdout] 670 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:679:14 [INFO] [stdout] | [INFO] [stdout] 679 | fn get_x(&self) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:670:1 [INFO] [stdout] | [INFO] [stdout] 670 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:707:25 [INFO] [stdout] | [INFO] [stdout] 707 | fn set_to_list<'py>(&self, set: &Bound<'py, PySet>) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:707:37 [INFO] [stdout] | [INFO] [stdout] 707 | fn set_to_list<'py>(&self, set: &Bound<'py, PySet>) -> PyResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:739:12 [INFO] [stdout] | [INFO] [stdout] 739 | fn add(&self, other: &MethodWithPyClassArg) -> MethodWithPyClassArg { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:739:26 [INFO] [stdout] | [INFO] [stdout] 739 | fn add(&self, other: &MethodWithPyClassArg) -> MethodWithPyClassArg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:744:18 [INFO] [stdout] | [INFO] [stdout] 744 | fn add_pyref(&self, other: PyRef<'_, MethodWithPyClassArg>) -> MethodWithPyClassArg { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:744:32 [INFO] [stdout] | [INFO] [stdout] 744 | fn add_pyref(&self, other: PyRef<'_, MethodWithPyClassArg>) -> MethodWithPyClassArg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:749:20 [INFO] [stdout] | [INFO] [stdout] 749 | fn inplace_add(&self, other: &mut MethodWithPyClassArg) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:749:34 [INFO] [stdout] | [INFO] [stdout] 749 | fn inplace_add(&self, other: &mut MethodWithPyClassArg) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:752:26 [INFO] [stdout] | [INFO] [stdout] 752 | fn inplace_add_pyref(&self, mut other: PyRefMut<'_, MethodWithPyClassArg>) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:752:44 [INFO] [stdout] | [INFO] [stdout] 752 | fn inplace_add_pyref(&self, mut other: PyRefMut<'_, MethodWithPyClassArg>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:755:21 [INFO] [stdout] | [INFO] [stdout] 755 | fn optional_add(&self, other: Option<&MethodWithPyClassArg>) -> MethodWithPyClassArg { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:760:29 [INFO] [stdout] | [INFO] [stdout] 760 | fn optional_inplace_add(&self, other: Option<&mut MethodWithPyClassArg>) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:811:20 [INFO] [stdout] | [INFO] [stdout] 811 | fn unix_method(&self) -> &str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:808:1 [INFO] [stdout] | [INFO] [stdout] 808 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:893:17 [INFO] [stdout] | [INFO] [stdout] 893 | r#type: PyObject, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:894:20 [INFO] [stdout] | [INFO] [stdout] 894 | r#subtype: PyObject, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:895:23 [INFO] [stdout] | [INFO] [stdout] 895 | r#subsubtype: PyObject, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:905:26 [INFO] [stdout] | [INFO] [stdout] 905 | pub fn r#get_subtype(&self) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:888:1 [INFO] [stdout] | [INFO] [stdout] 888 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:910:48 [INFO] [stdout] | [INFO] [stdout] 910 | pub fn r#set_subtype(&mut self, r#subtype: PyObject) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:910:26 [INFO] [stdout] | [INFO] [stdout] 910 | pub fn r#set_subtype(&mut self, r#subtype: PyObject) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:915:29 [INFO] [stdout] | [INFO] [stdout] 915 | pub fn r#get_subsubtype(&self) -> PyObject { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:888:1 [INFO] [stdout] | [INFO] [stdout] 888 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:920:54 [INFO] [stdout] | [INFO] [stdout] 920 | pub fn r#set_subsubtype(&mut self, r#subsubtype: PyObject) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:920:29 [INFO] [stdout] | [INFO] [stdout] 920 | pub fn r#set_subsubtype(&mut self, r#subsubtype: PyObject) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:924:23 [INFO] [stdout] | [INFO] [stdout] 924 | pub fn r#__call__(&mut self, r#type: PyObject) { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:924:42 [INFO] [stdout] | [INFO] [stdout] 924 | pub fn r#__call__(&mut self, r#type: PyObject) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:929:36 [INFO] [stdout] | [INFO] [stdout] 929 | pub fn r#static_method(r#type: PyObject) -> PyObject { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:934:30 [INFO] [stdout] | [INFO] [stdout] 934 | pub fn r#class_method(_: &Bound<'_, PyType>, r#type: PyObject) -> PyObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:934:30 [INFO] [stdout] | [INFO] [stdout] 934 | pub fn r#class_method(_: &Bound<'_, PyType>, r#type: PyObject) -> PyObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:934:30 [INFO] [stdout] | [INFO] [stdout] 934 | pub fn r#class_method(_: &Bound<'_, PyType>, r#type: PyObject) -> PyObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:934:58 [INFO] [stdout] | [INFO] [stdout] 934 | pub fn r#class_method(_: &Bound<'_, PyType>, r#type: PyObject) -> PyObject { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:947:32 [INFO] [stdout] | [INFO] [stdout] 947 | fn method_with_keyword<'a>(&self, r#struct: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1006:20 [INFO] [stdout] | [INFO] [stdout] 1006 | fn $fn(&self, $arg: $arg_ty) {} [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1011 | / pymethods!( [INFO] [stdout] 1012 | | #[pymethods] [INFO] [stdout] 1013 | | impl Issue1505 { [INFO] [stdout] 1014 | | fn issue_1505(&self, _py: Python<'_>) {} [INFO] [stdout] 1015 | | } [INFO] [stdout] 1016 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:1004:9 [INFO] [stdout] | [INFO] [stdout] 1004 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1011 | / pymethods!( [INFO] [stdout] 1012 | | #[pymethods] [INFO] [stdout] 1013 | | impl Issue1505 { [INFO] [stdout] 1014 | | fn issue_1505(&self, _py: Python<'_>) {} [INFO] [stdout] 1015 | | } [INFO] [stdout] 1016 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1037:13 [INFO] [stdout] | [INFO] [stdout] 1037 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1039:19 [INFO] [stdout] | [INFO] [stdout] 1039 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1040:20 [INFO] [stdout] | [INFO] [stdout] 1040 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1046 | &mut self, [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1048:19 [INFO] [stdout] | [INFO] [stdout] 1048 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1049:20 [INFO] [stdout] | [INFO] [stdout] 1049 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1055:19 [INFO] [stdout] | [INFO] [stdout] 1055 | _slf: Py, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1057:19 [INFO] [stdout] | [INFO] [stdout] 1057 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1058:20 [INFO] [stdout] | [INFO] [stdout] 1058 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1064:19 [INFO] [stdout] | [INFO] [stdout] 1064 | _slf: Py, [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1066:19 [INFO] [stdout] | [INFO] [stdout] 1066 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1067:20 [INFO] [stdout] | [INFO] [stdout] 1067 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1075:19 [INFO] [stdout] | [INFO] [stdout] 1075 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1076:20 [INFO] [stdout] | [INFO] [stdout] 1076 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1083:30 [INFO] [stdout] | [INFO] [stdout] 1083 | fn issue_1506_getter(&self, _py: Python<'_>) -> i32 { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_methods.rs:1028:9 [INFO] [stdout] | [INFO] [stdout] 1028 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1033 | / issue_1506!( [INFO] [stdout] 1034 | | #[pymethods] [INFO] [stdout] 1035 | | impl Issue1506 { [INFO] [stdout] 1036 | | fn issue_1506( [INFO] [stdout] ... | [INFO] [stdout] 1108 | | } [INFO] [stdout] 1109 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` which comes from the expansion of the macro `issue_1506` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1088:62 [INFO] [stdout] | [INFO] [stdout] 1088 | fn issue_1506_setter(&self, _py: Python<'_>, _value: i32) {} [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1088:30 [INFO] [stdout] | [INFO] [stdout] 1088 | fn issue_1506_setter(&self, _py: Python<'_>, _value: i32) {} [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1093:19 [INFO] [stdout] | [INFO] [stdout] 1093 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1094:20 [INFO] [stdout] | [INFO] [stdout] 1094 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1101:19 [INFO] [stdout] | [INFO] [stdout] 1101 | _cls: &Bound<'_, PyType>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1101:19 [INFO] [stdout] | [INFO] [stdout] 1101 | _cls: &Bound<'_, PyType>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1101:19 [INFO] [stdout] | [INFO] [stdout] 1101 | _cls: &Bound<'_, PyType>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1103:19 [INFO] [stdout] | [INFO] [stdout] 1103 | _arg: &Bound<'_, PyAny>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1104:20 [INFO] [stdout] | [INFO] [stdout] 1104 | _args: &Bound<'_, PyTuple>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1006:20 [INFO] [stdout] | [INFO] [stdout] 1006 | fn $fn(&self, $arg: $arg_ty) {} [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1114 | / pymethods!( [INFO] [stdout] 1115 | | #[pymethods] [INFO] [stdout] 1116 | | impl Issue1696 { [INFO] [stdout] 1117 | | fn issue_1696(&self, _x: &InstanceMethod) {} [INFO] [stdout] 1118 | | } [INFO] [stdout] 1119 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_methods.rs:1006:33 [INFO] [stdout] | [INFO] [stdout] 1006 | fn $fn(&self, $arg: $arg_ty) {} [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1114 | / pymethods!( [INFO] [stdout] 1115 | | #[pymethods] [INFO] [stdout] 1116 | | impl Issue1696 { [INFO] [stdout] 1117 | | fn issue_1696(&self, _x: &InstanceMethod) {} [INFO] [stdout] 1118 | | } [INFO] [stdout] 1119 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 123 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_pyself` [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |_____________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_pyself.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_pyself.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | impl UnraisableCapture { [INFO] [stdout] 76 | | pub fn hook(&mut self, unraisable: Bound<'_, PyAny>) { [INFO] [stdout] | |___________________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_pyself.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | fn clone_ref<'a, 'py>(slf: &'a Bound<'py, Self>) -> &'a Bound<'py, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_pyself.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_pyself.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | slf: &'a Bound<'py, Self>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_pyself.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [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[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_pyself.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_iter(slf: &Bound<'_, Self>, keys: Py) -> Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_pyself.rs:30:46 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_iter(slf: &Bound<'_, Self>, keys: Py) -> Iter { [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_pyself.rs:38:18 [WARN] too many lines in the log, truncating it