[INFO] cloning repository https://github.com/wangliqiu2021/blockchain-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wangliqiu2021/blockchain-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangliqiu2021%2Fblockchain-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangliqiu2021%2Fblockchain-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 559c4d74cbacfec7a702a6d3d2ab8d667aa60a7a [INFO] checking wangliqiu2021/blockchain-demo against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangliqiu2021%2Fblockchain-demo" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wangliqiu2021/blockchain-demo on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wangliqiu2021/blockchain-demo [INFO] finished tweaking git repo https://github.com/wangliqiu2021/blockchain-demo [INFO] tweaked toml for git repo https://github.com/wangliqiu2021/blockchain-demo written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/wangliqiu2021/blockchain-demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b1d5c5348973defebd0ff60594880c69d4c74f146488c149cd0b3329e298fa6 [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" "9b1d5c5348973defebd0ff60594880c69d4c74f146488c149cd0b3329e298fa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b1d5c5348973defebd0ff60594880c69d4c74f146488c149cd0b3329e298fa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b1d5c5348973defebd0ff60594880c69d4c74f146488c149cd0b3329e298fa6", kill_on_drop: false }` [INFO] [stdout] 9b1d5c5348973defebd0ff60594880c69d4c74f146488c149cd0b3329e298fa6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c40ce6486c64f207d0138a3bed999b253a90eeffc3be5901e91e59d66f9f5b7 [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" "7c40ce6486c64f207d0138a3bed999b253a90eeffc3be5901e91e59d66f9f5b7", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unicode-segmentation v1.7.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking cmake v0.1.45 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Checking nix v0.19.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Checking quickcheck v0.9.2 [INFO] [stderr] Compiling leveldb-sys v2.0.8 [INFO] [stderr] Checking uint v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling pure-rust-locales v0.5.3 [INFO] [stderr] Checking rustyline v7.0.0 [INFO] [stderr] Checking serde v1.0.118 [INFO] [stderr] Checking leveldb v0.8.6 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking blockchain-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/account.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut hash = coder::get_hash(&account_data); [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: variable does not need to be mutable [INFO] [stdout] --> src/core/block.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let mut hash = coder::get_hash(&se); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/account.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut hash = coder::get_hash(&account_data); [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: variable does not need to be mutable [INFO] [stdout] --> src/core/block.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut vec_hash = vec_tx.iter().map(|tx| tx.hash).collect::>(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/pow.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let mut hash = coder::get_hash(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/transaction.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut hash = coder::get_hash(&tx); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/block.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let mut hash = coder::get_hash(&se); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/block.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut vec_hash = vec_tx.iter().map(|tx| tx.hash).collect::>(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/pow.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let mut hash = coder::get_hash(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/transaction.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut hash = coder::get_hash(&tx); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/account.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(address: [u8; 32], private: [u8; 32]) -> Account { [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: `set_hash` [INFO] [stdout] --> src/core/account.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn set_hash(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_to` [INFO] [stdout] --> src/core/account.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn send_to(&mut self, to: [u8; 32], amount: u64, fee: u64) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_db` [INFO] [stdout] --> src/core/bcdb.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn read_db(db: &mut Database, k: MyKey) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deserialize` [INFO] [stdout] --> src/utils/coder.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn deserialize<'a, T>(bytes: &'a [u8]) -> T [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/account.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(address: [u8; 32], private: [u8; 32]) -> Account { [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: `set_hash` [INFO] [stdout] --> src/core/account.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn set_hash(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_to` [INFO] [stdout] --> src/core/account.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn send_to(&mut self, to: [u8; 32], amount: u64, fee: u64) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_db` [INFO] [stdout] --> src/core/bcdb.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn read_db(db: &mut Database, k: MyKey) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blockchain_demo::cli::cli::Cli` [INFO] [stdout] --> src/bin/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use blockchain_demo::cli::cli::Cli; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blockchain_demo::cli::cli::Cli` [INFO] [stdout] --> src/bin/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use blockchain_demo::cli::cli::Cli; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 09s [INFO] running `Command { std: "docker" "inspect" "7c40ce6486c64f207d0138a3bed999b253a90eeffc3be5901e91e59d66f9f5b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c40ce6486c64f207d0138a3bed999b253a90eeffc3be5901e91e59d66f9f5b7", kill_on_drop: false }` [INFO] [stdout] 7c40ce6486c64f207d0138a3bed999b253a90eeffc3be5901e91e59d66f9f5b7