[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#50d7e48beb74b48bd17c3749bfb73843c9ae0166 for pr-151102 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGomuDevelopers%2Fblocksta" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/GomuDevelopers/blocksta on toolchain 50d7e48beb74b48bd17c3749bfb73843c9ae0166 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "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" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 857f251f385c161b065d014c4284890f58558cccd32d0d4960a1393211365c52 [INFO] running `Command { std: "docker" "start" "-a" "857f251f385c161b065d014c4284890f58558cccd32d0d4960a1393211365c52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "857f251f385c161b065d014c4284890f58558cccd32d0d4960a1393211365c52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "857f251f385c161b065d014c4284890f58558cccd32d0d4960a1393211365c52", kill_on_drop: false }` [INFO] [stdout] 857f251f385c161b065d014c4284890f58558cccd32d0d4960a1393211365c52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93caef2bb82c25603ad1574bdc0287a600cce9e206f07e36b0223f2ca2a2fc43 [INFO] running `Command { std: "docker" "start" "-a" "93caef2bb82c25603ad1574bdc0287a600cce9e206f07e36b0223f2ca2a2fc43", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking ring v0.17.14 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling syn v2.0.96 [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] 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)]` (part of `#[warn(unused)]`) 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] 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)]` (part of `#[warn(unused)]`) 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[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/50d7e48beb74b48bd17c3749bfb73843c9ae0166/library/core/src/iter/traits/collect.rs:413:4 [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 { [INFO] [stdout] | ------- expected `Vec` 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`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [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` 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> {} [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HashMap>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap>` [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 {} [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^ expected `Option`, 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` [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 {} [INFO] [stdout] | --------- ^^^^^^^^^^^^^ expected `Option`, 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` [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> {} [INFO] [stdout] | ---------------- ^^^^^^^^^^^^ expected `Vec>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [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 {} [INFO] [stdout] | ---- ^^^^^^^^^^^^^ expected `Option`, 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` [INFO] [stdout] found unit type `()` [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[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/50d7e48beb74b48bd17c3749bfb73843c9ae0166/library/core/src/iter/traits/collect.rs:413:4 [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 = 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/50d7e48beb74b48bd17c3749bfb73843c9ae0166/library/std/src/io/mod.rs:1239:7 [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 = repeat(0).take(ripemd160.output_bytes().try_into().unwrap()).collection(); [INFO] [stdout] | ++++++++++++++++++++ [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 { [INFO] [stdout] | ------- expected `Vec` 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`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [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` 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> {} [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HashMap>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap>` [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 {} [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^ expected `Option`, 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` [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 {} [INFO] [stdout] | --------- ^^^^^^^^^^^^^ expected `Option`, 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` [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> {} [INFO] [stdout] | ---------------- ^^^^^^^^^^^^ expected `Vec>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [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 {} [INFO] [stdout] | ---- ^^^^^^^^^^^^^ expected `Option`, 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` [INFO] [stdout] found unit type `()` [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 = repeat(0).take(ripemd160.output_bytes()).collection(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `std::io::Take` [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 = 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/50d7e48beb74b48bd17c3749bfb73843c9ae0166/library/std/src/io/mod.rs:1239:7 [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 = repeat(0).take(ripemd160.output_bytes().try_into().unwrap()).collection(); [INFO] [stdout] | ++++++++++++++++++++ [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)]` (part of `#[warn(unused)]`) 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[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 = repeat(0).take(ripemd160.output_bytes()).collection(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `std::io::Take` [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)]` (part of `#[warn(unused)]`) 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] [stderr] warning: build failed, waiting for other jobs to finish... [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] running `Command { std: "docker" "inspect" "93caef2bb82c25603ad1574bdc0287a600cce9e206f07e36b0223f2ca2a2fc43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93caef2bb82c25603ad1574bdc0287a600cce9e206f07e36b0223f2ca2a2fc43", kill_on_drop: false }` [INFO] [stdout] 93caef2bb82c25603ad1574bdc0287a600cce9e206f07e36b0223f2ca2a2fc43