[INFO] cloning repository https://github.com/gregoriB/blockchain-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gregoriB/blockchain-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43c8845bd3885ef6f23f37f1c2ed2f797becc193 [INFO] testing gregoriB/blockchain-Rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gregoriB/blockchain-Rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gregoriB/blockchain-Rust [INFO] finished tweaking git repo https://github.com/gregoriB/blockchain-Rust [INFO] tweaked toml for git repo https://github.com/gregoriB/blockchain-Rust written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/gregoriB/blockchain-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3f7067fb8b9ff24cc6108ec5af7fc324cf84f81294eb5b1e7509584ed974fb9 [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" "b3f7067fb8b9ff24cc6108ec5af7fc324cf84f81294eb5b1e7509584ed974fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3f7067fb8b9ff24cc6108ec5af7fc324cf84f81294eb5b1e7509584ed974fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3f7067fb8b9ff24cc6108ec5af7fc324cf84f81294eb5b1e7509584ed974fb9", kill_on_drop: false }` [INFO] [stdout] b3f7067fb8b9ff24cc6108ec5af7fc324cf84f81294eb5b1e7509584ed974fb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+beta-2022-04-10" "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] 5c873374a81a4c6154762e8ced961a3e40113c687bf92023cb2b06d7991ac3f6 [INFO] running `Command { std: "docker" "start" "-a" "5c873374a81a4c6154762e8ced961a3e40113c687bf92023cb2b06d7991ac3f6", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.65 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Compiling crypto-hash v0.3.4 [INFO] [stderr] Compiling block_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/blockchain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pending_transactions: Vec, [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: `get_chain` [INFO] [stdout] --> src/blockchain.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_chain(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pending_transactions` [INFO] [stdout] --> src/blockchain.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_pending_transactions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block` [INFO] [stdout] --> src/blockchain.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_last_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_block` [INFO] [stdout] --> src/blockchain.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn create_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_block` [INFO] [stdout] --> src/blockchain.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_block(&mut self, payout_address: &'static str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_chain` [INFO] [stdout] --> src/blockchain.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn update_chain(&mut self, last_block: Block, new_block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pay_miner` [INFO] [stdout] --> src/blockchain.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn pay_miner(&mut self, payout_address: &'static str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_payout_transaction` [INFO] [stdout] --> src/blockchain.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn create_payout_transaction(&self, payout_address: &'static str) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_pending_transactions` [INFO] [stdout] --> src/blockchain.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn reset_pending_transactions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_pending_transaction` [INFO] [stdout] --> src/blockchain.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn add_pending_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/block.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transactions` [INFO] [stdout] --> src/block.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_transactions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/block.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_prev_hash` [INFO] [stdout] --> src/block.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_prev_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_hash` [INFO] [stdout] --> src/block.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_next_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_prev_hash` [INFO] [stdout] --> src/block.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn set_prev_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_next_hash` [INFO] [stdout] --> src/block.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn set_next_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mine` [INFO] [stdout] --> src/block.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn mine(&mut self, difficulty: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/transaction.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_sender` [INFO] [stdout] --> src/transaction.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_sender(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_receiver` [INFO] [stdout] --> src/transaction.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_receiver(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_amount` [INFO] [stdout] --> src/transaction.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_amount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.68s [INFO] running `Command { std: "docker" "inspect" "5c873374a81a4c6154762e8ced961a3e40113c687bf92023cb2b06d7991ac3f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c873374a81a4c6154762e8ced961a3e40113c687bf92023cb2b06d7991ac3f6", kill_on_drop: false }` [INFO] [stdout] 5c873374a81a4c6154762e8ced961a3e40113c687bf92023cb2b06d7991ac3f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+beta-2022-04-10" "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] f18ff7df993fdaa9ec9b28167c337595b3ba5f767a61fbf852d7a9bfa8c968f8 [INFO] running `Command { std: "docker" "start" "-a" "f18ff7df993fdaa9ec9b28167c337595b3ba5f767a61fbf852d7a9bfa8c968f8", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling stfu8 v0.2.4 [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/blockchain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pending_transactions: Vec, [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: `get_chain` [INFO] [stdout] --> src/blockchain.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_chain(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pending_transactions` [INFO] [stdout] --> src/blockchain.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_pending_transactions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block` [INFO] [stdout] --> src/blockchain.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_last_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_block` [INFO] [stdout] --> src/blockchain.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn create_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_block` [INFO] [stdout] --> src/blockchain.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_block(&mut self, payout_address: &'static str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_chain` [INFO] [stdout] --> src/blockchain.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn update_chain(&mut self, last_block: Block, new_block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pay_miner` [INFO] [stdout] --> src/blockchain.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn pay_miner(&mut self, payout_address: &'static str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_payout_transaction` [INFO] [stdout] --> src/blockchain.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn create_payout_transaction(&self, payout_address: &'static str) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_pending_transactions` [INFO] [stdout] --> src/blockchain.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn reset_pending_transactions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_pending_transaction` [INFO] [stdout] --> src/blockchain.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn add_pending_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/block.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transactions` [INFO] [stdout] --> src/block.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_transactions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/block.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_prev_hash` [INFO] [stdout] --> src/block.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_prev_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_hash` [INFO] [stdout] --> src/block.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_next_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_prev_hash` [INFO] [stdout] --> src/block.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn set_prev_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_next_hash` [INFO] [stdout] --> src/block.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn set_next_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mine` [INFO] [stdout] --> src/block.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn mine(&mut self, difficulty: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/transaction.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_sender` [INFO] [stdout] --> src/transaction.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_sender(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_receiver` [INFO] [stdout] --> src/transaction.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_receiver(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_amount` [INFO] [stdout] --> src/transaction.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_amount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling voca_rs v1.13.1 [INFO] [stderr] Compiling demonstrate v0.4.5 [INFO] [stderr] Compiling block_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/blockchain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pending_transactions: Vec, [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: `get_chain` [INFO] [stdout] --> src/blockchain.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_chain(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pending_transactions` [INFO] [stdout] --> src/blockchain.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_pending_transactions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block` [INFO] [stdout] --> src/blockchain.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn get_last_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_block` [INFO] [stdout] --> src/blockchain.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn create_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_block` [INFO] [stdout] --> src/blockchain.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_block(&mut self, payout_address: &'static str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_chain` [INFO] [stdout] --> src/blockchain.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn update_chain(&mut self, last_block: Block, new_block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pay_miner` [INFO] [stdout] --> src/blockchain.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn pay_miner(&mut self, payout_address: &'static str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_payout_transaction` [INFO] [stdout] --> src/blockchain.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn create_payout_transaction(&self, payout_address: &'static str) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_pending_transactions` [INFO] [stdout] --> src/blockchain.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn reset_pending_transactions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_pending_transaction` [INFO] [stdout] --> src/blockchain.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn add_pending_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/block.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transactions` [INFO] [stdout] --> src/block.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_transactions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/block.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_prev_hash` [INFO] [stdout] --> src/block.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_prev_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_hash` [INFO] [stdout] --> src/block.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_next_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_prev_hash` [INFO] [stdout] --> src/block.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn set_prev_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_next_hash` [INFO] [stdout] --> src/block.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn set_next_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mine` [INFO] [stdout] --> src/block.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn mine(&mut self, difficulty: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/transaction.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_sender` [INFO] [stdout] --> src/transaction.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_sender(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_receiver` [INFO] [stdout] --> src/transaction.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_receiver(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_amount` [INFO] [stdout] --> src/transaction.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_amount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payout_address` [INFO] [stdout] --> tests/blockchain.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | let payout_address = "test_payout"; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payout_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction` [INFO] [stdout] --> tests/blockchain.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let transaction = Transaction::new(sender, receiver, amount); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/blockchain.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let mut blockchain = BlockChain::new(name, difficulty, payout, supply); [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: unused variable: `first_transaction` [INFO] [stdout] --> tests/block.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let first_transaction = transactions.first().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_transaction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/block.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut block = Block::new(transactions); [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: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 23.59s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/block_chain-95744e02fb905051) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/block_chain-4d8f1d953d2d4229) [INFO] [stderr] Executable tests/block.rs (/opt/rustwide/target/debug/deps/block-b110f470f66c36ea) [INFO] [stderr] Executable tests/blockchain.rs (/opt/rustwide/target/debug/deps/blockchain-cf568425970d2825) [INFO] [stderr] Executable tests/transaction.rs (/opt/rustwide/target/debug/deps/transaction-978d45582c5ace3f) [INFO] running `Command { std: "docker" "inspect" "f18ff7df993fdaa9ec9b28167c337595b3ba5f767a61fbf852d7a9bfa8c968f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f18ff7df993fdaa9ec9b28167c337595b3ba5f767a61fbf852d7a9bfa8c968f8", kill_on_drop: false }` [INFO] [stdout] f18ff7df993fdaa9ec9b28167c337595b3ba5f767a61fbf852d7a9bfa8c968f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b1777cd020e2086365e0273559788f5a9e9d1daa60e98c529654cde3816fad96 [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" "b1777cd020e2086365e0273559788f5a9e9d1daa60e98c529654cde3816fad96", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `pending_transactions` [INFO] [stderr] --> src/blockchain.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | pending_transactions: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_chain` [INFO] [stderr] --> src/blockchain.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn get_chain(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_pending_transactions` [INFO] [stderr] --> src/blockchain.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn get_pending_transactions(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_last_block` [INFO] [stderr] --> src/blockchain.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn get_last_block(&self) -> Block { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_block` [INFO] [stderr] --> src/blockchain.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | fn create_block(&self) -> Block { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_block` [INFO] [stderr] --> src/blockchain.rs:71:12 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn add_block(&mut self, payout_address: &'static str) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update_chain` [INFO] [stderr] --> src/blockchain.rs:82:8 [INFO] [stderr] | [INFO] [stderr] 82 | fn update_chain(&mut self, last_block: Block, new_block: Block) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pay_miner` [INFO] [stderr] --> src/blockchain.rs:89:8 [INFO] [stderr] | [INFO] [stderr] 89 | fn pay_miner(&mut self, payout_address: &'static str) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_payout_transaction` [INFO] [stderr] --> src/blockchain.rs:94:8 [INFO] [stderr] | [INFO] [stderr] 94 | fn create_payout_transaction(&self, payout_address: &'static str) -> Transaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset_pending_transactions` [INFO] [stderr] --> src/blockchain.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | fn reset_pending_transactions(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_pending_transaction` [INFO] [stderr] --> src/blockchain.rs:102:12 [INFO] [stderr] | [INFO] [stderr] 102 | pub fn add_pending_transaction(&mut self, transaction: Transaction) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `transactions` [INFO] [stderr] --> src/block.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | transactions: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/block.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_transactions` [INFO] [stderr] --> src/block.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn get_transactions(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_hash` [INFO] [stderr] --> src/block.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn get_hash(&self) -> &str { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_prev_hash` [INFO] [stderr] --> src/block.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn get_prev_hash(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_next_hash` [INFO] [stderr] --> src/block.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn get_next_hash(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_prev_hash` [INFO] [stderr] --> src/block.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn set_prev_hash(&mut self, hash: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_next_hash` [INFO] [stderr] --> src/block.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn set_next_hash(&mut self, hash: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mine` [INFO] [stderr] --> src/block.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn mine(&mut self, difficulty: usize) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_hash` [INFO] [stderr] --> src/transaction.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn get_hash(&self) -> &str { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_sender` [INFO] [stderr] --> src/transaction.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn get_sender(&self) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_receiver` [INFO] [stderr] --> src/transaction.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn get_receiver(&self) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_amount` [INFO] [stderr] --> src/transaction.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn get_amount(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `block_chain` (bin "block_chain") generated 23 warnings [INFO] [stderr] warning: unused variable: `payout_address` [INFO] [stderr] --> tests/blockchain.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | let payout_address = "test_payout"; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payout_address` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transaction` [INFO] [stderr] --> tests/blockchain.rs:20:17 [INFO] [stderr] | [INFO] [stderr] 20 | let transaction = Transaction::new(sender, receiver, amount); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/blockchain.rs:15:17 [INFO] [stderr] | [INFO] [stderr] 15 | let mut blockchain = BlockChain::new(name, difficulty, payout, supply); [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `first_transaction` [INFO] [stderr] --> tests/block.rs:10:17 [INFO] [stderr] | [INFO] [stderr] 10 | let first_transaction = transactions.first().unwrap().clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_transaction` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/block.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | let mut block = Block::new(transactions); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `block_chain` (test "blockchain") generated 3 warnings [INFO] [stderr] warning: `block_chain` (test "block") generated 2 warnings [INFO] [stderr] warning: `block_chain` (bin "block_chain" test) generated 23 warnings (23 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/block_chain-95744e02fb905051) [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/block_chain-4d8f1d953d2d4229) [INFO] [stdout] [INFO] [stderr] Running tests/block.rs (/opt/rustwide/target/debug/deps/block-b110f470f66c36ea) [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test block::instantiates_block_with_the_correct_properties ... ok [INFO] [stdout] test block::updates_prev_block_hash ... ok [INFO] [stdout] test block::updates_next_block_hash ... ok [INFO] [stdout] test block::mines_block ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] Running tests/blockchain.rs (/opt/rustwide/target/debug/deps/blockchain-cf568425970d2825) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test blockchain::adds_a_new_block_to_the_chain ... ok [INFO] [stderr] Running tests/transaction.rs (/opt/rustwide/target/debug/deps/transaction-978d45582c5ace3f) [INFO] [stdout] test blockchain::adds_a_new_transaction_to_pending_transactions ... ok [INFO] [stdout] test blockchain::creates_a_genesis_block_when_instantiated ... ok [INFO] [stdout] test blockchain::updates_the_previous_block_s_next_hash_with_the_new_block_hash ... ok [INFO] [stdout] test blockchain::pays_miner_after_adding_block_to_chain ... ok [INFO] [stdout] test blockchain::is_instantiated_with_the_correct_properties ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test transaction::instantiates_transaction_with_the_correct_properties ... ok [INFO] [stderr] Doc-tests block_chain [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 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b1777cd020e2086365e0273559788f5a9e9d1daa60e98c529654cde3816fad96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1777cd020e2086365e0273559788f5a9e9d1daa60e98c529654cde3816fad96", kill_on_drop: false }` [INFO] [stdout] b1777cd020e2086365e0273559788f5a9e9d1daa60e98c529654cde3816fad96