[INFO] cloning repository https://github.com/btfinch/COS-ECE470-fa2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/btfinch/COS-ECE470-fa2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbtfinch%2FCOS-ECE470-fa2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbtfinch%2FCOS-ECE470-fa2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f9b0f39ed5baaa7e9ee8b6c4c71893a450f72c78 [INFO] checking btfinch/COS-ECE470-fa2022 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbtfinch%2FCOS-ECE470-fa2022" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/btfinch/COS-ECE470-fa2022 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/btfinch/COS-ECE470-fa2022 [INFO] finished tweaking git repo https://github.com/btfinch/COS-ECE470-fa2022 [INFO] tweaked toml for git repo https://github.com/btfinch/COS-ECE470-fa2022 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/btfinch/COS-ECE470-fa2022 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] Downloading crates ... [INFO] [stderr] Downloaded tiny_http v0.9.0 [INFO] [stderr] Downloaded ntest_test_cases v0.7.3 [INFO] [stderr] Downloaded ntest_timeout v0.7.3 [INFO] [stderr] Downloaded ntest_proc_macro_helper v0.7.3 [INFO] [stderr] Downloaded ntest v0.7.3 [INFO] [stderr] Downloaded stderrlog v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20ad62ffc3bff7134ade79be101f0182ee5fb099f14eb1129331fd87337f267e [INFO] running `Command { std: "docker" "start" "-a" "20ad62ffc3bff7134ade79be101f0182ee5fb099f14eb1129331fd87337f267e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20ad62ffc3bff7134ade79be101f0182ee5fb099f14eb1129331fd87337f267e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20ad62ffc3bff7134ade79be101f0182ee5fb099f14eb1129331fd87337f267e", kill_on_drop: false }` [INFO] [stdout] 20ad62ffc3bff7134ade79be101f0182ee5fb099f14eb1129331fd87337f267e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50074818e54a78f79ee251f243465280e6bd75dccf0dd575499c8114e45f4358 [INFO] running `Command { std: "docker" "start" "-a" "50074818e54a78f79ee251f243465280e6bd75dccf0dd575499c8114e45f4358", 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 cache-padded v1.1.1 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking fastrand v1.5.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking concurrent-queue v1.2.2 [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] Compiling futures-task v0.3.18 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Checking futures-sink v0.3.18 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling futures-util v0.3.18 [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 bitflags v1.2.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling cc v1.0.73 [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 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 ryu v1.0.2 [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 ansi_term v0.11.0 [INFO] [stderr] Compiling ntest_proc_macro_helper v0.7.3 [INFO] [stderr] Checking chunked_transfer v1.4.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking ascii v1.0.0 [INFO] [stderr] Checking async-dup v1.2.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking polling v2.2.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking term_size v0.3.1 [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] Compiling ring v0.16.20 [INFO] [stderr] Checking crossbeam v0.8.1 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand v0.8.4 [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 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 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: unnecessary parentheses around index expression [INFO] [stdout] --> src/api/mod.rs:184:99 [INFO] [stdout] | [INFO] [stdout] 184 | ... let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[(block as usize)]).unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[(block as usize)]).unwrap(); [INFO] [stdout] 184 + let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[block as usize]).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::miner::new` [INFO] [stdout] --> src/blockchain/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::miner::new; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate_random_block_1`, `self` [INFO] [stdout] --> src/blockchain/mod.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::block::{Block, generate_random_block_1, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::rand::generate` [INFO] [stdout] --> src/blockchain/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ring::rand::generate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `self` [INFO] [stdout] --> src/types/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/types/transaction.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn generate_random_transaction_1() -> (SignedTransaction) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - pub fn generate_random_transaction_1() -> (SignedTransaction) { [INFO] [stdout] 98 + pub fn generate_random_transaction_1() -> SignedTransaction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::address` [INFO] [stdout] --> src/types/transaction.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | use crate::types::address; [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: `crate::network::worker` [INFO] [stdout] --> src/miner/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/miner/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block` [INFO] [stdout] --> src/miner/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::types::block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/miner/mod.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | if ((new_block.hash() <= c_dify) & !btclone.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if ((new_block.hash() <= c_dify) & !btclone.is_empty()){ [INFO] [stdout] 245 + if (new_block.hash() <= c_dify) & !btclone.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/network/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/txgen/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/txgen/worker.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block::Block` [INFO] [stdout] --> src/txgen/worker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Blockchain` [INFO] [stdout] --> src/txgen/worker.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::blockchain::{Mempool, Blockchain}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::worker` [INFO] [stdout] --> src/txgen/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smol::net::unix::SocketAddr` [INFO] [stdout] --> src/txgen/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use smol::net::unix::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/txgen/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block` [INFO] [stdout] --> src/txgen/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block::Block` [INFO] [stdout] --> src/txgen/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_random_transaction_1` [INFO] [stdout] --> src/txgen/mod.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::types::transaction::{generate_random_transaction_1, sign}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/txgen/mod.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_block` [INFO] [stdout] --> src/txgen/mod.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::types::block::{generate_block}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/txgen/mod.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 25 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/txgen/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | use rand::{thread_rng,Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/types/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut new_map = HashMap::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: unused variable: `address_vec` [INFO] [stdout] --> src/blockchain/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut address_vec: Vec
= Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `produced_public_key` [INFO] [stdout] --> src/blockchain/mod.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let produced_public_key = public_key_bytes.clone().as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_produced_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut address_vec: Vec
= Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/blockchain/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | for i in 0..(self.tip_level+1){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/address.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut big_hash_slice: &[u8] = big_hash.as_ref(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lev` [INFO] [stdout] --> src/types/block.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let lev: u64 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/types/merkle.rs:113:72 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/merkle.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ind = index; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pub2` [INFO] [stdout] --> src/types/transaction.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | let (address2, pub2, keys2) = generate_random_address(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pub2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keys2` [INFO] [stdout] --> src/types/transaction.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | let (address2, pub2, keys2) = generate_random_address(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_keys2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cont` is never read [INFO] [stdout] --> src/miner/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut cont = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | let mut block_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | let mut temp_parent: H256; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:271:29 [INFO] [stdout] | [INFO] [stdout] 271 | let mut new_nonce: u32; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | let mut block_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/worker.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | _ => unimplemented!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/network/worker.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let cc = contained.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/network/worker.rs:262:29 [INFO] [stdout] | [INFO] [stdout] 262 | let cc = contained.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send_balance` [INFO] [stdout] --> src/network/worker.rs:302:65 [INFO] [stdout] | [INFO] [stdout] 302 | ... let (tip_account_nonce, send_balance) = *tip_state.get(&sender_clone).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | ... let mut block_state: HashMap = b_chain.state_map.get(&parenty.clone()).unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:295:41 [INFO] [stdout] | [INFO] [stdout] 295 | ... let mut tip_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `produced_public_key` [INFO] [stdout] --> src/txgen/mod.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let produced_public_key = public_key_bytes.clone().as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_produced_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_num` [INFO] [stdout] --> src/txgen/mod.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut node_num: u8; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let mut tip_hash: H256; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let mut sender_nonce: u32; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | let mut sender_balance: u32; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashArray` should have a snake case name [INFO] [stdout] --> src/types/address.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut hashArray: [u8; 20] = [0; 20]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling ntest_timeout v0.7.3 [INFO] [stderr] Checking ntest v0.7.3 [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/api/mod.rs:184:99 [INFO] [stdout] | [INFO] [stdout] 184 | ... let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[(block as usize)]).unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[(block as usize)]).unwrap(); [INFO] [stdout] 184 + let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[block as usize]).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::miner::new` [INFO] [stdout] --> src/blockchain/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::miner::new; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate_random_block_1`, `self` [INFO] [stdout] --> src/blockchain/mod.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::block::{Block, generate_random_block_1, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::rand::generate` [INFO] [stdout] --> src/blockchain/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ring::rand::generate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `self` [INFO] [stdout] --> src/types/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/types/transaction.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn generate_random_transaction_1() -> (SignedTransaction) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - pub fn generate_random_transaction_1() -> (SignedTransaction) { [INFO] [stdout] 98 + pub fn generate_random_transaction_1() -> SignedTransaction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::address` [INFO] [stdout] --> src/types/transaction.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | use crate::types::address; [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: `crate::network::worker` [INFO] [stdout] --> src/miner/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/miner/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block` [INFO] [stdout] --> src/miner/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::types::block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/miner/mod.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | if ((new_block.hash() <= c_dify) & !btclone.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if ((new_block.hash() <= c_dify) & !btclone.is_empty()){ [INFO] [stdout] 245 + if (new_block.hash() <= c_dify) & !btclone.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/network/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/txgen/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/txgen/worker.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block::Block` [INFO] [stdout] --> src/txgen/worker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Blockchain` [INFO] [stdout] --> src/txgen/worker.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::blockchain::{Mempool, Blockchain}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::worker` [INFO] [stdout] --> src/txgen/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smol::net::unix::SocketAddr` [INFO] [stdout] --> src/txgen/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use smol::net::unix::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/txgen/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block` [INFO] [stdout] --> src/txgen/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block::Block` [INFO] [stdout] --> src/txgen/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_random_transaction_1` [INFO] [stdout] --> src/txgen/mod.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::types::transaction::{generate_random_transaction_1, sign}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/txgen/mod.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_block` [INFO] [stdout] --> src/txgen/mod.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::types::block::{generate_block}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/txgen/mod.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 25 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/txgen/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | use rand::{thread_rng,Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/types/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut new_map = HashMap::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: unused variable: `address_vec` [INFO] [stdout] --> src/blockchain/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut address_vec: Vec
= Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `produced_public_key` [INFO] [stdout] --> src/blockchain/mod.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let produced_public_key = public_key_bytes.clone().as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_produced_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut address_vec: Vec
= Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/blockchain/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | for i in 0..(self.tip_level+1){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/address.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut big_hash_slice: &[u8] = big_hash.as_ref(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lev` [INFO] [stdout] --> src/types/block.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let lev: u64 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lev` [INFO] [stdout] --> src/types/block.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let lev: u64 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/types/merkle.rs:113:72 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/merkle.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ind = index; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pub2` [INFO] [stdout] --> src/types/transaction.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | let (address2, pub2, keys2) = generate_random_address(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pub2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keys2` [INFO] [stdout] --> src/types/transaction.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | let (address2, pub2, keys2) = generate_random_address(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_keys2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cont` is never read [INFO] [stdout] --> src/miner/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut cont = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | let mut block_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | let mut temp_parent: H256; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:271:29 [INFO] [stdout] | [INFO] [stdout] 271 | let mut new_nonce: u32; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | let mut block_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/worker.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | _ => unimplemented!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/network/worker.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let cc = contained.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/network/worker.rs:262:29 [INFO] [stdout] | [INFO] [stdout] 262 | let cc = contained.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send_balance` [INFO] [stdout] --> src/network/worker.rs:302:65 [INFO] [stdout] | [INFO] [stdout] 302 | ... let (tip_account_nonce, send_balance) = *tip_state.get(&sender_clone).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | ... let mut block_state: HashMap = b_chain.state_map.get(&parenty.clone()).unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:295:41 [INFO] [stdout] | [INFO] [stdout] 295 | ... let mut tip_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `longest_chain_hashes` is never read [INFO] [stdout] --> src/network/worker.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let mut longest_chain_hashes: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `produced_public_key` [INFO] [stdout] --> src/txgen/mod.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let produced_public_key = public_key_bytes.clone().as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_produced_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_num` [INFO] [stdout] --> src/txgen/mod.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut node_num: u8; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let mut tip_hash: H256; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let mut sender_nonce: u32; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | let mut sender_balance: u32; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashArray` should have a snake case name [INFO] [stdout] --> src/types/address.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut hashArray: [u8; 20] = [0; 20]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.04s [INFO] running `Command { std: "docker" "inspect" "50074818e54a78f79ee251f243465280e6bd75dccf0dd575499c8114e45f4358", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50074818e54a78f79ee251f243465280e6bd75dccf0dd575499c8114e45f4358", kill_on_drop: false }` [INFO] [stdout] 50074818e54a78f79ee251f243465280e6bd75dccf0dd575499c8114e45f4358 [INFO] checking btfinch/COS-ECE470-fa2022 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%2Fbtfinch%2FCOS-ECE470-fa2022" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/btfinch/COS-ECE470-fa2022 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/btfinch/COS-ECE470-fa2022 [INFO] finished tweaking git repo https://github.com/btfinch/COS-ECE470-fa2022 [INFO] tweaked toml for git repo https://github.com/btfinch/COS-ECE470-fa2022 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/btfinch/COS-ECE470-fa2022 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 429ce7580163a524d5965262026a1a6337599bd83a82e6d5134230a339bf2f26 [INFO] running `Command { std: "docker" "start" "-a" "429ce7580163a524d5965262026a1a6337599bd83a82e6d5134230a339bf2f26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "429ce7580163a524d5965262026a1a6337599bd83a82e6d5134230a339bf2f26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "429ce7580163a524d5965262026a1a6337599bd83a82e6d5134230a339bf2f26", kill_on_drop: false }` [INFO] [stdout] 429ce7580163a524d5965262026a1a6337599bd83a82e6d5134230a339bf2f26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 6407eacbda1167a2f30ac65aa5d39d5215439ba30673da561dbc00d12e7783e7 [INFO] running `Command { std: "docker" "start" "-a" "6407eacbda1167a2f30ac65aa5d39d5215439ba30673da561dbc00d12e7783e7", 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 event-listener v2.5.1 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking fastrand v1.5.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Checking futures-sink v0.3.18 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Checking atomic-waker v1.0.0 [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 signal-hook v0.3.10 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Checking async-lock v2.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking ryu v1.0.2 [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 spin v0.5.2 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking chunked_transfer v1.4.0 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Compiling ntest_proc_macro_helper v0.7.3 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking ascii v1.0.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking async-dup v1.2.2 [INFO] [stderr] Checking hex v0.4.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 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] Compiling ring v0.16.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand v0.8.4 [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 async-fs v1.5.0 [INFO] [stderr] Checking async-net v1.6.1 [INFO] [stderr] Checking async-process v1.3.0 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking stderrlog v0.5.1 [INFO] [stderr] Checking smol v1.2.5 [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: unnecessary parentheses around index expression [INFO] [stdout] --> src/api/mod.rs:184:99 [INFO] [stdout] | [INFO] [stdout] 184 | ... let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[(block as usize)]).unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[(block as usize)]).unwrap(); [INFO] [stdout] 184 + let relevant_state = &*blockchain.state_map.get(&longest_chain_vector[block as usize]).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::miner::new` [INFO] [stdout] --> src/blockchain/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::miner::new; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate_random_block_1`, `self` [INFO] [stdout] --> src/blockchain/mod.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::block::{Block, generate_random_block_1, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::rand::generate` [INFO] [stdout] --> src/blockchain/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ring::rand::generate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `self` [INFO] [stdout] --> src/types/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/types/transaction.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn generate_random_transaction_1() -> (SignedTransaction) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - pub fn generate_random_transaction_1() -> (SignedTransaction) { [INFO] [stdout] 98 + pub fn generate_random_transaction_1() -> SignedTransaction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::address` [INFO] [stdout] --> src/types/transaction.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | use crate::types::address; [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: `crate::network::worker` [INFO] [stdout] --> src/miner/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/miner/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block` [INFO] [stdout] --> src/miner/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::types::block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/miner/mod.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | if ((new_block.hash() <= c_dify) & !btclone.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if ((new_block.hash() <= c_dify) & !btclone.is_empty()){ [INFO] [stdout] 245 + if (new_block.hash() <= c_dify) & !btclone.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/network/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `TryRecvError`, `unbounded` [INFO] [stdout] --> src/txgen/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/txgen/worker.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block::Block` [INFO] [stdout] --> src/txgen/worker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Blockchain` [INFO] [stdout] --> src/txgen/worker.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::blockchain::{Mempool, Blockchain}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::worker` [INFO] [stdout] --> src/txgen/worker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::network::worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smol::net::unix::SocketAddr` [INFO] [stdout] --> src/txgen/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use smol::net::unix::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/txgen/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block` [INFO] [stdout] --> src/txgen/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::block::Block` [INFO] [stdout] --> src/txgen/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_random_transaction_1` [INFO] [stdout] --> src/txgen/mod.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::types::transaction::{generate_random_transaction_1, sign}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/txgen/mod.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::types::hash::{H256, Hashable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_block` [INFO] [stdout] --> src/txgen/mod.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::types::block::{generate_block}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `Signature`, `VerificationAlgorithm`, `self` [INFO] [stdout] --> src/txgen/mod.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 25 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/txgen/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | use rand::{thread_rng,Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/types/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut new_map = HashMap::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: unused variable: `address_vec` [INFO] [stdout] --> src/blockchain/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut address_vec: Vec
= Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `produced_public_key` [INFO] [stdout] --> src/blockchain/mod.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let produced_public_key = public_key_bytes.clone().as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_produced_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut address_vec: Vec
= Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/blockchain/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | for i in 0..(self.tip_level+1){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/address.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut big_hash_slice: &[u8] = big_hash.as_ref(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lev` [INFO] [stdout] --> src/types/block.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let lev: u64 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/types/merkle.rs:113:72 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/merkle.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ind = index; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pub2` [INFO] [stdout] --> src/types/transaction.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | let (address2, pub2, keys2) = generate_random_address(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pub2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keys2` [INFO] [stdout] --> src/types/transaction.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | let (address2, pub2, keys2) = generate_random_address(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_keys2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cont` is never read [INFO] [stdout] --> src/miner/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut cont = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | let mut block_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | let mut temp_parent: H256; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:271:29 [INFO] [stdout] | [INFO] [stdout] 271 | let mut new_nonce: u32; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner/mod.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | let mut block_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/worker.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | _ => unimplemented!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/network/worker.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let cc = contained.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/network/worker.rs:262:29 [INFO] [stdout] | [INFO] [stdout] 262 | let cc = contained.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send_balance` [INFO] [stdout] --> src/network/worker.rs:302:65 [INFO] [stdout] | [INFO] [stdout] 302 | ... let (tip_account_nonce, send_balance) = *tip_state.get(&sender_clone).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | ... let mut block_state: HashMap = b_chain.state_map.get(&parenty.clone()).unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:295:41 [INFO] [stdout] | [INFO] [stdout] 295 | ... let mut tip_state: HashMap; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `produced_public_key` [INFO] [stdout] --> src/txgen/mod.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let produced_public_key = public_key_bytes.clone().as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_produced_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_num` [INFO] [stdout] --> src/txgen/mod.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut node_num: u8; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let mut tip_hash: H256; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let mut sender_nonce: u32; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/txgen/mod.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | let mut sender_balance: u32; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[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:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | #[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:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | #[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] warning: variable `hashArray` should have a snake case name [INFO] [stdout] --> src/types/address.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut hashArray: [u8; 20] = [0; 20]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` 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/types/block.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_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: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_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/block.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Clone, Serialize, Deserialize)] [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:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Clone, Serialize, Deserialize)] [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:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Clone, Serialize, Deserialize)] [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:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Clone, Serialize, Deserialize)] [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/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] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hash_H256` should have a snake case name [INFO] [stdout] --> src/types/merkle.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let hash_H256 = H256::from(both_hash); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hash_h256` [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:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[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:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | #[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:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[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:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | #[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] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/network/message.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[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:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | #[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] error: aborting due to 17 previous errors; 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitcoin` (bin "bitcoin") due to 18 previous errors; 60 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "6407eacbda1167a2f30ac65aa5d39d5215439ba30673da561dbc00d12e7783e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6407eacbda1167a2f30ac65aa5d39d5215439ba30673da561dbc00d12e7783e7", kill_on_drop: false }` [INFO] [stdout] 6407eacbda1167a2f30ac65aa5d39d5215439ba30673da561dbc00d12e7783e7