[INFO] cloning repository https://github.com/robertolima-dev/rust_blockchain
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robertolima-dev/rust_blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertolima-dev%2Frust_blockchain", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertolima-dev%2Frust_blockchain'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 4f4da873087e658c406ee7943c4293e526e1b5a2
[INFO] building robertolima-dev/rust_blockchain against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertolima-dev%2Frust_blockchain" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/robertolima-dev/rust_blockchain
[INFO] finished tweaking git repo https://github.com/robertolima-dev/rust_blockchain
[INFO] tweaked toml for git repo https://github.com/robertolima-dev/rust_blockchain written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/robertolima-dev/rust_blockchain 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/robertolima-dev/rust_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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] cd08eff655e36a5339530edad37b353ab62ca0197a1630c75dffba799ea50955
[INFO] running `Command { std: "docker" "start" "-a" "cd08eff655e36a5339530edad37b353ab62ca0197a1630c75dffba799ea50955", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cd08eff655e36a5339530edad37b353ab62ca0197a1630c75dffba799ea50955", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cd08eff655e36a5339530edad37b353ab62ca0197a1630c75dffba799ea50955", kill_on_drop: false }`
[INFO] [stdout] cd08eff655e36a5339530edad37b353ab62ca0197a1630c75dffba799ea50955
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 838dec74544f1fd94aadac2c48551f642e8783115976509cb7e3d9c0dd308b8e
[INFO] running `Command { std: "docker" "start" "-a" "838dec74544f1fd94aadac2c48551f642e8783115976509cb7e3d9c0dd308b8e", kill_on_drop: false }`
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling socket2 v0.6.0
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.6
[INFO] [stderr]    Compiling zerovec v0.11.4
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling crc32fast v1.5.0
[INFO] [stderr]    Compiling cc v1.2.32
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling alloc-no-stdlib v2.0.4
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling local-waker v0.1.4
[INFO] [stderr]    Compiling alloc-stdlib v0.2.2
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling time-core v0.1.4
[INFO] [stderr]    Compiling regex-lite v0.1.6
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.2
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling adler2 v2.0.1
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]    Compiling miniz_oxide v0.8.9
[INFO] [stderr]    Compiling deranged v0.4.0
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling secp256k1-sys v0.9.2
[INFO] [stderr]    Compiling indexmap v2.10.0
[INFO] [stderr]    Compiling bytestring v1.4.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]    Compiling brotli-decompressor v5.0.0
[INFO] [stderr]    Compiling actix-utils v3.0.1
[INFO] [stderr]    Compiling actix-service v2.0.3
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling serde_json v1.0.142
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling brotli v8.0.1
[INFO] [stderr]    Compiling tokio-util v0.7.16
[INFO] [stderr]    Compiling actix-rt v2.10.0
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling actix-codec v0.5.2
[INFO] [stderr]    Compiling derive_more v2.0.1
[INFO] [stderr]    Compiling flate2 v1.1.2
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]    Compiling time v0.3.41
[INFO] [stderr]    Compiling local-channel v0.1.5
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling language-tags v0.3.2
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]    Compiling actix-server v2.6.0
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling env_filter v0.1.3
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling impl-more v0.1.9
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling env_logger v0.11.8
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling uuid v1.18.0
[INFO] [stderr]    Compiling secp256k1 v0.28.2
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling actix-http v3.11.0
[INFO] [stderr]    Compiling actix-web v4.11.0
[INFO] [stderr]    Compiling rust_blockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY`
[INFO] [stdout]  --> src/api/chain.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK,
[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: `warn`
[INFO] [stdout]  --> src/api/chain.rs:5:24
[INFO] [stdout]   |
[INFO] [stdout] 5 | use log::{debug, info, warn};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput`
[INFO] [stdout]   --> src/api/chain.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                          ^^^^^^^^               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/api/tx.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::HashSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/api/tx.rs:10:49
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SecretKey`
[INFO] [stdout]  --> src/wallet/mod.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature};
[INFO] [stdout]   |                                                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead
[INFO] [stdout]   --> src/wallet/mod.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?;
[INFO] [stdout]    |                        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/api/tx.rs:168:10
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (_i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES`
[INFO] [stdout]     |
[INFO] [stdout] 168 -     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout] 168 +     for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY`
[INFO] [stdout]  --> src/api/chain.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK,
[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: `warn`
[INFO] [stdout]  --> src/api/chain.rs:5:24
[INFO] [stdout]   |
[INFO] [stdout] 5 | use log::{debug, info, warn};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput`
[INFO] [stdout]   --> src/api/chain.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                          ^^^^^^^^               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/api/tx.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::HashSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/api/tx.rs:10:49
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SecretKey`
[INFO] [stdout]  --> src/wallet/mod.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature};
[INFO] [stdout]   |                                                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead
[INFO] [stdout]   --> src/wallet/mod.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?;
[INFO] [stdout]    |                        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/api/tx.rs:168:10
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (_i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES`
[INFO] [stdout]     |
[INFO] [stdout] 168 -     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout] 168 +     for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `difficulty` and `miner_address` are never read
[INFO] [stdout]   --> src/api/models.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct MiningTemplate {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub difficulty: u32,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub miner_address: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MiningTemplate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `contains` and `is_empty` are never used
[INFO] [stdout]   --> src/transaction/utxo.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl UtxoSet {
[INFO] [stdout]    | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn contains(&self, outpoint: &OutPoint) -> bool {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 59s
[INFO] running `Command { std: "docker" "inspect" "838dec74544f1fd94aadac2c48551f642e8783115976509cb7e3d9c0dd308b8e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "838dec74544f1fd94aadac2c48551f642e8783115976509cb7e3d9c0dd308b8e", kill_on_drop: false }`
[INFO] [stdout] 838dec74544f1fd94aadac2c48551f642e8783115976509cb7e3d9c0dd308b8e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] e55f0dcca1e0470caf511ed59171c620baf98a0ed977f03a4be4fffcba6328b6
[INFO] running `Command { std: "docker" "start" "-a" "e55f0dcca1e0470caf511ed59171c620baf98a0ed977f03a4be4fffcba6328b6", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY`
[INFO] [stdout]  --> src/api/chain.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK,
[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: `warn`
[INFO] [stdout]  --> src/api/chain.rs:5:24
[INFO] [stdout]   |
[INFO] [stdout] 5 | use log::{debug, info, warn};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput`
[INFO] [stdout]   --> src/api/chain.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                          ^^^^^^^^               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/api/tx.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::HashSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/api/tx.rs:10:49
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SecretKey`
[INFO] [stdout]  --> src/wallet/mod.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature};
[INFO] [stdout]   |                                                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead
[INFO] [stdout]   --> src/wallet/mod.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?;
[INFO] [stdout]    |                        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/api/tx.rs:168:10
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (_i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES`
[INFO] [stdout]     |
[INFO] [stdout] 168 -     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout] 168 +     for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rust_blockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY`
[INFO] [stdout]  --> src/api/chain.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK,
[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: `warn`
[INFO] [stdout]  --> src/api/chain.rs:5:24
[INFO] [stdout]   |
[INFO] [stdout] 5 | use log::{debug, info, warn};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput`
[INFO] [stdout]   --> src/api/chain.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                          ^^^^^^^^               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/api/tx.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::HashSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/api/tx.rs:10:49
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SecretKey`
[INFO] [stdout]  --> src/wallet/mod.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature};
[INFO] [stdout]   |                                                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Blockchain` and `DEFAULT_DIFFICULTY`
[INFO] [stdout]  --> src/api/chain.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BASE_REWARD, Blockchain, DEFAULT_DIFFICULTY, MAX_BLOCK_BYTES, MAX_TXS_PER_BLOCK,
[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: `warn`
[INFO] [stdout]  --> src/api/chain.rs:5:24
[INFO] [stdout]   |
[INFO] [stdout] 5 | use log::{debug, info, warn};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OutPoint` and `TxInput`
[INFO] [stdout]   --> src/api/chain.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                          ^^^^^^^^               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/api/tx.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::HashSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/api/tx.rs:10:49
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::transaction::{OutPoint, Transaction, TxInput, TxOutput, UtxoSet};
[INFO] [stdout]    |                                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SecretKey`
[INFO] [stdout]  --> src/wallet/mod.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use secp256k1::{Message, PublicKey, Secp256k1, SecretKey, ecdsa::Signature};
[INFO] [stdout]   |                                                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead
[INFO] [stdout]   --> src/wallet/mod.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?;
[INFO] [stdout]    |                        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/api/tx.rs:168:10
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (_i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES`
[INFO] [stdout]     |
[INFO] [stdout] 168 -     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout] 168 +     for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::Message::from_slice`: use from_digest_slice instead
[INFO] [stdout]   --> src/wallet/mod.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let msg = Message::from_slice(&msg32).map_err(|_| "invalid message length")?;
[INFO] [stdout]    |                        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/api/tx.rs:168:10
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 168 |     for (_i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |          +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BLOCK_BYTES`
[INFO] [stdout]     |
[INFO] [stdout] 168 -     for (i, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout] 168 +     for (blockchain::MAX_BLOCK_BYTES, input) in tx.inputs.iter().enumerate() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `difficulty` and `miner_address` are never read
[INFO] [stdout]   --> src/api/models.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct MiningTemplate {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub difficulty: u32,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub miner_address: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MiningTemplate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `contains` and `is_empty` are never used
[INFO] [stdout]   --> src/transaction/utxo.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl UtxoSet {
[INFO] [stdout]    | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn contains(&self, outpoint: &OutPoint) -> bool {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 5.24s
[INFO] running `Command { std: "docker" "inspect" "e55f0dcca1e0470caf511ed59171c620baf98a0ed977f03a4be4fffcba6328b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e55f0dcca1e0470caf511ed59171c620baf98a0ed977f03a4be4fffcba6328b6", kill_on_drop: false }`
[INFO] [stdout] e55f0dcca1e0470caf511ed59171c620baf98a0ed977f03a4be4fffcba6328b6
