[INFO] cloning repository https://github.com/ishaansehgal99/Bitcoin-Client [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ishaansehgal99/Bitcoin-Client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishaansehgal99%2FBitcoin-Client", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishaansehgal99%2FBitcoin-Client'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5080de6328789b272026868c83b2858bd93ad347 [INFO] checking ishaansehgal99/Bitcoin-Client against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishaansehgal99%2FBitcoin-Client" "/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/ishaansehgal99/Bitcoin-Client on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ishaansehgal99/Bitcoin-Client [INFO] finished tweaking git repo https://github.com/ishaansehgal99/Bitcoin-Client [INFO] tweaked toml for git repo https://github.com/ishaansehgal99/Bitcoin-Client written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ishaansehgal99/Bitcoin-Client 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-dup v1.2.2 [INFO] [stderr] Downloaded smol v1.2.5 [INFO] [stderr] Downloaded ntest v0.7.3 [INFO] [stderr] Downloaded chunked_transfer v1.4.0 [INFO] [stderr] Downloaded bitflags v1.2.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.51 [INFO] [stderr] Downloaded futures-task v0.3.18 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.51 [INFO] [stderr] Downloaded term_size v0.3.1 [INFO] [stderr] Downloaded untrusted v0.7.0 [INFO] [stderr] Downloaded futures-sink v0.3.18 [INFO] [stderr] Downloaded stderrlog v0.5.1 [INFO] [stderr] Downloaded ntest_proc_macro_helper v0.7.3 [INFO] [stderr] Downloaded ntest_timeout v0.7.3 [INFO] [stderr] Downloaded futures-executor v0.3.18 [INFO] [stderr] Downloaded futures-io v0.3.18 [INFO] [stderr] Downloaded async-net v1.6.1 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.51 [INFO] [stderr] Downloaded futures-macro v0.3.18 [INFO] [stderr] Downloaded ascii v1.0.0 [INFO] [stderr] Downloaded futures v0.3.18 [INFO] [stderr] Downloaded web-sys v0.3.28 [INFO] [stderr] Downloaded libc v0.2.108 [INFO] [stderr] Downloaded js-sys v0.3.28 [INFO] [stderr] Downloaded wasm-bindgen v0.2.51 [INFO] [stderr] Downloaded ring v0.16.9 [INFO] [stderr] Downloaded backtrace v0.3.38 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.51 [INFO] [stderr] Downloaded futures-util v0.3.18 [INFO] [stderr] Downloaded proc-macro2 v1.0.32 [INFO] [stderr] Downloaded signal-hook v0.3.10 [INFO] [stderr] Downloaded simple-mutex v1.1.5 [INFO] [stderr] Downloaded async-fs v1.5.0 [INFO] [stderr] Downloaded async-process v1.3.0 [INFO] [stderr] Downloaded crossbeam-queue v0.3.2 [INFO] [stderr] Downloaded futures-channel v0.3.18 [INFO] [stderr] Downloaded hex v0.4.0 [INFO] [stderr] Downloaded blocking v1.1.0 [INFO] [stderr] Downloaded ntest_test_cases v0.7.3 [INFO] [stderr] Downloaded wasm-bindgen-webidl v0.2.51 [INFO] [stderr] Downloaded futures-core v0.3.18 [INFO] [stderr] Downloaded tiny_http v0.9.0 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94f0ce2177de5ac96fde0f8cc08df20e89b3acaad04f50c002b9694dca042df2 [INFO] running `Command { std: "docker" "start" "-a" "94f0ce2177de5ac96fde0f8cc08df20e89b3acaad04f50c002b9694dca042df2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94f0ce2177de5ac96fde0f8cc08df20e89b3acaad04f50c002b9694dca042df2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94f0ce2177de5ac96fde0f8cc08df20e89b3acaad04f50c002b9694dca042df2", kill_on_drop: false }` [INFO] [stdout] 94f0ce2177de5ac96fde0f8cc08df20e89b3acaad04f50c002b9694dca042df2 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ce7c3c1b323ddd74fa6eea9433aefc5a5772629fe983a1eb78739f274ae43f3 [INFO] running `Command { std: "docker" "start" "-a" "3ce7c3c1b323ddd74fa6eea9433aefc5a5772629fe983a1eb78739f274ae43f3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking futures-io v0.3.18 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking fastrand v1.5.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Checking futures-sink v0.3.18 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Checking async-lock v2.4.0 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking simple-mutex v1.1.5 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking ascii v1.0.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking chunked_transfer v1.4.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Compiling ntest_proc_macro_helper v0.7.3 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking async-dup v1.2.2 [INFO] [stderr] Checking queues v1.1.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking polling v2.2.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking crossbeam v0.8.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking blocking v1.1.0 [INFO] [stderr] Checking async-io v1.6.0 [INFO] [stderr] Checking async-executor v1.4.1 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking async-fs v1.5.0 [INFO] [stderr] Checking async-process v1.3.0 [INFO] [stderr] Checking async-net v1.6.1 [INFO] [stderr] Checking stderrlog v0.5.1 [INFO] [stderr] Checking tiny_http v0.9.0 [INFO] [stderr] Checking smol v1.2.5 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling ntest_test_cases v0.7.3 [INFO] [stderr] Checking futures-executor v0.3.18 [INFO] [stderr] Checking futures v0.3.18 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/blockchain/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/blockchain/mod.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | while (self.blocks[&cur_block].height > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - while (self.blocks[&cur_block].height > 0) { [INFO] [stdout] 127 + while self.blocks[&cur_block].height > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/types/block.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/types/block.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/types/merkle.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | if (((cur_leaves+1)/2)%2 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (((cur_leaves+1)/2)%2 == 1) { [INFO] [stdout] 96 + if ((cur_leaves+1)/2)%2 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::key_pair` [INFO] [stdout] --> src/types/transaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::key_pair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `KeyPair` [INFO] [stdout] --> src/types/transaction.rs:5:56 [INFO] [stdout] | [INFO] [stdout] 5 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/types/transaction.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::message::Message` [INFO] [stdout] --> src/types/transaction.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::network::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::peer` [INFO] [stdout] --> src/types/transaction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::peer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::server::Handle as ServerHandle` [INFO] [stdout] --> src/types/transaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::network::server::Handle as ServerHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::time` [INFO] [stdout] --> src/types/transaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::time; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/types/transaction_generator.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/types/transaction_generator.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Serialize,Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/types/transaction_generator.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/types/transaction_generator.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use crossbeam::channel::{unbounded, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/types/transaction_generator.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/types/transaction_generator.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/miner/worker.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam::channel::{unbounded, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner/worker.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `H256` [INFO] [stdout] --> src/miner/worker.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::address::Address` [INFO] [stdout] --> src/network/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::address::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/network/worker.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::transaction::{Transaction, SignedTransaction, st_verify}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/main.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/main.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | use std::time::{SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/types/transaction.rs:5:65 [INFO] [stdout] | [INFO] [stdout] 5 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_nonce` [INFO] [stdout] --> src/blockchain/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let rand_nonce: u32 = rng.gen(); // Generate random value for nonce [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_nonce` [INFO] [stdout] --> src/blockchain/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let rand_nonce: u32 = rng.gen(); // Generate random value for nonce [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/types/transaction_generator.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bal` [INFO] [stdout] --> src/types/transaction_generator.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let (nonce, bal) = states_guard[&blockchain_guard.tip()][&public_addr]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/transaction_generator.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut rng = rand::thread_rng(); [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: unreachable pattern [INFO] [stdout] --> src/network/worker.rs:421:17 [INFO] [stdout] | [INFO] [stdout] 421 | _ => unimplemented!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let blockchain = Arc::new(Mutex::new(blockchain)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_addr`, `account_nonce`, and `balance` are never read [INFO] [stdout] --> src/network/worker.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | account_addr: Address, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 29 | account_nonce: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 30 | balance: u64 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/types/transaction_generator.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | std::mem::drop(key); [INFO] [stdout] | ^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&std::sync::Arc>` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendToEveryoneButMeAndWhereThisMsgCameFrom` should have a snake case name [INFO] [stdout] --> src/network/server.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn sendToEveryoneButMeAndWhereThisMsgCameFrom(&self, wherethiscamefrom: peer::Handle, msg: message::Message){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `send_to_everyone_but_me_and_where_this_msg_came_from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/worker.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | ... queue.add(new_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 242 | let _ = queue.add(new_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ntest_timeout v0.7.3 [INFO] [stderr] Checking ntest v0.7.3 [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/blockchain/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/blockchain/mod.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | while (self.blocks[&cur_block].height > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - while (self.blocks[&cur_block].height > 0) { [INFO] [stdout] 127 + while self.blocks[&cur_block].height > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/blockchain/mod.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/types/merkle.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | if (((cur_leaves+1)/2)%2 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (((cur_leaves+1)/2)%2 == 1) { [INFO] [stdout] 96 + if ((cur_leaves+1)/2)%2 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EdDSAParameters` [INFO] [stdout] --> src/types/transaction.rs:5:88 [INFO] [stdout] | [INFO] [stdout] 5 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::message::Message` [INFO] [stdout] --> src/types/transaction.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::network::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::peer` [INFO] [stdout] --> src/types/transaction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::peer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::server::Handle as ServerHandle` [INFO] [stdout] --> src/types/transaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::network::server::Handle as ServerHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::time` [INFO] [stdout] --> src/types/transaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::time; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/types/transaction_generator.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/types/transaction_generator.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Serialize,Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/types/transaction_generator.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/types/transaction_generator.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use crossbeam::channel::{unbounded, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/types/transaction_generator.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/types/transaction_generator.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/miner/worker.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam::channel::{unbounded, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner/worker.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `H256` [INFO] [stdout] --> src/miner/worker.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::address::Address` [INFO] [stdout] --> src/network/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::address::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/network/worker.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::transaction::{Transaction, SignedTransaction, st_verify}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/main.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/main.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | use std::time::{SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/types/transaction.rs:5:65 [INFO] [stdout] | [INFO] [stdout] 5 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_nonce` [INFO] [stdout] --> src/blockchain/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let rand_nonce: u32 = rng.gen(); // Generate random value for nonce [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_nonce` [INFO] [stdout] --> src/blockchain/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let rand_nonce: u32 = rng.gen(); // Generate random value for nonce [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/types/transaction_generator.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bal` [INFO] [stdout] --> src/types/transaction_generator.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let (nonce, bal) = states_guard[&blockchain_guard.tip()][&public_addr]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/transaction_generator.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut rng = rand::thread_rng(); [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: unreachable pattern [INFO] [stdout] --> src/network/worker.rs:421:17 [INFO] [stdout] | [INFO] [stdout] 421 | _ => unimplemented!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_msg_sender_1` [INFO] [stdout] --> src/network/worker.rs:522:14 [INFO] [stdout] | [INFO] [stdout] 522 | let (test_msg_sender_1, server_receiver_1, v_1) = generate_test_worker_and_start(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_msg_sender_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_receiver_2` [INFO] [stdout] --> src/network/worker.rs:523:33 [INFO] [stdout] | [INFO] [stdout] 523 | let (test_msg_sender_2, server_receiver_2, v_2) = generate_test_worker_and_start(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_receiver_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_2` [INFO] [stdout] --> src/network/worker.rs:523:52 [INFO] [stdout] | [INFO] [stdout] 523 | let (test_msg_sender_2, server_receiver_2, v_2) = generate_test_worker_and_start(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `peer_receiver` is never read [INFO] [stdout] --> src/network/worker.rs:539:9 [INFO] [stdout] | [INFO] [stdout] 539 | peer_receiver = test_msg_sender_2.send(Message::Blocks(vec![random_block_1])); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let blockchain = Arc::new(Mutex::new(blockchain)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_addr`, `account_nonce`, and `balance` are never read [INFO] [stdout] --> src/network/worker.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | account_addr: Address, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 29 | account_nonce: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 30 | balance: u64 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/types/transaction_generator.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | std::mem::drop(key); [INFO] [stdout] | ^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&std::sync::Arc>` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendToEveryoneButMeAndWhereThisMsgCameFrom` should have a snake case name [INFO] [stdout] --> src/network/server.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn sendToEveryoneButMeAndWhereThisMsgCameFrom(&self, wherethiscamefrom: peer::Handle, msg: message::Message){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `send_to_everyone_but_me_and_where_this_msg_came_from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/worker.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | ... queue.add(new_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 242 | let _ = queue.add(new_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.58s [INFO] running `Command { std: "docker" "inspect" "3ce7c3c1b323ddd74fa6eea9433aefc5a5772629fe983a1eb78739f274ae43f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ce7c3c1b323ddd74fa6eea9433aefc5a5772629fe983a1eb78739f274ae43f3", kill_on_drop: false }` [INFO] [stdout] 3ce7c3c1b323ddd74fa6eea9433aefc5a5772629fe983a1eb78739f274ae43f3 [INFO] checking ishaansehgal99/Bitcoin-Client against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishaansehgal99%2FBitcoin-Client" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ishaansehgal99/Bitcoin-Client on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ishaansehgal99/Bitcoin-Client [INFO] finished tweaking git repo https://github.com/ishaansehgal99/Bitcoin-Client [INFO] tweaked toml for git repo https://github.com/ishaansehgal99/Bitcoin-Client written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ishaansehgal99/Bitcoin-Client 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 328c89f6a834e028ff66a8f436102d946ae61fa4943c64aa632db0b838f2d9e2 [INFO] running `Command { std: "docker" "start" "-a" "328c89f6a834e028ff66a8f436102d946ae61fa4943c64aa632db0b838f2d9e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "328c89f6a834e028ff66a8f436102d946ae61fa4943c64aa632db0b838f2d9e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "328c89f6a834e028ff66a8f436102d946ae61fa4943c64aa632db0b838f2d9e2", kill_on_drop: false }` [INFO] [stdout] 328c89f6a834e028ff66a8f436102d946ae61fa4943c64aa632db0b838f2d9e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9f7bccebce3ee0e9989a877408b283b38779bc1085dd2d3b433f5b4496f3fb4 [INFO] running `Command { std: "docker" "start" "-a" "b9f7bccebce3ee0e9989a877408b283b38779bc1085dd2d3b433f5b4496f3fb4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Checking futures-io v0.3.18 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking fastrand v1.5.0 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Checking futures-sink v0.3.18 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Checking async-lock v2.4.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking simple-mutex v1.1.5 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking ascii v1.0.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking chunked_transfer v1.4.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling ntest_proc_macro_helper v0.7.3 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking async-dup v1.2.2 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Checking queues v1.1.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Checking polling v2.2.0 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crossbeam v0.8.1 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking async-io v1.6.0 [INFO] [stderr] Checking blocking v1.1.0 [INFO] [stderr] Checking async-executor v1.4.1 [INFO] [stderr] Checking async-fs v1.5.0 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking async-net v1.6.1 [INFO] [stderr] Checking async-process v1.3.0 [INFO] [stderr] Checking smol v1.2.5 [INFO] [stderr] Checking stderrlog v0.5.1 [INFO] [stderr] Checking tiny_http v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling ntest_test_cases v0.7.3 [INFO] [stderr] Checking futures-executor v0.3.18 [INFO] [stderr] Checking futures v0.3.18 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/blockchain/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/blockchain/mod.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | while (self.blocks[&cur_block].height > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - while (self.blocks[&cur_block].height > 0) { [INFO] [stdout] 127 + while self.blocks[&cur_block].height > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/types/block.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/types/block.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/types/merkle.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | if (((cur_leaves+1)/2)%2 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (((cur_leaves+1)/2)%2 == 1) { [INFO] [stdout] 96 + if ((cur_leaves+1)/2)%2 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::key_pair` [INFO] [stdout] --> src/types/transaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::key_pair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `KeyPair` [INFO] [stdout] --> src/types/transaction.rs:5:56 [INFO] [stdout] | [INFO] [stdout] 5 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/types/transaction.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::message::Message` [INFO] [stdout] --> src/types/transaction.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::network::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::peer` [INFO] [stdout] --> src/types/transaction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::peer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::server::Handle as ServerHandle` [INFO] [stdout] --> src/types/transaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::network::server::Handle as ServerHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::time` [INFO] [stdout] --> src/types/transaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::time; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/types/transaction_generator.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/types/transaction_generator.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Serialize,Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/types/transaction_generator.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/types/transaction_generator.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use crossbeam::channel::{unbounded, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/types/transaction_generator.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/types/transaction_generator.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/miner/worker.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam::channel::{unbounded, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner/worker.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `H256` [INFO] [stdout] --> src/miner/worker.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::address::Address` [INFO] [stdout] --> src/network/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::address::Address; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/network/worker.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::transaction::{Transaction, SignedTransaction, st_verify}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/main.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/main.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | use std::time::{SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/types/transaction.rs:5:65 [INFO] [stdout] | [INFO] [stdout] 5 | use ring::signature::{self, Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_nonce` [INFO] [stdout] --> src/blockchain/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let rand_nonce: u32 = rng.gen(); // Generate random value for nonce [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_nonce` [INFO] [stdout] --> src/blockchain/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let rand_nonce: u32 = rng.gen(); // Generate random value for nonce [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/types/transaction_generator.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bal` [INFO] [stdout] --> src/types/transaction_generator.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let (nonce, bal) = states_guard[&blockchain_guard.tip()][&public_addr]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/transaction_generator.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut rng = rand::thread_rng(); [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] [stderr] Compiling ntest_timeout v0.7.3 [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/worker.rs:421:17 [INFO] [stdout] | [INFO] [stdout] 421 | _ => unimplemented!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let blockchain = Arc::new(Mutex::new(blockchain)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_addr`, `account_nonce`, and `balance` are never read [INFO] [stdout] --> src/network/worker.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | account_addr: Address, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 29 | account_nonce: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 30 | balance: u64 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/api/mod.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_ApiResponse` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/address.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Address` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/address.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Address` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/block.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Header` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/block.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Header` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/block.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Content` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/block.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Content` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/block.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/block.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/hash.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_H256` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/hash.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_H256` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/transaction.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Transaction` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/transaction.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Transaction` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/transaction.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_SignedTransaction` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/types/transaction.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_SignedTransaction` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/types/transaction_generator.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | std::mem::drop(key); [INFO] [stdout] | ^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&std::sync::Arc>` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/network/message.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Message` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/network/message.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Message` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendToEveryoneButMeAndWhereThisMsgCameFrom` should have a snake case name [INFO] [stdout] --> src/network/server.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn sendToEveryoneButMeAndWhereThisMsgCameFrom(&self, wherethiscamefrom: peer::Handle, msg: message::Message){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `send_to_everyone_but_me_and_where_this_msg_came_from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/worker.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | ... queue.add(new_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 242 | let _ = queue.add(new_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors; 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitcoin` (bin "bitcoin") due to 18 previous errors; 39 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "b9f7bccebce3ee0e9989a877408b283b38779bc1085dd2d3b433f5b4496f3fb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9f7bccebce3ee0e9989a877408b283b38779bc1085dd2d3b433f5b4496f3fb4", kill_on_drop: false }` [INFO] [stdout] b9f7bccebce3ee0e9989a877408b283b38779bc1085dd2d3b433f5b4496f3fb4