[INFO] cloning repository https://github.com/justbytecode/bitcoin_like_chain_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/justbytecode/bitcoin_like_chain_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustbytecode%2Fbitcoin_like_chain_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustbytecode%2Fbitcoin_like_chain_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7a5fdb35f8c3b3f0ccb2eb7f22dfbe67f8915437 [INFO] building justbytecode/bitcoin_like_chain_Rust against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustbytecode%2Fbitcoin_like_chain_Rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/justbytecode/bitcoin_like_chain_Rust [INFO] finished tweaking git repo https://github.com/justbytecode/bitcoin_like_chain_Rust [INFO] tweaked toml for git repo https://github.com/justbytecode/bitcoin_like_chain_Rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/justbytecode/bitcoin_like_chain_Rust 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/justbytecode/bitcoin_like_chain_Rust 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] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded instant v0.1.13 [INFO] [stderr] Downloaded redox_syscall v0.2.16 [INFO] [stderr] Downloaded fs2 v0.4.3 [INFO] [stderr] Downloaded rdrand v0.4.0 [INFO] [stderr] Downloaded sha2 v0.10.8 [INFO] [stderr] Downloaded anstyle v1.0.8 [INFO] [stderr] Downloaded parking_lot v0.11.2 [INFO] [stderr] Downloaded autocfg v1.3.0 [INFO] [stderr] Downloaded humantime v2.1.0 [INFO] [stderr] Downloaded rustc-serialize v0.3.25 [INFO] [stderr] Downloaded bincode v1.3.3 [INFO] [stderr] Downloaded bitcoincash-addr v0.5.2 [INFO] [stderr] Downloaded unicode-xid v0.2.4 [INFO] [stderr] Downloaded anstyle-parse v0.2.5 [INFO] [stderr] Downloaded bitcoin_hashes v0.7.6 [INFO] [stderr] Downloaded adler v1.0.2 [INFO] [stderr] Downloaded serde v1.0.204 [INFO] [stderr] Downloaded regex-syntax v0.8.4 [INFO] [stderr] Downloaded syn v2.0.72 [INFO] [stderr] Downloaded gimli v0.29.0 [INFO] [stderr] Downloaded cc v1.1.7 [INFO] [stderr] Downloaded backtrace v0.3.73 [INFO] [stderr] Downloaded gcc v0.3.55 [INFO] [stderr] Downloaded time v0.1.45 [INFO] [stderr] Downloaded serde_derive v1.0.204 [INFO] [stderr] Downloaded rust-crypto v0.2.36 [INFO] [stderr] Downloaded rand v0.4.6 [INFO] [stderr] Downloaded serde_json v1.0.122 [INFO] [stderr] Downloaded cpufeatures v0.2.12 [INFO] [stderr] Downloaded clap_builder v4.5.13 [INFO] [stderr] Downloaded colorchoice v1.0.2 [INFO] [stderr] Downloaded synstructure v0.12.6 [INFO] [stderr] Downloaded failure_derive v0.1.8 [INFO] [stderr] Downloaded fuchsia-cprng v0.1.1 [INFO] [stderr] Downloaded rand_core v0.4.2 [INFO] [stderr] Downloaded wasi v0.10.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded rand_core v0.3.1 [INFO] [stderr] Downloaded rand v0.3.23 [INFO] [stderr] Downloaded object v0.36.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.86 [INFO] [stderr] Downloaded quote v1.0.36 [INFO] [stderr] Downloaded unicode-ident v1.0.12 [INFO] [stderr] Downloaded regex-automata v0.4.7 [INFO] [stderr] Downloaded libc v0.2.155 [INFO] [stderr] Downloaded anstyle-query v1.1.1 [INFO] [stderr] Downloaded anstream v0.6.15 [INFO] [stderr] Downloaded addr2line v0.22.0 [INFO] [stderr] Downloaded miniz_oxide v0.7.4 [INFO] [stderr] Downloaded failure v0.1.8 [INFO] [stderr] Downloaded merkle-cbt v0.3.2 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded anstyle-wincon v3.0.4 [INFO] [stderr] Downloaded clap_lex v0.7.2 [INFO] [stderr] Downloaded regex v1.10.6 [INFO] [stderr] Downloaded clap v4.5.13 [INFO] [stderr] Downloaded is-terminal v0.4.12 [INFO] [stderr] Downloaded termcolor v1.4.1 [INFO] [stderr] Downloaded env_logger v0.10.2 [INFO] [stderr] Downloaded parking_lot_core v0.8.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] a522ba523af7c18aa32cd118110daca1e32ddfd4930beac81a20074703ff4474 [INFO] running `Command { std: "docker" "start" "-a" "a522ba523af7c18aa32cd118110daca1e32ddfd4930beac81a20074703ff4474", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a522ba523af7c18aa32cd118110daca1e32ddfd4930beac81a20074703ff4474", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a522ba523af7c18aa32cd118110daca1e32ddfd4930beac81a20074703ff4474", kill_on_drop: false }` [INFO] [stdout] a522ba523af7c18aa32cd118110daca1e32ddfd4930beac81a20074703ff4474 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] b984ccdc2187f574886ffd4a8355c89d737e28a181ab409c76b555412d767c38 [INFO] running `Command { std: "docker" "start" "-a" "b984ccdc2187f574886ffd4a8355c89d737e28a181ab409c76b555412d767c38", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling object v0.36.2 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling clap_builder v4.5.13 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling merkle-cbt v0.3.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling clap v4.5.13 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling bitcoincash-addr v0.5.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling blockchain_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sled::transaction` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sled::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: `bitcoincash_addr::Address` [INFO] [stdout] --> src/cli.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bitcoincash_addr::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/cli.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/transaction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::error` [INFO] [stdout] --> src/transaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::format_err` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use failure::format_err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sled::transaction` [INFO] [stdout] --> src/transaction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sled::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | 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: struct `Blockchain` is never constructed [INFO] [stdout] --> src/block.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Blockchain{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | 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] 65 | pub fn iter(&self) -> BlockchainIter<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spent_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut spent_TXOs: HashMap> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `spent_txos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspent_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut unspent_TXs: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn find_UTXO(&self, address: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspent_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let unspent_TXs = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspent_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let unspent_TXs = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn new_UTXO(from: &str, to: &str, amount: i32, bc: &Blockchain) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.27s [INFO] running `Command { std: "docker" "inspect" "b984ccdc2187f574886ffd4a8355c89d737e28a181ab409c76b555412d767c38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b984ccdc2187f574886ffd4a8355c89d737e28a181ab409c76b555412d767c38", kill_on_drop: false }` [INFO] [stdout] b984ccdc2187f574886ffd4a8355c89d737e28a181ab409c76b555412d767c38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 148b34d928df8479e6c725efc6f04109aa4c577f084f8fbefd6dcecd59d858f6 [INFO] running `Command { std: "docker" "start" "-a" "148b34d928df8479e6c725efc6f04109aa4c577f084f8fbefd6dcecd59d858f6", kill_on_drop: false }` [INFO] [stderr] Compiling blockchain_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sled::transaction` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sled::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: `bitcoincash_addr::Address` [INFO] [stdout] --> src/cli.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bitcoincash_addr::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/cli.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/transaction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::error` [INFO] [stdout] --> src/transaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::format_err` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use failure::format_err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sled::transaction` [INFO] [stdout] --> src/transaction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sled::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | 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: variable does not need to be mutable [INFO] [stdout] --> src/cli.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let mut ws = Wallets::new()?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/block.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Blockchain{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | 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] 65 | pub fn iter(&self) -> BlockchainIter<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spent_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut spent_TXOs: HashMap> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `spent_txos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspent_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut unspent_TXs: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn find_UTXO(&self, address: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspent_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let unspent_TXs = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspent_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let unspent_TXs = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn new_UTXO(from: &str, to: &str, amount: i32, bc: &Blockchain) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.10s [INFO] running `Command { std: "docker" "inspect" "148b34d928df8479e6c725efc6f04109aa4c577f084f8fbefd6dcecd59d858f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "148b34d928df8479e6c725efc6f04109aa4c577f084f8fbefd6dcecd59d858f6", kill_on_drop: false }` [INFO] [stdout] 148b34d928df8479e6c725efc6f04109aa4c577f084f8fbefd6dcecd59d858f6