[INFO] cloning repository https://github.com/GomuDevelopers/blocksta
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GomuDevelopers/blocksta" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGomuDevelopers%2Fblocksta", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGomuDevelopers%2Fblocksta'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f07e9d0f967b64367cb010f8b2945a3f41929b89
[INFO] checking GomuDevelopers/blocksta against try#2b39fe756f52bc2825bf5b2bfc385cab922dae10 for pr-143011
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGomuDevelopers%2Fblocksta" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/GomuDevelopers/blocksta
[INFO] finished tweaking git repo https://github.com/GomuDevelopers/blocksta
[INFO] tweaked toml for git repo https://github.com/GomuDevelopers/blocksta written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/GomuDevelopers/blocksta on toolchain 2b39fe756f52bc2825bf5b2bfc385cab922dae10
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/GomuDevelopers/blocksta 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" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3a1975534fa4bf14da9ccd9443b785f4cf32892d39f600075ddc75c035e26841
[INFO] running `Command { std: "docker" "start" "-a" "3a1975534fa4bf14da9ccd9443b785f4cf32892d39f600075ddc75c035e26841", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3a1975534fa4bf14da9ccd9443b785f4cf32892d39f600075ddc75c035e26841", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3a1975534fa4bf14da9ccd9443b785f4cf32892d39f600075ddc75c035e26841", kill_on_drop: false }`
[INFO] [stdout] 3a1975534fa4bf14da9ccd9443b785f4cf32892d39f600075ddc75c035e26841
[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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b262586cf3f171960c1416a0fb47edadf0ce7b6ab955acecf7f77032dc969932
[INFO] running `Command { std: "docker" "start" "-a" "b262586cf3f171960c1416a0fb47edadf0ce7b6ab955acecf7f77032dc969932", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.93
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking fxhash v0.2.1
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]    Compiling syn v2.0.96
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking log v0.4.27
[INFO] [stderr]     Checking untrusted v0.9.0
[INFO] [stderr]     Checking rustc-serialize v0.3.25
[INFO] [stderr]     Checking data-encoding v2.9.0
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]    Compiling serde_derive v1.0.217
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking custom-blockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected expression, found `}`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |         }
[INFO] [stdout]    |         ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::usize`
[INFO] [stdout]  --> src/blockchain/proofofwork.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::usize;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::wallet::Wallet`
[INFO] [stdout]  --> src/blockchain/transaction.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::wallet::Wallet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `}`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |         }
[INFO] [stdout]    |         ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: `()` is not an iterator
[INFO] [stdout]   --> src/blockchain/block.rs:57:28
[INFO] [stdout]    |
[INFO] [stdout] 57 |             txhashs.extend(transaction.get_id());
[INFO] [stdout]    |                     ------ ^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Iterator` is not implemented for `()`
[INFO] [stdout]    = note: required for `()` to implement `IntoIterator`
[INFO] [stdout] note: required by a bound in `extend`
[INFO] [stdout]   --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/core/src/iter/traits/collect.rs:413:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::usize`
[INFO] [stdout]  --> src/blockchain/proofofwork.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::usize;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/block.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 54 |       pub fn hash_transaction(&self) -> Vec<u8> {
[INFO] [stdout]    |                                         ------- expected `Vec<u8>` because of return type
[INFO] [stdout] 55 |           let mut txhashs = vec![];
[INFO] [stdout] 56 | /         for transaction in self.transactions {
[INFO] [stdout] 57 | |             txhashs.extend(transaction.get_id());
[INFO] [stdout] 58 | |         }
[INFO] [stdout]    | |_________^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 58 ~         }
[INFO] [stdout] 59 +         /* `Vec<u8>` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:25:32
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub fn new_blockchain() -> Blockchain {
[INFO] [stdout]    |            --------------      ^^^^^^^^^^ expected `Blockchain`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:40:35
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn get_tip_hash(&self) -> String {}
[INFO] [stdout]    |            ------------           ^^^^^^ expected `String`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:42:62
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn mine_block(&self, transactons: &[Transaction]) -> Block {}
[INFO] [stdout]    |            ----------                                        ^^^^^ expected `Block`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:44:32
[INFO] [stdout]    |
[INFO] [stdout] 44 |     pub fn find_utxo(&self) -> HashMap<String, Vec<TXOutput>> {}
[INFO] [stdout]    |            ---------           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HashMap<String, Vec<TXOutput>>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HashMap<std::string::String, Vec<TXOutput>>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:45:52
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn find_transaction(&self, txid: &[u8]) -> Option<Transaction> {}
[INFO] [stdout]    |            ----------------                        ^^^^^^^^^^^^^^^^^^^ expected `Option<Transaction>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `std::option::Option<Transaction>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:47:38
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get_best_height(&self) -> usize {}
[INFO] [stdout]    |            ---------------           ^^^^^ expected `usize`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:48:51
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn get_block(&self, block_hash: &[u8]) -> Option<Block> {}
[INFO] [stdout]    |            ---------                              ^^^^^^^^^^^^^ expected `Option<Block>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `std::option::Option<Block>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:49:39
[INFO] [stdout]    |
[INFO] [stdout] 49 |     pub fn get_block_hashes(&self) -> Vec<Vec<u8>> {}
[INFO] [stdout]    |            ----------------           ^^^^^^^^^^^^ expected `Vec<Vec<u8>>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<Vec<u8>>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:57:41
[INFO] [stdout]    |
[INFO] [stdout] 57 |     fn new(tip_hash: String, db: Db) -> BlockchainIterator {}
[INFO] [stdout]    |        ---                              ^^^^^^^^^^^^^^^^^^ expected `BlockchainIterator`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:58:31
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn next(&mut self) -> Option<Block> {}
[INFO] [stdout]    |            ----               ^^^^^^^^^^^^^ expected `Option<Block>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `std::option::Option<Block>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::wallet::Wallet`
[INFO] [stdout]  --> src/blockchain/transaction.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::wallet::Wallet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/transaction.rs:48:52
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn uses_key(&self, pub_key_hash: &[u8]) -> bool {
[INFO] [stdout]    |            --------                                ^^^^ expected `bool`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/utile.rs:27:43
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut buf: Vec<u8> = repeat(0).take(ripemd160.output_bytes()).collection();
[INFO] [stdout]    |                                      ---- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `usize`
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/std/src/io/mod.rs:1239:8
[INFO] [stdout] help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut buf: Vec<u8> = repeat(0).take(ripemd160.output_bytes().try_into().unwrap()).collection();
[INFO] [stdout]    |                                                                   ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `collection` found for struct `std::io::Take` in the current scope
[INFO] [stdout]   --> src/blockchain/utile.rs:27:69
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut buf: Vec<u8> = repeat(0).take(ripemd160.output_bytes()).collection();
[INFO] [stdout]    |                                                                     ^^^^^^^^^^ method not found in `std::io::Take<std::io::Repeat>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_tree`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:38:30
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn update_block_tree(block_tree: &Tree, block: &Block) {}
[INFO] [stdout]    |                              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_tree`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:38:49
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn update_block_tree(block_tree: &Tree, block: &Block) {}
[INFO] [stdout]    |                                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_tip_hash`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:41:32
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn set_tip_hash(&self, new_tip_hash: &str) {}
[INFO] [stdout]    |                                ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_tip_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:46:29
[INFO] [stdout]    |
[INFO] [stdout] 46 |     pub fn add_block(&self, block: &Block) {}
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: `()` is not an iterator
[INFO] [stdout]   --> src/blockchain/block.rs:57:28
[INFO] [stdout]    |
[INFO] [stdout] 57 |             txhashs.extend(transaction.get_id());
[INFO] [stdout]    |                     ------ ^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Iterator` is not implemented for `()`
[INFO] [stdout]    = note: required for `()` to implement `IntoIterator`
[INFO] [stdout] note: required by a bound in `extend`
[INFO] [stdout]   --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/core/src/iter/traits/collect.rs:413:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/block.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 54 |       pub fn hash_transaction(&self) -> Vec<u8> {
[INFO] [stdout]    |                                         ------- expected `Vec<u8>` because of return type
[INFO] [stdout] 55 |           let mut txhashs = vec![];
[INFO] [stdout] 56 | /         for transaction in self.transactions {
[INFO] [stdout] 57 | |             txhashs.extend(transaction.get_id());
[INFO] [stdout] 58 | |         }
[INFO] [stdout]    | |_________^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 58 ~         }
[INFO] [stdout] 59 +         /* `Vec<u8>` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:25:32
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub fn new_blockchain() -> Blockchain {
[INFO] [stdout]    |            --------------      ^^^^^^^^^^ expected `Blockchain`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:40:35
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn get_tip_hash(&self) -> String {}
[INFO] [stdout]    |            ------------           ^^^^^^ expected `String`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:42:62
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn mine_block(&self, transactons: &[Transaction]) -> Block {}
[INFO] [stdout]    |            ----------                                        ^^^^^ expected `Block`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:44:32
[INFO] [stdout]    |
[INFO] [stdout] 44 |     pub fn find_utxo(&self) -> HashMap<String, Vec<TXOutput>> {}
[INFO] [stdout]    |            ---------           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HashMap<String, Vec<TXOutput>>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HashMap<std::string::String, Vec<TXOutput>>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:45:52
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn find_transaction(&self, txid: &[u8]) -> Option<Transaction> {}
[INFO] [stdout]    |            ----------------                        ^^^^^^^^^^^^^^^^^^^ expected `Option<Transaction>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `std::option::Option<Transaction>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:47:38
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn get_best_height(&self) -> usize {}
[INFO] [stdout]    |            ---------------           ^^^^^ expected `usize`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:48:51
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn get_block(&self, block_hash: &[u8]) -> Option<Block> {}
[INFO] [stdout]    |            ---------                              ^^^^^^^^^^^^^ expected `Option<Block>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `std::option::Option<Block>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:49:39
[INFO] [stdout]    |
[INFO] [stdout] 49 |     pub fn get_block_hashes(&self) -> Vec<Vec<u8>> {}
[INFO] [stdout]    |            ----------------           ^^^^^^^^^^^^ expected `Vec<Vec<u8>>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<Vec<u8>>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:57:41
[INFO] [stdout]    |
[INFO] [stdout] 57 |     fn new(tip_hash: String, db: Db) -> BlockchainIterator {}
[INFO] [stdout]    |        ---                              ^^^^^^^^^^^^^^^^^^ expected `BlockchainIterator`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/blockchain.rs:58:31
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn next(&mut self) -> Option<Block> {}
[INFO] [stdout]    |            ----               ^^^^^^^^^^^^^ expected `Option<Block>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `std::option::Option<Block>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `custom-blockchain` (bin "custom-blockchain" test) due to 16 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/transaction.rs:48:52
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn uses_key(&self, pub_key_hash: &[u8]) -> bool {
[INFO] [stdout]    |            --------                                ^^^^ expected `bool`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/blockchain/utile.rs:27:43
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut buf: Vec<u8> = repeat(0).take(ripemd160.output_bytes()).collection();
[INFO] [stdout]    |                                      ---- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `usize`
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/std/src/io/mod.rs:1239:8
[INFO] [stdout] help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut buf: Vec<u8> = repeat(0).take(ripemd160.output_bytes().try_into().unwrap()).collection();
[INFO] [stdout]    |                                                                   ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `collection` found for struct `std::io::Take` in the current scope
[INFO] [stdout]   --> src/blockchain/utile.rs:27:69
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut buf: Vec<u8> = repeat(0).take(ripemd160.output_bytes()).collection();
[INFO] [stdout]    |                                                                     ^^^^^^^^^^ method not found in `std::io::Take<std::io::Repeat>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_tree`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:38:30
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn update_block_tree(block_tree: &Tree, block: &Block) {}
[INFO] [stdout]    |                              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_tree`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:38:49
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn update_block_tree(block_tree: &Tree, block: &Block) {}
[INFO] [stdout]    |                                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_tip_hash`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:41:32
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn set_tip_hash(&self, new_tip_hash: &str) {}
[INFO] [stdout]    |                                ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_tip_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block`
[INFO] [stdout]   --> src/blockchain/blockchain.rs:46:29
[INFO] [stdout]    |
[INFO] [stdout] 46 |     pub fn add_block(&self, block: &Block) {}
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `custom-blockchain` (bin "custom-blockchain") due to 16 previous errors; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "b262586cf3f171960c1416a0fb47edadf0ce7b6ab955acecf7f77032dc969932", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b262586cf3f171960c1416a0fb47edadf0ce7b6ab955acecf7f77032dc969932", kill_on_drop: false }`
[INFO] [stdout] b262586cf3f171960c1416a0fb47edadf0ce7b6ab955acecf7f77032dc969932
