[INFO] fetching crate accumulate 3.0.0... [INFO] checking accumulate-3.0.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate accumulate 3.0.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate accumulate 3.0.0 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 accumulate 3.0.0 [INFO] finished tweaking crates.io crate accumulate 3.0.0 [INFO] tweaked toml for crates.io crate accumulate 3.0.0 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" "+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-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" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c89999362e95d3dc2f173a6493cd9efbab4036a8d4df8a66ac1487ba15d80c7a [INFO] running `Command { std: "docker" "start" "-a" "c89999362e95d3dc2f173a6493cd9efbab4036a8d4df8a66ac1487ba15d80c7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c89999362e95d3dc2f173a6493cd9efbab4036a8d4df8a66ac1487ba15d80c7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c89999362e95d3dc2f173a6493cd9efbab4036a8d4df8a66ac1487ba15d80c7a", kill_on_drop: false }` [INFO] [stdout] c89999362e95d3dc2f173a6493cd9efbab4036a8d4df8a66ac1487ba15d80c7a [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" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08134b90e0f55d26ab4c4970bfe277971df758430ba6878af32bbd0f50e9ee51 [INFO] running `Command { std: "docker" "start" "-a" "08134b90e0f55d26ab4c4970bfe277971df758430ba6878af32bbd0f50e9ee51", 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 typenum v1.17.0 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Checking ink_prelude v3.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking cpufeatures v0.2.16 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking ink_allocator v3.4.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking array-init v2.1.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling parity-scale-codec v3.7.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Checking secp256k1 v0.24.3 [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 ink_storage_derive v3.4.0 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling scale-info v2.11.6 [INFO] [stderr] Compiling ink_lang_codegen v3.4.0 [INFO] [stderr] Compiling ink_primitives v3.4.0 [INFO] [stderr] Compiling ink_lang_macro v3.4.0 [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] Checking ink_lang v3.4.0 [INFO] [stderr] Checking accumulate v3.0.0 (/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 `accumulator` [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:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | unsafe(/// Holds a simple `i32` value that can be incremented and decremented. [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:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / /// Holds a simple `i32` value that can be incremented and decremented. [INFO] [stdout] 13 | | #[ink(storage)] [INFO] [stdout] 14 | | pub struct Accumulator { [INFO] [stdout] 15 | | value: i32, [INFO] [stdout] 16 | | } [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] 12 ~ unsafe(/// Holds a simple `i32` value that can be incremented and decremented. [INFO] [stdout] 13 | #[ink(storage)] [INFO] [stdout] 14 | pub struct Accumulator { [INFO] [stdout] 15 | value: i32, [INFO] [stdout] 16 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.36s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking accumulate v3.0.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / /// Holds a simple `i32` value that can be incremented and decremented. [INFO] [stdout] 13 | | #[ink(storage)] [INFO] [stdout] 14 | | pub struct Accumulator { [INFO] [stdout] 15 | | value: i32, [INFO] [stdout] 16 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 12 ~ unsafe(/// Holds a simple `i32` value that can be incremented and decremented. [INFO] [stdout] 13 | #[ink(storage)] [INFO] [stdout] 14 | pub struct Accumulator { [INFO] [stdout] 15 | value: i32, [INFO] [stdout] 16 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `accumulate` (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" "08134b90e0f55d26ab4c4970bfe277971df758430ba6878af32bbd0f50e9ee51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08134b90e0f55d26ab4c4970bfe277971df758430ba6878af32bbd0f50e9ee51", kill_on_drop: false }` [INFO] [stdout] 08134b90e0f55d26ab4c4970bfe277971df758430ba6878af32bbd0f50e9ee51