[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] building gregoriB/blockchain-Rust against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gregoriB/blockchain-Rust on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "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-14/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" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfa97d13751556770b79ae61989198a9d91436a07f93ca493f0314d2e18d4b5b [INFO] running `Command { std: "docker" "start" "-a" "bfa97d13751556770b79ae61989198a9d91436a07f93ca493f0314d2e18d4b5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfa97d13751556770b79ae61989198a9d91436a07f93ca493f0314d2e18d4b5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfa97d13751556770b79ae61989198a9d91436a07f93ca493f0314d2e18d4b5b", kill_on_drop: false }` [INFO] [stdout] bfa97d13751556770b79ae61989198a9d91436a07f93ca493f0314d2e18d4b5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea47aa9730e122be5da7acacdfdd482ef788cb1fa090be6003a36b172c07fadf [INFO] running `Command { std: "docker" "start" "-a" "ea47aa9730e122be5da7acacdfdd482ef788cb1fa090be6003a36b172c07fadf", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Compiling bitflags v1.3.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [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 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 13.31s [INFO] running `Command { std: "docker" "inspect" "ea47aa9730e122be5da7acacdfdd482ef788cb1fa090be6003a36b172c07fadf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea47aa9730e122be5da7acacdfdd482ef788cb1fa090be6003a36b172c07fadf", kill_on_drop: false }` [INFO] [stdout] ea47aa9730e122be5da7acacdfdd482ef788cb1fa090be6003a36b172c07fadf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae6752257a8411f1e66081f8ecfcf0a7541205f6e0cc0f5b4a6baa5cf2643c1c [INFO] running `Command { std: "docker" "start" "-a" "ae6752257a8411f1e66081f8ecfcf0a7541205f6e0cc0f5b4a6baa5cf2643c1c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling memchr v2.4.1 [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 quote v1.0.9 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling stfu8 v0.2.4 [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: 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: 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/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: 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: 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] [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 9.33s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/block_chain-db466a2680e57505) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/block_chain-a83ba3c6dd193e0c) [INFO] [stderr] Executable tests/block.rs (/opt/rustwide/target/debug/deps/block-297fa43e23238a23) [INFO] [stderr] Executable tests/blockchain.rs (/opt/rustwide/target/debug/deps/blockchain-bd2d665889bc1382) [INFO] [stderr] Executable tests/transaction.rs (/opt/rustwide/target/debug/deps/transaction-02694587ea4e4af3) [INFO] running `Command { std: "docker" "inspect" "ae6752257a8411f1e66081f8ecfcf0a7541205f6e0cc0f5b4a6baa5cf2643c1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae6752257a8411f1e66081f8ecfcf0a7541205f6e0cc0f5b4a6baa5cf2643c1c", kill_on_drop: false }` [INFO] [stdout] ae6752257a8411f1e66081f8ecfcf0a7541205f6e0cc0f5b4a6baa5cf2643c1c