[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] 44eb3cdce15b6bed6b54627f97d2b8c392aaada6 [INFO] checking levackt/stakepool against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/levackt/stakepool on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0/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-0/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" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--no-deps" "--format-version=1", 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] 5db8c89ea37ec86e4ded774defa900d200b3cba9f189feeeebafe32de6316942 [INFO] running `Command { std: "docker" "start" "-a" "5db8c89ea37ec86e4ded774defa900d200b3cba9f189feeeebafe32de6316942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5db8c89ea37ec86e4ded774defa900d200b3cba9f189feeeebafe32de6316942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5db8c89ea37ec86e4ded774defa900d200b3cba9f189feeeebafe32de6316942", kill_on_drop: false }` [INFO] [stdout] 5db8c89ea37ec86e4ded774defa900d200b3cba9f189feeeebafe32de6316942 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25779102dbed6d283ee441f9ca01514234be4716a0d2ca911623e6942e8dbd8c [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" "25779102dbed6d283ee441f9ca01514234be4716a0d2ca911623e6942e8dbd8c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling libc v0.2.72 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling schemars v0.7.6 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Compiling cbindgen v0.13.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking subtle v2.2.3 [INFO] [stderr] Checking sgx_types v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7) [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking parity-wasm v0.41.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling generic-array v0.14.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking sgx_urts v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7) [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking rust_decimal v1.10.1 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking sha2 v0.9.1 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling schemars_derive v0.7.6 [INFO] [stderr] Compiling snafu-derive v0.6.8 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Checking snafu v0.6.8 [INFO] [stderr] Checking serde-json-wasm v0.2.1 [INFO] [stderr] Checking bincode2 v2.0.1 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Checking cosmwasm-std v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92) [INFO] [stderr] Checking cosmwasm-schema v0.9.3 [INFO] [stderr] Checking cosmwasm-storage v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92) [INFO] [stderr] Checking secret-toolkit-utils v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Checking secret-toolkit-serialization v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Checking secret-toolkit-crypto v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Checking secret-toolkit-snip20 v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Checking secret-toolkit-storage v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Checking secret-toolkit v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4) [INFO] [stderr] Checking configurable-snip20 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VALIDATOR_ADDRESS_KEY` [INFO] [stdout] --> src/contract.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | VALIDATOR_ADDRESS_KEY [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/contract.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | valset.add((init_config.validator())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::prelude::*` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | 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:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use cosmwasm_std::{StdError, Binary, CosmosMsg, HumanAddr, StdResult, Uint128, WasmMsg}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, `MintQuery` [INFO] [stdout] --> src/staking.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use cosmwasm_std::{BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery, Querier, RewardsResponse, St... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract.rs:550:9 [INFO] [stdout] | [INFO] [stdout] 550 | let mut config = Config::from_storage(&mut deps.storage); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec_to_uint` [INFO] [stdout] --> src/utils.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn dec_to_uint(dec: String) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: function is never used: `get_locked_balance` [INFO] [stdout] --> src/staking.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_locked_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_total_onchain_balance` [INFO] [stdout] --> src/staking.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_total_onchain_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_rewards` [INFO] [stdout] --> src/staking.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get_rewards(querier: &Q, contract: &HumanAddr) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_bonded` [INFO] [stdout] --> src/staking.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | 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:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_unbonding(querier: &Q, contract: &HumanAddr) -> StdResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `restake` [INFO] [stdout] --> src/staking.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | 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:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [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-9ee37f1f130aa22d/build-script-build` (exit code: 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(ExitStatus(25856)), stdout: "", stderr: " Blocking waiting for file lock on package cache\n 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" "25779102dbed6d283ee441f9ca01514234be4716a0d2ca911623e6942e8dbd8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25779102dbed6d283ee441f9ca01514234be4716a0d2ca911623e6942e8dbd8c", kill_on_drop: false }` [INFO] [stdout] 25779102dbed6d283ee441f9ca01514234be4716a0d2ca911623e6942e8dbd8c