[INFO] cloning repository https://github.com/Evans-tats/blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Evans-tats/blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvans-tats%2Fblockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvans-tats%2Fblockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4395d1f9804a817fd340db1a007f63e2863697b1 [INFO] testing Evans-tats/blockchain against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvans-tats%2Fblockchain" "/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/Evans-tats/blockchain [INFO] finished tweaking git repo https://github.com/Evans-tats/blockchain [INFO] tweaked toml for git repo https://github.com/Evans-tats/blockchain written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Evans-tats/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/Evans-tats/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 anstream v0.6.11 [INFO] [stderr] Downloaded merkle-cbt v0.3.2 [INFO] [stderr] Downloaded clap v4.4.18 [INFO] [stderr] Downloaded bitcoincash-addr v0.5.2 [INFO] [stderr] Downloaded bitcoin_hashes v0.7.6 [INFO] [stderr] Downloaded rustc-serialize v0.3.25 [INFO] [stderr] Downloaded env_logger v0.11.0 [INFO] [stderr] Downloaded clap_builder v4.4.18 [INFO] [stderr] Downloaded sled v0.34.7 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52542875506b28171c69233825727033a529db1a3fac1ffc665d930b5c548def [INFO] running `Command { std: "docker" "start" "-a" "52542875506b28171c69233825727033a529db1a3fac1ffc665d930b5c548def", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52542875506b28171c69233825727033a529db1a3fac1ffc665d930b5c548def", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52542875506b28171c69233825727033a529db1a3fac1ffc665d930b5c548def", kill_on_drop: false }` [INFO] [stdout] 52542875506b28171c69233825727033a529db1a3fac1ffc665d930b5c548def [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1cd03d068c51a054cf8361aeec870c0196dc7ac60da27b8bb70a5cc88790c79d [INFO] running `Command { std: "docker" "start" "-a" "1cd03d068c51a054cf8361aeec870c0196dc7ac60da27b8bb70a5cc88790c79d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling regex-automata v0.4.4 [INFO] [stderr] Compiling anstream v0.6.11 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling merkle-cbt v0.3.2 [INFO] [stderr] Compiling clap_builder v4.4.18 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling clap v4.4.18 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling env_logger v0.11.0 [INFO] [stderr] Compiling bitcoincash-addr v0.5.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling block v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] --> src/blocks.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::blockchain::Blockchain; [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: `rand::seq::index` [INFO] [stdout] --> src/blockchain.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sled::Db` [INFO] [stdout] --> src/blockchain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sled::Db; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Matches` [INFO] [stdout] --> src/cli.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::Matches; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitcoincash_addr::Address` [INFO] [stdout] --> src/cli.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bitcoincash_addr::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::error` [INFO] [stdout] --> src/transaction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spent_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | 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_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let mut unspent_TXOs: Vec= Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | 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 `unspend_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let unspend_TXs = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspend_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let unspend_TXs: Vec = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | 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] 135 | pub fn iter(&self) ->BlockchainIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | 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 33.18s [INFO] running `Command { std: "docker" "inspect" "1cd03d068c51a054cf8361aeec870c0196dc7ac60da27b8bb70a5cc88790c79d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cd03d068c51a054cf8361aeec870c0196dc7ac60da27b8bb70a5cc88790c79d", kill_on_drop: false }` [INFO] [stdout] 1cd03d068c51a054cf8361aeec870c0196dc7ac60da27b8bb70a5cc88790c79d [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5fe624833c9f6128662ec9e93b9696833a081a9e389bc230c14b3c7bcc30872 [INFO] running `Command { std: "docker" "start" "-a" "e5fe624833c9f6128662ec9e93b9696833a081a9e389bc230c14b3c7bcc30872", kill_on_drop: false }` [INFO] [stderr] Compiling block v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] --> src/blocks.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::blockchain::Blockchain; [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: `rand::seq::index` [INFO] [stdout] --> src/blockchain.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sled::Db` [INFO] [stdout] --> src/blockchain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sled::Db; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Matches` [INFO] [stdout] --> src/cli.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::Matches; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitcoincash_addr::Address` [INFO] [stdout] --> src/cli.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bitcoincash_addr::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::error` [INFO] [stdout] --> src/transaction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spent_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | 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_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let mut unspent_TXOs: Vec= Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | 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 `unspend_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let unspend_TXs = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspend_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let unspend_TXs: Vec = self.find_unspent_transactions(address); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | 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] 135 | pub fn iter(&self) ->BlockchainIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | 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 0.93s [INFO] running `Command { std: "docker" "inspect" "e5fe624833c9f6128662ec9e93b9696833a081a9e389bc230c14b3c7bcc30872", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5fe624833c9f6128662ec9e93b9696833a081a9e389bc230c14b3c7bcc30872", kill_on_drop: false }` [INFO] [stdout] e5fe624833c9f6128662ec9e93b9696833a081a9e389bc230c14b3c7bcc30872 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7588bf4d8f700e8f7cd0c4503f99ce63a937a69e24019016b3cb5277148283a5 [INFO] running `Command { std: "docker" "start" "-a" "7588bf4d8f700e8f7cd0c4503f99ce63a937a69e24019016b3cb5277148283a5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] [INFO] [stderr] --> src/blocks.rs:7:5 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 7 | use crate::blockchain::Blockchain; [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::index` [INFO] [stderr] --> src/blockchain.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use rand::seq::index; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sled::Db` [INFO] [stderr] --> src/blockchain.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use sled::Db; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::Matches` [INFO] [stderr] --> src/cli.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::str::Matches; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `bitcoincash_addr::Address` [INFO] [stderr] --> src/cli.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use bitcoincash_addr::Address; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `clap::error` [INFO] [stderr] --> src/transaction.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use clap::error; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `spent_TXOs` should have a snake case name [INFO] [stderr] --> src/blockchain.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | let mut spent_TXOs: HashMap> = HashMap::new(); [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `spent_txos` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `unspent_TXOs` should have a snake case name [INFO] [stderr] --> src/blockchain.rs:54:17 [INFO] [stderr] | [INFO] [stderr] 54 | let mut unspent_TXOs: Vec= Vec::new(); [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `unspent_txos` [INFO] [stderr] [INFO] [stderr] warning: method `find_UTXO` should have a snake case name [INFO] [stderr] --> src/blockchain.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn find_UTXO(&self, address: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stderr] [INFO] [stderr] warning: variable `unspend_TXs` should have a snake case name [INFO] [stderr] --> src/blockchain.rs:88:13 [INFO] [stderr] | [INFO] [stderr] 88 | let unspend_TXs = self.find_unspent_transactions(address); [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stderr] [INFO] [stderr] warning: variable `unspend_TXs` should have a snake case name [INFO] [stderr] --> src/blockchain.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | let unspend_TXs: Vec = self.find_unspent_transactions(address); [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/blockchain.rs:135:17 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn iter(&self) ->BlockchainIter { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 135 | pub fn iter(&self) ->BlockchainIter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: method `new_UTXO` should have a snake case name [INFO] [stderr] --> src/transaction.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn new_UTXO(from: &str, to: &str, amount: i32, bc:&Blockchain) -> Result { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stderr] [INFO] [stderr] warning: `block` (bin "block" test) generated 13 warnings (run `cargo fix --bin "block" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/block-1966fc87b32bd2e7) [INFO] running `Command { std: "docker" "inspect" "7588bf4d8f700e8f7cd0c4503f99ce63a937a69e24019016b3cb5277148283a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7588bf4d8f700e8f7cd0c4503f99ce63a937a69e24019016b3cb5277148283a5", kill_on_drop: false }` [INFO] [stdout] 7588bf4d8f700e8f7cd0c4503f99ce63a937a69e24019016b3cb5277148283a5