[INFO] fetching crate numpy 0.22.1... [INFO] checking numpy-0.22.1 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate numpy 0.22.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate numpy 0.22.1 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 numpy 0.22.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate numpy 0.22.1 [INFO] tweaked toml for crates.io crate numpy 0.22.1 written to /workspace/builds/worker-5-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 38 packages to latest compatible versions [INFO] [stderr] Adding nalgebra v0.32.6 (available: v0.33.2) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0de65028fe41cd0db89b36f48a08a2b982a618e0cae574fcd532870be9f5930b [INFO] running `Command { std: "docker" "start" "-a" "0de65028fe41cd0db89b36f48a08a2b982a618e0cae574fcd532870be9f5930b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0de65028fe41cd0db89b36f48a08a2b982a618e0cae574fcd532870be9f5930b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0de65028fe41cd0db89b36f48a08a2b982a618e0cae574fcd532870be9f5930b", kill_on_drop: false }` [INFO] [stdout] 0de65028fe41cd0db89b36f48a08a2b982a618e0cae574fcd532870be9f5930b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] e625b501b31ddcec82836d09d9fd5e5826699d89b2b583e1a449364dca11457b [INFO] running `Command { std: "docker" "start" "-a" "e625b501b31ddcec82836d09d9fd5e5826699d89b2b583e1a449364dca11457b", 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 target-lexicon v0.12.16 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking bytemuck v1.19.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Compiling pyo3-build-config v0.22.6 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.22.6 [INFO] [stderr] Compiling pyo3-ffi v0.22.6 [INFO] [stderr] Compiling pyo3 v0.22.6 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Compiling pyo3-macros v0.22.6 [INFO] [stderr] Checking numpy v0.22.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/array_like.rs (1 fix) [INFO] [stderr] Fixed src/slice_container.rs (2 fixes) [INFO] [stderr] Fixed src/npyffi/objects.rs (3 fixes) [INFO] [stderr] Fixed src/lib.rs (6 fixes) [INFO] [stderr] Fixed src/array.rs (16 fixes) [INFO] [stderr] Fixed src/npyffi/mod.rs (6 fixes) [INFO] [stderr] Fixed src/dtype.rs (1 fix) [INFO] [stderr] Fixed src/npyffi/array.rs (7 fixes) [INFO] [stderr] Fixed src/borrow/shared.rs (4 fixes) [INFO] [stderr] Fixed src/npyffi/ufunc.rs (1 fix) [INFO] [stderr] Fixed src/strings.rs (1 fix) [INFO] [stderr] Migrating tests/array.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `array` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/array.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/array.rs:412:1 [INFO] [stderr] | [INFO] [stderr] 412 | { 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/array.rs:415:20 [INFO] [stdout] | [INFO] [stdout] 415 | fn array(this: Bound<'_, Self>) -> Bound<'_, PyArray1> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/array.rs:412:1 [INFO] [stdout] | [INFO] [stdout] 412 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: 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/array_like.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/borrow.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/sum_products.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/borrow.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | fn shared(&self, _array: PyReadonlyArray3<'_, 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: `--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/borrow.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | fn shared(&self, _array: PyReadonlyArray3<'_, 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_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> tests/borrow.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | fn exclusive(&self, _array: PyReadwriteArray3<'_, 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/borrow.rs:95:33 [INFO] [stdout] | [INFO] [stdout] 95 | fn exclusive(&self, _array: PyReadwriteArray3<'_, 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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating benches/borrow.rs from 2021 edition to 2024 [INFO] [stderr] Migrating benches/array.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/to_py.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.02s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking numpy v0.22.1 (/tmp/fixit) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `Command { std: "docker" "inspect" "e625b501b31ddcec82836d09d9fd5e5826699d89b2b583e1a449364dca11457b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e625b501b31ddcec82836d09d9fd5e5826699d89b2b583e1a449364dca11457b", kill_on_drop: false }` [INFO] [stdout] e625b501b31ddcec82836d09d9fd5e5826699d89b2b583e1a449364dca11457b