[INFO] fetching crate zkink 0.0.1... [INFO] checking zkink-0.0.1 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate zkink 0.0.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate zkink 0.0.1 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zkink 0.0.1 [INFO] finished tweaking crates.io crate zkink 0.0.1 [INFO] tweaked toml for crates.io crate zkink 0.0.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 83 packages to latest compatible versions [INFO] [stderr] Adding ink_env v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_metadata v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_primitives v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_storage v3.4.0 (available: v5.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b03b2c404e7a6929efb98ea3fa6ac4c4fbb52c38e08e972ba7778ca4ad656cba [INFO] running `Command { std: "docker" "start" "-a" "b03b2c404e7a6929efb98ea3fa6ac4c4fbb52c38e08e972ba7778ca4ad656cba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b03b2c404e7a6929efb98ea3fa6ac4c4fbb52c38e08e972ba7778ca4ad656cba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b03b2c404e7a6929efb98ea3fa6ac4c4fbb52c38e08e972ba7778ca4ad656cba", kill_on_drop: false }` [INFO] [stdout] b03b2c404e7a6929efb98ea3fa6ac4c4fbb52c38e08e972ba7778ca4ad656cba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b537266327e260415a30578aba7d71bb505f1736f0fda26947b9fe59e29a275a [INFO] running `Command { std: "docker" "start" "-a" "b537266327e260415a30578aba7d71bb505f1736f0fda26947b9fe59e29a275a", 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 generic-array v0.14.7 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling parity-scale-codec v3.7.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ink_prelude v3.4.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking impl-serde v0.3.2 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking ink_allocator v3.4.0 [INFO] [stderr] Checking array-init v2.1.0 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling ink_lang_ir v3.4.0 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.0 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Compiling ink_storage_derive v3.4.0 [INFO] [stderr] Compiling ink_primitives v3.4.0 [INFO] [stderr] Compiling ink_lang_codegen v3.4.0 [INFO] [stderr] Checking scale-info v2.11.6 [INFO] [stderr] Checking ink_engine v3.4.0 [INFO] [stderr] Checking ink_metadata v3.4.0 [INFO] [stderr] Checking ink_env v3.4.0 [INFO] [stderr] Checking ink_storage v3.4.0 [INFO] [stderr] Compiling ink_lang_macro v3.4.0 [INFO] [stderr] Checking ink_lang v3.4.0 [INFO] [stderr] Checking zkink v0.0.1 (/tmp/fixit) [INFO] [stderr] Migrating lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `zkink` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * lib.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 keyword `unsafe` [INFO] [stderr] --> lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | unsafe(/// Defines the storage of your contract. [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: unsafe attribute used without unsafe [INFO] [stdout] --> lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | / /// Defines the storage of your contract. [INFO] [stdout] 9 | | /// Add new fields to the below struct in order [INFO] [stdout] 10 | | /// to add new static storage fields to your contract. [INFO] [stdout] 11 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 14 | | value: bool, [INFO] [stdout] 15 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 8 ~ unsafe(/// Defines the storage of your contract. [INFO] [stdout] 9 | /// Add new fields to the below struct in order [INFO] [stdout] ... [INFO] [stdout] 14 | value: bool, [INFO] [stdout] 15 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.73s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking zkink v0.0.1 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | / /// Defines the storage of your contract. [INFO] [stdout] 9 | | /// Add new fields to the below struct in order [INFO] [stdout] 10 | | /// to add new static storage fields to your contract. [INFO] [stdout] 11 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 14 | | value: bool, [INFO] [stdout] 15 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 8 ~ unsafe(/// Defines the storage of your contract. [INFO] [stdout] 9 | /// Add new fields to the below struct in order [INFO] [stdout] ... [INFO] [stdout] 14 | value: bool, [INFO] [stdout] 15 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zkink` (lib) due to 1 previous error [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b537266327e260415a30578aba7d71bb505f1736f0fda26947b9fe59e29a275a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b537266327e260415a30578aba7d71bb505f1736f0fda26947b9fe59e29a275a", kill_on_drop: false }` [INFO] [stdout] b537266327e260415a30578aba7d71bb505f1736f0fda26947b9fe59e29a275a