[INFO] cloning repository https://github.com/levackt/stakepool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/levackt/stakepool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc3495309525ab952fee3ab48fb1e0fe8d7d2e5f [INFO] testing levackt/stakepool against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/levackt/stakepool on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3/source/.cargo/config [INFO] started tweaking git repo https://github.com/levackt/stakepool [INFO] finished tweaking git repo https://github.com/levackt/stakepool [INFO] tweaked toml for git repo https://github.com/levackt/stakepool written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/levackt/stakepool already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/enigmampc/SecretNetwork` [INFO] [stderr] Updating git repository `https://github.com/enigmampc/secret-toolkit` [INFO] [stderr] Updating git submodule `https://github.com/WebAssembly/testsuite` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-json-wasm v0.2.3 [INFO] [stderr] Downloaded cbindgen v0.13.2 [INFO] [stderr] Downloaded rust_decimal v1.10.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a13d7bbe3ad27792e2e13a9ec4f536d6cace5f35087e5f17eefd789421a628ec [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a13d7bbe3ad27792e2e13a9ec4f536d6cace5f35087e5f17eefd789421a628ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a13d7bbe3ad27792e2e13a9ec4f536d6cace5f35087e5f17eefd789421a628ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a13d7bbe3ad27792e2e13a9ec4f536d6cace5f35087e5f17eefd789421a628ec", kill_on_drop: false }` [INFO] [stdout] a13d7bbe3ad27792e2e13a9ec4f536d6cace5f35087e5f17eefd789421a628ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c79548337ee9cdceacfb4db35de1f456c0a83f240df32fbfa1aa4fa077582e57 [INFO] running `Command { std: "docker" "start" "-a" "c79548337ee9cdceacfb4db35de1f456c0a83f240df32fbfa1aa4fa077582e57", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling schemars v0.7.6 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling sha2 v0.9.3 [INFO] [stderr] Compiling rust_decimal v1.10.3 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling hmac-drbg v0.2.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling libsecp256k1 v0.3.5 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling schemars_derive v0.7.6 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling snafu v0.6.10 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Compiling serde-json-wasm v0.2.3 [INFO] [stderr] Compiling bincode2 v2.0.1 [INFO] [stderr] Compiling cosmwasm-std v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92) [INFO] [stderr] Compiling secret-toolkit-serialization v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Compiling cosmwasm-storage v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92) [INFO] [stderr] Compiling secret-toolkit-utils v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Compiling secret-toolkit-crypto v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Compiling secret-toolkit-snip20 v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Compiling secret-toolkit-storage v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Compiling secret-toolkit v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Compiling stakepool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Decimal`, `FullDelegation`, `Validator` [INFO] [stdout] --> src/contract.rs:4:75 [INFO] [stdout] | [INFO] [stdout] 4 | log, to_binary, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Decimal, Env, Extern, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | FullDelegation, HandleResponse, HumanAddr, InitResponse, Querier, QueryResult, ReadonlyStorage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | StdError, StdResult, Storage, Uint128, Validator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RngCore` [INFO] [stdout] --> src/contract.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use rand::{RngCore, SeedableRng}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `withdraw_to_self` [INFO] [stdout] --> src/contract.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::staking::{stake, withdraw_to_self, withdraw_to_winner, get_rewards, }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VALIDATOR_SET_KEY`, `log_string_read` [INFO] [stdout] --> src/contract.rs:24:60 [INFO] [stdout] | [INFO] [stdout] 24 | get_receiver_hash, get_transfers, get_txs, log_string, log_string_read, lottery, lottery_read, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | Lottery, ReadonlyBalances, ReadonlyConfig, VALIDATOR_SET_KEY, store_win [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/contract.rs:116:16 [INFO] [stdout] | [INFO] [stdout] 116 | valset.add((init_config.validator())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - valset.add((init_config.validator())); [INFO] [stdout] 116 + valset.add(init_config.validator()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, `MintQuery` [INFO] [stdout] --> src/staking.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bucket`, `ReadonlyBucket`, `bucket_read`, `bucket` [INFO] [stdout] --> src/state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | bucket, bucket_read, singleton, singleton_read, Bucket, PrefixedStorage, ReadonlyBucket, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::prelude::*` [INFO] [stdout] --> src/state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rust_decimal::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Binary`, `CosmosMsg`, `HumanAddr`, `Uint128`, `WasmMsg` [INFO] [stdout] --> src/utils.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use cosmwasm_std::{Binary, CosmosMsg, HumanAddr, StdError, StdResult, Uint128, WasmMsg}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_locked_balance` [INFO] [stdout] --> src/staking.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_locked_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_total_onchain_balance` [INFO] [stdout] --> src/staking.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_total_onchain_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_bonded` [INFO] [stdout] --> src/staking.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_bonded(querier: &Q, contract: &HumanAddr) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_unbonding` [INFO] [stdout] --> src/staking.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn get_unbonding(querier: &Q, contract: &HumanAddr) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw_to_self` [INFO] [stdout] --> src/staking.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn withdraw_to_self(validator: &String) -> CosmosMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `restake` [INFO] [stdout] --> src/staking.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn restake(validator: &String, amount: u128) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `undelegate` [INFO] [stdout] --> src/staking.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entries` [INFO] [stdout] --> src/state.rs:786:8 [INFO] [stdout] | [INFO] [stdout] 786 | fn entries(&self) -> Vec<(CanonicalAddr, Uint128)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec_to_uint` [INFO] [stdout] --> src/utils.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn dec_to_uint(dec: String) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/validator_set.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn remove(&mut self, address: &String, force: bool) -> StdResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unbond` [INFO] [stdout] --> src/validator_set.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn unbond(&mut self, to_stake: u128) -> StdResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_winner` [INFO] [stdout] --> src/validator_set.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_winner(&mut self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:756:9 [INFO] [stdout] | [INFO] [stdout] 756 | &a_lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 756 | let _ = &a_lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:758:5 [INFO] [stdout] | [INFO] [stdout] 758 | / &a_lottery.entries.push(( [INFO] [stdout] 759 | | sender_address.clone(), [INFO] [stdout] 760 | | Uint128::from(account_balance + amount), [INFO] [stdout] 761 | | )); [INFO] [stdout] | |______^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 758 | let _ = &a_lottery.entries.push(( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:763:5 [INFO] [stdout] | [INFO] [stdout] 763 | &a_lottery.entropy.extend(&env.block.height.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 763 | let _ = &a_lottery.entropy.extend(&env.block.height.to_be_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:764:5 [INFO] [stdout] | [INFO] [stdout] 764 | &a_lottery.entropy.extend(&env.block.time.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 764 | let _ = &a_lottery.entropy.extend(&env.block.time.to_be_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/contract.rs:765:5 [INFO] [stdout] | [INFO] [stdout] 765 | lottery(&mut deps.storage).save(&a_lottery); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:823:5 [INFO] [stdout] | [INFO] [stdout] 823 | &lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 823 | let _ = &lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:825:9 [INFO] [stdout] | [INFO] [stdout] 825 | / &lottery [INFO] [stdout] 826 | | .entries [INFO] [stdout] 827 | | .push((sender_address.clone(), Uint128::from(account_balance))); [INFO] [stdout] | |___________________________________________________________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 825 | let _ = &lottery [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "c79548337ee9cdceacfb4db35de1f456c0a83f240df32fbfa1aa4fa077582e57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c79548337ee9cdceacfb4db35de1f456c0a83f240df32fbfa1aa4fa077582e57", kill_on_drop: false }` [INFO] [stdout] c79548337ee9cdceacfb4db35de1f456c0a83f240df32fbfa1aa4fa077582e57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c883ccb5c36873be7bc409904c915df3023714333b2abe4ef42a495caaee5000 [INFO] running `Command { std: "docker" "start" "-a" "c883ccb5c36873be7bc409904c915df3023714333b2abe4ef42a495caaee5000", kill_on_drop: false }` [INFO] [stderr] Compiling cbindgen v0.13.2 [INFO] [stderr] Compiling sgx_types v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7) [INFO] [stderr] Compiling parity-wasm v0.41.0 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling cosmwasm-schema v0.10.1 [INFO] [stdout] warning: unused imports: `Decimal`, `FullDelegation`, `Validator` [INFO] [stdout] --> src/contract.rs:4:75 [INFO] [stdout] | [INFO] [stdout] 4 | log, to_binary, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Decimal, Env, Extern, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | FullDelegation, HandleResponse, HumanAddr, InitResponse, Querier, QueryResult, ReadonlyStorage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | StdError, StdResult, Storage, Uint128, Validator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RngCore` [INFO] [stdout] --> src/contract.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use rand::{RngCore, SeedableRng}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `withdraw_to_self` [INFO] [stdout] --> src/contract.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::staking::{stake, withdraw_to_self, withdraw_to_winner, get_rewards, }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VALIDATOR_SET_KEY`, `log_string_read` [INFO] [stdout] --> src/contract.rs:24:60 [INFO] [stdout] | [INFO] [stdout] 24 | get_receiver_hash, get_transfers, get_txs, log_string, log_string_read, lottery, lottery_read, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | Lottery, ReadonlyBalances, ReadonlyConfig, VALIDATOR_SET_KEY, store_win [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/contract.rs:116:16 [INFO] [stdout] | [INFO] [stdout] 116 | valset.add((init_config.validator())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - valset.add((init_config.validator())); [INFO] [stdout] 116 + valset.add(init_config.validator()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, `MintQuery` [INFO] [stdout] --> src/staking.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bucket`, `ReadonlyBucket`, `bucket_read`, `bucket` [INFO] [stdout] --> src/state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | bucket, bucket_read, singleton, singleton_read, Bucket, PrefixedStorage, ReadonlyBucket, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::prelude::*` [INFO] [stdout] --> src/state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rust_decimal::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Binary`, `CosmosMsg`, `HumanAddr`, `Uint128`, `WasmMsg` [INFO] [stdout] --> src/utils.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use cosmwasm_std::{Binary, CosmosMsg, HumanAddr, StdError, StdResult, Uint128, WasmMsg}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_locked_balance` [INFO] [stdout] --> src/staking.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_locked_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_total_onchain_balance` [INFO] [stdout] --> src/staking.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_total_onchain_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_bonded` [INFO] [stdout] --> src/staking.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_bonded(querier: &Q, contract: &HumanAddr) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_unbonding` [INFO] [stdout] --> src/staking.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn get_unbonding(querier: &Q, contract: &HumanAddr) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw_to_self` [INFO] [stdout] --> src/staking.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn withdraw_to_self(validator: &String) -> CosmosMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `restake` [INFO] [stdout] --> src/staking.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn restake(validator: &String, amount: u128) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `undelegate` [INFO] [stdout] --> src/staking.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entries` [INFO] [stdout] --> src/state.rs:786:8 [INFO] [stdout] | [INFO] [stdout] 786 | fn entries(&self) -> Vec<(CanonicalAddr, Uint128)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec_to_uint` [INFO] [stdout] --> src/utils.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn dec_to_uint(dec: String) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/validator_set.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn remove(&mut self, address: &String, force: bool) -> StdResult<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unbond` [INFO] [stdout] --> src/validator_set.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn unbond(&mut self, to_stake: u128) -> StdResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_winner` [INFO] [stdout] --> src/validator_set.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_winner(&mut self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:756:9 [INFO] [stdout] | [INFO] [stdout] 756 | &a_lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 756 | let _ = &a_lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:758:5 [INFO] [stdout] | [INFO] [stdout] 758 | / &a_lottery.entries.push(( [INFO] [stdout] 759 | | sender_address.clone(), [INFO] [stdout] 760 | | Uint128::from(account_balance + amount), [INFO] [stdout] 761 | | )); [INFO] [stdout] | |______^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 758 | let _ = &a_lottery.entries.push(( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:763:5 [INFO] [stdout] | [INFO] [stdout] 763 | &a_lottery.entropy.extend(&env.block.height.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 763 | let _ = &a_lottery.entropy.extend(&env.block.height.to_be_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:764:5 [INFO] [stdout] | [INFO] [stdout] 764 | &a_lottery.entropy.extend(&env.block.time.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 764 | let _ = &a_lottery.entropy.extend(&env.block.time.to_be_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/contract.rs:765:5 [INFO] [stdout] | [INFO] [stdout] 765 | lottery(&mut deps.storage).save(&a_lottery); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:823:5 [INFO] [stdout] | [INFO] [stdout] 823 | &lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 823 | let _ = &lottery.entries.retain(|(k, _)| k != &sender_address); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/contract.rs:825:9 [INFO] [stdout] | [INFO] [stdout] 825 | / &lottery [INFO] [stdout] 826 | | .entries [INFO] [stdout] 827 | | .push((sender_address.clone(), Uint128::from(account_balance))); [INFO] [stdout] | |___________________________________________________________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 825 | let _ = &lottery [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling sgx_urts v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7) [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling enclave-ffi-types v0.1.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92) [INFO] [stderr] error: failed to run custom build command for `enclave-ffi-types v0.1.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/build/enclave-ffi-types-c1127f1ce7f92cd8/build-script-build` (exit status: 1) [INFO] [stderr] --- stderr [INFO] [stderr] Error: CBindgenError { source: CargoMetadata("/opt/rustwide/cargo-home/git/checkouts/secretnetwork-2885a5c51d1243af/490fba9/cosmwasm/packages/enclave-ffi-types/Cargo.toml", Metadata(Output { status: ExitStatus(unix_wait_status(25856)), stdout: "", stderr: " Downloading crates ...\nwarning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nwarning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates.io)\nerror: failed to download from `https://crates.io/api/v1/crates/wabt/0.9.1/download`\n\nCaused by:\n [6] Couldn't resolve host name (Could not resolve host: crates.io)\n" })) } [INFO] running `Command { std: "docker" "inspect" "c883ccb5c36873be7bc409904c915df3023714333b2abe4ef42a495caaee5000", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c883ccb5c36873be7bc409904c915df3023714333b2abe4ef42a495caaee5000", kill_on_drop: false }` [INFO] [stdout] c883ccb5c36873be7bc409904c915df3023714333b2abe4ef42a495caaee5000