[INFO] cloning repository https://github.com/tejks/icp-hackathon-project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tejks/icp-hackathon-project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftejks%2Ficp-hackathon-project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftejks%2Ficp-hackathon-project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4559bd6afb4d635c8bee5d8c856b49edcc2a461a [INFO] testing tejks/icp-hackathon-project against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftejks%2Ficp-hackathon-project" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/tejks/icp-hackathon-project [INFO] finished tweaking git repo https://github.com/tejks/icp-hackathon-project [INFO] tweaked toml for git repo https://github.com/tejks/icp-hackathon-project written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tejks/icp-hackathon-project on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tejks/icp-hackathon-project 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded icrc-ledger-types v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b7f8efee022110797068748e5aa27584592321f63eef05ebfd982370355bdca [INFO] running `Command { std: "docker" "start" "-a" "4b7f8efee022110797068748e5aa27584592321f63eef05ebfd982370355bdca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b7f8efee022110797068748e5aa27584592321f63eef05ebfd982370355bdca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b7f8efee022110797068748e5aa27584592321f63eef05ebfd982370355bdca", kill_on_drop: false }` [INFO] [stdout] 4b7f8efee022110797068748e5aa27584592321f63eef05ebfd982370355bdca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c421cfd558b963f4a3894f5d94340d34340876df311416cf9e70bcaebdd22b60 [INFO] running `Command { std: "docker" "start" "-a" "c421cfd558b963f4a3894f5d94340d34340876df311416cf9e70bcaebdd22b60", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling cc v1.0.103 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling bytemuck v1.18.0 [INFO] [stderr] Compiling ic0 v0.21.1 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling utf8-width v0.1.7 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling html-escape v0.2.13 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling qrcodegen v1.8.0 [INFO] [stderr] Compiling hex-literal v0.4.1 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling csscolorparser v0.6.2 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling colorgrad v0.6.2 [INFO] [stderr] Compiling qrcode-generator v4.1.9 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling strum v0.26.3 [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 serde_bytes v0.11.15 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling candid v0.10.9 [INFO] [stderr] Compiling icrc-ledger-types v0.1.6 [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 contract v0.1.0 (/opt/rustwide/workdir/src/contract) [INFO] [stdout] warning: unused import: `transfer::transfer_in` [INFO] [stdout] --> src/contract/src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use transfer::transfer_in; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `from`, and `memo` are never read [INFO] [stdout] --> src/contract/src/transfer.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TransferInParams { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 14 | pub amount: NumTokens, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub from: Account, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub memo: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canister_default_account` is never used [INFO] [stdout] --> src/contract/src/transfer.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn canister_default_account() -> Account { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transfer_in` is never used [INFO] [stdout] --> src/contract/src/transfer.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub async fn transfer_in(args: TransferInParams) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--version-script=/tmp/rustcubKQ1i/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcubKQ1i/symbols.o" "<4 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libcolorgrad-7b03b4df075926c6,libcsscolorparser-2ac6e2fadb4a3209,libphf-6f74917e25925b90,libphf_shared-502041b9a4c9be41,libsiphasher-7b49b0cc05d9e611,libic_cdk-bd7dd299158fc156,libic0-88cedc4127ae8e95,libicrc_ledger_types-78016e4e9b6306ea,libtime-f4321096e3e40464,libitoa-4c6598116a867907,libtime_core-4e44e5dcd53c485d,libnum_conv-2c976fbf8b8f2899,libderanged-9df638cca9ea2119,libpowerfmt-a0c185df26c26a22,libstrum-39112a2b353d468d,libitertools-97851b5a067112d9,libeither-38d43fea6173fdf6,libbase32-39d04fa1fa68181d,libqrcode_generator-183091b915b9717b,libhtml_escape-3a7ee0974ad45b30,libutf8_width-374686a5ee60ad8b,libqrcodegen-bf1ba8606e20efdd,libimage-c1c617c3154264ba,libbytemuck-0470fa622ecd813b,libcolor_quant-fa7ff1de0e6ea74b,libpng-dec2594a9b5fa1c3,libflate2-f9ce50039b2046d7,libminiz_oxide-9ee3d538996be813,libadler2-b931b79841890bad,libfdeflate-2676e2396689691a,libsimd_adler32-eda01a159841bab2,libbitflags-e2b4db6c651223da,libcandid-103ec1d4445dfac2,libstacker-7ebaff481baf9d6d,libpsm-50eb5c978a3e7dc0,liblibc-87ba8c2d9747b2c7,libhex-541d79e3d9cfa814,libserde_bytes-4ff996c86dc6f096,libpretty-cf5276037e010efe,libunicode_width-ea37189c48be061a,libarrayvec-f5ee3f47c3793c70,libtyped_arena-e8efe135793da16d,libleb128-ae0983f084a091ac,libbyteorder-1efcbe4f07366651,libic_principal-6695422a51444e62,libcrc32fast-ec6b1847c42b19ed,libdata_encoding-02a524d0cb7bb851,libsha2-662696809238184c,libcpufeatures-42c2188ae17ada4c,libcfg_if-33ef6c02a07f9fec,libdigest-3c2d891685d4b89e,libblock_buffer-8cfc6f57c23bdc22,libcrypto_common-66e2e31812479249,libgeneric_array-f5f3e90d36d8aab9,libtypenum-66c155be53855aa0,libnum_bigint-820eb75742e0fd0b,libnum_integer-eef2b2cd4394c234,libnum_traits-0fc677e4164f53eb,libanyhow-1bdf2e76b99b1cd6,libbinread-953b19be647a0e09,liblazy_static-b3603208c0de2608,libthiserror-1d8d735a8d08c3a6,libserde-b0552050c8c2d24f}.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" "/tmp/rustcubKQ1i/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-6133c6a31e134867/out" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libcontract.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: /tmp/rustcubKQ1i/list:4: ; expected, but got generateQr [INFO] [stdout] >>> canister_query generateQr; [INFO] [stdout] >>> ^ [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `contract` (lib) due to 1 previous error; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c421cfd558b963f4a3894f5d94340d34340876df311416cf9e70bcaebdd22b60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c421cfd558b963f4a3894f5d94340d34340876df311416cf9e70bcaebdd22b60", kill_on_drop: false }` [INFO] [stdout] c421cfd558b963f4a3894f5d94340d34340876df311416cf9e70bcaebdd22b60