[INFO] cloning repository https://github.com/kibhum/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/kibhum/rust_blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkibhum%2Frust_blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkibhum%2Frust_blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 95eaa88f3825d5b658f7cf5d8237b1731038e016 [INFO] testing kibhum/rust_blockchain against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkibhum%2Frust_blockchain" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kibhum/rust_blockchain [INFO] finished tweaking git repo https://github.com/kibhum/rust_blockchain [INFO] tweaked toml for git repo https://github.com/kibhum/rust_blockchain written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kibhum/rust_blockchain on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kibhum/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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc9d09055b1b6036acd3412945bc7dbb6936f8a102036cd8562a55eaf10e83bc [INFO] running `Command { std: "docker" "start" "-a" "cc9d09055b1b6036acd3412945bc7dbb6936f8a102036cd8562a55eaf10e83bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc9d09055b1b6036acd3412945bc7dbb6936f8a102036cd8562a55eaf10e83bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc9d09055b1b6036acd3412945bc7dbb6936f8a102036cd8562a55eaf10e83bc", kill_on_drop: false }` [INFO] [stdout] cc9d09055b1b6036acd3412945bc7dbb6936f8a102036cd8562a55eaf10e83bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07446b3621c19a8baf3f1b3efbd5420a1b9b89c906d4610782e9286572b852ea [INFO] running `Command { std: "docker" "start" "-a" "07446b3621c19a8baf3f1b3efbd5420a1b9b89c906d4610782e9286572b852ea", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling ff v0.13.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling miniz_oxide v0.8.3 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling brotli-decompressor v4.0.2 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.10 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling is-terminal v0.4.15 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling ripemd160 v0.9.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling derive-error-chain v0.10.1 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling backtrace v0.3.74 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling error-chain v0.10.0 [INFO] [stderr] Compiling dotenv v0.10.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/api_server/api_server.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, trace, warn}; [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: `Serialize` [INFO] [stdout] --> src/api_server/api_server.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::transaction` [INFO] [stdout] --> src/wallet/wallet.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::blockchain::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `block_and_blockchain::BlockChain` and `transaction` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use blockchain::{block_and_blockchain::BlockChain, transaction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wallet::wallet::Wallet` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use wallet::wallet::Wallet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `private_key`, `blockchain_address`, `public_key`, `recipient_address`, and `amount` are never read [INFO] [stdout] --> src/api_server/api_server.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | pub private_key: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | pub blockchain_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub public_key: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub recipient_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub amount: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, 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: enum `BlockSearch` is never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum BlockSearch { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BlockSearchResult` is never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum BlockSearchResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MINING_REWARD`, `print`, and `search_block` are never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 103 | impl BlockChain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 106 | const MINING_REWARD: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sign_transaction` is never used [INFO] [stdout] --> src/wallet/wallet.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Wallet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn sign_transaction(&self, receiver: &String, amount: u64) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult { [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] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "07446b3621c19a8baf3f1b3efbd5420a1b9b89c906d4610782e9286572b852ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07446b3621c19a8baf3f1b3efbd5420a1b9b89c906d4610782e9286572b852ea", kill_on_drop: false }` [INFO] [stdout] 07446b3621c19a8baf3f1b3efbd5420a1b9b89c906d4610782e9286572b852ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ca71c3ee5384d7dd07d23c402f88199804aa37e4b9735235a23079fcc1721ea [INFO] running `Command { std: "docker" "start" "-a" "1ca71c3ee5384d7dd07d23c402f88199804aa37e4b9735235a23079fcc1721ea", kill_on_drop: false }` [INFO] [stderr] Compiling blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/api_server/api_server.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, trace, warn}; [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: `Serialize` [INFO] [stdout] --> src/api_server/api_server.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::transaction` [INFO] [stdout] --> src/wallet/wallet.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::blockchain::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `block_and_blockchain::BlockChain` and `transaction` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use blockchain::{block_and_blockchain::BlockChain, transaction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wallet::wallet::Wallet` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use wallet::wallet::Wallet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `private_key`, `blockchain_address`, `public_key`, `recipient_address`, and `amount` are never read [INFO] [stdout] --> src/api_server/api_server.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | pub private_key: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | pub blockchain_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub public_key: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub recipient_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub amount: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, 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: enum `BlockSearch` is never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum BlockSearch { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BlockSearchResult` is never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum BlockSearchResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `MINING_REWARD`, `print`, and `search_block` are never used [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 103 | impl BlockChain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 106 | const MINING_REWARD: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sign_transaction` is never used [INFO] [stdout] --> src/wallet/wallet.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Wallet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn sign_transaction(&self, receiver: &String, amount: u64) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain/block_and_blockchain.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult { [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] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "1ca71c3ee5384d7dd07d23c402f88199804aa37e4b9735235a23079fcc1721ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ca71c3ee5384d7dd07d23c402f88199804aa37e4b9735235a23079fcc1721ea", kill_on_drop: false }` [INFO] [stdout] 1ca71c3ee5384d7dd07d23c402f88199804aa37e4b9735235a23079fcc1721ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 913de515af744b9d1fab1b87b5d7ea31666d7fef6c20330eadcc370625e662c1 [INFO] running `Command { std: "docker" "start" "-a" "913de515af744b9d1fab1b87b5d7ea31666d7fef6c20330eadcc370625e662c1", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stderr] --> src/api_server/api_server.rs:2:18 [INFO] [stderr] | [INFO] [stderr] 2 | use log::{debug, error, info, trace, warn}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/api_server/api_server.rs:3:26 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::blockchain::transaction` [INFO] [stderr] --> src/wallet/wallet.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::blockchain::transaction; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `block_and_blockchain::BlockChain` and `transaction` [INFO] [stderr] --> src/main.rs:5:18 [INFO] [stderr] | [INFO] [stderr] 5 | use blockchain::{block_and_blockchain::BlockChain, transaction}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `wallet::wallet::Wallet` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use wallet::wallet::Wallet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `private_key`, `blockchain_address`, `public_key`, `recipient_address`, and `amount` are never read [INFO] [stderr] --> src/api_server/api_server.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Transaction { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 18 | pub private_key: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 19 | pub blockchain_address: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 20 | pub public_key: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 21 | pub recipient_address: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 22 | pub amount: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Transaction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: enum `BlockSearch` is never used [INFO] [stderr] --> src/blockchain/block_and_blockchain.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub enum BlockSearch { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `BlockSearchResult` is never used [INFO] [stderr] --> src/blockchain/block_and_blockchain.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 23 | pub enum BlockSearchResult<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `print` is never used [INFO] [stderr] --> src/blockchain/block_and_blockchain.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 56 | impl Block { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `MINING_REWARD`, `print`, and `search_block` are never used [INFO] [stderr] --> src/blockchain/block_and_blockchain.rs:106:11 [INFO] [stderr] | [INFO] [stderr] 103 | impl BlockChain { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 106 | const MINING_REWARD: u64 = 1; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `sign_transaction` is never used [INFO] [stderr] --> src/wallet/wallet.rs:95:12 [INFO] [stderr] | [INFO] [stderr] 34 | impl Wallet { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn sign_transaction(&self, receiver: &String, amount: u64) -> Transaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/blockchain/block_and_blockchain.rs:151:25 [INFO] [stderr] | [INFO] [stderr] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult { [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] 151 | pub fn search_block(&self, search: BlockSearch) -> BlockSearchResult<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `blockchain` (bin "blockchain" test) generated 12 warnings (run `cargo fix --bin "blockchain" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/blockchain-ddf862a3d3855e2b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "913de515af744b9d1fab1b87b5d7ea31666d7fef6c20330eadcc370625e662c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "913de515af744b9d1fab1b87b5d7ea31666d7fef6c20330eadcc370625e662c1", kill_on_drop: false }` [INFO] [stdout] 913de515af744b9d1fab1b87b5d7ea31666d7fef6c20330eadcc370625e662c1