[INFO] cloning repository https://github.com/kanazaya74Raccon/Wefund_contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kanazaya74Raccon/Wefund_contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkanazaya74Raccon%2FWefund_contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkanazaya74Raccon%2FWefund_contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 756e0cded729d46810369ca0dada85a79b1d94d1 [INFO] testing kanazaya74Raccon/Wefund_contract/756e0cded729d46810369ca0dada85a79b1d94d1 against master#d933cf483edf1605142ac6899ff32536c0ad8b22 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkanazaya74Raccon%2FWefund_contract" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/kanazaya74Raccon/Wefund_contract [INFO] finished tweaking git repo https://github.com/kanazaya74Raccon/Wefund_contract [INFO] tweaked toml for git repo https://github.com/kanazaya74Raccon/Wefund_contract written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kanazaya74Raccon/Wefund_contract on toolchain d933cf483edf1605142ac6899ff32536c0ad8b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kanazaya74Raccon/Wefund_contract 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" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-2-tc1/source/contracts/Staking/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-2-tc1/source/contracts/Vesting/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-2-tc1/source/contracts/WEFund/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded schemars_derive v0.8.8 [INFO] [stderr] Downloaded uint v0.9.1 [INFO] [stderr] Downloaded cw20 v0.8.1 [INFO] [stderr] Downloaded cw0 v0.8.1 [INFO] [stderr] Downloaded serde-json-wasm v0.3.2 [INFO] [stderr] Downloaded cw-storage-plus v0.8.1 [INFO] [stderr] Downloaded cosmwasm-derive v0.16.5 [INFO] [stderr] Downloaded terra-cosmwasm v2.2.0 [INFO] [stderr] Downloaded bigint v4.4.3 [INFO] [stderr] Downloaded cosmwasm-crypto v0.16.5 [INFO] [stderr] Downloaded cosmwasm-schema v0.16.5 [INFO] [stderr] Downloaded group v0.10.0 [INFO] [stderr] Downloaded const-oid v0.6.2 [INFO] [stderr] Downloaded ed25519-zebra v2.2.0 [INFO] [stderr] Downloaded ecdsa v0.12.4 [INFO] [stderr] Downloaded cosmwasm-bignumber v2.2.0 [INFO] [stderr] Downloaded cosmwasm-storage v0.16.5 [INFO] [stderr] Downloaded crunchy v0.1.6 [INFO] [stderr] Downloaded terraswap v2.4.0 [INFO] [stderr] Downloaded k256 v0.9.6 [INFO] [stderr] Downloaded crypto-bigint v0.2.11 [INFO] [stderr] Downloaded getrandom v0.2.5 [INFO] [stderr] Downloaded elliptic-curve v0.10.6 [INFO] [stderr] Downloaded signature v1.3.2 [INFO] [stderr] Downloaded der v0.4.5 [INFO] [stderr] Downloaded zeroize v1.4.3 [INFO] [stderr] Downloaded cosmwasm-std v0.16.5 [INFO] [stderr] Downloaded crypto-mac v0.11.1 [INFO] [stderr] Downloaded hmac v0.11.0 [INFO] [stderr] Downloaded ff v0.10.1 [INFO] [stderr] Downloaded spki v0.4.1 [INFO] [stderr] Downloaded cw2 v0.8.1 [INFO] [stderr] Downloaded pkcs8 v0.7.6 [INFO] [stderr] Downloaded schemars v0.8.8 [INFO] [stderr] Downloaded dyn-clone v1.0.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d056e5abc400bb0ed40e4eb2754f0f27a3d8d2586f6809833aac45378c6a1b8e [INFO] running `Command { std: "docker" "start" "-a" "d056e5abc400bb0ed40e4eb2754f0f27a3d8d2586f6809833aac45378c6a1b8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d056e5abc400bb0ed40e4eb2754f0f27a3d8d2586f6809833aac45378c6a1b8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d056e5abc400bb0ed40e4eb2754f0f27a3d8d2586f6809833aac45378c6a1b8e", kill_on_drop: false }` [INFO] [stdout] d056e5abc400bb0ed40e4eb2754f0f27a3d8d2586f6809833aac45378c6a1b8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fce07b2328f1183141403051178fd85b8dc04cbf0a12548cb481d96ee5b7692c [INFO] running `Command { std: "docker" "start" "-a" "fce07b2328f1183141403051178fd85b8dc04cbf0a12548cb481d96ee5b7692c", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/Staking/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/Vesting/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/WEFund/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profile package spec `WEFUND` in profile `release` did not match any packages [INFO] [stderr] [INFO] [stderr] help: a package with a similar name exists: `wefund17` [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling zeroize v1.4.3 [INFO] [stderr] Compiling const-oid v0.6.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling der v0.4.5 [INFO] [stderr] Compiling schemars v0.8.8 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling dyn-clone v1.0.4 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling crunchy v0.1.6 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling spki v0.4.1 [INFO] [stderr] Compiling pkcs8 v0.7.6 [INFO] [stderr] Compiling bigint v4.4.3 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling ff v0.10.1 [INFO] [stderr] Compiling group v0.10.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-bigint v0.2.11 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling signature v1.3.2 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling elliptic-curve v0.10.6 [INFO] [stderr] Compiling ecdsa v0.12.4 [INFO] [stderr] Compiling k256 v0.9.6 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling schemars_derive v0.8.8 [INFO] [stderr] Compiling cosmwasm-derive v0.16.5 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling ed25519-zebra v2.2.0 [INFO] [stderr] Compiling serde-json-wasm v0.3.2 [INFO] [stderr] Compiling cosmwasm-crypto v0.16.5 [INFO] [stderr] Compiling cosmwasm-std v0.16.5 [INFO] [stderr] Compiling cw0 v0.8.1 [INFO] [stderr] Compiling cw-storage-plus v0.8.1 [INFO] [stderr] Compiling cosmwasm-bignumber v2.2.0 [INFO] [stderr] Compiling cw20 v0.8.1 [INFO] [stderr] Compiling cw2 v0.8.1 [INFO] [stderr] Compiling Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting) [INFO] [stderr] Compiling Staking v0.0.1 (/opt/rustwide/workdir/contracts/Staking) [INFO] [stdout] warning: unused imports: `CosmosMsg` and `Storage` [INFO] [stdout] --> contracts/Staking/src/contract.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | Uint128, CosmosMsg, WasmMsg, Storage [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 imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/contract.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CardInfo` [INFO] [stdout] --> contracts/Staking/src/contract.rs:12:56 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::msg::{ExecuteMsg, InstantiateMsg, UserInfo, CardInfo, CardType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_reward` [INFO] [stdout] --> contracts/Staking/src/contract.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::util::{check_onlyowner, get_cardtype, manage_card, get_reward, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AllBalanceResponse`, `BankQuery`, `Coin`, and `QueryRequest` [INFO] [stdout] --> contracts/Staking/src/query.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | Uint128, QueryRequest, BankQuery, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | Coin, AllBalanceResponse, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/query.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use cw20::{ Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse }; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserInfo` [INFO] [stdout] --> contracts/Staking/src/query.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::msg::{QueryMsg, UserInfo}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Map` and `U128Key` [INFO] [stdout] --> contracts/Staking/src/msg.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemars::JsonSchema` [INFO] [stdout] --> contracts/Staking/src/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> contracts/Staking/src/state.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Coin`, `DepsMut`, and `StdResult` [INFO] [stdout] --> contracts/Staking/src/state.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U128Key` [INFO] [stdout] --> contracts/Staking/src/state.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Item, Map, U128Key}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CardType` [INFO] [stdout] --> contracts/Staking/src/state.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::msg::{UserInfo, CardInfo, CardType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BalanceResponse` and `Querier` [INFO] [stdout] --> contracts/Staking/src/util.rs:3:97 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{ Storage, Uint128, Addr, StdResult, StdError, Response, Env, QuerierWrapper, Querier, BalanceResponse}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cw20ExecuteMsg` and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/util.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `REWARD_TOKEN` [INFO] [stdout] --> contracts/Staking/src/util.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | BRONZE_CARD_NUMBER, CARD_INFOS, USER_INFOS, REWARD_TOKEN, START_TIME, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Uint128` [INFO] [stdout] --> contracts/Vesting/src/error.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Uint128}; [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 imports: `Map` and `U128Key` [INFO] [stdout] --> contracts/Vesting/src/msg.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemars::JsonSchema` [INFO] [stdout] --> contracts/Vesting/src/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> contracts/Vesting/src/state.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Coin`, `DepsMut`, `StdResult`, and `Uint128` [INFO] [stdout] --> contracts/Vesting/src/state.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | Some(info) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extra` [INFO] [stdout] --> contracts/Staking/src/query.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | let (reward, extra) = get_reward( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> contracts/Staking/src/util.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get_cardtype(storage: &dyn Storage, amount: Uint128) -> StdResult [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Staking` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `staking` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Vesting/src/contract.rs:328:36 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn try_setconfig(deps:DepsMut, info:MessageInfo, admin: String) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Vesting` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `vesting` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wefund17 v17.2.3 (/opt/rustwide/workdir/contracts/WEFund) [INFO] [stdout] warning: unused import: `ProjectStatus` [INFO] [stdout] --> contracts/WEFund/src/error.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::state::{ProjectStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.62s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "fce07b2328f1183141403051178fd85b8dc04cbf0a12548cb481d96ee5b7692c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fce07b2328f1183141403051178fd85b8dc04cbf0a12548cb481d96ee5b7692c", kill_on_drop: false }` [INFO] [stdout] fce07b2328f1183141403051178fd85b8dc04cbf0a12548cb481d96ee5b7692c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f6186d3860c6eb7b057ec5d6062711614b8140d88aa8d0c341c8eaaeb58bb31 [INFO] running `Command { std: "docker" "start" "-a" "4f6186d3860c6eb7b057ec5d6062711614b8140d88aa8d0c341c8eaaeb58bb31", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/Staking/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/Vesting/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/WEFund/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profile package spec `WEFUND` in profile `release` did not match any packages [INFO] [stderr] [INFO] [stderr] help: a package with a similar name exists: `wefund17` [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` has the same output filename as the example target `schema` in package `Staking v0.0.1 (/opt/rustwide/workdir/contracts/Staking)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema.dwp [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` has the same output filename as the example target `schema` in package `Staking v0.0.1 (/opt/rustwide/workdir/contracts/Staking)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `wefund17 v17.2.3 (/opt/rustwide/workdir/contracts/WEFund)` has the same output filename as the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema.dwp [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `wefund17 v17.2.3 (/opt/rustwide/workdir/contracts/WEFund)` has the same output filename as the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] Compiling cosmwasm-schema v0.16.5 [INFO] [stderr] Compiling cosmwasm-storage v0.16.5 [INFO] [stderr] Compiling terra-cosmwasm v2.2.0 [INFO] [stdout] warning: unused import: `Uint128` [INFO] [stdout] --> contracts/Vesting/src/error.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Uint128}; [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 imports: `Map` and `U128Key` [INFO] [stdout] --> contracts/Vesting/src/msg.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemars::JsonSchema` [INFO] [stdout] --> contracts/Vesting/src/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> contracts/Vesting/src/state.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Coin`, `DepsMut`, `StdResult`, and `Uint128` [INFO] [stdout] --> contracts/Vesting/src/state.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Vesting/src/contract.rs:328:36 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn try_setconfig(deps:DepsMut, info:MessageInfo, admin: String) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Vesting` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `vesting` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CosmosMsg` and `Storage` [INFO] [stdout] --> contracts/Staking/src/contract.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | Uint128, CosmosMsg, WasmMsg, Storage [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 imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/contract.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CardInfo` [INFO] [stdout] --> contracts/Staking/src/contract.rs:12:56 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::msg::{ExecuteMsg, InstantiateMsg, UserInfo, CardInfo, CardType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_reward` [INFO] [stdout] --> contracts/Staking/src/contract.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::util::{check_onlyowner, get_cardtype, manage_card, get_reward, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AllBalanceResponse`, `BankQuery`, `Coin`, and `QueryRequest` [INFO] [stdout] --> contracts/Staking/src/query.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | Uint128, QueryRequest, BankQuery, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | Coin, AllBalanceResponse, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/query.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use cw20::{ Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse }; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserInfo` [INFO] [stdout] --> contracts/Staking/src/query.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::msg::{QueryMsg, UserInfo}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Map` and `U128Key` [INFO] [stdout] --> contracts/Staking/src/msg.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemars::JsonSchema` [INFO] [stdout] --> contracts/Staking/src/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> contracts/Staking/src/state.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Coin`, `DepsMut`, and `StdResult` [INFO] [stdout] --> contracts/Staking/src/state.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U128Key` [INFO] [stdout] --> contracts/Staking/src/state.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Item, Map, U128Key}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CardType` [INFO] [stdout] --> contracts/Staking/src/state.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::msg::{UserInfo, CardInfo, CardType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BalanceResponse` and `Querier` [INFO] [stdout] --> contracts/Staking/src/util.rs:3:97 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{ Storage, Uint128, Addr, StdResult, StdError, Response, Env, QuerierWrapper, Querier, BalanceResponse}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cw20ExecuteMsg` and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/util.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `REWARD_TOKEN` [INFO] [stdout] --> contracts/Staking/src/util.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | BRONZE_CARD_NUMBER, CARD_INFOS, USER_INFOS, REWARD_TOKEN, START_TIME, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | Some(info) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extra` [INFO] [stdout] --> contracts/Staking/src/query.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | let (reward, extra) = get_reward( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> contracts/Staking/src/util.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get_cardtype(storage: &dyn Storage, amount: Uint128) -> StdResult [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Staking` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `staking` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProjectStatus` [INFO] [stdout] --> contracts/WEFund/src/error.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::state::{ProjectStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling terraswap v2.4.0 [INFO] [stderr] Compiling wefund17 v17.2.3 (/opt/rustwide/workdir/contracts/WEFund) [INFO] [stderr] Compiling Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting) [INFO] [stdout] warning: unused import: `ProjectStatus` [INFO] [stdout] --> contracts/WEFund/src/error.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::state::{ProjectStatus}; [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: `super::*` [INFO] [stdout] --> contracts/WEFund/src/testing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Addr`, `AllBalanceResponse`, `BalanceResponse`, `BankQuery`, `CosmosMsg`, and `WasmMsg` [INFO] [stdout] --> contracts/WEFund/src/testing.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use cosmwasm_std::{from_binary, Addr, CosmosMsg, WasmMsg, [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 3 | BankQuery, BalanceResponse, AllBalanceResponse, Coin, Uint128}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MOCK_CONTRACT_ADDR` [INFO] [stdout] --> contracts/WEFund/src/testing.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use cosmwasm_std::testing::{mock_env, mock_info, MOCK_CONTRACT_ADDR, mock_dependencies}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> contracts/WEFund/src/testing.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::state::{Milestone, Config, ProjectState}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cw20::Cw20ExecuteMsg` [INFO] [stdout] --> contracts/WEFund/src/testing.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use cw20::Cw20ExecuteMsg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Uint128` [INFO] [stdout] --> contracts/Vesting/src/error.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Uint128}; [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 imports: `Map` and `U128Key` [INFO] [stdout] --> contracts/Vesting/src/msg.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemars::JsonSchema` [INFO] [stdout] --> contracts/Vesting/src/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> contracts/Vesting/src/state.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Coin`, `DepsMut`, `StdResult`, and `Uint128` [INFO] [stdout] --> contracts/Vesting/src/state.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> contracts/Vesting/src/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Addr`, `AllBalanceResponse`, `BalanceResponse`, `BankQuery`, `Coin`, `CosmosMsg`, and `WasmMsg` [INFO] [stdout] --> contracts/Vesting/src/test.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use cosmwasm_std::{from_binary, Addr, CosmosMsg, WasmMsg, [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 3 | BankQuery, BalanceResponse, AllBalanceResponse, Coin, Uint128}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MOCK_CONTRACT_ADDR` [INFO] [stdout] --> contracts/Vesting/src/test.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use cosmwasm_std::testing::{mock_env, mock_info, MOCK_CONTRACT_ADDR, mock_dependencies}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config`, `UserInfo`, and `VestingParameter` [INFO] [stdout] --> contracts/Vesting/src/test.rs:8:56 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::msg::{QueryMsg, ExecuteMsg, InstantiateMsg, VestingParameter, Config, UserInfo, ProjectInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cw20::Cw20ExecuteMsg` [INFO] [stdout] --> contracts/Vesting/src/test.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use cw20::Cw20ExecuteMsg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Vesting/src/contract.rs:328:36 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn try_setconfig(deps:DepsMut, info:MessageInfo, admin: String) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling Staking v0.0.1 (/opt/rustwide/workdir/contracts/Staking) [INFO] [stdout] warning: unused import: `UserInfo` [INFO] [stdout] --> contracts/Staking/examples/schema.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | use Staking::msg::{ExecuteMsg, InstantiateMsg, QueryMsg, UserInfo}; [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 imports: `CosmosMsg` and `Storage` [INFO] [stdout] --> contracts/Staking/src/contract.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | Uint128, CosmosMsg, WasmMsg, Storage [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 imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/contract.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CardInfo` [INFO] [stdout] --> contracts/Staking/src/contract.rs:12:56 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::msg::{ExecuteMsg, InstantiateMsg, UserInfo, CardInfo, CardType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_reward` [INFO] [stdout] --> contracts/Staking/src/contract.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::util::{check_onlyowner, get_cardtype, manage_card, get_reward, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AllBalanceResponse`, `BankQuery`, `Coin`, and `QueryRequest` [INFO] [stdout] --> contracts/Staking/src/query.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | Uint128, QueryRequest, BankQuery, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 6 | Coin, AllBalanceResponse, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/query.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use cw20::{ Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse }; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserInfo` [INFO] [stdout] --> contracts/Staking/src/query.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::msg::{QueryMsg, UserInfo}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Map` and `U128Key` [INFO] [stdout] --> contracts/Staking/src/msg.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemars::JsonSchema` [INFO] [stdout] --> contracts/Staking/src/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> contracts/Staking/src/state.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Coin`, `DepsMut`, and `StdResult` [INFO] [stdout] --> contracts/Staking/src/state.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U128Key` [INFO] [stdout] --> contracts/Staking/src/state.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use cw_storage_plus::{Item, Map, U128Key}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CardType` [INFO] [stdout] --> contracts/Staking/src/state.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::msg::{UserInfo, CardInfo, CardType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BalanceResponse` and `Querier` [INFO] [stdout] --> contracts/Staking/src/util.rs:3:97 [INFO] [stdout] | [INFO] [stdout] 3 | use cosmwasm_std::{ Storage, Uint128, Addr, StdResult, StdError, Response, Env, QuerierWrapper, Querier, BalanceResponse}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cw20ExecuteMsg` and `TokenInfoResponse` [INFO] [stdout] --> contracts/Staking/src/util.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `REWARD_TOKEN` [INFO] [stdout] --> contracts/Staking/src/util.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | BRONZE_CARD_NUMBER, CARD_INFOS, USER_INFOS, REWARD_TOKEN, START_TIME, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> contracts/Staking/src/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AllBalanceResponse`, `Api`, `BalanceResponse`, `BankQuery`, `Coin`, `CosmosMsg`, and `WasmMsg` [INFO] [stdout] --> contracts/Staking/src/test.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use cosmwasm_std::{from_binary, Addr, CosmosMsg, WasmMsg, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 3 | BankQuery, BalanceResponse, AllBalanceResponse, Coin, Uint128, Api}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cw20::Cw20ExecuteMsg` [INFO] [stdout] --> contracts/Staking/src/test.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use cw20::Cw20ExecuteMsg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> contracts/Staking/src/mock_querier.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | Some(info) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> contracts/Staking/src/contract.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extra` [INFO] [stdout] --> contracts/Staking/src/query.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | let (reward, extra) = get_reward( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> contracts/Staking/src/util.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get_cardtype(storage: &dyn Storage, amount: Uint128) -> StdResult [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> contracts/Staking/src/test.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let res = instantiate(deps.as_mut(), mock_env(), info.clone(), msg).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> contracts/Staking/src/mock_querier.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl TaxQuerier { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 77 | pub fn new(rate: Decimal, caps: &[(&String, &Uint128)]) -> Self { [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 `caps_to_map` is never used [INFO] [stdout] --> contracts/Staking/src/mock_querier.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | pub(crate) fn caps_to_map(caps: &[(&String, &Uint128)]) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> contracts/Staking/src/mock_querier.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl TerraswapFactoryQuerier { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 99 | pub fn new(pairs: &[(&String, &String)]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pairs_to_map` is never used [INFO] [stdout] --> contracts/Staking/src/mock_querier.rs:106:15 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) fn pairs_to_map(pairs: &[(&String, &String)]) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_tax` and `with_terraswap_pairs` are never used [INFO] [stdout] --> contracts/Staking/src/mock_querier.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 226 | impl WasmMockQuerier { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn with_tax(&mut self, rate: Decimal, caps: &[(&String, &Uint128)]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn with_terraswap_pairs(&mut self, pairs: &[(&String, &String)]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.78s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "4f6186d3860c6eb7b057ec5d6062711614b8140d88aa8d0c341c8eaaeb58bb31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f6186d3860c6eb7b057ec5d6062711614b8140d88aa8d0c341c8eaaeb58bb31", kill_on_drop: false }` [INFO] [stdout] 4f6186d3860c6eb7b057ec5d6062711614b8140d88aa8d0c341c8eaaeb58bb31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 469f02681604af6236c2ff692fe99b3da0e860f7866bfb580524d8390fdff01b [INFO] running `Command { std: "docker" "start" "-a" "469f02681604af6236c2ff692fe99b3da0e860f7866bfb580524d8390fdff01b", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/Staking/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/Vesting/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/contracts/WEFund/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profile package spec `WEFUND` in profile `release` did not match any packages [INFO] [stderr] [INFO] [stderr] help: a package with a similar name exists: `wefund17` [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` has the same output filename as the example target `schema` in package `Staking v0.0.1 (/opt/rustwide/workdir/contracts/Staking)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema.dwp [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` has the same output filename as the example target `schema` in package `Staking v0.0.1 (/opt/rustwide/workdir/contracts/Staking)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `wefund17 v17.2.3 (/opt/rustwide/workdir/contracts/WEFund)` has the same output filename as the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: output filename collision at /opt/rustwide/target/debug/examples/schema.dwp [INFO] [stderr] | [INFO] [stderr] = note: the example target `schema` in package `wefund17 v17.2.3 (/opt/rustwide/workdir/contracts/WEFund)` has the same output filename as the example target `schema` in package `Vesting v0.0.1 (/opt/rustwide/workdir/contracts/Vesting)` [INFO] [stderr] = note: this may become a hard error in the future; see [INFO] [stderr] = help: consider changing their names to be unique or compiling them separately [INFO] [stderr] warning: unused import: `Uint128` [INFO] [stderr] --> contracts/Vesting/src/error.rs:3:20 [INFO] [stderr] | [INFO] [stderr] 3 | use cosmwasm_std::{Uint128}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Map` and `U128Key` [INFO] [stderr] --> contracts/Vesting/src/msg.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stderr] | ^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `schemars::JsonSchema` [INFO] [stderr] --> contracts/Vesting/src/state.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use schemars::JsonSchema; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> contracts/Vesting/src/state.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Coin`, `DepsMut`, `StdResult`, and `Uint128` [INFO] [stderr] --> contracts/Vesting/src/state.rs:3:26 [INFO] [stderr] | [INFO] [stderr] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stderr] | ^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> contracts/Vesting/src/contract.rs:328:36 [INFO] [stderr] | [INFO] [stderr] 328 | pub fn try_setconfig(deps:DepsMut, info:MessageInfo, admin: String) [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: crate `Vesting` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `vesting` [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CosmosMsg` and `Storage` [INFO] [stderr] --> contracts/Staking/src/contract.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | Uint128, CosmosMsg, WasmMsg, Storage [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stderr] --> contracts/Staking/src/contract.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `CardInfo` [INFO] [stderr] --> contracts/Staking/src/contract.rs:12:56 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::msg::{ExecuteMsg, InstantiateMsg, UserInfo, CardInfo, CardType}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_reward` [INFO] [stderr] --> contracts/Staking/src/contract.rs:15:63 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::util::{check_onlyowner, get_cardtype, manage_card, get_reward, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AllBalanceResponse`, `BankQuery`, `Coin`, and `QueryRequest` [INFO] [stderr] --> contracts/Staking/src/query.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | Uint128, QueryRequest, BankQuery, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] 6 | Coin, AllBalanceResponse, [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BalanceResponse as Cw20BalanceResponse`, `Cw20QueryMsg`, and `TokenInfoResponse` [INFO] [stderr] --> contracts/Staking/src/query.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use cw20::{ Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse }; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `UserInfo` [INFO] [stderr] --> contracts/Staking/src/query.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::msg::{QueryMsg, UserInfo}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Map` and `U128Key` [INFO] [stderr] --> contracts/Staking/src/msg.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use cw_storage_plus::{Map, U128Key}; [INFO] [stderr] | ^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `schemars::JsonSchema` [INFO] [stderr] --> contracts/Staking/src/state.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use schemars::JsonSchema; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> contracts/Staking/src/state.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Coin`, `DepsMut`, and `StdResult` [INFO] [stderr] --> contracts/Staking/src/state.rs:3:35 [INFO] [stderr] | [INFO] [stderr] 3 | use cosmwasm_std::{Addr, Uint128, Coin, StdResult, DepsMut}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `U128Key` [INFO] [stderr] --> contracts/Staking/src/state.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | use cw_storage_plus::{Item, Map, U128Key}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `CardType` [INFO] [stderr] --> contracts/Staking/src/state.rs:5:38 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::msg::{UserInfo, CardInfo, CardType}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BalanceResponse` and `Querier` [INFO] [stderr] --> contracts/Staking/src/util.rs:3:97 [INFO] [stderr] | [INFO] [stderr] 3 | use cosmwasm_std::{ Storage, Uint128, Addr, StdResult, StdError, Response, Env, QuerierWrapper, Querier, BalanceResponse}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Cw20ExecuteMsg` and `TokenInfoResponse` [INFO] [stderr] --> contracts/Staking/src/util.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | use cw20::{Cw20ExecuteMsg, Cw20QueryMsg, BalanceResponse as Cw20BalanceResponse, TokenInfoResponse}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `REWARD_TOKEN` [INFO] [stderr] --> contracts/Staking/src/util.rs:7:49 [INFO] [stderr] | [INFO] [stderr] 7 | BRONZE_CARD_NUMBER, CARD_INFOS, USER_INFOS, REWARD_TOKEN, START_TIME, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> contracts/Staking/src/contract.rs:122:5 [INFO] [stderr] | [INFO] [stderr] 122 | info: MessageInfo, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> contracts/Staking/src/contract.rs:130:14 [INFO] [stderr] | [INFO] [stderr] 130 | Some(info) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> contracts/Staking/src/contract.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | info: MessageInfo, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> contracts/Staking/src/contract.rs:216:5 [INFO] [stderr] | [INFO] [stderr] 216 | info: MessageInfo, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `extra` [INFO] [stderr] --> contracts/Staking/src/query.rs:36:26 [INFO] [stderr] | [INFO] [stderr] 36 | let (reward, extra) = get_reward( [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_extra` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `storage` [INFO] [stderr] --> contracts/Staking/src/util.rs:19:21 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn get_cardtype(storage: &dyn Storage, amount: Uint128) -> StdResult [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stderr] [INFO] [stderr] warning: crate `Staking` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `staking` [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> contracts/Vesting/src/test.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Addr`, `AllBalanceResponse`, `BalanceResponse`, `BankQuery`, `Coin`, `CosmosMsg`, and `WasmMsg` [INFO] [stderr] --> contracts/Vesting/src/test.rs:2:33 [INFO] [stderr] | [INFO] [stderr] 2 | use cosmwasm_std::{from_binary, Addr, CosmosMsg, WasmMsg, [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] 3 | BankQuery, BalanceResponse, AllBalanceResponse, Coin, Uint128}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `MOCK_CONTRACT_ADDR` [INFO] [stderr] --> contracts/Vesting/src/test.rs:4:50 [INFO] [stderr] | [INFO] [stderr] 4 | use cosmwasm_std::testing::{mock_env, mock_info, MOCK_CONTRACT_ADDR, mock_dependencies}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Config`, `UserInfo`, and `VestingParameter` [INFO] [stderr] --> contracts/Vesting/src/test.rs:8:56 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::msg::{QueryMsg, ExecuteMsg, InstantiateMsg, VestingParameter, Config, UserInfo, ProjectInfo}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cw20::Cw20ExecuteMsg` [INFO] [stderr] --> contracts/Vesting/src/test.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use cw20::Cw20ExecuteMsg; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `Vesting` (lib) generated 7 warnings (run `cargo fix --lib -p Vesting` to apply 6 suggestions) [INFO] [stderr] warning: `Staking` (lib) generated 23 warnings (run `cargo fix --lib -p Staking` to apply 22 suggestions) [INFO] [stderr] warning: `Vesting` (lib test) generated 11 warnings (6 duplicates) (run `cargo fix --lib -p Vesting --tests` to apply 5 suggestions) [INFO] [stderr] warning: unused import: `ProjectStatus` [INFO] [stderr] --> contracts/WEFund/src/error.rs:4:20 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::state::{ProjectStatus}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> contracts/WEFund/src/testing.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Addr`, `AllBalanceResponse`, `BalanceResponse`, `BankQuery`, `CosmosMsg`, and `WasmMsg` [INFO] [stderr] --> contracts/WEFund/src/testing.rs:2:33 [INFO] [stderr] | [INFO] [stderr] 2 | use cosmwasm_std::{from_binary, Addr, CosmosMsg, WasmMsg, [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] 3 | BankQuery, BalanceResponse, AllBalanceResponse, Coin, Uint128}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `MOCK_CONTRACT_ADDR` [INFO] [stderr] --> contracts/WEFund/src/testing.rs:4:50 [INFO] [stderr] | [INFO] [stderr] 4 | use cosmwasm_std::testing::{mock_env, mock_info, MOCK_CONTRACT_ADDR, mock_dependencies}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Config` [INFO] [stderr] --> contracts/WEFund/src/testing.rs:8:31 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::state::{Milestone, Config, ProjectState}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cw20::Cw20ExecuteMsg` [INFO] [stderr] --> contracts/WEFund/src/testing.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use cw20::Cw20ExecuteMsg; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> contracts/Staking/src/test.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AllBalanceResponse`, `Api`, `BalanceResponse`, `BankQuery`, `Coin`, `CosmosMsg`, and `WasmMsg` [INFO] [stderr] --> contracts/Staking/src/test.rs:2:39 [INFO] [stderr] | [INFO] [stderr] 2 | use cosmwasm_std::{from_binary, Addr, CosmosMsg, WasmMsg, [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] 3 | BankQuery, BalanceResponse, AllBalanceResponse, Coin, Uint128, Api}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cw20::Cw20ExecuteMsg` [INFO] [stderr] --> contracts/Staking/src/test.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use cw20::Cw20ExecuteMsg; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::marker::PhantomData` [INFO] [stderr] --> contracts/Staking/src/mock_querier.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::marker::PhantomData; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `res` [INFO] [stderr] --> contracts/Staking/src/test.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | let res = instantiate(deps.as_mut(), mock_env(), info.clone(), msg).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> contracts/Staking/src/mock_querier.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 76 | impl TaxQuerier { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 77 | pub fn new(rate: Decimal, caps: &[(&String, &Uint128)]) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `caps_to_map` is never used [INFO] [stderr] --> contracts/Staking/src/mock_querier.rs:85:15 [INFO] [stderr] | [INFO] [stderr] 85 | pub(crate) fn caps_to_map(caps: &[(&String, &Uint128)]) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> contracts/Staking/src/mock_querier.rs:99:12 [INFO] [stderr] | [INFO] [stderr] 98 | impl TerraswapFactoryQuerier { [INFO] [stderr] | ---------------------------- associated function in this implementation [INFO] [stderr] 99 | pub fn new(pairs: &[(&String, &String)]) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pairs_to_map` is never used [INFO] [stderr] --> contracts/Staking/src/mock_querier.rs:106:15 [INFO] [stderr] | [INFO] [stderr] 106 | pub(crate) fn pairs_to_map(pairs: &[(&String, &String)]) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `with_tax` and `with_terraswap_pairs` are never used [INFO] [stderr] --> contracts/Staking/src/mock_querier.rs:242:12 [INFO] [stderr] | [INFO] [stderr] 226 | impl WasmMockQuerier { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 242 | pub fn with_tax(&mut self, rate: Decimal, caps: &[(&String, &Uint128)]) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 247 | pub fn with_terraswap_pairs(&mut self, pairs: &[(&String, &String)]) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `UserInfo` [INFO] [stderr] --> contracts/Staking/examples/schema.rs:5:58 [INFO] [stderr] | [INFO] [stderr] 5 | use Staking::msg::{ExecuteMsg, InstantiateMsg, QueryMsg, UserInfo}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `wefund17` (lib) generated 1 warning (run `cargo fix --lib -p wefund17` to apply 1 suggestion) [INFO] [stderr] warning: `wefund17` (lib test) generated 6 warnings (1 duplicate) (run `cargo fix --lib -p wefund17 --tests` to apply 5 suggestions) [INFO] [stderr] warning: `Staking` (lib test) generated 32 warnings (22 duplicates) (run `cargo fix --lib -p Staking --tests` to apply 5 suggestions) [INFO] [stderr] warning: `Staking` (example "schema") generated 1 warning (run `cargo fix --example "schema" -p Staking` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/Staking-1c3b6db5b5d517a0) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test::workflow ... ok [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/Vesting-f1ad3e5483233e4d) [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test::workflow ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wefund17-7f6788262a9c6787) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test testing::workflow ... FAILED [INFO] [stderr] error: test failed, to rerun pass `-p wefund17 --lib` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- testing::workflow stdout ---- [INFO] [stdout] Add community memberResponse { messages: [], attributes: [Attribute { key: "action", value: "add community member" }], events: [], data: None } [INFO] [stdout] Add community memberResponse { messages: [], attributes: [Attribute { key: "action", value: "add community member" }], events: [], data: None } [INFO] [stdout] Response { messages: [SubMsg { id: 0, msg: Wasm(Execute { contract_addr: "vesting", msg: Binary([123, 34, 97, 100, 100, 95, 112, 114, 111, 106, 101, 99, 116, 34, 58, 123, 34, 112, 114, 111, 106, 101, 99, 116, 95, 105, 100, 34, 58, 34, 49, 34, 44, 34, 97, 100, 109, 105, 110, 34, 58, 34, 99, 111, 115, 109, 111, 115, 50, 99, 111, 110, 116, 114, 97, 99, 116, 34, 44, 34, 116, 111, 107, 101, 110, 95, 97, 100, 100, 114, 34, 58, 34, 116, 111, 107, 101, 110, 49, 34, 44, 34, 118, 101, 115, 116, 105, 110, 103, 95, 112, 97, 114, 97, 109, 115, 34, 58, 91, 93, 44, 34, 115, 116, 97, 114, 116, 95, 116, 105, 109, 101, 34, 58, 34, 48, 34, 125, 125]), funds: [] }), gas_limit: None, reply_on: Never }], attributes: [Attribute { key: "action", value: "add project" }, Attribute { key: "id", value: "1" }], events: [], data: None } [INFO] [stdout] WeFund Approve: Response { messages: [], attributes: [Attribute { key: "action", value: "Wefund Approve" }], events: [], data: None } [INFO] [stdout] back2project:Response { messages: [SubMsg { id: 0, msg: Wasm(Execute { contract_addr: "market", msg: Binary([123, 34, 100, 101, 112, 111, 115, 105, 116, 95, 115, 116, 97, 98, 108, 101, 34, 58, 123, 125, 125]), funds: [Coin { denom: "uusd", amount: Uint128(100000000) }] }), gas_limit: None, reply_on: Never }, SubMsg { id: 0, msg: Bank(Send { to_address: "Wefund", amount: [Coin { denom: "uusd", amount: Uint128(1000000) }] }), gas_limit: None, reply_on: Never }, SubMsg { id: 0, msg: Wasm(Execute { contract_addr: "vesting", msg: Binary([123, 34, 97, 100, 100, 95, 117, 115, 101, 114, 34, 58, 123, 34, 112, 114, 111, 106, 101, 99, 116, 95, 105, 100, 34, 58, 34, 49, 34, 44, 34, 115, 116, 97, 103, 101, 34, 58, 34, 48, 34, 44, 34, 119, 97, 108, 108, 101, 116, 34, 58, 34, 98, 97, 99, 107, 101, 114, 49, 34, 44, 34, 97, 109, 111, 117, 110, 116, 34, 58, 34, 49, 48, 34, 125, 125]), funds: [] }), gas_limit: None, reply_on: Never }], attributes: [Attribute { key: "action", value: "back to project" }], events: [], data: None } [INFO] [stdout] back2project:Response { messages: [SubMsg { id: 0, msg: Wasm(Execute { contract_addr: "market", msg: Binary([123, 34, 100, 101, 112, 111, 115, 105, 116, 95, 115, 116, 97, 98, 108, 101, 34, 58, 123, 125, 125]), funds: [Coin { denom: "uusd", amount: Uint128(200000000) }] }), gas_limit: None, reply_on: Never }, SubMsg { id: 0, msg: Bank(Send { to_address: "Wefund", amount: [Coin { denom: "uusd", amount: Uint128(6000000) }] }), gas_limit: None, reply_on: Never }, SubMsg { id: 0, msg: Wasm(Execute { contract_addr: "vesting", msg: Binary([123, 34, 97, 100, 100, 95, 117, 115, 101, 114, 34, 58, 123, 34, 112, 114, 111, 106, 101, 99, 116, 95, 105, 100, 34, 58, 34, 49, 34, 44, 34, 115, 116, 97, 103, 101, 34, 58, 34, 48, 34, 44, 34, 119, 97, 108, 108, 101, 116, 34, 58, 34, 98, 97, 99, 107, 101, 114, 50, 34, 44, 34, 97, 109, 111, 117, 110, 116, 34, 58, 34, 49, 48, 34, 125, 125]), funds: [] }), gas_limit: None, reply_on: Never }], attributes: [Attribute { key: "action", value: "back to project" }], events: [], data: None } [INFO] [stdout] [INFO] [stdout] thread 'testing::workflow' (28) panicked at contracts/WEFund/src/testing.rs:174:73: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Std(GenericErr { msg: "Querier system error: No such contract: token1" }) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x58470ea46b4a - std[69d51b4813ba037]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x58470ea46b4a - std[69d51b4813ba037]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x58470ea46b4a - std[69d51b4813ba037]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x58470ea46b4a - <::print::DisplayBacktrace as core[51d4adbef590f61]::fmt::Display>::fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x58470ea5b30a - ::fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x58470ea5b30a - core[51d4adbef590f61]::fmt::write [INFO] [stdout] 6: 0x58470ea4b482 - std[69d51b4813ba037]::io::default_write_fmt::> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x58470ea4b482 - as std[69d51b4813ba037]::io::Write>::write_fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x58470ea25d5f - ::print [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x58470ea25d5f - std[69d51b4813ba037]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x58470ea3f109 - std[69d51b4813ba037]::panicking::default_hook [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x58470e90589c - core[51d4adbef590f61]::ops::function::Fn<(&'a std[69d51b4813ba037]::panic::PanicHookInfo<'b>,), Output = ()> + core[51d4adbef590f61]::marker::Sync + core[51d4adbef590f61]::marker::Send> as core[51d4adbef590f61]::ops::function::Fn<(&std[69d51b4813ba037]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x58470e90589c - test[8fe65b9e05bf4c74]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x58470ea3f2c2 - core[51d4adbef590f61]::ops::function::Fn<(&'a std[69d51b4813ba037]::panic::PanicHookInfo<'b>,), Output = ()> + core[51d4adbef590f61]::marker::Sync + core[51d4adbef590f61]::marker::Send> as core[51d4adbef590f61]::ops::function::Fn<(&std[69d51b4813ba037]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x58470ea3f2c2 - std[69d51b4813ba037]::panicking::panic_with_hook [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x58470ea25e18 - std[69d51b4813ba037]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x58470ea1d789 - std[69d51b4813ba037]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x58470ea26b2d - __rustc[cb16bc19fc993bd7]::rust_begin_unwind [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x58470ea5bbbc - core[51d4adbef590f61]::panicking::panic_fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x58470ea5b932 - core[51d4adbef590f61]::result::unwrap_failed [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/result.rs:1867:5 [INFO] [stdout] 20: 0x58470e8dae60 - >::unwrap [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/result.rs:1233:23 [INFO] [stdout] 21: 0x58470e8dae60 - wefund17[3b819b98f6ce30a3]::testing::workflow [INFO] [stdout] at /opt/rustwide/workdir/contracts/WEFund/src/testing.rs:174:73 [INFO] [stdout] 22: 0x58470e8d73a7 - wefund17[3b819b98f6ce30a3]::testing::workflow::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/contracts/WEFund/src/testing.rs:17:14 [INFO] [stdout] 23: 0x58470e8c7106 - >::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x58470e8f997b - core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String> as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x58470e8f997b - test[8fe65b9e05bf4c74]::__rust_begin_short_backtrace::, fn() -> core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x58470e90636b - test[8fe65b9e05bf4c74]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x58470e90636b - as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x58470e90636b - std[69d51b4813ba037]::panicking::catch_unwind::do_call::, core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x58470e90636b - std[69d51b4813ba037]::panicking::catch_unwind::, core[51d4adbef590f61]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x58470e90636b - std[69d51b4813ba037]::panic::catch_unwind::, core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x58470e90636b - test[8fe65b9e05bf4c74]::run_test_in_process [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x58470e90636b - test[8fe65b9e05bf4c74]::run_test::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x58470e901a84 - test[8fe65b9e05bf4c74]::run_test::{closure#1} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x58470e901a84 - std[69d51b4813ba037]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x58470e908f72 - std[69d51b4813ba037]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x58470e908f72 - ::{closure#1}::{closure#0}> as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x58470e908f72 - std[69d51b4813ba037]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x58470e908f72 - std[69d51b4813ba037]::panicking::catch_unwind::<(), core[51d4adbef590f61]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x58470e908f72 - std[69d51b4813ba037]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x58470e908f72 - std[69d51b4813ba037]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x58470e908f72 - ::{closure#1} as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x58470ea4645f - + core[51d4adbef590f61]::marker::Send> as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 43: 0x58470ea4645f - ::new::thread_start [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 44: 0x6ffc3feafaa4 - [INFO] [stdout] 45: 0x6ffc3ff3ca64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] testing::workflow [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "469f02681604af6236c2ff692fe99b3da0e860f7866bfb580524d8390fdff01b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "469f02681604af6236c2ff692fe99b3da0e860f7866bfb580524d8390fdff01b", kill_on_drop: false }` [INFO] [stdout] 469f02681604af6236c2ff692fe99b3da0e860f7866bfb580524d8390fdff01b