[INFO] cloning repository https://github.com/jyotirmaygithub/rust-decentralized-bank [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jyotirmaygithub/rust-decentralized-bank" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjyotirmaygithub%2Frust-decentralized-bank", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjyotirmaygithub%2Frust-decentralized-bank'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f9a84cddf6ff870888fc99f3b4cd829af3c70f0 [INFO] testing jyotirmaygithub/rust-decentralized-bank against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjyotirmaygithub%2Frust-decentralized-bank" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jyotirmaygithub/rust-decentralized-bank [INFO] finished tweaking git repo https://github.com/jyotirmaygithub/rust-decentralized-bank [INFO] tweaked toml for git repo https://github.com/jyotirmaygithub/rust-decentralized-bank written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jyotirmaygithub/rust-decentralized-bank on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jyotirmaygithub/rust-decentralized-bank 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b2a1c81dce8caa8dc8d9a894253837b8bd2fa24ea982a6ca43b023e427d5992 [INFO] running `Command { std: "docker" "start" "-a" "3b2a1c81dce8caa8dc8d9a894253837b8bd2fa24ea982a6ca43b023e427d5992", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b2a1c81dce8caa8dc8d9a894253837b8bd2fa24ea982a6ca43b023e427d5992", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b2a1c81dce8caa8dc8d9a894253837b8bd2fa24ea982a6ca43b023e427d5992", kill_on_drop: false }` [INFO] [stdout] 3b2a1c81dce8caa8dc8d9a894253837b8bd2fa24ea982a6ca43b023e427d5992 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e153c8da5354ad3651a720fe093c895f38e5efea42bbc77e0b4c071299384634 [INFO] running `Command { std: "docker" "start" "-a" "e153c8da5354ad3651a720fe093c895f38e5efea42bbc77e0b4c071299384634", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.208 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling libc v0.2.156 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling cpufeatures v0.2.13 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cc v1.1.12 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling ic0 v0.21.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling serde_derive v1.0.208 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling candid v0.10.10 [INFO] [stderr] Compiling ic-cdk-macros v0.13.2 [INFO] [stderr] Compiling ic-cdk v0.13.2 [INFO] [stderr] Compiling ic-cdk-timers v0.7.0 [INFO] [stderr] Compiling banking_backend v0.1.0 (/opt/rustwide/workdir/src/banking_backend) [INFO] [stdout] warning: unused import: `candid::types::result` [INFO] [stdout] --> src/banking_backend/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use candid::types::result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/banking_backend/src/lib.rs:13:47 [INFO] [stdout] | [INFO] [stdout] 13 | ic_cdk::println!("Updated count: {}", COUNT); [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/banking_backend/src/lib.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | ic_cdk::println!("value depreciation {} ", COUNT) [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/banking_backend/src/lib.rs:30:53 [INFO] [stdout] | [INFO] [stdout] 30 | ic_cdk::println!("remaining amount {}", AMOUNT); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--version-script=/opt/rustwide/target/debug/deps/rustcwA8Uqq/list" "-Wl,--no-undefined-version" "-m64" "/opt/rustwide/target/debug/deps/rustcwA8Uqq/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libic_cdk-69b2e5c898dd59f5,libic0-88cedc4127ae8e95,libcandid-96918607be299944,libstacker-ac6e566de25f94ab,libpsm-be8a2f25563e613b,liblibc-89777c190cc09aa7,libhex-28742b4ca144387c,libserde_bytes-1860e497d7dd68e6,libpretty-ff73b952e16dfb14,libunicode_width-ea37189c48be061a,libarrayvec-f5ee3f47c3793c70,libtyped_arena-e8efe135793da16d,libleb128-ae0983f084a091ac,libbyteorder-1efcbe4f07366651,libic_principal-7db0cd21cc519785,libcrc32fast-5e6fdc6fad2d85f8,libdata_encoding-02a524d0cb7bb851,libsha2-52315ecd81c4e7f9,libcpufeatures-31bbaa72911a5ebb,libcfg_if-33ef6c02a07f9fec,libdigest-dd0a8bf6956d991b,libblock_buffer-d07bf3da060c13df,libcrypto_common-f6d4917cf80f00d3,libgeneric_array-9031066b9f97395e,libtypenum-d9cba146b74f4906,libnum_bigint-bb4e6dfe30d03e24,libnum_integer-58f5420d65e73de4,libnum_traits-3decef4cdbd13ae1,libanyhow-8b333ffe98d210b6,libbinread-1e3e2071047d10b0,liblazy_static-b3603208c0de2608,libthiserror-e498ac9d43e1a288,libserde-86ccd2f082d65735}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/opt/rustwide/target/debug/deps/rustcwA8Uqq/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/target/debug/build/psm-b1e14321114778a0/out" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libbanking_backend.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /opt/rustwide/target/debug/deps/rustcwA8Uqq/list:3: ; expected, but got current_amount [INFO] [stdout] >>> canister_query current_amount; [INFO] [stdout] >>> ^ [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `banking_backend` (lib) due to 1 previous error; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e153c8da5354ad3651a720fe093c895f38e5efea42bbc77e0b4c071299384634", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e153c8da5354ad3651a720fe093c895f38e5efea42bbc77e0b4c071299384634", kill_on_drop: false }` [INFO] [stdout] e153c8da5354ad3651a720fe093c895f38e5efea42bbc77e0b4c071299384634