[INFO] cloning repository https://github.com/ashishjsharda/rust-blockchain-starter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ashishjsharda/rust-blockchain-starter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishjsharda%2Frust-blockchain-starter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishjsharda%2Frust-blockchain-starter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd719032ae45470ff52cec83716d3a975d45019e [INFO] checking ashishjsharda/rust-blockchain-starter/cd719032ae45470ff52cec83716d3a975d45019e against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishjsharda%2Frust-blockchain-starter" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ashishjsharda/rust-blockchain-starter 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 git repo https://github.com/ashishjsharda/rust-blockchain-starter [INFO] finished tweaking git repo https://github.com/ashishjsharda/rust-blockchain-starter [INFO] tweaked toml for git repo https://github.com/ashishjsharda/rust-blockchain-starter written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ashishjsharda/rust-blockchain-starter already has a lockfile, it will not be regenerated [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-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" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04fb4e4413180c3947e909c2f153d0bffb4f0aa3c981aadc2c5898508a1b06d7 [INFO] running `Command { std: "docker" "start" "-a" "04fb4e4413180c3947e909c2f153d0bffb4f0aa3c981aadc2c5898508a1b06d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04fb4e4413180c3947e909c2f153d0bffb4f0aa3c981aadc2c5898508a1b06d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04fb4e4413180c3947e909c2f153d0bffb4f0aa3c981aadc2c5898508a1b06d7", kill_on_drop: false }` [INFO] [stdout] 04fb4e4413180c3947e909c2f153d0bffb4f0aa3c981aadc2c5898508a1b06d7 [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" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c76b136c54f8efc7528dfa4fb86440b211e79f7ed24b0489d4910634fc5f55f3 [INFO] running `Command { std: "docker" "start" "-a" "c76b136c54f8efc7528dfa4fb86440b211e79f7ed24b0489d4910634fc5f55f3", 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.81 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking ink_prelude v3.4.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking unsigned-varint v0.5.1 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking base-x v0.2.11 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking unsigned-varint v0.7.2 [INFO] [stderr] Checking dirs v4.0.0 [INFO] [stderr] Checking ink_allocator v3.4.0 [INFO] [stderr] Checking array-init v2.1.0 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling toml_edit v0.20.2 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling proc-macro-crate v2.0.2 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ink_lang_ir v3.4.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling parity-scale-codec-derive v3.6.9 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling scale-info-derive v2.11.2 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.12 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling ink_storage_derive v3.4.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking data-encoding-macro v0.1.14 [INFO] [stderr] Checking multibase v0.9.1 [INFO] [stderr] Checking multihash v0.13.2 [INFO] [stderr] Compiling parity-scale-codec v3.6.9 [INFO] [stderr] Compiling scale-info v2.11.2 [INFO] [stderr] Compiling ink_lang_codegen v3.4.0 [INFO] [stderr] Compiling ink_primitives v3.4.0 [INFO] [stderr] Checking common-multipart-rfc7578 v0.6.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling ink_lang_macro v3.4.0 [INFO] [stderr] Checking parity-multiaddr v0.11.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ink_engine v3.4.0 [INFO] [stderr] Checking ipfs-api-prelude v0.5.0 [INFO] [stderr] Checking ink_metadata v3.4.0 [INFO] [stderr] Checking ink_env v3.4.0 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking ink_storage v3.4.0 [INFO] [stderr] Checking ink_lang v3.4.0 [INFO] [stderr] Checking hyper-multipart-rfc7578 v0.8.0 [INFO] [stderr] Checking ipfs-api-backend-hyper v0.5.0 [INFO] [stderr] Checking ipfs-api v0.16.0 [INFO] [stderr] Checking my_blockchain_project v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `my_blockchain_project` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/contracts/my_contract.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 after attributes [INFO] [stderr] --> src/contracts/my_contract.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | #[ink(storage)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [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] --> src/contracts/my_contract.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | / pub struct MyContract { [INFO] [stdout] 8 | | value: i32, [INFO] [stdout] 9 | | } [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] 7 ~ unsafe(pub struct MyContract { [INFO] [stdout] 8 | value: i32, [INFO] [stdout] 9 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.01s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking my_blockchain_project v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/contracts/my_contract.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | / pub struct MyContract { [INFO] [stdout] 8 | | value: i32, [INFO] [stdout] 9 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 7 ~ unsafe(pub struct MyContract { [INFO] [stdout] 8 | value: i32, [INFO] [stdout] 9 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my_blockchain_project` (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" "c76b136c54f8efc7528dfa4fb86440b211e79f7ed24b0489d4910634fc5f55f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c76b136c54f8efc7528dfa4fb86440b211e79f7ed24b0489d4910634fc5f55f3", kill_on_drop: false }` [INFO] [stdout] c76b136c54f8efc7528dfa4fb86440b211e79f7ed24b0489d4910634fc5f55f3