[INFO] cloning repository https://github.com/dismasdev/rust_custom_blockchain
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dismasdev/rust_custom_blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdismasdev%2Frust_custom_blockchain", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdismasdev%2Frust_custom_blockchain'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1cb0d72a0dbab38412aa21bfd3c279d1af97f8f5
[INFO] checking dismasdev/rust_custom_blockchain against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdismasdev%2Frust_custom_blockchain" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dismasdev/rust_custom_blockchain
[INFO] finished tweaking git repo https://github.com/dismasdev/rust_custom_blockchain
[INFO] tweaked toml for git repo https://github.com/dismasdev/rust_custom_blockchain written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dismasdev/rust_custom_blockchain on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dismasdev/rust_custom_blockchain 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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f
[INFO] running `Command { std: "docker" "start" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.229
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking rust_custom_blockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find function `current_timestamp` in the crate root
[INFO] [stdout]   --> src/block.rs:24:30
[INFO] [stdout]    |
[INFO] [stdout] 24 |          { timestamp: crate::current_timestamp(), 
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^ not found in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sha256_digest` in the crate root
[INFO] [stdout]   --> src/block.rs:67:16
[INFO] [stdout]    |
[INFO] [stdout] 67 |         crate::sha256_digest(txhashs.as_slice())
[INFO] [stdout]    |                ^^^^^^^^^^^^^ not found in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `BigInt` in this scope
[INFO] [stdout]  --> src/proofOfWork.rs:6:13
[INFO] [stdout]   |
[INFO] [stdout] 6 |     target: BigInt
[INFO] [stdout]   |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MAX_NONCE` in this scope
[INFO] [stdout]   --> src/proofOfWork.rs:16:23
[INFO] [stdout]    |
[INFO] [stdout] 16 |         while nonce < MAX_NONCE{
[INFO] [stdout]    |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sha256_digest` in the crate root
[INFO] [stdout]   --> src/proofOfWork.rs:18:27
[INFO] [stdout]    |
[INFO] [stdout] 18 |             hash = crate::sha256_digest(data.as_slice());
[INFO] [stdout]    |                           ^^^^^^^^^^^^^ not found in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Sign` in this scope
[INFO] [stdout]   --> src/proofOfWork.rs:19:50
[INFO] [stdout]    |
[INFO] [stdout] 19 |             let hash_int = BigInt::from_bytes_be(Sign::Plus,hash.as_slice());
[INFO] [stdout]    |                                                  ^^^^ use of undeclared type `Sign`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Sign;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `transaction::Transaction`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use transaction::Transaction;
[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 imports: `Deserialize` and `Serialize`
[INFO] [stdout]  --> src/main.rs:7:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde::{Deserialize,Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Transaction: Clone` is not satisfied
[INFO] [stdout]   --> src/block.rs:27:39
[INFO] [stdout]    |
[INFO] [stdout] 27 |              transactions:transaction.to_vec(),
[INFO] [stdout]    |                                       ^^^^^^ unsatisfied trait bound
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `Clone` is not implemented for `Transaction`
[INFO] [stdout]   --> src/transaction.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | pub struct Transaction{
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: required by a bound in `slice::<impl [T]>::to_vec`
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/alloc/src/slice.rs:372:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Block: serde::Deserialize<'de>` is not satisfied
[INFO] [stdout]    --> src/block.rs:35:8
[INFO] [stdout]     |
[INFO] [stdout]  35 |        bincode::deserialize(bytes).unwrap()
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `Deserialize<'_>` is not implemented for `Block`
[INFO] [stdout]    --> src/block.rs:11:1
[INFO] [stdout]     |
[INFO] [stdout]  11 | pub struct Block{
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `Block` type
[INFO] [stdout]     = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]     = help: the following other types implement trait `Deserialize<'de>`:
[INFO] [stdout]               &'a Path
[INFO] [stdout]               &'a [u8]
[INFO] [stdout]               &'a str
[INFO] [stdout]               ()
[INFO] [stdout]               (T,)
[INFO] [stdout]               (T0, T1)
[INFO] [stdout]               (T0, T1, T2)
[INFO] [stdout]               (T0, T1, T2, T3)
[INFO] [stdout]             and 138 others
[INFO] [stdout] note: required by a bound in `bincode::deserialize`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-1.3.3/src/lib.rs:179:8
[INFO] [stdout]     |
[INFO] [stdout] 177 | pub fn deserialize<'a, T>(bytes: &'a [u8]) -> Result<T>
[INFO] [stdout] 178 | where
[INFO] [stdout] 179 |     T: serde::de::Deserialize<'a>,
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `deserialize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Block: serde::Serialize` is not satisfied
[INFO] [stdout]    --> src/block.rs:38:28
[INFO] [stdout]     |
[INFO] [stdout]  38 |         bincode::serialize(self).unwrap().to_vec()
[INFO] [stdout]     |         ------------------ ^^^^ unsatisfied trait bound
[INFO] [stdout]     |         |
[INFO] [stdout]     |         required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `Serialize` is not implemented for `Block`
[INFO] [stdout]    --> src/block.rs:11:1
[INFO] [stdout]     |
[INFO] [stdout]  11 | pub struct Block{
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Block` type
[INFO] [stdout]     = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]     = help: the following other types implement trait `Serialize`:
[INFO] [stdout]               &'a T
[INFO] [stdout]               &'a mut T
[INFO] [stdout]               ()
[INFO] [stdout]               (T,)
[INFO] [stdout]               (T0, T1)
[INFO] [stdout]               (T0, T1, T2)
[INFO] [stdout]               (T0, T1, T2, T3)
[INFO] [stdout]               (T0, T1, T2, T3, T4)
[INFO] [stdout]             and 126 others
[INFO] [stdout] note: required by a bound in `bincode::serialize`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-1.3.3/src/lib.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn serialize<T: ?Sized>(value: &T) -> Result<Vec<u8>>
[INFO] [stdout] 107 | where
[INFO] [stdout] 108 |     T: serde::Serialize,
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^ required by this bound in `serialize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_id` found for reference `&Transaction` in the current scope
[INFO] [stdout]   --> src/block.rs:65:40
[INFO] [stdout]    |
[INFO] [stdout] 65 |             txhashs.extend(transaction.get_id());
[INFO] [stdout]    |                                        ^^^^^^ method not found in `&Transaction`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied
[INFO] [stdout]   --> src/block.rs:72:32
[INFO] [stdout]    |
[INFO] [stdout] 72 |         return Self::new_block(String::new("None"), &transactions,0)
[INFO] [stdout]    |                                ^^^^^^^^^^^ ------ unexpected argument of type `&'static str`
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/alloc/src/string.rs:446:17
[INFO] [stdout] help: remove the extra argument
[INFO] [stdout]    |
[INFO] [stdout] 72 -         return Self::new_block(String::new("None"), &transactions,0)
[INFO] [stdout] 72 +         return Self::new_block(String::new(), &transactions,0)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/block.rs:72:53
[INFO] [stdout]    |
[INFO] [stdout] 72 |         return Self::new_block(String::new("None"), &transactions,0)
[INFO] [stdout]    |                ---------------                      ^^^^^^^^^^^^^ expected `&[Transaction]`, found `&Vec<&Transaction>`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&[Transaction]`
[INFO] [stdout]               found reference `&Vec<&Transaction>`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/block.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub fn new_block(pre_block_hash: String,transaction: &[Transaction],height: usize) -> Self{
[INFO] [stdout]    |            ^^^^^^^^^                        ---------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `prepare_data` found for reference `&ProofOfWork` in the current scope
[INFO] [stdout]   --> src/proofOfWork.rs:17:29
[INFO] [stdout]    |
[INFO] [stdout] 17 |             let data = self.prepare_data(nonce);
[INFO] [stdout]    |                             ^^^^^^^^^^^^ method not found in `&ProofOfWork`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `BigInt` in this scope
[INFO] [stdout]   --> src/proofOfWork.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |             let hash_int = BigInt::from_bytes_be(Sign::Plus,hash.as_slice());
[INFO] [stdout]    |                            ^^^^^^ use of undeclared type `BigInt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0425, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `current_timestamp` in the crate root
[INFO] [stdout]   --> src/block.rs:24:30
[INFO] [stdout]    |
[INFO] [stdout] 24 |          { timestamp: crate::current_timestamp(), 
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^ not found in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sha256_digest` in the crate root
[INFO] [stdout]   --> src/block.rs:67:16
[INFO] [stdout]    |
[INFO] [stdout] 67 |         crate::sha256_digest(txhashs.as_slice())
[INFO] [stdout]    |                ^^^^^^^^^^^^^ not found in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `BigInt` in this scope
[INFO] [stdout]  --> src/proofOfWork.rs:6:13
[INFO] [stdout]   |
[INFO] [stdout] 6 |     target: BigInt
[INFO] [stdout]   |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MAX_NONCE` in this scope
[INFO] [stdout]   --> src/proofOfWork.rs:16:23
[INFO] [stdout]    |
[INFO] [stdout] 16 |         while nonce < MAX_NONCE{
[INFO] [stdout]    |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sha256_digest` in the crate root
[INFO] [stdout]   --> src/proofOfWork.rs:18:27
[INFO] [stdout]    |
[INFO] [stdout] 18 |             hash = crate::sha256_digest(data.as_slice());
[INFO] [stdout]    |                           ^^^^^^^^^^^^^ not found in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Sign` in this scope
[INFO] [stdout]   --> src/proofOfWork.rs:19:50
[INFO] [stdout]    |
[INFO] [stdout] 19 |             let hash_int = BigInt::from_bytes_be(Sign::Plus,hash.as_slice());
[INFO] [stdout]    |                                                  ^^^^ use of undeclared type `Sign`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Sign;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `transaction::Transaction`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use transaction::Transaction;
[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 imports: `Deserialize` and `Serialize`
[INFO] [stdout]  --> src/main.rs:7:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde::{Deserialize,Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_custom_blockchain` (bin "rust_custom_blockchain" test) due to 14 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0277]: the trait bound `Transaction: Clone` is not satisfied
[INFO] [stdout]   --> src/block.rs:27:39
[INFO] [stdout]    |
[INFO] [stdout] 27 |              transactions:transaction.to_vec(),
[INFO] [stdout]    |                                       ^^^^^^ unsatisfied trait bound
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `Clone` is not implemented for `Transaction`
[INFO] [stdout]   --> src/transaction.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | pub struct Transaction{
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: required by a bound in `slice::<impl [T]>::to_vec`
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/alloc/src/slice.rs:372:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Block: serde::Deserialize<'de>` is not satisfied
[INFO] [stdout]    --> src/block.rs:35:8
[INFO] [stdout]     |
[INFO] [stdout]  35 |        bincode::deserialize(bytes).unwrap()
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `Deserialize<'_>` is not implemented for `Block`
[INFO] [stdout]    --> src/block.rs:11:1
[INFO] [stdout]     |
[INFO] [stdout]  11 | pub struct Block{
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `Block` type
[INFO] [stdout]     = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]     = help: the following other types implement trait `Deserialize<'de>`:
[INFO] [stdout]               &'a Path
[INFO] [stdout]               &'a [u8]
[INFO] [stdout]               &'a str
[INFO] [stdout]               ()
[INFO] [stdout]               (T,)
[INFO] [stdout]               (T0, T1)
[INFO] [stdout]               (T0, T1, T2)
[INFO] [stdout]               (T0, T1, T2, T3)
[INFO] [stdout]             and 138 others
[INFO] [stdout] note: required by a bound in `bincode::deserialize`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-1.3.3/src/lib.rs:179:8
[INFO] [stdout]     |
[INFO] [stdout] 177 | pub fn deserialize<'a, T>(bytes: &'a [u8]) -> Result<T>
[INFO] [stdout] 178 | where
[INFO] [stdout] 179 |     T: serde::de::Deserialize<'a>,
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `deserialize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Block: serde::Serialize` is not satisfied
[INFO] [stdout]    --> src/block.rs:38:28
[INFO] [stdout]     |
[INFO] [stdout]  38 |         bincode::serialize(self).unwrap().to_vec()
[INFO] [stdout]     |         ------------------ ^^^^ unsatisfied trait bound
[INFO] [stdout]     |         |
[INFO] [stdout]     |         required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `Serialize` is not implemented for `Block`
[INFO] [stdout]    --> src/block.rs:11:1
[INFO] [stdout]     |
[INFO] [stdout]  11 | pub struct Block{
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Block` type
[INFO] [stdout]     = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]     = help: the following other types implement trait `Serialize`:
[INFO] [stdout]               &'a T
[INFO] [stdout]               &'a mut T
[INFO] [stdout]               ()
[INFO] [stdout]               (T,)
[INFO] [stdout]               (T0, T1)
[INFO] [stdout]               (T0, T1, T2)
[INFO] [stdout]               (T0, T1, T2, T3)
[INFO] [stdout]               (T0, T1, T2, T3, T4)
[INFO] [stdout]             and 126 others
[INFO] [stdout] note: required by a bound in `bincode::serialize`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-1.3.3/src/lib.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn serialize<T: ?Sized>(value: &T) -> Result<Vec<u8>>
[INFO] [stdout] 107 | where
[INFO] [stdout] 108 |     T: serde::Serialize,
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^ required by this bound in `serialize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_id` found for reference `&Transaction` in the current scope
[INFO] [stdout]   --> src/block.rs:65:40
[INFO] [stdout]    |
[INFO] [stdout] 65 |             txhashs.extend(transaction.get_id());
[INFO] [stdout]    |                                        ^^^^^^ method not found in `&Transaction`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied
[INFO] [stdout]   --> src/block.rs:72:32
[INFO] [stdout]    |
[INFO] [stdout] 72 |         return Self::new_block(String::new("None"), &transactions,0)
[INFO] [stdout]    |                                ^^^^^^^^^^^ ------ unexpected argument of type `&'static str`
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/alloc/src/string.rs:446:17
[INFO] [stdout] help: remove the extra argument
[INFO] [stdout]    |
[INFO] [stdout] 72 -         return Self::new_block(String::new("None"), &transactions,0)
[INFO] [stdout] 72 +         return Self::new_block(String::new(), &transactions,0)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/block.rs:72:53
[INFO] [stdout]    |
[INFO] [stdout] 72 |         return Self::new_block(String::new("None"), &transactions,0)
[INFO] [stdout]    |                ---------------                      ^^^^^^^^^^^^^ expected `&[Transaction]`, found `&Vec<&Transaction>`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&[Transaction]`
[INFO] [stdout]               found reference `&Vec<&Transaction>`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/block.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub fn new_block(pre_block_hash: String,transaction: &[Transaction],height: usize) -> Self{
[INFO] [stdout]    |            ^^^^^^^^^                        ---------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `prepare_data` found for reference `&ProofOfWork` in the current scope
[INFO] [stdout]   --> src/proofOfWork.rs:17:29
[INFO] [stdout]    |
[INFO] [stdout] 17 |             let data = self.prepare_data(nonce);
[INFO] [stdout]    |                             ^^^^^^^^^^^^ method not found in `&ProofOfWork`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `BigInt` in this scope
[INFO] [stdout]   --> src/proofOfWork.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |             let hash_int = BigInt::from_bytes_be(Sign::Plus,hash.as_slice());
[INFO] [stdout]    |                            ^^^^^^ use of undeclared type `BigInt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0425, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_custom_blockchain` (bin "rust_custom_blockchain") due to 14 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f", kill_on_drop: false }`
[INFO] [stdout] d2af88695644d948d8357e9c58e88c2bd95715b3a425b64290dadf35a2d6a95f
