[INFO] cloning repository https://github.com/kunal1purohit/Rust_Custom_Blockchain
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kunal1purohit/Rust_Custom_Blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0d07005415e806878b4e9c524c4c471f347c042c
[INFO] building kunal1purohit/Rust_Custom_Blockchain against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain
[INFO] finished tweaking git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain
[INFO] tweaked toml for git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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 is_terminal_polyfill v1.70.0
[INFO] [stderr]   Downloaded anstyle v1.0.7
[INFO] [stderr]   Downloaded failure_derive v0.1.8
[INFO] [stderr]   Downloaded anstyle-wincon v3.0.3
[INFO] [stderr]   Downloaded bitcoincash-addr v0.5.2
[INFO] [stderr]   Downloaded colorchoice v1.0.1
[INFO] [stderr]   Downloaded anstream v0.6.14
[INFO] [stderr]   Downloaded clap_lex v0.7.1
[INFO] [stderr]   Downloaded clap v4.5.8
[INFO] [stderr]   Downloaded bitcoin_hashes v0.7.6
[INFO] [stderr]   Downloaded backtrace v0.3.73
[INFO] [stderr]   Downloaded anstyle-parse v0.2.4
[INFO] [stderr]   Downloaded cc v1.0.105
[INFO] [stderr]   Downloaded anstyle-query v1.1.0
[INFO] [stderr]   Downloaded miniz_oxide v0.7.4
[INFO] [stderr]   Downloaded clap_builder v4.5.8
[INFO] [stderr]   Downloaded serde v1.0.204
[INFO] [stderr]   Downloaded serde_json v1.0.120
[INFO] [stderr]   Downloaded proc-macro2 v1.0.86
[INFO] [stderr]   Downloaded serde_derive v1.0.204
[INFO] [stderr]   Downloaded syn v2.0.69
[INFO] [stderr]   Downloaded env_filter v0.1.0
[INFO] [stderr]   Downloaded object v0.36.1
[INFO] [stderr]   Downloaded env_logger v0.11.3
[INFO] [stderr]   Downloaded failure v0.1.8
[INFO] [stderr]   Downloaded merkle-cbt v0.3.2
[INFO] [stderr]   Downloaded rustc-serialize v0.3.25
[INFO] [stderr]   Downloaded sled v0.34.7
[INFO] [stderr]   Downloaded rust-crypto v0.2.36
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3f78a039cb7c3ab3154b654193d5a3dd20adbcbeb1a99508f49cf3756d568f23
[INFO] running `Command { std: "docker" "start" "-a" "3f78a039cb7c3ab3154b654193d5a3dd20adbcbeb1a99508f49cf3756d568f23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3f78a039cb7c3ab3154b654193d5a3dd20adbcbeb1a99508f49cf3756d568f23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3f78a039cb7c3ab3154b654193d5a3dd20adbcbeb1a99508f49cf3756d568f23", kill_on_drop: false }`
[INFO] [stdout] 3f78a039cb7c3ab3154b654193d5a3dd20adbcbeb1a99508f49cf3756d568f23
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4127d0e0127f68e82c976a65b95179f6c1d9977fab3dab4bc4ec2c7f80a5ff8f
[INFO] running `Command { std: "docker" "start" "-a" "4127d0e0127f68e82c976a65b95179f6c1d9977fab3dab4bc4ec2c7f80a5ff8f", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling regex-syntax v0.8.4
[INFO] [stderr]    Compiling anstyle-parse v0.2.4
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.0
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]    Compiling anstyle-query v1.1.0
[INFO] [stderr]    Compiling cc v1.0.105
[INFO] [stderr]    Compiling colorchoice v1.0.1
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling anstyle v1.0.7
[INFO] [stderr]    Compiling instant v0.1.13
[INFO] [stderr]    Compiling anstream v0.6.14
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling unicode-xid v0.2.4
[INFO] [stderr]    Compiling gimli v0.29.0
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling syn v2.0.69
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling backtrace v0.3.73
[INFO] [stderr]    Compiling miniz_oxide v0.7.4
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling object v0.36.1
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]    Compiling regex-automata v0.4.7
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling serde_json v1.0.120
[INFO] [stderr]    Compiling addr2line v0.22.0
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]    Compiling rustc-demangle v0.1.24
[INFO] [stderr]    Compiling clap_lex v0.7.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling fxhash v0.2.1
[INFO] [stderr]    Compiling clap_builder v4.5.8
[INFO] [stderr]    Compiling serde_derive v1.0.204
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling time v0.1.45
[INFO] [stderr]    Compiling fs2 v0.4.3
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling bitcoin_hashes v0.7.6
[INFO] [stderr]    Compiling cpufeatures v0.2.12
[INFO] [stderr]    Compiling rustc-serialize v0.3.25
[INFO] [stderr]    Compiling ryu v1.0.18
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling regex v1.10.5
[INFO] [stderr]    Compiling sled v0.34.7
[INFO] [stderr]    Compiling env_filter v0.1.0
[INFO] [stderr]    Compiling env_logger v0.11.3
[INFO] [stderr]    Compiling clap v4.5.8
[INFO] [stderr]    Compiling failure v0.1.8
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling merkle-cbt v0.3.2
[INFO] [stderr]    Compiling bitcoincash-addr v0.5.2
[INFO] [stderr]    Compiling bincode v1.3.3
[INFO] [stderr]    Compiling custom-chain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `tx::TXOutput`
[INFO] [stdout]  --> src/blockchain.rs:8:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::{tx::TXOutput, transaction::Transaction};
[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: `blockchain::Blockchain`
[INFO] [stdout]  --> src/transaction.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::{blockchain::Blockchain, error::Result};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/transaction.rs:45:11
[INFO] [stdout]    |
[INFO] [stdout] 45 |         if(acc_v.0 < amount){
[INFO] [stdout]    |           ^                ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 45 -         if(acc_v.0 < amount){
[INFO] [stdout] 45 +         if acc_v.0 < amount {
[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: `bincode::serialize`
[INFO] [stdout]  --> src/utxoset.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use bincode::serialize;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `matches`
[INFO] [stdout]   --> src/cli.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |         if let Some(ref matches) = matches.subcommand_matches("createwallet"){
[INFO] [stdout]    |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `matches`
[INFO] [stdout]   --> src/cli.rs:74:25
[INFO] [stdout]    |
[INFO] [stdout] 74 |         if let Some(ref matches) = matches.subcommand_matches("listaddresses"){
[INFO] [stdout]    |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cli.rs:75:17
[INFO] [stdout]    |
[INFO] [stdout] 75 |             let mut ws = Wallets::new()?;
[INFO] [stdout]    |                 ----^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/utxoset.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |         if let Err(e) = std::fs::remove_dir_all("data/utxos"){
[INFO] [stdout]    |                    ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `find_unspent_transactions` and `verify_transaction` are never used
[INFO] [stdout]    --> src/blockchain.rs:59:8
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl Blockchain{
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  59 |     fn find_unspent_transactions(&self, address:&[u8]) -> Vec<Transaction>{
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn verify_transaction(&self , tx: &mut Transaction)->Result<bool>{
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `verify` is never used
[INFO] [stdout]    --> src/transaction.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl Transaction{
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 119 |     pub fn verify(
[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 |     //checks whether the address initiated with 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: method `find_UTXO` should have a snake case name
[INFO] [stdout]   --> src/blockchain.rs:96:12
[INFO] [stdout]    |
[INFO] [stdout] 96 |     pub fn find_UTXO(&self
[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: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/blockchain.rs:148:17
[INFO] [stdout]     |
[INFO] [stdout] 148 |     pub fn iter(&self) -> BlockchainIter{
[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] 148 |     pub fn iter(&self) -> BlockchainIter<'_>{
[INFO] [stdout]     |                                         ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:166:8
[INFO] [stdout]     |
[INFO] [stdout] 166 |     fn get_prev_TXs(&self , tx:&Transaction)->Result<HashMap<String , Transaction>>{
[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:167:17
[INFO] [stdout]     |
[INFO] [stdout] 167 |         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:169:17
[INFO] [stdout]     |
[INFO] [stdout] 169 |             let prev_TX = self.find_transaction(&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:176:13
[INFO] [stdout]     |
[INFO] [stdout] 176 |         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:182:13
[INFO] [stdout]     |
[INFO] [stdout] 182 |         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: unused `std::result::Result` that must be used
[INFO] [stdout]    --> src/cli.rs:140:13
[INFO] [stdout]     |
[INFO] [stdout] 140 |             utxo_set.update(&new_block);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let _ = utxo_set.update(&new_block);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `new_UTXO` should have a snake case name
[INFO] [stdout]   --> src/transaction.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn new_UTXO(from:&str , to:&str , amount:i32 , bc:&UTXOSet)->Result<Transaction>{
[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:122:9
[INFO] [stdout]     |
[INFO] [stdout] 122 |         prev_TXs: HashMap<String,Transaction>
[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:135:17
[INFO] [stdout]     |
[INFO] [stdout] 135 |             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:159:9
[INFO] [stdout]     |
[INFO] [stdout] 159 |         prev_TXs: HashMap<String,Transaction>
[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:172:17
[INFO] [stdout]     |
[INFO] [stdout] 172 |             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: unused `std::result::Result` that must be used
[INFO] [stdout]   --> src/tx.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         txo.lock(&address);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let _ = txo.lock(&address);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_UTXO` should have a snake case name
[INFO] [stdout]    --> src/utxoset.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub fn find_UTXO(&self , pub_key_hash:&[u8]) -> Result<TXOutputs>{
[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 1m 18s
[INFO] running `Command { std: "docker" "inspect" "4127d0e0127f68e82c976a65b95179f6c1d9977fab3dab4bc4ec2c7f80a5ff8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4127d0e0127f68e82c976a65b95179f6c1d9977fab3dab4bc4ec2c7f80a5ff8f", kill_on_drop: false }`
[INFO] [stdout] 4127d0e0127f68e82c976a65b95179f6c1d9977fab3dab4bc4ec2c7f80a5ff8f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bfbc118fb5bc55031fb12419fb7e56839406eb34b65d522f59054c37368dbd73
[INFO] running `Command { std: "docker" "start" "-a" "bfbc118fb5bc55031fb12419fb7e56839406eb34b65d522f59054c37368dbd73", kill_on_drop: false }`
[INFO] [stderr]    Compiling custom-chain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `tx::TXOutput`
[INFO] [stdout]  --> src/blockchain.rs:8:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::{tx::TXOutput, transaction::Transaction};
[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: `blockchain::Blockchain`
[INFO] [stdout]  --> src/transaction.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::{blockchain::Blockchain, error::Result};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/transaction.rs:45:11
[INFO] [stdout]    |
[INFO] [stdout] 45 |         if(acc_v.0 < amount){
[INFO] [stdout]    |           ^                ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 45 -         if(acc_v.0 < amount){
[INFO] [stdout] 45 +         if acc_v.0 < amount {
[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: `bincode::serialize`
[INFO] [stdout]  --> src/utxoset.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use bincode::serialize;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/blockchain.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let mut b = Blockchain::new().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `matches`
[INFO] [stdout]   --> src/cli.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |         if let Some(ref matches) = matches.subcommand_matches("createwallet"){
[INFO] [stdout]    |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `matches`
[INFO] [stdout]   --> src/cli.rs:74:25
[INFO] [stdout]    |
[INFO] [stdout] 74 |         if let Some(ref matches) = matches.subcommand_matches("listaddresses"){
[INFO] [stdout]    |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cli.rs:75:17
[INFO] [stdout]    |
[INFO] [stdout] 75 |             let mut ws = Wallets::new()?;
[INFO] [stdout]    |                 ----^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/utxoset.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |         if let Err(e) = std::fs::remove_dir_all("data/utxos"){
[INFO] [stdout]    |                    ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `find_unspent_transactions` and `verify_transaction` are never used
[INFO] [stdout]    --> src/blockchain.rs:59:8
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl Blockchain{
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  59 |     fn find_unspent_transactions(&self, address:&[u8]) -> Vec<Transaction>{
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn verify_transaction(&self , tx: &mut Transaction)->Result<bool>{
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `verify` is never used
[INFO] [stdout]    --> src/transaction.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl Transaction{
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 119 |     pub fn verify(
[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 |     //checks whether the address initiated with 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: method `find_UTXO` should have a snake case name
[INFO] [stdout]   --> src/blockchain.rs:96:12
[INFO] [stdout]    |
[INFO] [stdout] 96 |     pub fn find_UTXO(&self
[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: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/blockchain.rs:148:17
[INFO] [stdout]     |
[INFO] [stdout] 148 |     pub fn iter(&self) -> BlockchainIter{
[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] 148 |     pub fn iter(&self) -> BlockchainIter<'_>{
[INFO] [stdout]     |                                         ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:166:8
[INFO] [stdout]     |
[INFO] [stdout] 166 |     fn get_prev_TXs(&self , tx:&Transaction)->Result<HashMap<String , Transaction>>{
[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:167:17
[INFO] [stdout]     |
[INFO] [stdout] 167 |         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:169:17
[INFO] [stdout]     |
[INFO] [stdout] 169 |             let prev_TX = self.find_transaction(&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:176:13
[INFO] [stdout]     |
[INFO] [stdout] 176 |         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:182:13
[INFO] [stdout]     |
[INFO] [stdout] 182 |         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: unused `std::result::Result` that must be used
[INFO] [stdout]    --> src/cli.rs:140:13
[INFO] [stdout]     |
[INFO] [stdout] 140 |             utxo_set.update(&new_block);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let _ = utxo_set.update(&new_block);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `new_UTXO` should have a snake case name
[INFO] [stdout]   --> src/transaction.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn new_UTXO(from:&str , to:&str , amount:i32 , bc:&UTXOSet)->Result<Transaction>{
[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:122:9
[INFO] [stdout]     |
[INFO] [stdout] 122 |         prev_TXs: HashMap<String,Transaction>
[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:135:17
[INFO] [stdout]     |
[INFO] [stdout] 135 |             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:159:9
[INFO] [stdout]     |
[INFO] [stdout] 159 |         prev_TXs: HashMap<String,Transaction>
[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:172:17
[INFO] [stdout]     |
[INFO] [stdout] 172 |             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: unused `std::result::Result` that must be used
[INFO] [stdout]   --> src/tx.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         txo.lock(&address);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let _ = txo.lock(&address);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_UTXO` should have a snake case name
[INFO] [stdout]    --> src/utxoset.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub fn find_UTXO(&self , pub_key_hash:&[u8]) -> Result<TXOutputs>{
[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 1.22s
[INFO] running `Command { std: "docker" "inspect" "bfbc118fb5bc55031fb12419fb7e56839406eb34b65d522f59054c37368dbd73", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bfbc118fb5bc55031fb12419fb7e56839406eb34b65d522f59054c37368dbd73", kill_on_drop: false }`
[INFO] [stdout] bfbc118fb5bc55031fb12419fb7e56839406eb34b65d522f59054c37368dbd73
