[INFO] cloning repository https://github.com/vivien98/Blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vivien98/Blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivien98%2FBlockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivien98%2FBlockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d4b83850951ab21cbba4f77a958c8e9610abce75 [INFO] checking vivien98/Blockchain against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivien98%2FBlockchain" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vivien98/Blockchain on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vivien98/Blockchain [INFO] finished tweaking git repo https://github.com/vivien98/Blockchain [INFO] tweaked toml for git repo https://github.com/vivien98/Blockchain written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/vivien98/Blockchain already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c1c6457e22d22bbd4b900a679db3e161f36a4454a486617b208f7237d882994 [INFO] running `Command { std: "docker" "start" "-a" "2c1c6457e22d22bbd4b900a679db3e161f36a4454a486617b208f7237d882994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c1c6457e22d22bbd4b900a679db3e161f36a4454a486617b208f7237d882994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c1c6457e22d22bbd4b900a679db3e161f36a4454a486617b208f7237d882994", kill_on_drop: false }` [INFO] [stdout] 2c1c6457e22d22bbd4b900a679db3e161f36a4454a486617b208f7237d882994 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b38c57bb030f2ef82211b2330cf142ba64b43be23b1cbb43f60b839367bb137 [INFO] running `Command { std: "docker" "start" "-a" "9b38c57bb030f2ef82211b2330cf142ba64b43be23b1cbb43f60b839367bb137", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] syn v1.0.5 (as host dependency): full [INFO] [stderr] [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking termcolor v0.3.6 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking chunked_transfer v0.3.1 [INFO] [stderr] Checking ascii v0.8.7 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking crossbeam v0.7.2 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling hex-literal-impl v0.2.1 [INFO] [stderr] Checking hex-literal v0.2.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking stderrlog v0.4.1 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Checking bitcoin v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/network/message.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Fixed src/crypto/merkle.rs (6 fixes) [INFO] [stderr] Fixed src/network/worker.rs (2 fixes) [INFO] [stderr] Fixed src/miner.rs (3 fixes) [INFO] [stderr] Fixed src/block.rs (4 fixes) [INFO] [stderr] Fixed src/blockchain.rs (7 fixes) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:22:109 [INFO] [stdout] | [INFO] [stdout] 22 | let sign1: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:23:109 [INFO] [stdout] | [INFO] [stdout] 23 | let sign2: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/crypto/merkle.rs:81:81 [INFO] [stdout] | [INFO] [stdout] 81 | let mut trail: MerkleNode = self.node_array_by_levels[0][index].clone();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `blockMap` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub blockMap : HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `chainLength` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub chainLength : u32 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `chain_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockMap` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | let mut blockMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `genHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let genHash: H256 = Hashable::hash(&gen_block); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `gen_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let blockHash: H256 = Hashable::hash(block); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thisParent` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut thisParent: H256 = (*block).header.parent; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `this_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashVec` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut hashVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thisParent` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut thisParent: H256 = self.blockMap[&(self.tip)].header.parent; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `this_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/miner.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | let mut blockHashVec: Vec = Vec::new();//self.blockchain.lock().unwrap().all_blocks_in_longest_chain(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut orphanBlocks = HashMap::new();// has parent Hash -> child Block mapping [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | Message::NewBlockHashes(blockHashVec) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `wantedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | let mut wantedBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `wanted_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | for blockHash in blockHashVec.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | Message::GetBlock(blockHashVec) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockVecToSend` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let mut blockVecToSend: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `block_vec_to_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | for blockHash in blockHashVec.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | Message::Block(blockVec) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `insertedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | let mut insertedBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `inserted_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:104:29 [INFO] [stdout] | [INFO] [stdout] 104 | let mut getBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let blockHash: H256 = (*block).hash(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convertSigToH256` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn convertSigToH256(signature: &Signature) -> [H256;2] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `convert_sig_to_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convertH256ToSigRef` should have a snake case name [INFO] [stdout] --> src/transaction.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn convertH256ToSigRef(signature: [H256;2]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `convert_h256_to_sig_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/block.rs (3 fixes) [INFO] [stderr] Fixed src/transaction.rs (1 fix) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:22:109 [INFO] [stdout] | [INFO] [stdout] 22 | let sign1: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:23:109 [INFO] [stdout] | [INFO] [stdout] 23 | let sign2: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/crypto/merkle.rs:81:81 [INFO] [stdout] | [INFO] [stdout] 81 | let mut trail: MerkleNode = self.node_array_by_levels[0][index].clone();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `blockMap` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub blockMap : HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `chainLength` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub chainLength : u32 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `chain_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockMap` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | let mut blockMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `genHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let genHash: H256 = Hashable::hash(&gen_block); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `gen_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let blockHash: H256 = Hashable::hash(block); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thisParent` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut thisParent: H256 = (*block).header.parent; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `this_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashVec` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut hashVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thisParent` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut thisParent: H256 = self.blockMap[&(self.tip)].header.parent; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `this_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/miner.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | let mut blockHashVec: Vec = Vec::new();//self.blockchain.lock().unwrap().all_blocks_in_longest_chain(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut orphanBlocks = HashMap::new();// has parent Hash -> child Block mapping [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | Message::NewBlockHashes(blockHashVec) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `wantedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | let mut wantedBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `wanted_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | for blockHash in blockHashVec.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | Message::GetBlock(blockHashVec) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockVecToSend` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let mut blockVecToSend: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `block_vec_to_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | for blockHash in blockHashVec.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | Message::Block(blockVec) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `insertedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | let mut insertedBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `inserted_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:104:29 [INFO] [stdout] | [INFO] [stdout] 104 | let mut getBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let blockHash: H256 = (*block).hash(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convertSigToH256` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn convertSigToH256(signature: &Signature) -> [H256;2] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `convert_sig_to_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convertH256ToSigRef` should have a snake case name [INFO] [stdout] --> src/transaction.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn convertH256ToSigRef(signature: [H256;2]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `convert_h256_to_sig_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 32.03s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling hex-literal-impl v0.2.1 [INFO] [stderr] Checking hex-literal v0.2.1 [INFO] [stderr] Checking serde v1.0.101 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking bincode v1.2.0 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Checking stderrlog v0.4.1 [INFO] [stderr] Checking bitcoin v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:22:109 [INFO] [stdout] | [INFO] [stdout] 22 | let sign1: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:23:109 [INFO] [stdout] | [INFO] [stdout] 23 | let sign2: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/crypto/merkle.rs:81:81 [INFO] [stdout] | [INFO] [stdout] 81 | let mut trail: MerkleNode = self.node_array_by_levels[0][index].clone();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/block.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | let timestamp: u128 = SystemTime::now().duration_since(UNIX_EPOCH).expect("dafuq").as_millis(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 45 | use crate::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] 45 | use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UNIX_EPOCH` in this scope [INFO] [stdout] --> src/block.rs:59:64 [INFO] [stdout] | [INFO] [stdout] 59 | let timestamp: u128 = SystemTime::now().duration_since(UNIX_EPOCH).expect("dafuq").as_millis(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 45 | use crate::time::UNIX_EPOCH; [INFO] [stdout] | [INFO] [stdout] 45 | use std::time::UNIX_EPOCH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MerkleTree` in this scope [INFO] [stdout] --> src/block.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let merkle_tree : MerkleTree = MerkleTree::new(&data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 45 | use crate::crypto::merkle::MerkleTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MerkleTree` [INFO] [stdout] --> src/block.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | let merkle_tree : MerkleTree = MerkleTree::new(&data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 45 | use crate::crypto::merkle::MerkleTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:22:109 [INFO] [stdout] | [INFO] [stdout] 22 | let sign1: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockchain.rs:23:109 [INFO] [stdout] | [INFO] [stdout] 23 | let sign2: H256 = (hex!("0000000000000000000000000000000000000000000000000000000000000000")).into();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/crypto/merkle.rs:81:81 [INFO] [stdout] | [INFO] [stdout] 81 | let mut trail: MerkleNode = self.node_array_by_levels[0][index].clone();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen` found for struct `rand::prelude::ThreadRng` in the current scope [INFO] [stdout] --> src/block.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | let nonce: u32 = rng.gen(); [INFO] [stdout] | ^^^ method not found in `rand::prelude::ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn gen(&mut self) -> T where Standard: Distribution { [INFO] [stdout] | --- the method is available for `rand::prelude::ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use rand::Rng;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen` found for struct `rand::prelude::ThreadRng` in the current scope [INFO] [stdout] --> src/block.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | let sig1: [u8;32] = rng.gen(); [INFO] [stdout] | ^^^ method not found in `rand::prelude::ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn gen(&mut self) -> T where Standard: Distribution { [INFO] [stdout] | --- the method is available for `rand::prelude::ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use rand::Rng;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen` found for struct `rand::prelude::ThreadRng` in the current scope [INFO] [stdout] --> src/block.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | let sig2: [u8;32] = rng.gen(); [INFO] [stdout] | ^^^ method not found in `rand::prelude::ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn gen(&mut self) -> T where Standard: Distribution { [INFO] [stdout] | --- the method is available for `rand::prelude::ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use rand::Rng;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_range` found for struct `rand::prelude::ThreadRng` in the current scope [INFO] [stdout] --> src/transaction.rs:80:92 [INFO] [stdout] | [INFO] [stdout] 80 | Transaction{input: String::from("Alice"), output: String::from("Bob"), amount: rng.gen_range(0.0,10.0)} [INFO] [stdout] | ^^^^^^^^^ method not found in `rand::prelude::ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | fn gen_range(&mut self, low: B1, high: B2) -> T [INFO] [stdout] | --------- the method is available for `rand::prelude::ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use rand::Rng;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] warning: structure field `blockMap` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub blockMap : HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `chainLength` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub chainLength : u32 [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `chain_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockMap` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | let mut blockMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `genHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let genHash: H256 = Hashable::hash(&gen_block); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `gen_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let blockHash: H256 = Hashable::hash(block); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thisParent` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut thisParent: H256 = (*block).header.parent; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `this_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashVec` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut hashVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thisParent` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut thisParent: H256 = self.blockMap[&(self.tip)].header.parent; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `this_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/miner.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | let mut blockHashVec: Vec = Vec::new();//self.blockchain.lock().unwrap().all_blocks_in_longest_chain(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut orphanBlocks = HashMap::new();// has parent Hash -> child Block mapping [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | Message::NewBlockHashes(blockHashVec) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `wantedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | let mut wantedBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `wanted_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | for blockHash in blockHashVec.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHashVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | Message::GetBlock(blockHashVec) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `block_hash_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockVecToSend` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let mut blockVecToSend: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `block_vec_to_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | for blockHash in blockHashVec.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockVec` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | Message::Block(blockVec) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `block_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `insertedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | let mut insertedBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `inserted_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:104:29 [INFO] [stdout] | [INFO] [stdout] 104 | let mut getBlocks: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockHash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let blockHash: H256 = (*block).hash(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convertSigToH256` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn convertSigToH256(signature: &Signature) -> [H256;2] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `convert_sig_to_h256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convertH256ToSigRef` should have a snake case name [INFO] [stdout] --> src/transaction.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn convertH256ToSigRef(signature: [H256;2]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `convert_h256_to_sig_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitcoin` due to 9 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "9b38c57bb030f2ef82211b2330cf142ba64b43be23b1cbb43f60b839367bb137", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b38c57bb030f2ef82211b2330cf142ba64b43be23b1cbb43f60b839367bb137", kill_on_drop: false }` [INFO] [stdout] 9b38c57bb030f2ef82211b2330cf142ba64b43be23b1cbb43f60b839367bb137