[INFO] cloning repository https://github.com/o-0-labs/Nifties-contract-fund [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/o-0-labs/Nifties-contract-fund" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fo-0-labs%2FNifties-contract-fund", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fo-0-labs%2FNifties-contract-fund'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eff68cdf19803ce159f8b1069d512cead386bce3 [INFO] checking o-0-labs/Nifties-contract-fund against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fo-0-labs%2FNifties-contract-fund" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/o-0-labs/Nifties-contract-fund [INFO] finished tweaking git repo https://github.com/o-0-labs/Nifties-contract-fund [INFO] tweaked toml for git repo https://github.com/o-0-labs/Nifties-contract-fund written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/o-0-labs/Nifties-contract-fund on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/o-0-labs/Nifties-contract-fund 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2f8fc052586beb14c4354e76e3225120922d808564c44d65ff2596580db8715 [INFO] running `Command { std: "docker" "start" "-a" "c2f8fc052586beb14c4354e76e3225120922d808564c44d65ff2596580db8715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2f8fc052586beb14c4354e76e3225120922d808564c44d65ff2596580db8715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2f8fc052586beb14c4354e76e3225120922d808564c44d65ff2596580db8715", kill_on_drop: false }` [INFO] [stdout] c2f8fc052586beb14c4354e76e3225120922d808564c44d65ff2596580db8715 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 242736f02ca1df99beb6e755e4320bfb2d16ae50a8bcc8fd363101f9171797cb [INFO] running `Command { std: "docker" "start" "-a" "242736f02ca1df99beb6e755e4320bfb2d16ae50a8bcc8fd363101f9171797cb", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking num-bigint v0.4.3 [INFO] [stderr] Checking lalrpop-util v0.19.8 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling petgraph v0.6.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling string_cache v0.8.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling lalrpop v0.19.8 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling logos-derive v0.12.0 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling candid_derive v0.4.5 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling serde_bytes v0.11.6 [INFO] [stderr] Compiling serde_tokenstream v0.1.3 [INFO] [stderr] Compiling ic-types v0.3.0 [INFO] [stderr] Compiling candid v0.7.14 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Checking num_enum v0.5.7 [INFO] [stderr] Checking ic-cdk v0.4.0 [INFO] [stderr] Checking ic-ledger-types v0.1.1 [INFO] [stderr] Compiling ic-cdk-macros v0.4.0 [INFO] [stderr] Checking fund v0.1.0 (/opt/rustwide/workdir/src/fund) [INFO] [stdout] warning: unused imports: `AccountIdentifier`, `BlockIndex`, `DEFAULT_SUBACCOUNT`, `MAINNET_LEDGER_CANISTER_ID`, `Memo`, `Subaccount`, `Tokens`, and `TransferResult` [INFO] [stdout] --> src/fund/src/lib.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | ...pes::{AccountIdentifier, TransferResult, BlockIndex,DEFAULT_SUBACCOUNT, MAINNET_LEDGER_CANISTER_ID, Memo, Subaccount,Tokens}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/fund/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MappedRwLockReadGuard`, `RwLockReadGuard`, and `RwLock` [INFO] [stdout] --> src/fund/src/lib.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use parking_lot::{MappedRwLockReadGuard, RwLock, RwLockReadGuard}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Nat` [INFO] [stdout] --> src/fund/src/utils.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::{Nat, Principal}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AccountIdentifier`, `BlockIndex`, `DEFAULT_SUBACCOUNT`, `MAINNET_LEDGER_CANISTER_ID`, `Memo`, `Subaccount`, `Tokens`, and `TransferResult` [INFO] [stdout] --> src/fund/src/lib.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | ...pes::{AccountIdentifier, TransferResult, BlockIndex,DEFAULT_SUBACCOUNT, MAINNET_LEDGER_CANISTER_ID, Memo, Subaccount,Tokens}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/fund/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MappedRwLockReadGuard`, `RwLockReadGuard`, and `RwLock` [INFO] [stdout] --> src/fund/src/lib.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use parking_lot::{MappedRwLockReadGuard, RwLock, RwLockReadGuard}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Nat` [INFO] [stdout] --> src/fund/src/utils.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::{Nat, Principal}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this function depends on never type fallback being `()` [INFO] [stdout] --> src/fund/src/lib.rs:300:1 [INFO] [stdout] | [INFO] [stdout] 300 | / pub async fn transfer( [INFO] [stdout] 301 | | ledger_canister_id: Principal, [INFO] [stdout] 302 | | from:Principal, [INFO] [stdout] 303 | | to: Principal, [INFO] [stdout] 304 | | value:Nat [INFO] [stdout] 305 | | ) -> CallResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `for<'a> !: ArgumentDecoder<'a>` will fail [INFO] [stdout] --> src/fund/src/lib.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 307 | ic_cdk::call(ledger_canister_id, "approve", (canister_id,Nat::from(100),)).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 307 | ic_cdk::call::<_, ()>(ledger_canister_id, "approve", (canister_id,Nat::from(100),)).await?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this function depends on never type fallback being `()` [INFO] [stdout] --> src/fund/src/lib.rs:300:1 [INFO] [stdout] | [INFO] [stdout] 300 | / pub async fn transfer( [INFO] [stdout] 301 | | ledger_canister_id: Principal, [INFO] [stdout] 302 | | from:Principal, [INFO] [stdout] 303 | | to: Principal, [INFO] [stdout] 304 | | value:Nat [INFO] [stdout] 305 | | ) -> CallResult { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `for<'a> !: ArgumentDecoder<'a>` will fail [INFO] [stdout] --> src/fund/src/lib.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 307 | ic_cdk::call(ledger_canister_id, "approve", (canister_id,Nat::from(100),)).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 307 | ic_cdk::call::<_, ()>(ledger_canister_id, "approve", (canister_id,Nat::from(100),)).await?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/fund/src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/fund/src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fund/src/lib.rs:313:10 [INFO] [stdout] | [INFO] [stdout] 313 | fn greet(name: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `principal_to_subaccount` is never used [INFO] [stdout] --> src/fund/src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn principal_to_subaccount(principal_id: &Principal) -> Subaccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fund` (lib test) due to 2 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fund/src/lib.rs:313:10 [INFO] [stdout] | [INFO] [stdout] 313 | fn greet(name: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `principal_to_subaccount` is never used [INFO] [stdout] --> src/fund/src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn principal_to_subaccount(principal_id: &Principal) -> Subaccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fund` (lib) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "242736f02ca1df99beb6e755e4320bfb2d16ae50a8bcc8fd363101f9171797cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "242736f02ca1df99beb6e755e4320bfb2d16ae50a8bcc8fd363101f9171797cb", kill_on_drop: false }` [INFO] [stdout] 242736f02ca1df99beb6e755e4320bfb2d16ae50a8bcc8fd363101f9171797cb