[INFO] cloning repository https://github.com/phongnguyen2012/stakingpool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phongnguyen2012/stakingpool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphongnguyen2012%2Fstakingpool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphongnguyen2012%2Fstakingpool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f974f30190f5f1d1e11e711eb2e8d8aa865e3b3 [INFO] testing phongnguyen2012/stakingpool against beta-2025-10-28 for beta-1.92-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphongnguyen2012%2Fstakingpool" "/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/phongnguyen2012/stakingpool [INFO] finished tweaking git repo https://github.com/phongnguyen2012/stakingpool [INFO] tweaked toml for git repo https://github.com/phongnguyen2012/stakingpool written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/phongnguyen2012/stakingpool on toolchain beta-2025-10-28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/phongnguyen2012/stakingpool 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" "+beta-2025-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b18b145b05e5371ab82780e07bcfd57703725aa679a836b2bbc32cb017e39b84 [INFO] running `Command { std: "docker" "start" "-a" "b18b145b05e5371ab82780e07bcfd57703725aa679a836b2bbc32cb017e39b84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b18b145b05e5371ab82780e07bcfd57703725aa679a836b2bbc32cb017e39b84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b18b145b05e5371ab82780e07bcfd57703725aa679a836b2bbc32cb017e39b84", kill_on_drop: false }` [INFO] [stdout] b18b145b05e5371ab82780e07bcfd57703725aa679a836b2bbc32cb017e39b84 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9e30cfe24101c1d5b1c46a5440ceee35752c0386c9baa65d8bf811e3db6076b [INFO] running `Command { std: "docker" "start" "-a" "f9e30cfe24101c1d5b1c46a5440ceee35752c0386c9baa65d8bf811e3db6076b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling near-sdk-core v3.1.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling near-sdk-macros v3.1.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling near-rpc-error-core v0.1.0 [INFO] [stderr] Compiling near-rpc-error-macro v0.1.0 [INFO] [stderr] Compiling borsh-derive v0.8.2 [INFO] [stderr] Compiling borsh v0.8.2 [INFO] [stderr] Compiling near-primitives-core v0.4.0 [INFO] [stderr] Compiling near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Compiling near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Compiling near-sdk v3.1.0 [INFO] [stderr] Compiling stakingcontract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `near_sdk::log` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use near_sdk::log; [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: `crate::enumeration::*` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::enumeration::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internal::*` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::internal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core_impl::*` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::core_impl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/core_impl.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | msg: String, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `internal_deposit_and_stake` is never used [INFO] [stdout] --> src/internal.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 3 | impl StakingContract { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub(crate) fn internal_deposit_and_stake(&mut self, account_id: AccountId, amount: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FungibleTokenReceiver` is never used [INFO] [stdout] --> src/core_impl.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait FungibleTokenReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `contractV1` should have a snake case name [INFO] [stdout] --> src/lib.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let contractV1: StakingContractV1 = env::state_read().expect("Can not read state data"); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `contract_v1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.83s [INFO] running `Command { std: "docker" "inspect" "f9e30cfe24101c1d5b1c46a5440ceee35752c0386c9baa65d8bf811e3db6076b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9e30cfe24101c1d5b1c46a5440ceee35752c0386c9baa65d8bf811e3db6076b", kill_on_drop: false }` [INFO] [stdout] f9e30cfe24101c1d5b1c46a5440ceee35752c0386c9baa65d8bf811e3db6076b [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fc4a09cc36cdfd426c1ebb9c76ec3aab8d7d1fc53b9dba83185279937bd53ae [INFO] running `Command { std: "docker" "start" "-a" "3fc4a09cc36cdfd426c1ebb9c76ec3aab8d7d1fc53b9dba83185279937bd53ae", kill_on_drop: false }` [INFO] [stderr] Compiling stakingcontract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `near_sdk::log` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use near_sdk::log; [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: `crate::enumeration::*` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::enumeration::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internal::*` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::internal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core_impl::*` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::core_impl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/core_impl.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | msg: String, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stakingcontract` (lib test) due to 1 previous error; 5 warnings emitted [INFO] [stdout] error[E0382]: borrow of moved value: `config` [INFO] [stdout] --> src/lib.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 166 | let config: Config = Config { [INFO] [stdout] | ------ move occurs because `config` has type `config::Config`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 172 | StakingContract::new(accounts(1).to_string(), "ft_contract".to_string(), config); [INFO] [stdout] | ------ value moved here [INFO] [stdout] ... [INFO] [stdout] 176 | assert_eq!(config.reward_numerator, contract.config.reward_numerator); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in method `new` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/lib.rs:69:72 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new(owner_id: AccountId, ft_contract_id: AccountId, config: Config) -> Self { [INFO] [stdout] | --- in this method ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `config::Config` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/config.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:172:86 [INFO] [stdout] | [INFO] [stdout] 172 | StakingContract::new(accounts(1).to_string(), "ft_contract".to_string(), config); [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3fc4a09cc36cdfd426c1ebb9c76ec3aab8d7d1fc53b9dba83185279937bd53ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fc4a09cc36cdfd426c1ebb9c76ec3aab8d7d1fc53b9dba83185279937bd53ae", kill_on_drop: false }` [INFO] [stdout] 3fc4a09cc36cdfd426c1ebb9c76ec3aab8d7d1fc53b9dba83185279937bd53ae