[INFO] cloning repository https://github.com/tommasozanon/yomt-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tommasozanon/yomt-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftommasozanon%2Fyomt-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftommasozanon%2Fyomt-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24879d325a2d6afe1a58267d77806a891cbe9ca4 [INFO] testing tommasozanon/yomt-blockchain against master#1ddedbaa5919b7b3e70d984660e21e844c615c97 for pr-128400 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftommasozanon%2Fyomt-blockchain" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tommasozanon/yomt-blockchain on toolchain 1ddedbaa5919b7b3e70d984660e21e844c615c97 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tommasozanon/yomt-blockchain [INFO] finished tweaking git repo https://github.com/tommasozanon/yomt-blockchain [INFO] tweaked toml for git repo https://github.com/tommasozanon/yomt-blockchain written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tommasozanon/yomt-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" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6edf8c39575f5e93f7298ac5462c994f91fdf3fafd1cec715e57ef4475b9311a [INFO] running `Command { std: "docker" "start" "-a" "6edf8c39575f5e93f7298ac5462c994f91fdf3fafd1cec715e57ef4475b9311a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6edf8c39575f5e93f7298ac5462c994f91fdf3fafd1cec715e57ef4475b9311a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6edf8c39575f5e93f7298ac5462c994f91fdf3fafd1cec715e57ef4475b9311a", kill_on_drop: false }` [INFO] [stdout] 6edf8c39575f5e93f7298ac5462c994f91fdf3fafd1cec715e57ef4475b9311a [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbca8d65f22bfe5c7738486542c5cc7f46099fe56b998d099185534700ddd058 [INFO] running `Command { std: "docker" "start" "-a" "dbca8d65f22bfe5c7738486542c5cc7f46099fe56b998d099185534700ddd058", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling platforms v3.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling async-trait v0.1.78 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling curve25519-dalek v4.1.2 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling chrono v0.4.35 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling sha256 v1.5.0 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling yomt-blockchain v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ed25519_dalek::Signature` [INFO] [stdout] --> src/wallet/wallet.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ed25519_dalek::Signature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/wallet/wallet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/blockchain.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut unspent_txs : Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_unspent_transactions` is never used [INFO] [stdout] --> src/blockchain/blockchain.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Blockchain{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn find_unspent_transactions(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl TxInput{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 80 | [INFO] [stdout] 81 | fn can_unlock(&self, data : String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_be_unlocked` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl TxOutput{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 87 | fn can_be_unlocked(&self, data : String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `blockhash_deserialize`, `deserialize`, and `serialize` [INFO] [stdout] --> src/main.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use yomt_blockchain::blockchain::block::{Block, serialize, deserialize, blockhash_deserialize}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blockchain` and `genesis` [INFO] [stdout] --> src/main.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | use yomt_blockchain::blockchain::blockchain::{genesis,Blockchain, BlockchainIter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sled` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sled; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_keypair` [INFO] [stdout] --> src/main.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use yomt_blockchain::wallet::wallet::{generate_keypair, load_secretkey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chain_analyzer` is never used [INFO] [stdout] --> src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn chain_analyzer(iter : &mut BlockchainIter) -> (){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.38s [INFO] running `Command { std: "docker" "inspect" "dbca8d65f22bfe5c7738486542c5cc7f46099fe56b998d099185534700ddd058", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbca8d65f22bfe5c7738486542c5cc7f46099fe56b998d099185534700ddd058", kill_on_drop: false }` [INFO] [stdout] dbca8d65f22bfe5c7738486542c5cc7f46099fe56b998d099185534700ddd058 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49dc22f700a38925276c07487eaa0d21f525085ba513890ea7b3dea4a9aabd57 [INFO] running `Command { std: "docker" "start" "-a" "49dc22f700a38925276c07487eaa0d21f525085ba513890ea7b3dea4a9aabd57", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `ed25519_dalek::Signature` [INFO] [stdout] --> src/wallet/wallet.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ed25519_dalek::Signature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/wallet/wallet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/blockchain.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut unspent_txs : Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_unspent_transactions` is never used [INFO] [stdout] --> src/blockchain/blockchain.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Blockchain{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn find_unspent_transactions(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl TxInput{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 80 | [INFO] [stdout] 81 | fn can_unlock(&self, data : String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_be_unlocked` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl TxOutput{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 87 | fn can_be_unlocked(&self, data : String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling yomt-blockchain v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `blockhash_deserialize`, `deserialize`, and `serialize` [INFO] [stdout] --> src/main.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use yomt_blockchain::blockchain::block::{Block, serialize, deserialize, blockhash_deserialize}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blockchain` and `genesis` [INFO] [stdout] --> src/main.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | use yomt_blockchain::blockchain::blockchain::{genesis,Blockchain, BlockchainIter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sled` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sled; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_keypair` [INFO] [stdout] --> src/main.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use yomt_blockchain::wallet::wallet::{generate_keypair, load_secretkey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chain_analyzer` is never used [INFO] [stdout] --> src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn chain_analyzer(iter : &mut BlockchainIter) -> (){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ed25519_dalek::Signature` [INFO] [stdout] --> src/wallet/wallet.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ed25519_dalek::Signature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/wallet/wallet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/blockchain.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut unspent_txs : Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_unspent_transactions` is never used [INFO] [stdout] --> src/blockchain/blockchain.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Blockchain{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn find_unspent_transactions(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl TxInput{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 80 | [INFO] [stdout] 81 | fn can_unlock(&self, data : String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_be_unlocked` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl TxOutput{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 87 | fn can_be_unlocked(&self, data : String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "49dc22f700a38925276c07487eaa0d21f525085ba513890ea7b3dea4a9aabd57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49dc22f700a38925276c07487eaa0d21f525085ba513890ea7b3dea4a9aabd57", kill_on_drop: false }` [INFO] [stdout] 49dc22f700a38925276c07487eaa0d21f525085ba513890ea7b3dea4a9aabd57 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 094d418d8f834f5bd936b7e258f21bfd16052129fa8e9f366c9868cdcae2851a [INFO] running `Command { std: "docker" "start" "-a" "094d418d8f834f5bd936b7e258f21bfd16052129fa8e9f366c9868cdcae2851a", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ed25519_dalek::Signature` [INFO] [stderr] --> src/wallet/wallet.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use ed25519_dalek::Signature; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::to_string` [INFO] [stderr] --> src/wallet/wallet.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::to_string; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/blockchain/blockchain.rs:65:13 [INFO] [stderr] | [INFO] [stderr] 65 | let mut unspent_txs : Vec = Vec::new(); [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `find_unspent_transactions` is never used [INFO] [stderr] --> src/blockchain/blockchain.rs:64:8 [INFO] [stderr] | [INFO] [stderr] 22 | impl Blockchain{ [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 64 | fn find_unspent_transactions(&self) -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `can_unlock` is never used [INFO] [stderr] --> src/blockchain/transaction.rs:81:8 [INFO] [stderr] | [INFO] [stderr] 79 | impl TxInput{ [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] 80 | [INFO] [stderr] 81 | fn can_unlock(&self, data : String) -> bool{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `can_be_unlocked` is never used [INFO] [stderr] --> src/blockchain/transaction.rs:87:8 [INFO] [stderr] | [INFO] [stderr] 86 | impl TxOutput{ [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] 87 | fn can_be_unlocked(&self, data : String) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `yomt-blockchain` (lib) generated 6 warnings (run `cargo fix --lib -p yomt-blockchain` to apply 3 suggestions) [INFO] [stderr] warning: `yomt-blockchain` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] warning: unused imports: `Block`, `blockhash_deserialize`, `deserialize`, and `serialize` [INFO] [stderr] --> src/main.rs:1:42 [INFO] [stderr] | [INFO] [stderr] 1 | use yomt_blockchain::blockchain::block::{Block, serialize, deserialize, blockhash_deserialize}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Blockchain` and `genesis` [INFO] [stderr] --> src/main.rs:2:47 [INFO] [stderr] | [INFO] [stderr] 2 | use yomt_blockchain::blockchain::blockchain::{genesis,Blockchain, BlockchainIter}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sled` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use sled; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `generate_keypair` [INFO] [stderr] --> src/main.rs:4:39 [INFO] [stderr] | [INFO] [stderr] 4 | use yomt_blockchain::wallet::wallet::{generate_keypair, load_secretkey}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `chain_analyzer` is never used [INFO] [stderr] --> src/main.rs:47:4 [INFO] [stderr] | [INFO] [stderr] 47 | fn chain_analyzer(iter : &mut BlockchainIter) -> (){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `yomt-blockchain` (bin "yomt-blockchain" test) generated 5 warnings (run `cargo fix --bin "yomt-blockchain" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/yomt_blockchain-9e596dbdd70a1844) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/yomt_blockchain-e246654c92d16ad7) [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] [stderr] Doc-tests yomt_blockchain [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" "094d418d8f834f5bd936b7e258f21bfd16052129fa8e9f366c9868cdcae2851a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "094d418d8f834f5bd936b7e258f21bfd16052129fa8e9f366c9868cdcae2851a", kill_on_drop: false }` [INFO] [stdout] 094d418d8f834f5bd936b7e258f21bfd16052129fa8e9f366c9868cdcae2851a