[INFO] fetching crate pyo3 0.22.6... [INFO] checking pyo3-0.22.6 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate pyo3 0.22.6 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate pyo3 0.22.6 on toolchain da25749bf5e6ba5ed862ff361c19afff2a986b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pyo3 0.22.6 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate pyo3 0.22.6 [INFO] tweaked toml for crates.io crate pyo3 0.22.6 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "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.9.0 (available: v0.10.0) [INFO] [stderr] Adding hashbrown v0.14.5 (available: v0.15.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c786f7f8678dcc03ad1573d2182fea01c64e2a2a7e04fec7be8ac661d6e86043 [INFO] running `Command { std: "docker" "start" "-a" "c786f7f8678dcc03ad1573d2182fea01c64e2a2a7e04fec7be8ac661d6e86043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c786f7f8678dcc03ad1573d2182fea01c64e2a2a7e04fec7be8ac661d6e86043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c786f7f8678dcc03ad1573d2182fea01c64e2a2a7e04fec7be8ac661d6e86043", kill_on_drop: false }` [INFO] [stdout] c786f7f8678dcc03ad1573d2182fea01c64e2a2a7e04fec7be8ac661d6e86043 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a4323fa35cb8a2ac471848961a02e57fe21c65403b48b11a4ea8b11da0bdbd1 [INFO] running `Command { std: "docker" "start" "-a" "7a4323fa35cb8a2ac471848961a02e57fe21c65403b48b11a4ea8b11da0bdbd1", 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] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling pyo3-build-config v0.22.6 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling target-triple v0.1.3 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling pyo3-macros-backend v0.22.6 [INFO] [stderr] Compiling pyo3-ffi v0.22.6 [INFO] [stderr] Compiling pyo3 v0.22.6 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Fixed build.rs (1 fix) [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking send_wrapper v0.6.0 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking proptest v1.5.0 [INFO] [stderr] Compiling pyo3-macros v0.22.6 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Fixed src/pycell/impl_.rs (2 fixes) [INFO] [stderr] Fixed src/internal/get_slot.rs (2 fixes) [INFO] [stderr] Fixed src/impl_/pymethods.rs (8 fixes) [INFO] [stderr] Fixed src/exceptions.rs (9 fixes) [INFO] [stderr] Fixed src/types/float.rs (1 fix) [INFO] [stderr] Fixed src/instance.rs (13 fixes) [INFO] [stderr] Fixed src/types/bytearray.rs (4 fixes) [INFO] [stderr] Fixed src/gil.rs (4 fixes) [INFO] [stderr] Fixed src/impl_/extract_argument.rs (2 fixes) [INFO] [stderr] Fixed src/types/function.rs (1 fix) [INFO] [stderr] Fixed src/macros.rs (15 fixes) [INFO] [stderr] Fixed src/panic.rs (1 fix) [INFO] [stderr] Fixed src/py_result_ext.rs (1 fix) [INFO] [stderr] Fixed src/pyclass_init.rs (4 fixes) [INFO] [stderr] Fixed src/ffi_ptr_ext.rs (7 fixes) [INFO] [stderr] Fixed src/types/typeobject.rs (1 fix) [INFO] [stderr] Fixed src/types/weakref/anyref.rs (2 fixes) [INFO] [stderr] Fixed src/err/mod.rs (1 fix) [INFO] [stderr] Fixed src/types/list.rs (2 fixes) [INFO] [stderr] Fixed src/err/err_state.rs (1 fix) [INFO] [stderr] Fixed src/conversions/std/num.rs (7 fixes) [INFO] [stderr] Fixed src/types/bytes.rs (1 fix) [INFO] [stderr] Fixed src/sync.rs (2 fixes) [INFO] [stderr] Fixed src/types/mod.rs (8 fixes) [INFO] [stderr] Fixed src/types/datetime.rs (1 fix) [INFO] [stderr] Fixed src/types/any.rs (5 fixes) [INFO] [stderr] Fixed src/types/string.rs (2 fixes) [INFO] [stderr] Fixed src/types/capsule.rs (4 fixes) [INFO] [stderr] Fixed src/types/tuple.rs (5 fixes) [INFO] [stderr] Fixed src/marker.rs (1 fix) [INFO] [stderr] Fixed src/pyclass/create_type_object.rs (9 fixes) [INFO] [stderr] Fixed src/impl_/pyclass.rs (12 fixes) [INFO] [stderr] Fixed src/internal_tricks.rs (1 fix) [INFO] [stderr] Fixed src/conversions/std/ipaddr.rs (1 fix) [INFO] [stderr] Fixed src/impl_/trampoline.rs (7 fixes) [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking trybuild v1.0.101 [INFO] [stderr] Migrating tests/test_buffer.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/../src/tests/common.rs (17 fixes) [INFO] [stderr] Fixed tests/test_buffer.rs (1 fix) [INFO] [stderr] Migrating tests/test_pyfunction.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed tests/test_pyfunction.rs (3 fixes) [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_pyfunction.rs:50:42 [INFO] [stdout] | [INFO] [stdout] 50 | fn buffer_inplace_add(py: Python<'_>, x: PyBuffer, y: PyBuffer) { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:50:60 [INFO] [stdout] | [INFO] [stdout] 50 | fn buffer_inplace_add(py: Python<'_>, x: PyBuffer, y: PyBuffer) { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:93:43 [INFO] [stdout] | [INFO] [stdout] 93 | fn function_with_pyfunction_arg<'py>(fun: &Bound<'py, PyFunction>) -> 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_pyfunction.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | fun: &Bound<'py, PyCFunction>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:146:64 [INFO] [stdout] | [INFO] [stdout] 146 | #[pyo3(from_py_with = "datetime_to_timestamp")] timestamp: i64, [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:235:14 [INFO] [stdout] | [INFO] [stdout] 235 | str_arg: &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_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_pyfunction.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | int_arg: i64, [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:237:16 [INFO] [stdout] | [INFO] [stdout] 237 | tuple_arg: (String, 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] [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_pyfunction.rs:500:23 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn foo(x: 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_pyfunction.rs:529:10 [INFO] [stdout] | [INFO] [stdout] 529 | key: &'py Key, [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | value: &'py Value, [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_pyfunction.rs:576:12 [INFO] [stdout] | [INFO] [stdout] 576 | x: &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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] [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] 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_default_impls.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_module.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:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | { 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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | 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:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | #[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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_class_attributes.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_module` [INFO] [stdout] warning[E0133]: 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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [INFO] [stdout] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] after fixes were automatically applied the compiler reported errors within these files: [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_module.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn new(value: usize) -> ValueClass { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn double(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] [stderr] * tests/test_module.rs [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_module.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | fn with_module<'py>(module: &Bound<'py, PyModule>) -> 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_module.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | #[pymodule] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymodule` (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_module.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | fn with_module<'py>(module: &Bound<'py, PyModule>) -> 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] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | fn with_module<'py>(module: &Bound<'py, PyModule>) -> 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] [stderr] and we would appreciate a bug report! You're likely to see [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_module.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | fn double_value(v: &ValueClass) -> 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] [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>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:369:40 [INFO] [stdout] | [INFO] [stdout] 369 | fn pyfunction_with_module<'py>(module: &Bound<'py, PyModule>) -> 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_module.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyfunction` (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_module.rs:369:40 [INFO] [stdout] | [INFO] [stdout] 369 | fn pyfunction_with_module<'py>(module: &Bound<'py, PyModule>) -> 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] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:369:40 [INFO] [stdout] | [INFO] [stdout] 369 | fn pyfunction_with_module<'py>(module: &Bound<'py, PyModule>) -> 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] [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 after doc comment [INFO] [stderr] --> tests/test_module.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | /// This module is implemented in Rust. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment doesn't document anything [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>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | module: 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_module.rs:373:1 [INFO] [stdout] | [INFO] [stdout] 373 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyfunction` (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_module.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | module: 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]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | module: Py, [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_module.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information 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_module.rs:382:1 [INFO] [stdout] | [INFO] [stdout] 382 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyfunction` (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_module.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | module: &Bound<'py, PyModule>, [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_module.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | module: &Bound<'py, PyModule>, [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_module.rs:395:13 [INFO] [stdout] | [INFO] [stdout] 395 | 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 `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_module.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | module: &Bound<'py, PyModule>, [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_module.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | module: &Bound<'py, PyModule>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_module.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | module: &Bound<'py, PyModule>, [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] 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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_datetime_import.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_multiple_pymethods.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_wrap_pyfunction_deduction.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_string.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [INFO] [stdout] [INFO] [stderr] Migrating tests/test_class_comparisons.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_string.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | fn take_str(_s: &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] 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] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_class_comparisons` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_class_comparisons.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_comparisons.rs:67:1 [INFO] [stderr] | [INFO] [stderr] 67 | { unsafe #[pyclass(eq, ord)]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_comparisons.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Variant(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_class_comparisons.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | #[pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (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_class_comparisons.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Variant(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_class_comparisons.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | OtherVariant(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_class_comparisons.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | #[pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (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_class_comparisons.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | OtherVariant(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_class_comparisons.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | Variant { msg: String, idx: 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_class_comparisons.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | #[pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stdout] warning[E0133]: 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_comparisons.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | Variant { msg: String, idx: 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_class_comparisons.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | #[pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (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_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_comparisons.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | Variant { msg: String, idx: 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] [stderr] Original diagnostics will follow. [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_comparisons.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | Variant { msg: String, idx: 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] [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_class_comparisons.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | OtherVariant { name: String, idx: 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_class_comparisons.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | #[pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (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_comparisons.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | OtherVariant { name: String, idx: 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_class_comparisons.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | #[pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (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_class_comparisons.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 78 | OtherVariant { name: String, idx: 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 `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_comparisons.rs:78:39 [INFO] [stdout] | [INFO] [stdout] 78 | OtherVariant { name: String, idx: 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] 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_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_various.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | 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:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | 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:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | 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:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | 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:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | 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:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | 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] 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_various` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_various.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_various.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_various.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | 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] --> tests/test_various.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_various.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | fn set_other(&self, mut other: PyRefMut<'_, MutRefArg>) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_various.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | fn set_other(&self, mut other: PyRefMut<'_, MutRefArg>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_various.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 132 | slf: &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_various.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | #[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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed tests/test_buffer_protocol.rs (4 fixes) [INFO] [stderr] Migrating tests/test_bytes.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_gc.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_bytes.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | fn bytes_pybytes_conversion(bytes: &[u8]) -> &[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] [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_bytes.rs:23:48 [INFO] [stdout] | [INFO] [stdout] 23 | fn bytes_vec_conversion(py: Python<'_>, bytes: Vec) -> Bound<'_, 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] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed tests/test_gc.rs (1 fix) [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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] [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] [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] [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:521:18 [INFO] [stdout] | [INFO] [stdout] 521 | 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] [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:583:22 [INFO] [stdout] | [INFO] [stdout] 583 | 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] [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:644:22 [INFO] [stdout] | [INFO] [stdout] 644 | 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] [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:666:22 [INFO] [stdout] | [INFO] [stdout] 666 | fn __clear__(&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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_class_new.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/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] [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] 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] [stderr] Migrating tests/test_exceptions.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/test_datetime.rs (2 fixes) [INFO] [stderr] Migrating tests/test_append_to_inittab.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_declarative_module.rs from 2021 edition to 2024 [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/impl_/pycell.rs [INFO] [stderr] * src/impl_/pymethods.rs [INFO] [stderr] * src/instance.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/prelude.rs [INFO] [stderr] * src/pycell.rs [INFO] [stderr] * src/pyclass_init.rs [INFO] [stderr] * src/tests/hygiene/misc.rs [INFO] [stderr] * src/tests/hygiene/pyclass.rs [INFO] [stderr] * src/tests/hygiene/pymethods.rs [INFO] [stderr] * src/types/any.rs [INFO] [stderr] * src/types/dict.rs [INFO] [stderr] * src/types/mod.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/pyclass.rs:79:1 [INFO] [stderr] | [INFO] [stderr] 79 | { unsafe #[crate::pyclass(eq, ord)]} [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 item, found `{` [INFO] [stderr] --> src/tests/hygiene/pymethods.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | { 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 item, found `{` [INFO] [stderr] --> src/pycell.rs:1230:5 [INFO] [stderr] | [INFO] [stderr] 1230 | { 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:2554:18 [INFO] [stderr] | [INFO] [stderr] 2554 | { unsafe #[pymethods(crate = "crate")]} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `{`, found `#` [INFO] [stderr] --> src/types/any.rs:2554:18 [INFO] [stderr] | [INFO] [stderr] 2554 | { unsafe #[pymethods(crate = "crate")]} [INFO] [stderr] | ------ ^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] [INFO] [stderr] error: expected statement after outer attribute [INFO] [stderr] --> src/types/any.rs:2808:18 [INFO] [stderr] | [INFO] [stderr] 2808 | { unsafe #[pymethods(crate = "crate")]} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `{`, found `#` [INFO] [stderr] --> src/types/any.rs:2808:18 [INFO] [stderr] | [INFO] [stderr] 2808 | { unsafe #[pymethods(crate = "crate")]} [INFO] [stderr] | ------ ^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] [INFO] [stderr] error: expected statement after outer attribute [INFO] [stderr] --> src/types/dict.rs:968:18 [INFO] [stderr] | [INFO] [stderr] 968 | { unsafe #[crate::pymethods(crate = "crate")]} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `{`, found `#` [INFO] [stderr] --> src/types/dict.rs:968:18 [INFO] [stderr] | [INFO] [stderr] 968 | { unsafe #[crate::pymethods(crate = "crate")]} [INFO] [stderr] | ------ ^ expected `{` [INFO] [stderr] | | [INFO] [stderr] | while parsing this `unsafe` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ignores `{` and any tokens following [INFO] [stderr] --> src/tests/hygiene/misc.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | { unsafe #[crate::pymethods(crate = "crate")]} [INFO] [stderr] | ^ [INFO] [stderr] ... [INFO] [stderr] 58 | macro_rules_hygiene!(MyClass1, MyClass2); [INFO] [stderr] | ---------------------------------------- caused by the macro expansion here [INFO] [stderr] | [INFO] [stderr] = note: the usage of `macro_rules_hygiene!` is likely invalid in item context [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::pycell::PyRef`, `crate::pycell::PyRefMut` [INFO] [stderr] --> src/lib.rs:338:25 [INFO] [stderr] | [INFO] [stderr] 338 | pub use crate::pycell::{PyRef, PyRefMut}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ no `PyRefMut` in `pycell` [INFO] [stderr] | | [INFO] [stderr] | no `PyRef` in `pycell` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::pycell::impl_` [INFO] [stderr] --> src/impl_/pycell.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | pub use crate::pycell::impl_::{ [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::pycell::impl_` [INFO] [stderr] --> src/impl_/pymethods.rs:7:20 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::pycell::impl_::PyClassBorrowChecker as _; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::pycell::PyBorrowError`, `crate::pycell::PyBorrowMutError` [INFO] [stderr] --> src/impl_/pymethods.rs:8:21 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::pycell::{PyBorrowError, PyBorrowMutError}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ no `PyBorrowMutError` in `pycell` [INFO] [stderr] | | [INFO] [stderr] | no `PyBorrowError` in `pycell` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::pycell::PyBorrowError`, `crate::pycell::PyBorrowMutError` [INFO] [stderr] --> src/instance.rs:4:21 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::pycell::{PyBorrowError, PyBorrowMutError}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ no `PyBorrowMutError` in `pycell` [INFO] [stderr] | | [INFO] [stderr] | no `PyBorrowError` in `pycell` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::pycell::impl_` [INFO] [stderr] --> src/pyclass_init.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | pycell::impl_::{PyClassBorrowChecker, PyClassMutability, PyClassObjectContents}, [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::pycell::PyRef`, `crate::pycell::PyRefMut` [INFO] [stderr] --> src/prelude.rs:21:25 [INFO] [stderr] | [INFO] [stderr] 21 | pub use crate::pycell::{PyRef, PyRefMut}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ no `PyRefMut` in `pycell` [INFO] [stderr] | | [INFO] [stderr] | no `PyRef` in `pycell` [INFO] [stderr] | [INFO] [stderr] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stderr] crate::PyRef [INFO] [stderr] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stderr] crate::PyRefMut [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `new` in this scope [INFO] [stderr] --> src/types/dict.rs:970:15 [INFO] [stderr] | [INFO] [stderr] 970 | #[new] [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:399:1 [INFO] [stderr] | [INFO] [stderr] 399 | / impl_native_exception!( [INFO] [stderr] 400 | | PyBaseException, [INFO] [stderr] 401 | | PyExc_BaseException, [INFO] [stderr] 402 | | native_doc!("BaseException"), [INFO] [stderr] 403 | | ffi::PyBaseExceptionObject, [INFO] [stderr] 404 | | #checkfunction=ffi::PyExceptionInstance_Check [INFO] [stderr] 405 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:406:1 [INFO] [stderr] | [INFO] [stderr] 406 | impl_native_exception!(PyException, PyExc_Exception, native_doc!("Exception")); [INFO] [stderr] | ------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:407:1 [INFO] [stderr] | [INFO] [stderr] 407 | / impl_native_exception!( [INFO] [stderr] 408 | | PyStopAsyncIteration, [INFO] [stderr] 409 | | PyExc_StopAsyncIteration, [INFO] [stderr] 410 | | native_doc!("StopAsyncIteration") [INFO] [stderr] 411 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:412:1 [INFO] [stderr] | [INFO] [stderr] 412 | / impl_native_exception!( [INFO] [stderr] 413 | | PyStopIteration, [INFO] [stderr] 414 | | PyExc_StopIteration, [INFO] [stderr] 415 | | native_doc!("StopIteration"), [INFO] [stderr] 416 | | ffi::PyStopIterationObject [INFO] [stderr] 417 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:418:1 [INFO] [stderr] | [INFO] [stderr] 418 | / impl_native_exception!( [INFO] [stderr] 419 | | PyGeneratorExit, [INFO] [stderr] 420 | | PyExc_GeneratorExit, [INFO] [stderr] 421 | | native_doc!("GeneratorExit") [INFO] [stderr] 422 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:423:1 [INFO] [stderr] | [INFO] [stderr] 423 | / impl_native_exception!( [INFO] [stderr] 424 | | PyArithmeticError, [INFO] [stderr] 425 | | PyExc_ArithmeticError, [INFO] [stderr] 426 | | native_doc!("ArithmeticError") [INFO] [stderr] 427 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:428:1 [INFO] [stderr] | [INFO] [stderr] 428 | impl_native_exception!(PyLookupError, PyExc_LookupError, native_doc!("LookupError")); [INFO] [stderr] | ------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:430:1 [INFO] [stderr] | [INFO] [stderr] 430 | / impl_native_exception!( [INFO] [stderr] 431 | | PyAssertionError, [INFO] [stderr] 432 | | PyExc_AssertionError, [INFO] [stderr] 433 | | native_doc!("AssertionError") [INFO] [stderr] 434 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:435:1 [INFO] [stderr] | [INFO] [stderr] 435 | / impl_native_exception!( [INFO] [stderr] 436 | | PyAttributeError, [INFO] [stderr] 437 | | PyExc_AttributeError, [INFO] [stderr] 438 | | native_doc!("AttributeError") [INFO] [stderr] 439 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:440:1 [INFO] [stderr] | [INFO] [stderr] 440 | impl_native_exception!(PyBufferError, PyExc_BufferError, native_doc!("BufferError")); [INFO] [stderr] | ------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:441:1 [INFO] [stderr] | [INFO] [stderr] 441 | impl_native_exception!(PyEOFError, PyExc_EOFError, native_doc!("EOFError")); [INFO] [stderr] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:442:1 [INFO] [stderr] | [INFO] [stderr] 442 | / impl_native_exception!( [INFO] [stderr] 443 | | PyFloatingPointError, [INFO] [stderr] 444 | | PyExc_FloatingPointError, [INFO] [stderr] 445 | | native_doc!("FloatingPointError") [INFO] [stderr] 446 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:448:1 [INFO] [stderr] | [INFO] [stderr] 448 | / impl_native_exception!( [INFO] [stderr] 449 | | PyOSError, [INFO] [stderr] 450 | | PyExc_OSError, [INFO] [stderr] 451 | | native_doc!("OSError"), [INFO] [stderr] 452 | | ffi::PyOSErrorObject [INFO] [stderr] 453 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:456:1 [INFO] [stderr] | [INFO] [stderr] 456 | impl_native_exception!(PyImportError, PyExc_ImportError, native_doc!("ImportError")); [INFO] [stderr] | ------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:458:1 [INFO] [stderr] | [INFO] [stderr] 458 | / impl_native_exception!( [INFO] [stderr] 459 | | PyModuleNotFoundError, [INFO] [stderr] 460 | | PyExc_ModuleNotFoundError, [INFO] [stderr] 461 | | native_doc!("ModuleNotFoundError") [INFO] [stderr] 462 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:464:1 [INFO] [stderr] | [INFO] [stderr] 464 | impl_native_exception!(PyIndexError, PyExc_IndexError, native_doc!("IndexError")); [INFO] [stderr] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:465:1 [INFO] [stderr] | [INFO] [stderr] 465 | impl_native_exception!(PyKeyError, PyExc_KeyError, native_doc!("KeyError")); [INFO] [stderr] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:466:1 [INFO] [stderr] | [INFO] [stderr] 466 | / impl_native_exception!( [INFO] [stderr] 467 | | PyKeyboardInterrupt, [INFO] [stderr] 468 | | PyExc_KeyboardInterrupt, [INFO] [stderr] 469 | | native_doc!("KeyboardInterrupt") [INFO] [stderr] 470 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:471:1 [INFO] [stderr] | [INFO] [stderr] 471 | impl_native_exception!(PyMemoryError, PyExc_MemoryError, native_doc!("MemoryError")); [INFO] [stderr] | ------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:472:1 [INFO] [stderr] | [INFO] [stderr] 472 | impl_native_exception!(PyNameError, PyExc_NameError, native_doc!("NameError")); [INFO] [stderr] | ------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:473:1 [INFO] [stderr] | [INFO] [stderr] 473 | / impl_native_exception!( [INFO] [stderr] 474 | | PyOverflowError, [INFO] [stderr] 475 | | PyExc_OverflowError, [INFO] [stderr] 476 | | native_doc!("OverflowError") [INFO] [stderr] 477 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:478:1 [INFO] [stderr] | [INFO] [stderr] 478 | / impl_native_exception!( [INFO] [stderr] 479 | | PyRuntimeError, [INFO] [stderr] 480 | | PyExc_RuntimeError, [INFO] [stderr] 481 | | native_doc!("RuntimeError") [INFO] [stderr] 482 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:483:1 [INFO] [stderr] | [INFO] [stderr] 483 | / impl_native_exception!( [INFO] [stderr] 484 | | PyRecursionError, [INFO] [stderr] 485 | | PyExc_RecursionError, [INFO] [stderr] 486 | | native_doc!("RecursionError") [INFO] [stderr] 487 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:488:1 [INFO] [stderr] | [INFO] [stderr] 488 | / impl_native_exception!( [INFO] [stderr] 489 | | PyNotImplementedError, [INFO] [stderr] 490 | | PyExc_NotImplementedError, [INFO] [stderr] 491 | | native_doc!("NotImplementedError") [INFO] [stderr] 492 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:494:1 [INFO] [stderr] | [INFO] [stderr] 494 | / impl_native_exception!( [INFO] [stderr] 495 | | PySyntaxError, [INFO] [stderr] 496 | | PyExc_SyntaxError, [INFO] [stderr] 497 | | native_doc!("SyntaxError"), [INFO] [stderr] 498 | | ffi::PySyntaxErrorObject [INFO] [stderr] 499 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:502:1 [INFO] [stderr] | [INFO] [stderr] 502 | / impl_native_exception!( [INFO] [stderr] 503 | | PyReferenceError, [INFO] [stderr] 504 | | PyExc_ReferenceError, [INFO] [stderr] 505 | | native_doc!("ReferenceError") [INFO] [stderr] 506 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:507:1 [INFO] [stderr] | [INFO] [stderr] 507 | impl_native_exception!(PySystemError, PyExc_SystemError, native_doc!("SystemError")); [INFO] [stderr] | ------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:509:1 [INFO] [stderr] | [INFO] [stderr] 509 | / impl_native_exception!( [INFO] [stderr] 510 | | PySystemExit, [INFO] [stderr] 511 | | PyExc_SystemExit, [INFO] [stderr] 512 | | native_doc!("SystemExit"), [INFO] [stderr] 513 | | ffi::PySystemExitObject [INFO] [stderr] 514 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:517:1 [INFO] [stderr] | [INFO] [stderr] 517 | impl_native_exception!(PyTypeError, PyExc_TypeError, native_doc!("TypeError")); [INFO] [stderr] | ------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:518:1 [INFO] [stderr] | [INFO] [stderr] 518 | / impl_native_exception!( [INFO] [stderr] 519 | | PyUnboundLocalError, [INFO] [stderr] 520 | | PyExc_UnboundLocalError, [INFO] [stderr] 521 | | native_doc!("UnboundLocalError") [INFO] [stderr] 522 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:524:1 [INFO] [stderr] | [INFO] [stderr] 524 | / impl_native_exception!( [INFO] [stderr] 525 | | PyUnicodeError, [INFO] [stderr] 526 | | PyExc_UnicodeError, [INFO] [stderr] 527 | | native_doc!("UnicodeError"), [INFO] [stderr] 528 | | ffi::PyUnicodeErrorObject [INFO] [stderr] 529 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:537:1 [INFO] [stderr] | [INFO] [stderr] 537 | / impl_native_exception!( [INFO] [stderr] 538 | | PyUnicodeDecodeError, [INFO] [stderr] 539 | | PyExc_UnicodeDecodeError, [INFO] [stderr] 540 | | native_doc!("UnicodeDecodeError", "") [INFO] [stderr] 541 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:542:1 [INFO] [stderr] | [INFO] [stderr] 542 | / impl_native_exception!( [INFO] [stderr] 543 | | PyUnicodeEncodeError, [INFO] [stderr] 544 | | PyExc_UnicodeEncodeError, [INFO] [stderr] 545 | | native_doc!("UnicodeEncodeError", "") [INFO] [stderr] 546 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:547:1 [INFO] [stderr] | [INFO] [stderr] 547 | / impl_native_exception!( [INFO] [stderr] 548 | | PyUnicodeTranslateError, [INFO] [stderr] 549 | | PyExc_UnicodeTranslateError, [INFO] [stderr] 550 | | native_doc!("UnicodeTranslateError", "") [INFO] [stderr] 551 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:558:1 [INFO] [stderr] | [INFO] [stderr] 558 | impl_native_exception!(PyValueError, PyExc_ValueError, native_doc!("ValueError")); [INFO] [stderr] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:559:1 [INFO] [stderr] | [INFO] [stderr] 559 | / impl_native_exception!( [INFO] [stderr] 560 | | PyZeroDivisionError, [INFO] [stderr] 561 | | PyExc_ZeroDivisionError, [INFO] [stderr] 562 | | native_doc!("ZeroDivisionError") [INFO] [stderr] 563 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:565:1 [INFO] [stderr] | [INFO] [stderr] 565 | / impl_native_exception!( [INFO] [stderr] 566 | | PyBlockingIOError, [INFO] [stderr] 567 | | PyExc_BlockingIOError, [INFO] [stderr] 568 | | native_doc!("BlockingIOError") [INFO] [stderr] 569 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:570:1 [INFO] [stderr] | [INFO] [stderr] 570 | / impl_native_exception!( [INFO] [stderr] 571 | | PyBrokenPipeError, [INFO] [stderr] 572 | | PyExc_BrokenPipeError, [INFO] [stderr] 573 | | native_doc!("BrokenPipeError") [INFO] [stderr] 574 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:575:1 [INFO] [stderr] | [INFO] [stderr] 575 | / impl_native_exception!( [INFO] [stderr] 576 | | PyChildProcessError, [INFO] [stderr] 577 | | PyExc_ChildProcessError, [INFO] [stderr] 578 | | native_doc!("ChildProcessError") [INFO] [stderr] 579 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:580:1 [INFO] [stderr] | [INFO] [stderr] 580 | / impl_native_exception!( [INFO] [stderr] 581 | | PyConnectionError, [INFO] [stderr] 582 | | PyExc_ConnectionError, [INFO] [stderr] 583 | | native_doc!("ConnectionError") [INFO] [stderr] 584 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:585:1 [INFO] [stderr] | [INFO] [stderr] 585 | / impl_native_exception!( [INFO] [stderr] 586 | | PyConnectionAbortedError, [INFO] [stderr] 587 | | PyExc_ConnectionAbortedError, [INFO] [stderr] 588 | | native_doc!("ConnectionAbortedError") [INFO] [stderr] 589 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:590:1 [INFO] [stderr] | [INFO] [stderr] 590 | / impl_native_exception!( [INFO] [stderr] 591 | | PyConnectionRefusedError, [INFO] [stderr] 592 | | PyExc_ConnectionRefusedError, [INFO] [stderr] 593 | | native_doc!("ConnectionRefusedError") [INFO] [stderr] 594 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:595:1 [INFO] [stderr] | [INFO] [stderr] 595 | / impl_native_exception!( [INFO] [stderr] 596 | | PyConnectionResetError, [INFO] [stderr] 597 | | PyExc_ConnectionResetError, [INFO] [stderr] 598 | | native_doc!("ConnectionResetError") [INFO] [stderr] 599 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:600:1 [INFO] [stderr] | [INFO] [stderr] 600 | / impl_native_exception!( [INFO] [stderr] 601 | | PyFileExistsError, [INFO] [stderr] 602 | | PyExc_FileExistsError, [INFO] [stderr] 603 | | native_doc!("FileExistsError") [INFO] [stderr] 604 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:605:1 [INFO] [stderr] | [INFO] [stderr] 605 | / impl_native_exception!( [INFO] [stderr] 606 | | PyFileNotFoundError, [INFO] [stderr] 607 | | PyExc_FileNotFoundError, [INFO] [stderr] 608 | | native_doc!("FileNotFoundError") [INFO] [stderr] 609 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:610:1 [INFO] [stderr] | [INFO] [stderr] 610 | / impl_native_exception!( [INFO] [stderr] 611 | | PyInterruptedError, [INFO] [stderr] 612 | | PyExc_InterruptedError, [INFO] [stderr] 613 | | native_doc!("InterruptedError") [INFO] [stderr] 614 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:615:1 [INFO] [stderr] | [INFO] [stderr] 615 | / impl_native_exception!( [INFO] [stderr] 616 | | PyIsADirectoryError, [INFO] [stderr] 617 | | PyExc_IsADirectoryError, [INFO] [stderr] 618 | | native_doc!("IsADirectoryError") [INFO] [stderr] 619 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:620:1 [INFO] [stderr] | [INFO] [stderr] 620 | / impl_native_exception!( [INFO] [stderr] 621 | | PyNotADirectoryError, [INFO] [stderr] 622 | | PyExc_NotADirectoryError, [INFO] [stderr] 623 | | native_doc!("NotADirectoryError") [INFO] [stderr] 624 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:625:1 [INFO] [stderr] | [INFO] [stderr] 625 | / impl_native_exception!( [INFO] [stderr] 626 | | PyPermissionError, [INFO] [stderr] 627 | | PyExc_PermissionError, [INFO] [stderr] 628 | | native_doc!("PermissionError") [INFO] [stderr] 629 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:630:1 [INFO] [stderr] | [INFO] [stderr] 630 | / impl_native_exception!( [INFO] [stderr] 631 | | PyProcessLookupError, [INFO] [stderr] 632 | | PyExc_ProcessLookupError, [INFO] [stderr] 633 | | native_doc!("ProcessLookupError") [INFO] [stderr] 634 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:635:1 [INFO] [stderr] | [INFO] [stderr] 635 | / impl_native_exception!( [INFO] [stderr] 636 | | PyTimeoutError, [INFO] [stderr] 637 | | PyExc_TimeoutError, [INFO] [stderr] 638 | | native_doc!("TimeoutError") [INFO] [stderr] 639 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:641:1 [INFO] [stderr] | [INFO] [stderr] 641 | / impl_native_exception!( [INFO] [stderr] 642 | | PyEnvironmentError, [INFO] [stderr] 643 | | PyExc_EnvironmentError, [INFO] [stderr] 644 | | native_doc!("EnvironmentError") [INFO] [stderr] 645 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:646:1 [INFO] [stderr] | [INFO] [stderr] 646 | impl_native_exception!(PyIOError, PyExc_IOError, native_doc!("IOError")); [INFO] [stderr] | ------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:747:1 [INFO] [stderr] | [INFO] [stderr] 747 | impl_native_exception!(PyWarning, PyExc_Warning, native_doc!("Warning")); [INFO] [stderr] | ------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:748:1 [INFO] [stderr] | [INFO] [stderr] 748 | impl_native_exception!(PyUserWarning, PyExc_UserWarning, native_doc!("UserWarning")); [INFO] [stderr] | ------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:749:1 [INFO] [stderr] | [INFO] [stderr] 749 | / impl_native_exception!( [INFO] [stderr] 750 | | PyDeprecationWarning, [INFO] [stderr] 751 | | PyExc_DeprecationWarning, [INFO] [stderr] 752 | | native_doc!("DeprecationWarning") [INFO] [stderr] 753 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:754:1 [INFO] [stderr] | [INFO] [stderr] 754 | / impl_native_exception!( [INFO] [stderr] 755 | | PyPendingDeprecationWarning, [INFO] [stderr] 756 | | PyExc_PendingDeprecationWarning, [INFO] [stderr] 757 | | native_doc!("PendingDeprecationWarning") [INFO] [stderr] 758 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:759:1 [INFO] [stderr] | [INFO] [stderr] 759 | / impl_native_exception!( [INFO] [stderr] 760 | | PySyntaxWarning, [INFO] [stderr] 761 | | PyExc_SyntaxWarning, [INFO] [stderr] 762 | | native_doc!("SyntaxWarning") [INFO] [stderr] 763 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:764:1 [INFO] [stderr] | [INFO] [stderr] 764 | / impl_native_exception!( [INFO] [stderr] 765 | | PyRuntimeWarning, [INFO] [stderr] 766 | | PyExc_RuntimeWarning, [INFO] [stderr] 767 | | native_doc!("RuntimeWarning") [INFO] [stderr] 768 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:769:1 [INFO] [stderr] | [INFO] [stderr] 769 | / impl_native_exception!( [INFO] [stderr] 770 | | PyFutureWarning, [INFO] [stderr] 771 | | PyExc_FutureWarning, [INFO] [stderr] 772 | | native_doc!("FutureWarning") [INFO] [stderr] 773 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:774:1 [INFO] [stderr] | [INFO] [stderr] 774 | / impl_native_exception!( [INFO] [stderr] 775 | | PyImportWarning, [INFO] [stderr] 776 | | PyExc_ImportWarning, [INFO] [stderr] 777 | | native_doc!("ImportWarning") [INFO] [stderr] 778 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:779:1 [INFO] [stderr] | [INFO] [stderr] 779 | / impl_native_exception!( [INFO] [stderr] 780 | | PyUnicodeWarning, [INFO] [stderr] 781 | | PyExc_UnicodeWarning, [INFO] [stderr] 782 | | native_doc!("UnicodeWarning") [INFO] [stderr] 783 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:784:1 [INFO] [stderr] | [INFO] [stderr] 784 | / impl_native_exception!( [INFO] [stderr] 785 | | PyBytesWarning, [INFO] [stderr] 786 | | PyExc_BytesWarning, [INFO] [stderr] 787 | | native_doc!("BytesWarning") [INFO] [stderr] 788 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:789:1 [INFO] [stderr] | [INFO] [stderr] 789 | / impl_native_exception!( [INFO] [stderr] 790 | | PyResourceWarning, [INFO] [stderr] 791 | | PyExc_ResourceWarning, [INFO] [stderr] 792 | | native_doc!("ResourceWarning") [INFO] [stderr] 793 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/exceptions.rs:796:1 [INFO] [stderr] | [INFO] [stderr] 796 | / impl_native_exception!( [INFO] [stderr] 797 | | PyEncodingWarning, [INFO] [stderr] 798 | | PyExc_EncodingWarning, [INFO] [stderr] 799 | | native_doc!("EncodingWarning") [INFO] [stderr] 800 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `impl_native_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/any.rs:60:1 [INFO] [stderr] | [INFO] [stderr] 60 | pyobject_native_type_sized!(PyAny, ffi::PyObject); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `pyobject_native_type_sized` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/boolobject.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | pyobject_native_type!(PyBool, ffi::PyObject, pyobject_native_static_type_object!(ffi::PyBool_Type), #checkfunction=ffi::PyBool_Check); [INFO] [stderr] | ------------------------------------------------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/complex.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | / pyobject_native_type!( [INFO] [stderr] 25 | | PyComplex, [INFO] [stderr] 26 | | ffi::PyComplexObject, [INFO] [stderr] 27 | | pyobject_native_static_type_object!(ffi::PyComplex_Type), [INFO] [stderr] 28 | | #checkfunction=ffi::PyComplex_Check [INFO] [stderr] 29 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/datetime.rs:200:1 [INFO] [stderr] | [INFO] [stderr] 200 | / pyobject_native_type!( [INFO] [stderr] 201 | | PyDate, [INFO] [stderr] 202 | | crate::ffi::PyDateTime_Date, [INFO] [stderr] 203 | | |py| expect_datetime_api(py).DateType, [INFO] [stderr] 204 | | #module=Some("datetime"), [INFO] [stderr] 205 | | #checkfunction=PyDate_Check [INFO] [stderr] 206 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/datetime.rs:291:1 [INFO] [stderr] | [INFO] [stderr] 291 | / pyobject_native_type!( [INFO] [stderr] 292 | | PyDateTime, [INFO] [stderr] 293 | | crate::ffi::PyDateTime_DateTime, [INFO] [stderr] 294 | | |py| expect_datetime_api(py).DateTimeType, [INFO] [stderr] 295 | | #module=Some("datetime"), [INFO] [stderr] 296 | | #checkfunction=PyDateTime_Check [INFO] [stderr] 297 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/datetime.rs:593:1 [INFO] [stderr] | [INFO] [stderr] 593 | / pyobject_native_type!( [INFO] [stderr] 594 | | PyTime, [INFO] [stderr] 595 | | crate::ffi::PyDateTime_Time, [INFO] [stderr] 596 | | |py| expect_datetime_api(py).TimeType, [INFO] [stderr] 597 | | #module=Some("datetime"), [INFO] [stderr] 598 | | #checkfunction=PyTime_Check [INFO] [stderr] 599 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/datetime.rs:801:1 [INFO] [stderr] | [INFO] [stderr] 801 | / pyobject_native_type!( [INFO] [stderr] 802 | | PyTzInfo, [INFO] [stderr] 803 | | crate::ffi::PyObject, [INFO] [stderr] 804 | | |py| expect_datetime_api(py).TZInfoType, [INFO] [stderr] 805 | | #module=Some("datetime"), [INFO] [stderr] 806 | | #checkfunction=PyTZInfo_Check [INFO] [stderr] 807 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/datetime.rs:855:1 [INFO] [stderr] | [INFO] [stderr] 855 | / pyobject_native_type!( [INFO] [stderr] 856 | | PyDelta, [INFO] [stderr] 857 | | crate::ffi::PyDateTime_Delta, [INFO] [stderr] 858 | | |py| expect_datetime_api(py).DeltaType, [INFO] [stderr] 859 | | #module=Some("datetime"), [INFO] [stderr] 860 | | #checkfunction=PyDelta_Check [INFO] [stderr] 861 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/dict.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | / pyobject_native_type!( [INFO] [stderr] 24 | | PyDict, [INFO] [stderr] 25 | | ffi::PyDictObject, [INFO] [stderr] 26 | | pyobject_native_static_type_object!(ffi::PyDict_Type), [INFO] [stderr] 27 | | #checkfunction=ffi::PyDict_Check [INFO] [stderr] 28 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/float.rs:26:1 [INFO] [stderr] | [INFO] [stderr] 26 | / pyobject_native_type!( [INFO] [stderr] 27 | | PyFloat, [INFO] [stderr] 28 | | ffi::PyFloatObject, [INFO] [stderr] 29 | | pyobject_native_static_type_object!(ffi::PyFloat_Type), [INFO] [stderr] 30 | | #checkfunction=ffi::PyFloat_Check [INFO] [stderr] 31 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/frozenset.rs:70:1 [INFO] [stderr] | [INFO] [stderr] 70 | / pyobject_native_type!( [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/exceptions.rs:804:46 [INFO] [stdout] | [INFO] [stdout] 804 | ($exc_ty:ident $(, |$py:tt| $constructor:expr )?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 804 | ($exc_ty:ident $(, |$py:tt| $constructor:expr_2021 )?) => { [INFO] [stdout] | ~~~~~~~~~ [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/./common.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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/./common.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_::trampoline::noargs` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/misc.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 58 | macro_rules_hygiene!(MyClass1, MyClass2); [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] --> src/tests/hygiene/misc.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | macro_rules_hygiene!(MyClass1, MyClass2); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `macro_rules_hygiene` (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/misc.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 47 | | impl $name_a { [INFO] [stdout] 48 | | fn finalize(&mut self) -> $name_b { [INFO] [stdout] | |_________________________________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 58 | macro_rules_hygiene!(MyClass1, MyClass2); [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] --> src/tests/hygiene/misc.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | macro_rules_hygiene!(MyClass1, MyClass2); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `macro_rules_hygiene` (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/pyclass.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 81 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 82 | | pub enum ComplexEnumEqOrd { [INFO] [stdout] 83 | | Variant1 { a: u32, b: 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/pyclass.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | #[crate::pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pyclass` (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/pyclass.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 81 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 82 | | pub enum ComplexEnumEqOrd { [INFO] [stdout] 83 | | Variant1 { a: u32, b: 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/pyclass.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | #[crate::pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pyclass` (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/pyclass.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 81 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 82 | | pub enum ComplexEnumEqOrd { [INFO] [stdout] 83 | | Variant1 { a: u32, b: 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_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pyclass.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 81 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 82 | | pub enum ComplexEnumEqOrd { [INFO] [stdout] 83 | | Variant1 { a: u32, b: 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/pyclass.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 81 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 82 | | pub enum ComplexEnumEqOrd { [INFO] [stdout] 83 | | Variant1 { a: u32, b: u32 }, [INFO] [stdout] 84 | | Variant2 { c: 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/pyclass.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | #[crate::pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pyclass` (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/pyclass.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 81 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 82 | | pub enum ComplexEnumEqOrd { [INFO] [stdout] 83 | | Variant1 { a: u32, b: u32 }, [INFO] [stdout] 84 | | Variant2 { c: 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/pyclass.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 89 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 90 | | pub enum TupleEnumEqOrd { [INFO] [stdout] 91 | | Variant1(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/pyclass.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | #[crate::pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pyclass` (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/pyclass.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 89 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 90 | | pub enum TupleEnumEqOrd { [INFO] [stdout] 91 | | Variant1(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/pyclass.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | #[crate::pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pyclass` (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/pyclass.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 89 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 90 | | pub enum TupleEnumEqOrd { [INFO] [stdout] 91 | | Variant1(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] [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/pyclass.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 89 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 90 | | pub enum TupleEnumEqOrd { [INFO] [stdout] 91 | | Variant1(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] [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/pyclass.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 89 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 90 | | pub enum TupleEnumEqOrd { [INFO] [stdout] 91 | | Variant1(u32, u32), [INFO] [stdout] 92 | | Variant2(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/pyclass.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | #[crate::pyclass(eq, ord)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `crate::pyclass` (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/pyclass.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 89 | | #[derive(PartialEq, PartialOrd)] [INFO] [stdout] 90 | | pub enum TupleEnumEqOrd { [INFO] [stdout] 91 | | Variant1(u32, u32), [INFO] [stdout] 92 | | Variant2(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_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/tests/hygiene/pyfunction.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 3 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 30 | | [INFO] [stdout] 31 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 34 | | [INFO] [stdout] 35 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 71 | | PyFrozenSet, [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 72 | | ffi::PySetObject, [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] 41 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 73 | | pyobject_native_static_type_object!(ffi::PyFrozenSet_Type), [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 74 | | #checkfunction=ffi::PyFrozenSet_Check [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 75 | | ); [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 62 | | [INFO] [stdout] 63 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] | |_- in this macro invocation [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 66 | | [INFO] [stdout] 67 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 70 | | [INFO] [stdout] 71 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 72 | | [INFO] [stdout] 73 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 91 | | fn __set__( [INFO] [stdout] 92 | | &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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 97 | | [INFO] [stdout] 98 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] --> src/types/mod.rs:366:54 [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 145 | | [INFO] [stdout] 146 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] | ^^^^^ could not find `impl_` in `pycell` [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 149 | | [INFO] [stdout] 150 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 153 | | [INFO] [stdout] 154 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] ::: src/types/set.rs:25:1 [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 157 | | [INFO] [stdout] 158 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 161 | | [INFO] [stdout] 162 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 25 | / pyobject_native_type!( [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 165 | | [INFO] [stdout] 166 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 26 | | PySet, [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 169 | | [INFO] [stdout] 170 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 27 | | ffi::PySetObject, [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 173 | | [INFO] [stdout] 174 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 28 | | pyobject_native_static_type_object!(ffi::PySet_Type), [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 177 | | [INFO] [stdout] 178 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 29 | | #checkfunction=ffi::PySet_Check [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 181 | | [INFO] [stdout] 182 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] 30 | | ); [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 185 | | [INFO] [stdout] 186 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] | |_- in this macro invocation [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 189 | | [INFO] [stdout] 190 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 193 | | [INFO] [stdout] 194 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 197 | | [INFO] [stdout] 198 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/slice.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | / pyobject_native_type!( [INFO] [stderr] 22 | | PySlice, [INFO] [stderr] 23 | | ffi::PySliceObject, [INFO] [stderr] 24 | | pyobject_native_static_type_object!(ffi::PySlice_Type), [INFO] [stderr] 25 | | #checkfunction=ffi::PySlice_Check [INFO] [stderr] 26 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `impl_` in `pycell` [INFO] [stderr] --> src/types/mod.rs:366:54 [INFO] [stderr] | [INFO] [stderr] 366 | type PyClassMutability = $crate::pycell::impl_::ImmutableClass; [INFO] [stderr] | ^^^^^ could not find `impl_` in `pycell` [INFO] [stderr] | [INFO] [stderr] ::: src/types/weakref/reference.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | / pyobject_native_type!( [INFO] [stderr] 22 | | PyWeakrefReference, [INFO] [stderr] 23 | | ffi::PyWeakReference, [INFO] [stderr] 24 | | pyobject_native_static_type_object!(ffi::_PyWeakref_RefType), [INFO] [stderr] 25 | | #module=Some("weakref"), [INFO] [stderr] 26 | | #checkfunction=ffi::PyWeakref_CheckRefExact [INFO] [stderr] 27 | | ); [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::pyobject_native_type_sized` which comes from the expansion of the macro `pyobject_native_type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 97 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [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/hygiene/pymethods.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 205 | | [INFO] [stdout] 206 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 209 | | [INFO] [stdout] 210 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 213 | | [INFO] [stdout] 214 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 217 | | [INFO] [stdout] 218 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 221 | | [INFO] [stdout] 222 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 225 | | [INFO] [stdout] 226 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 229 | | [INFO] [stdout] 230 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 233 | | [INFO] [stdout] 234 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 237 | | [INFO] [stdout] 238 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 241 | | [INFO] [stdout] 242 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 245 | | [INFO] [stdout] 246 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:360:13 [INFO] [stdout] | [INFO] [stdout] 360 | / $crate::impl_::trampoline::getattrofunc(_slf, attr, |py, _slf, attr| { [INFO] [stdout] 361 | | use ::std::result::Result::*; [INFO] [stdout] 362 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 363 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] ... | [INFO] [stdout] 376 | | } [INFO] [stdout] 377 | | }) [INFO] [stdout] | |______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 357 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 358 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 359 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:370:23 [INFO] [stdout] | [INFO] [stdout] 370 | match collector.__getattribute__(py, _slf, attr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:373:25 [INFO] [stdout] | [INFO] [stdout] 373 | collector.__getattr__(py, _slf, attr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:444:21 [INFO] [stdout] | [INFO] [stdout] 444 | / $crate::impl_::trampoline::setattrofunc( [INFO] [stdout] 445 | | _slf, [INFO] [stdout] 446 | | attr, [INFO] [stdout] 447 | | value, [INFO] [stdout] ... | [INFO] [stdout] 458 | | }, [INFO] [stdout] 459 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 440 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 441 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 442 | | value: *mut $crate::ffi::PyObject, [INFO] [stdout] 443 | | ) -> ::std::os::raw::c_int { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:454:33 [INFO] [stdout] | [INFO] [stdout] 454 | ... collector.$set(py, _slf, attr, value).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:456:33 [INFO] [stdout] | [INFO] [stdout] 456 | ... collector.$del(py, _slf, attr).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:444:21 [INFO] [stdout] | [INFO] [stdout] 444 | / $crate::impl_::trampoline::setattrofunc( [INFO] [stdout] 445 | | _slf, [INFO] [stdout] 446 | | attr, [INFO] [stdout] 447 | | value, [INFO] [stdout] ... | [INFO] [stdout] 458 | | }, [INFO] [stdout] 459 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 440 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 441 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 442 | | value: *mut $crate::ffi::PyObject, [INFO] [stdout] 443 | | ) -> ::std::os::raw::c_int { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:454:33 [INFO] [stdout] | [INFO] [stdout] 454 | ... collector.$set(py, _slf, attr, value).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:456:33 [INFO] [stdout] | [INFO] [stdout] 456 | ... collector.$del(py, _slf, attr).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:444:21 [INFO] [stdout] | [INFO] [stdout] 444 | / $crate::impl_::trampoline::setattrofunc( [INFO] [stdout] 445 | | _slf, [INFO] [stdout] 446 | | attr, [INFO] [stdout] 447 | | value, [INFO] [stdout] ... | [INFO] [stdout] 458 | | }, [INFO] [stdout] 459 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 440 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 441 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 442 | | value: *mut $crate::ffi::PyObject, [INFO] [stdout] 443 | | ) -> ::std::os::raw::c_int { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:454:33 [INFO] [stdout] | [INFO] [stdout] 454 | ... collector.$set(py, _slf, attr, value).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:456:33 [INFO] [stdout] | [INFO] [stdout] 456 | ... collector.$del(py, _slf, attr).convert(py) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / $crate::impl_::trampoline::binaryfunc(_slf, _other, |py, _slf, _other| { [INFO] [stdout] 560 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 561 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 562 | | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [INFO] [stdout] 569 | | }) [INFO] [stdout] | |______________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 556 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 557 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 558 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:562:42 [INFO] [stdout] | [INFO] [stdout] 562 | let lhs_result = collector.$lhs(py, _slf, _other)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:563:42 [INFO] [stdout] | [INFO] [stdout] 563 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:564:29 [INFO] [stdout] | [INFO] [stdout] 564 | ... $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | ... collector.$rhs(py, _other, _slf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:752:13 [INFO] [stdout] | [INFO] [stdout] 752 | / $crate::impl_::trampoline::ternaryfunc(_slf, _other, _mod, |py, _slf, _other, _mod| { [INFO] [stdout] 753 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 754 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] 755 | | let lhs_result = collector.__pow__(py, _slf, _other, _mod)?; [INFO] [stdout] ... | [INFO] [stdout] 761 | | } [INFO] [stdout] 762 | | }) [INFO] [stdout] | |______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:747:9 [INFO] [stdout] | [INFO] [stdout] 747 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 748 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 749 | | _other: *mut $crate::ffi::PyObject, [INFO] [stdout] 750 | | _mod: *mut $crate::ffi::PyObject, [INFO] [stdout] 751 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:755:34 [INFO] [stdout] | [INFO] [stdout] 755 | let lhs_result = collector.__pow__(py, _slf, _other, _mod)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:756:34 [INFO] [stdout] | [INFO] [stdout] 756 | if lhs_result == $crate::ffi::Py_NotImplemented() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:757:21 [INFO] [stdout] | [INFO] [stdout] 757 | $crate::ffi::Py_DECREF(lhs_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:758:21 [INFO] [stdout] | [INFO] [stdout] 758 | collector.__rpow__(py, _other, _slf, _mod) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:877:17 [INFO] [stdout] | [INFO] [stdout] 877 | / $crate::impl_::trampoline::richcmpfunc(slf, other, op, |py, slf, other, op| { [INFO] [stdout] 878 | | use $crate::class::basic::CompareOp; [INFO] [stdout] 879 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 880 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] ... | [INFO] [stdout] 888 | | } [INFO] [stdout] 889 | | }) [INFO] [stdout] | |__________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:872:13 [INFO] [stdout] | [INFO] [stdout] 872 | / unsafe extern "C" fn __pymethod___richcmp____( [INFO] [stdout] 873 | | slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 874 | | other: *mut $crate::ffi::PyObject, [INFO] [stdout] 875 | | op: ::std::os::raw::c_int, [INFO] [stdout] 876 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:882:42 [INFO] [stdout] | [INFO] [stdout] 882 | CompareOp::Lt => collector.__lt__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:883:42 [INFO] [stdout] | [INFO] [stdout] 883 | CompareOp::Le => collector.__le__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:884:42 [INFO] [stdout] | [INFO] [stdout] 884 | CompareOp::Eq => collector.__eq__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:885:42 [INFO] [stdout] | [INFO] [stdout] 885 | CompareOp::Ne => collector.__ne__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:886:42 [INFO] [stdout] | [INFO] [stdout] 886 | CompareOp::Gt => collector.__gt__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:887:42 [INFO] [stdout] | [INFO] [stdout] 887 | CompareOp::Ge => collector.__ge__(py, slf, other), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pymethods.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] 14 | | ////////////////////// [INFO] [stdout] 15 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 18 | | [INFO] [stdout] 19 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 22 | | [INFO] [stdout] 23 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 50 | | [INFO] [stdout] 51 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 54 | | [INFO] [stdout] 55 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 74 | | [INFO] [stdout] 75 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 83 | | fn __get__( [INFO] [stdout] 84 | | &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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 100 | | fn __set_name__( [INFO] [stdout] 101 | | &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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 101 | | &self, [INFO] [stdout] 102 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 102 | | owner: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 103 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 110 | | [INFO] [stdout] 111 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 114 | | [INFO] [stdout] 115 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 122 | | [INFO] [stdout] 123 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 126 | | [INFO] [stdout] 127 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 131 | | fn __reversed__( [INFO] [stdout] 132 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 137 | | [INFO] [stdout] 138 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 201 | | [INFO] [stdout] 202 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 201 | | [INFO] [stdout] 202 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 249 | | [INFO] [stdout] 250 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 251 | | [INFO] [stdout] 252 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 251 | | [INFO] [stdout] 252 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 253 | | [INFO] [stdout] 254 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 255 | | [INFO] [stdout] 256 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 257 | | [INFO] [stdout] 258 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 259 | | [INFO] [stdout] 260 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 261 | | [INFO] [stdout] 262 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 263 | | [INFO] [stdout] 264 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 265 | | [INFO] [stdout] 266 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 267 | | [INFO] [stdout] 268 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 269 | | [INFO] [stdout] 270 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 271 | | [INFO] [stdout] 272 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 273 | | [INFO] [stdout] 274 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 277 | | [INFO] [stdout] 278 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 281 | | [INFO] [stdout] 282 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 285 | | [INFO] [stdout] 286 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 290 | | fn __complex__<'py>( [INFO] [stdout] 291 | | &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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 296 | | [INFO] [stdout] 297 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 300 | | [INFO] [stdout] 301 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 304 | | [INFO] [stdout] 305 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 309 | | #[pyo3(signature=(ndigits=::std::option::Option::None))] [INFO] [stdout] 310 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 313 | | [INFO] [stdout] 314 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 317 | | [INFO] [stdout] 318 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 321 | | [INFO] [stdout] 322 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 329 | | [INFO] [stdout] 330 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 332 | | fn __exit__( [INFO] [stdout] 333 | | &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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 333 | | &mut self, [INFO] [stdout] 334 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 334 | | exc_type: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 335 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 335 | | exc_value: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 336 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 343 | | [INFO] [stdout] 344 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 353 | | fn __aiter__( [INFO] [stdout] 354 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 359 | | [INFO] [stdout] 360 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 367 | | [INFO] [stdout] 368 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 370 | | fn __aexit__( [INFO] [stdout] 371 | | &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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 371 | | &mut self, [INFO] [stdout] 372 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 372 | | exc_type: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 373 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 373 | | exc_value: &crate::Bound<'_, crate::PyAny>, [INFO] [stdout] 374 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 380 | | #[pyo3(signature = (_y, *, _z=2))] [INFO] [stdout] 381 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 380 | | #[pyo3(signature = (_y, *, _z=2))] [INFO] [stdout] 381 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 384 | | #[classmethod] [INFO] [stdout] 385 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 384 | | #[classmethod] [INFO] [stdout] 385 | | 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:385:21 [INFO] [stdout] | [INFO] [stdout] 385 | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 387 | | fn __call__( [INFO] [stdout] 388 | | &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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 394 | | #[new] [INFO] [stdout] 395 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 398 | | #[getter] [INFO] [stdout] 399 | | 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:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 402 | | #[setter] [INFO] [stdout] 403 | | 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:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 11 | | impl Dummy { [INFO] [stdout] 12 | | ////////////////////// [INFO] [stdout] 13 | | // Basic customization [INFO] [stdout] ... | [INFO] [stdout] 402 | | #[setter] [INFO] [stdout] 403 | | 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:418:28 [INFO] [stdout] | [INFO] [stdout] 418 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________^ [INFO] [stdout] 419 | | impl Clear { [INFO] [stdout] 420 | | pub fn __traverse__( [INFO] [stdout] 421 | | &self, [INFO] [stdout] ... | [INFO] [stdout] 426 | | [INFO] [stdout] 427 | | pub fn __clear__(&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:418:28 [INFO] [stdout] | [INFO] [stdout] 418 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________^ [INFO] [stdout] 419 | | impl Clear { [INFO] [stdout] 420 | | pub fn __traverse__( [INFO] [stdout] 421 | | &self, [INFO] [stdout] ... | [INFO] [stdout] 429 | | #[pyo3(signature=(*, reuse=false))] [INFO] [stdout] 430 | | pub fn clear(&self, reuse: 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] [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:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | #[pyo3(crate = "crate")] [INFO] [stdout] | ________________^ [INFO] [stdout] 3 | | 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::GILGuard::assume` is unsafe and requires unsafe block [INFO] [stdout] --> src/gil.rs:822:28 [INFO] [stdout] | [INFO] [stdout] 822 | let pool = GILGuard::assume(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information 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:819:13 [INFO] [stdout] | [INFO] [stdout] 819 | 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:825:17 [INFO] [stdout] | [INFO] [stdout] 825 | / PyObject::from_owned_ptr( [INFO] [stdout] 826 | | pool.python(), [INFO] [stdout] 827 | | ffi::PyCapsule_GetPointer(capsule, std::ptr::null()) as _, [INFO] [stdout] 828 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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:827:21 [INFO] [stdout] | [INFO] [stdout] 827 | 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/pycell.rs:1231:20 [INFO] [stdout] | [INFO] [stdout] 1231 | #[pyo3(crate = "crate")] [INFO] [stdout] | ____________________^ [INFO] [stdout] 1232 | | impl SubSubClass { [INFO] [stdout] 1233 | | #[new] [INFO] [stdout] 1234 | | fn new(py: Python<'_>) -> crate::Py { [INFO] [stdout] ... | [INFO] [stdout] 1240 | | [INFO] [stdout] 1241 | | fn get_values(self_: PyRef<'_, Self>) -> (usize, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/pycell.rs:1230:5 [INFO] [stdout] | [INFO] [stdout] 1230 | #[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/pycell.rs:1231:20 [INFO] [stdout] | [INFO] [stdout] 1231 | #[pyo3(crate = "crate")] [INFO] [stdout] | ____________________^ [INFO] [stdout] 1232 | | impl SubSubClass { [INFO] [stdout] 1233 | | #[new] [INFO] [stdout] 1234 | | fn new(py: Python<'_>) -> crate::Py { [INFO] [stdout] ... | [INFO] [stdout] 1246 | | [INFO] [stdout] 1247 | | fn double_values(mut self_: 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/pycell.rs:1230:5 [INFO] [stdout] | [INFO] [stdout] 1230 | #[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/types/any.rs:2554:29 [INFO] [stdout] | [INFO] [stdout] 2554 | #[pymethods(crate = "crate")] [INFO] [stdout] | _____________________________^ [INFO] [stdout] 2555 | | impl GetattrFail { [INFO] [stdout] 2556 | | 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:2554:9 [INFO] [stdout] | [INFO] [stdout] 2554 | #[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:360:13 [INFO] [stdout] | [INFO] [stdout] 360 | / $crate::impl_::trampoline::getattrofunc(_slf, attr, |py, _slf, attr| { [INFO] [stdout] 361 | | use ::std::result::Result::*; [INFO] [stdout] 362 | | use $crate::impl_::pyclass::*; [INFO] [stdout] 363 | | let collector = PyClassImplCollector::<$cls>::new(); [INFO] [stdout] ... | [INFO] [stdout] 376 | | } [INFO] [stdout] 377 | | }) [INFO] [stdout] | |______________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2554:9 [INFO] [stdout] | [INFO] [stdout] 2554 | #[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:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | / unsafe extern "C" fn __wrap( [INFO] [stdout] 357 | | _slf: *mut $crate::ffi::PyObject, [INFO] [stdout] 358 | | attr: *mut $crate::ffi::PyObject, [INFO] [stdout] 359 | | ) -> *mut $crate::ffi::PyObject { [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2554:9 [INFO] [stdout] | [INFO] [stdout] 2554 | #[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:370:23 [INFO] [stdout] | [INFO] [stdout] 370 | match collector.__getattribute__(py, _slf, attr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2554:9 [INFO] [stdout] | [INFO] [stdout] 2554 | #[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:373:25 [INFO] [stdout] | [INFO] [stdout] 373 | collector.__getattr__(py, _slf, attr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/types/any.rs:2554:9 [INFO] [stdout] | [INFO] [stdout] 2554 | #[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/any.rs:2808:29 [INFO] [stdout] | [INFO] [stdout] 2808 | #[pymethods(crate = "crate")] [INFO] [stdout] | _____________________________^ [INFO] [stdout] 2809 | | impl DirFail { [INFO] [stdout] 2810 | | fn __dir__(&self) -> 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:2808:9 [INFO] [stdout] | [INFO] [stdout] 2808 | #[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_::pymethods::BoundRef::<'a, 'py, types::any::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/types/dict.rs:968:36 [INFO] [stdout] | [INFO] [stdout] 968 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 969 | | impl HashErrors { [INFO] [stdout] 970 | | #[new] [INFO] [stdout] 971 | | fn new() -> Self { [INFO] [stdout] ... | [INFO] [stdout] 974 | | [INFO] [stdout] 975 | | fn __hash__(&self) -> 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/dict.rs:968:9 [INFO] [stdout] | [INFO] [stdout] 968 | #[crate::pymethods(crate = "crate")] [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/types/iterator.rs:323:36 [INFO] [stdout] | [INFO] [stdout] 323 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 324 | | impl Downcaster { [INFO] [stdout] 325 | | fn downcast_iterator(&mut self, obj: &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/types/iterator.rs:323:36 [INFO] [stdout] | [INFO] [stdout] 323 | #[crate::pymethods(crate = "crate")] [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 324 | | impl Downcaster { [INFO] [stdout] 325 | | fn downcast_iterator(&mut self, obj: &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/types/iterator.rs:363:37 [INFO] [stdout] | [INFO] [stdout] 363 | #[crate::pyfunction(crate = "crate")] [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 364 | | fn assert_iterator(obj: &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/types/weakref/proxy.rs:1485:33 [INFO] [stdout] | [INFO] [stdout] 1485 | #[pymethods(crate = "crate")] [INFO] [stdout] | _________________________________^ [INFO] [stdout] 1486 | | impl WeakrefablePyClass { [INFO] [stdout] 1487 | | fn __call__(&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] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pyfunction.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | crate::py_run!(py, func, r#"func(5)"#); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/tests/hygiene/pyfunction.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | crate::py_run!(py, func, r#"func(5)"#); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/ffi/tests.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / crate::py_run!( [INFO] [stdout] 86 | | py, [INFO] [stdout] 87 | | tz, [INFO] [stdout] 88 | | "import datetime; assert tz == datetime.timezone(datetime.timedelta(seconds=100))" [INFO] [stdout] 89 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/ffi/tests.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / crate::py_run!( [INFO] [stdout] 86 | | py, [INFO] [stdout] 87 | | tz, [INFO] [stdout] 88 | | "import datetime; assert tz == datetime.timezone(datetime.timedelta(seconds=100))" [INFO] [stdout] 89 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/ffi/tests.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | / crate::py_run!( [INFO] [stdout] 107 | | py, [INFO] [stdout] 108 | | tz, [INFO] [stdout] 109 | | "import datetime; assert tz == datetime.timezone(datetime.timedelta(seconds=100), 'testtz')" [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/ffi/tests.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | / crate::py_run!( [INFO] [stdout] 107 | | py, [INFO] [stdout] 108 | | tz, [INFO] [stdout] 109 | | "import datetime; assert tz == datetime.timezone(datetime.timedelta(seconds=100), 'testtz')" [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/pycell.rs:1290:13 [INFO] [stdout] | [INFO] [stdout] 1290 | crate::py_run!(py, obj, "assert obj.get_values() == (10, 15, 20)"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/pycell.rs:1290:13 [INFO] [stdout] | [INFO] [stdout] 1290 | crate::py_run!(py, obj, "assert obj.get_values() == (10, 15, 20)"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/pycell.rs:1291:13 [INFO] [stdout] | [INFO] [stdout] 1291 | crate::py_run!(py, obj, "assert obj.double_values() is None"); [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/pycell.rs:1291:13 [INFO] [stdout] | [INFO] [stdout] 1291 | crate::py_run!(py, obj, "assert obj.double_values() is None"); [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/pycell.rs:1292:13 [INFO] [stdout] | [INFO] [stdout] 1292 | crate::py_run!(py, obj, "assert obj.get_values() == (20, 30, 40)"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/pycell.rs:1292:13 [INFO] [stdout] | [INFO] [stdout] 1292 | crate::py_run!(py, obj, "assert obj.get_values() == (20, 30, 40)"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/types/bytearray.rs:591:16 [INFO] [stdout] | [INFO] [stdout] 591 | if let Err(err) = PyByteArray::from_bound(py.None().bind(py)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/types/bytearray.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 591 ~ match PyByteArray::from_bound(py.None().bind(py)) { Err(err) => { [INFO] [stdout] 592 | assert!(err.is_instance_of::(py)); [INFO] [stdout] 593 ~ } _ => { [INFO] [stdout] 594 | panic!("error"); [INFO] [stdout] 595 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/types/datetime.rs:953:13 [INFO] [stdout] | [INFO] [stdout] 953 | / py_run!( [INFO] [stdout] 954 | | py, [INFO] [stdout] 955 | | dt, [INFO] [stdout] 956 | | "import datetime; assert dt == datetime.datetime.fromtimestamp(100)" [INFO] [stdout] 957 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/datetime.rs:953:13 [INFO] [stdout] | [INFO] [stdout] 953 | / py_run!( [INFO] [stdout] 954 | | py, [INFO] [stdout] 955 | | dt, [INFO] [stdout] 956 | | "import datetime; assert dt == datetime.datetime.fromtimestamp(100)" [INFO] [stdout] 957 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/types/datetime.rs:961:13 [INFO] [stdout] | [INFO] [stdout] 961 | / py_run!( [INFO] [stdout] 962 | | py, [INFO] [stdout] 963 | | dt, [INFO] [stdout] 964 | | "import datetime; assert dt == datetime.datetime.fromtimestamp(100, datetime.timezone.utc)" [INFO] [stdout] 965 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/datetime.rs:961:13 [INFO] [stdout] | [INFO] [stdout] 961 | / py_run!( [INFO] [stdout] 962 | | py, [INFO] [stdout] 963 | | dt, [INFO] [stdout] 964 | | "import datetime; assert dt == datetime.datetime.fromtimestamp(100, datetime.timezone.utc)" [INFO] [stdout] 965 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/types/datetime.rs:975:13 [INFO] [stdout] | [INFO] [stdout] 975 | / py_run!( [INFO] [stdout] 976 | | py, [INFO] [stdout] 977 | | dt, [INFO] [stdout] 978 | | "import datetime; assert dt == datetime.date.fromtimestamp(100)" [INFO] [stdout] 979 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/datetime.rs:975:13 [INFO] [stdout] | [INFO] [stdout] 975 | / py_run!( [INFO] [stdout] 976 | | py, [INFO] [stdout] 977 | | dt, [INFO] [stdout] 978 | | "import datetime; assert dt == datetime.date.fromtimestamp(100)" [INFO] [stdout] 979 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/types/iterator.rs:333:13 [INFO] [stdout] | [INFO] [stdout] 333 | / crate::py_run!( [INFO] [stdout] 334 | | py, [INFO] [stdout] 335 | | downcaster, [INFO] [stdout] 336 | | r#" [INFO] [stdout] ... | [INFO] [stdout] 350 | | "# [INFO] [stdout] 351 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/iterator.rs:333:13 [INFO] [stdout] | [INFO] [stdout] 333 | / crate::py_run!( [INFO] [stdout] 334 | | py, [INFO] [stdout] 335 | | downcaster, [INFO] [stdout] 336 | | r#" [INFO] [stdout] ... | [INFO] [stdout] 350 | | "# [INFO] [stdout] 351 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/macros.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | if let ::std::result::Result::Err(e) = $py.run_bound($code, None, Some(&$dict.as_borrowed())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] ::: src/types/iterator.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | / crate::py_run!( [INFO] [stdout] 372 | | py, [INFO] [stdout] 373 | | assert_iterator, [INFO] [stdout] 374 | | r#" [INFO] [stdout] ... | [INFO] [stdout] 380 | | "# [INFO] [stdout] 381 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/macros.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/types/iterator.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | / crate::py_run!( [INFO] [stdout] 372 | | py, [INFO] [stdout] 373 | | assert_iterator, [INFO] [stdout] 374 | | r#" [INFO] [stdout] ... | [INFO] [stdout] 380 | | "# [INFO] [stdout] 381 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::py_run_impl` which comes from the expansion of the macro `crate::py_run` (in Nightly builds, run with -Z macro-backtrace for more info) [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [INFO] [stdout] [INFO] [stderr] Migrating tests/test_proto_methods.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_declarative_module.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn new(value: usize) -> 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_declarative_module.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | fn double(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_declarative_module.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | fn triple(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_declarative_module.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | fn double_value(v: &ValueClass) -> 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] 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_proto_methods` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_proto_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_proto_methods.rs:21:1 [INFO] [stdout] warning[E0133]: 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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [INFO] [stdout] [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_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> tests/../src/tests/common.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_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] [stdout] warning[E0133]: 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] [stdout] warning[E0133]: 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] [stdout] warning[E0133]: 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] Migrating tests/test_variable_arguments.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/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] [stdout] warning[E0133]: 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] [stdout] warning[E0133]: 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] [stdout] warning[E0133]: 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:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | 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:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | #[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:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | 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:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | #[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:202:20 [INFO] [stdout] | [INFO] [stdout] 202 | 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:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | #[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:189:16 [INFO] [stdout] | [INFO] [stdout] 189 | 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:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | #[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:193:25 [INFO] [stdout] | [INFO] [stdout] 193 | 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:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | #[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:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | 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:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | #[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:285:20 [INFO] [stdout] | [INFO] [stdout] 285 | 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:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | #[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:259:16 [INFO] [stdout] | [INFO] [stdout] 259 | 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:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | #[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:263:20 [INFO] [stdout] | [INFO] [stdout] 263 | 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:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | #[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:295:15 [INFO] [stdout] | [INFO] [stdout] 295 | 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:295:33 [INFO] [stdout] | [INFO] [stdout] 295 | 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:369:22 [INFO] [stdout] | [INFO] [stdout] 369 | 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:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | #[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:373:26 [INFO] [stdout] | [INFO] [stdout] 373 | 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:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | #[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:398:17 [INFO] [stdout] | [INFO] [stdout] 398 | 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:398:29 [INFO] [stdout] | [INFO] [stdout] 398 | 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:427:20 [INFO] [stdout] | [INFO] [stdout] 427 | 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:425:1 [INFO] [stdout] | [INFO] [stdout] 425 | #[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:454:20 [INFO] [stdout] | [INFO] [stdout] 454 | 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:452:1 [INFO] [stdout] | [INFO] [stdout] 452 | #[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:479:20 [INFO] [stdout] | [INFO] [stdout] 479 | 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:477:1 [INFO] [stdout] | [INFO] [stdout] 477 | #[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:483:20 [INFO] [stdout] | [INFO] [stdout] 483 | 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:477:1 [INFO] [stdout] | [INFO] [stdout] 477 | #[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:508:21 [INFO] [stdout] | [INFO] [stdout] 508 | 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:506:1 [INFO] [stdout] | [INFO] [stdout] 506 | #[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:528:20 [INFO] [stdout] | [INFO] [stdout] 528 | 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:526:1 [INFO] [stdout] | [INFO] [stdout] 526 | #[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:561:20 [INFO] [stdout] | [INFO] [stdout] 561 | 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:559:1 [INFO] [stdout] | [INFO] [stdout] 559 | #[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:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | 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:581:1 [INFO] [stdout] | [INFO] [stdout] 581 | #[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:602:25 [INFO] [stdout] | [INFO] [stdout] 602 | 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:600:1 [INFO] [stdout] | [INFO] [stdout] 600 | #[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:612:20 [INFO] [stdout] | [INFO] [stdout] 612 | 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:600:1 [INFO] [stdout] | [INFO] [stdout] 600 | #[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:643:20 [INFO] [stdout] | [INFO] [stdout] 643 | 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:650:23 [INFO] [stdout] | [INFO] [stdout] 650 | 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:640:1 [INFO] [stdout] | [INFO] [stdout] 640 | #[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:654:22 [INFO] [stdout] | [INFO] [stdout] 654 | 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:640:1 [INFO] [stdout] | [INFO] [stdout] 640 | #[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 __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:640:1 [INFO] [stdout] | [INFO] [stdout] 640 | #[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:702:20 [INFO] [stdout] | [INFO] [stdout] 702 | 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:708:23 [INFO] [stdout] | [INFO] [stdout] 708 | 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:699:1 [INFO] [stdout] | [INFO] [stdout] 699 | #[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:712:18 [INFO] [stdout] | [INFO] [stdout] 712 | 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:699:1 [INFO] [stdout] | [INFO] [stdout] 699 | #[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:774:16 [INFO] [stdout] | [INFO] [stdout] 774 | 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:758:1 [INFO] [stdout] | [INFO] [stdout] 758 | #[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:778:19 [INFO] [stdout] | [INFO] [stdout] 778 | 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:758:1 [INFO] [stdout] | [INFO] [stdout] 758 | #[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:766:18 [INFO] [stdout] | [INFO] [stdout] 766 | 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:758:1 [INFO] [stdout] | [INFO] [stdout] 758 | #[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:848:17 [INFO] [stdout] | [INFO] [stdout] 848 | 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:846:1 [INFO] [stdout] | [INFO] [stdout] 846 | #[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:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | 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:860:1 [INFO] [stdout] | [INFO] [stdout] 860 | #[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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> tests/test_proto_methods.rs:534:19 [INFO] [stdout] | [INFO] [stdout] 534 | } else if let Ok(idx) = idx.extract::() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> tests/test_proto_methods.rs:538:9 [INFO] [stdout] | [INFO] [stdout] 538 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 534 ~ } else { match idx.extract::() { Ok(idx) => { [INFO] [stdout] 535 | if idx == 1 { [INFO] [stdout] 536 | return Ok("int"); [INFO] [stdout] 537 | } [INFO] [stdout] 538 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_coroutine.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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_field_cfg.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_class_basics.rs from 2021 edition to 2024 [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_class_basics` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_class_basics.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_basics.rs:88:1 [INFO] [stderr] | [INFO] [stderr] 88 | { 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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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_basics.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | fn bar(&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_class_basics.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | #[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_basics.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | fn foo(&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_class_basics.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | #[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_basics.rs:135:22 [INFO] [stdout] | [INFO] [stdout] 135 | fn struct_method(&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_class_basics.rs:132:1 [INFO] [stdout] | [INFO] [stdout] 132 | #[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_basics.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | fn r#fn(&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_class_basics.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_class_basics.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | fn new(value: PyObject) -> ClassWithObjectField { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_basics.rs:230:23 [INFO] [stdout] | [INFO] [stdout] 230 | #[pyclass(frozen, eq, hash)] [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information 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_basics.rs:230:1 [INFO] [stdout] | [INFO] [stdout] 230 | #[pyclass(frozen, eq, hash)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pyclass` (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_class_basics.rs:266:19 [INFO] [stdout] | [INFO] [stdout] 266 | fn new(value: usize) -> UnsendableBase { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_basics.rs:273:14 [INFO] [stdout] | [INFO] [stdout] 273 | fn value(&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_class_basics.rs:263:1 [INFO] [stdout] | [INFO] [stdout] 263 | #[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_class_basics.rs:284:19 [INFO] [stdout] | [INFO] [stdout] 284 | fn new(value: usize) -> (UnsendableChild, UnsendableBase) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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_basics.rs:359:24 [INFO] [stdout] | [INFO] [stdout] 359 | fn instance_method(&self, #[pyo3(from_py_with = "get_length")] argument: 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_class_basics.rs:359:78 [INFO] [stdout] | [INFO] [stdout] 359 | fn instance_method(&self, #[pyo3(from_py_with = "get_length")] argument: 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>::downcast_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_class_basics.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 364 | _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_class_basics.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 364 | _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_class_basics.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 364 | _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_class_basics.rs:365:69 [INFO] [stdout] | [INFO] [stdout] 365 | #[pyo3(from_py_with = "Bound::<'_, PyAny>::len")] argument: 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_class_basics.rs:371:68 [INFO] [stdout] | [INFO] [stdout] 371 | fn staticmethod(#[pyo3(from_py_with = "get_length")] argument: 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_class_basics.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | fn __contains__(&self, #[pyo3(from_py_with = "is_even")] obj: bool) -> 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_class_basics.rs:357:1 [INFO] [stdout] | [INFO] [stdout] 357 | #[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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> tests/test_class_basics.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | if let Some(msg) = err.downcast_ref::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> tests/test_class_basics.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 317 ~ match err.downcast_ref::() { Some(msg) => { [INFO] [stdout] 318 | panic!("{}", msg); [INFO] [stdout] 319 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_no_imports.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] [stdout] warning[E0133]: 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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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] [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:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | #[pymethods(crate = "pyo3")] [INFO] [stdout] | _________________________^ [INFO] [stdout] 76 | | impl UnraisableCapture { [INFO] [stdout] 77 | | 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:19 [INFO] [stdout] | [INFO] [stdout] 38 | 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: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:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | 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:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | 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:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | #[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:79:16 [INFO] [stdout] | [INFO] [stdout] 79 | 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:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | #[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:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | 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:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | #[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:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | 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:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | #[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:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:126:20 [INFO] [stdout] | [INFO] [stdout] 126 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:130:20 [INFO] [stdout] | [INFO] [stdout] 130 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:142:16 [INFO] [stdout] | [INFO] [stdout] 142 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | 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:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | #[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:184:16 [INFO] [stdout] | [INFO] [stdout] 184 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:196:19 [INFO] [stdout] | [INFO] [stdout] 196 | fn __matmul__(&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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:200:20 [INFO] [stdout] | [INFO] [stdout] 200 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | fn __floordiv__(&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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:208:16 [INFO] [stdout] | [INFO] [stdout] 208 | fn __mod__(&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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:212:19 [INFO] [stdout] | [INFO] [stdout] 212 | fn __divmod__(&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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:220:19 [INFO] [stdout] | [INFO] [stdout] 220 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[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:224:16 [INFO] [stdout] | [INFO] [stdout] 224 | 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:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | #[pymethods] [WARN] too many lines in the log, truncating it