[INFO] cloning repository https://github.com/parit90/blockchain-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/parit90/blockchain-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparit90%2Fblockchain-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparit90%2Fblockchain-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c758d3ffe4b636200f9f41925f6aa4bd29890bdc [INFO] building parit90/blockchain-rs against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparit90%2Fblockchain-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/parit90/blockchain-rs [INFO] finished tweaking git repo https://github.com/parit90/blockchain-rs [INFO] tweaked toml for git repo https://github.com/parit90/blockchain-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/parit90/blockchain-rs on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/parit90/blockchain-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gcc v0.3.55 [INFO] [stderr] Downloaded merkle-cbt v0.3.2 [INFO] [stderr] Downloaded env_logger v0.10.1 [INFO] [stderr] Downloaded rand v0.3.23 [INFO] [stderr] Downloaded is-terminal v0.4.10 [INFO] [stderr] Downloaded bitcoincash-addr v0.5.2 [INFO] [stderr] Downloaded bitcoin_hashes v0.7.6 [INFO] [stderr] Downloaded clap v4.4.12 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.17 [INFO] [stderr] Downloaded termcolor v1.4.0 [INFO] [stderr] Downloaded time v0.1.45 [INFO] [stderr] Downloaded crossbeam-utils v0.8.18 [INFO] [stderr] Downloaded serde_json v1.0.110 [INFO] [stderr] Downloaded clap_builder v4.4.12 [INFO] [stderr] Downloaded rust-crypto v0.2.36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a21c158249269c4b544682ecf6f65bd1833de4eae29a71d16a6b95039bc41c90 [INFO] running `Command { std: "docker" "start" "-a" "a21c158249269c4b544682ecf6f65bd1833de4eae29a71d16a6b95039bc41c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a21c158249269c4b544682ecf6f65bd1833de4eae29a71d16a6b95039bc41c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a21c158249269c4b544682ecf6f65bd1833de4eae29a71d16a6b95039bc41c90", kill_on_drop: false }` [INFO] [stdout] a21c158249269c4b544682ecf6f65bd1833de4eae29a71d16a6b95039bc41c90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a013d08f3bb907a3948e0dcc6ae8643b70679a7397dc460b29a4186aa191e793 [INFO] running `Command { std: "docker" "start" "-a" "a013d08f3bb907a3948e0dcc6ae8643b70679a7397dc460b29a4186aa191e793", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.74 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling serde v1.0.194 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling crossbeam-utils v0.8.18 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.110 [INFO] [stderr] Compiling anstream v0.6.5 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling clap_lex v0.6.0 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling clap_builder v4.4.12 [INFO] [stderr] Compiling syn v2.0.46 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling crossbeam-epoch v0.9.17 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling termcolor v1.4.0 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.10 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling merkle-cbt v0.3.2 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling serde_derive v1.0.194 [INFO] [stderr] Compiling clap v4.4.12 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling bitcoincash-addr v0.5.2 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling env_logger v0.10.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling bc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Wallet` [INFO] [stdout] --> src/cli.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::wallets::{Wallet, Wallets}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/transaction.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::{Rng, RngCore}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/wallets.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::{Rng, RngCore}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/tx.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::format_err` [INFO] [stdout] --> src/tx.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use failure::format_err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/tx.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::transaction::{Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TXOutputs` is never constructed [INFO] [stdout] --> src/tx.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TXOutputs { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TXInput` is never constructed [INFO] [stdout] --> src/tx.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TXInput { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TXOutput` is never constructed [INFO] [stdout] --> src/tx.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct TXOutput { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock_output_with` is never used [INFO] [stdout] --> src/tx.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl TXInput { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 31 | /// CanUnlockOutputWith checks whether the address initiated the transaction [INFO] [stdout] 32 | pub fn can_unlock_output_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `can_be_unlock_with`, `lock`, and `new` are never used [INFO] [stdout] --> src/tx.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl TXOutput { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 43 | /// CanBeUnlockedWith checks if the output can be unlocked with the provided data [INFO] [stdout] 44 | pub fn can_be_unlock_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn lock(&mut self, address: &str) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn new(value: i32, address: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn iter(&self) -> BlockchainIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 92 | pub fn iter(&self) -> BlockchainIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn find_UTXO(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn get_prev_TXs(&self, tx: &Transaction) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let mut prev_TXs = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TX` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let prev_TX = self.find_transacton(&vin.txid)?; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new_UTXO(wallet: &Wallet, to: &str, amount: i32, utxo: &UTXOSet) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:133:26 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn verify(&self, prev_TXs: HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let prev_Tx = prev_TXs.get(&self.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | prev_TXs: HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | let prev_Tx = prev_TXs.get(&tx_copy.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pubKey` should have a snake case name [INFO] [stdout] --> src/wallets.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn hash_pub_key(pubKey: &mut Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/utxoset.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn find_UTXO(&self, pub_key_hash: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.38s [INFO] running `Command { std: "docker" "inspect" "a013d08f3bb907a3948e0dcc6ae8643b70679a7397dc460b29a4186aa191e793", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a013d08f3bb907a3948e0dcc6ae8643b70679a7397dc460b29a4186aa191e793", kill_on_drop: false }` [INFO] [stdout] a013d08f3bb907a3948e0dcc6ae8643b70679a7397dc460b29a4186aa191e793 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b5f7e71c2c1db8c72e29834aa23d14640af468cad377ab0a246099714a25c53 [INFO] running `Command { std: "docker" "start" "-a" "8b5f7e71c2c1db8c72e29834aa23d14640af468cad377ab0a246099714a25c53", kill_on_drop: false }` [INFO] [stderr] Compiling bc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Wallet` [INFO] [stdout] --> src/cli.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::wallets::{Wallet, Wallets}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/transaction.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::{Rng, RngCore}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/wallets.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::{Rng, RngCore}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/tx.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::format_err` [INFO] [stdout] --> src/tx.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use failure::format_err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/tx.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::transaction::{Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TXOutputs` is never constructed [INFO] [stdout] --> src/tx.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TXOutputs { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TXInput` is never constructed [INFO] [stdout] --> src/tx.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TXInput { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TXOutput` is never constructed [INFO] [stdout] --> src/tx.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct TXOutput { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock_output_with` is never used [INFO] [stdout] --> src/tx.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl TXInput { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 31 | /// CanUnlockOutputWith checks whether the address initiated the transaction [INFO] [stdout] 32 | pub fn can_unlock_output_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `can_be_unlock_with`, `lock`, and `new` are never used [INFO] [stdout] --> src/tx.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl TXOutput { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 43 | /// CanBeUnlockedWith checks if the output can be unlocked with the provided data [INFO] [stdout] 44 | pub fn can_be_unlock_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn lock(&mut self, address: &str) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn new(value: i32, address: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn iter(&self) -> BlockchainIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 92 | pub fn iter(&self) -> BlockchainIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn find_UTXO(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn get_prev_TXs(&self, tx: &Transaction) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let mut prev_TXs = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TX` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let prev_TX = self.find_transacton(&vin.txid)?; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new_UTXO(wallet: &Wallet, to: &str, amount: i32, utxo: &UTXOSet) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:133:26 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn verify(&self, prev_TXs: HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let prev_Tx = prev_TXs.get(&self.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | prev_TXs: HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | let prev_Tx = prev_TXs.get(&tx_copy.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pubKey` should have a snake case name [INFO] [stdout] --> src/wallets.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn hash_pub_key(pubKey: &mut Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/utxoset.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn find_UTXO(&self, pub_key_hash: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.16s [INFO] running `Command { std: "docker" "inspect" "8b5f7e71c2c1db8c72e29834aa23d14640af468cad377ab0a246099714a25c53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b5f7e71c2c1db8c72e29834aa23d14640af468cad377ab0a246099714a25c53", kill_on_drop: false }` [INFO] [stdout] 8b5f7e71c2c1db8c72e29834aa23d14640af468cad377ab0a246099714a25c53