[INFO] cloning repository https://github.com/vpin09/rust-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vpin09/rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2Frust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2Frust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 27a3814ccb543961b8d0830edb2bf3efc3b4f5ed [INFO] testing vpin09/rust-blockchain against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2Frust-blockchain" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vpin09/rust-blockchain [INFO] finished tweaking git repo https://github.com/vpin09/rust-blockchain [INFO] tweaked toml for git repo https://github.com/vpin09/rust-blockchain written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vpin09/rust-blockchain on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vpin09/rust-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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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 [ERROR] error running command: no output for 300 seconds [INFO] testing vpin09/rust-blockchain against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2Frust-blockchain" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vpin09/rust-blockchain [INFO] finished tweaking git repo https://github.com/vpin09/rust-blockchain [INFO] tweaked toml for git repo https://github.com/vpin09/rust-blockchain written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vpin09/rust-blockchain on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vpin09/rust-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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd868614b7bb882a17d9c44f0d44bd7d81c424b81b6437ce4258e85a4ea42b2b [INFO] running `Command { std: "docker" "start" "-a" "cd868614b7bb882a17d9c44f0d44bd7d81c424b81b6437ce4258e85a4ea42b2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd868614b7bb882a17d9c44f0d44bd7d81c424b81b6437ce4258e85a4ea42b2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd868614b7bb882a17d9c44f0d44bd7d81c424b81b6437ce4258e85a4ea42b2b", kill_on_drop: false }` [INFO] [stdout] cd868614b7bb882a17d9c44f0d44bd7d81c424b81b6437ce4258e85a4ea42b2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7082565491c6abb0d976af4cebc32748b9c6115e8eb2d5972f6e5a5505fc679 [INFO] running `Command { std: "docker" "start" "-a" "f7082565491c6abb0d976af4cebc32748b9c6115e8eb2d5972f6e5a5505fc679", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling rust-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/blockchain.rs:39:118 [INFO] [stdout] | [INFO] [stdout] 39 | let tip_bytes=blocks_tree.get(TIP_BLOCK_HASH_KEY).unwrap().expect("No existing blockchain found create one");\ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `current_timestamp` in the crate root [INFO] [stdout] --> src/block.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 20 | 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:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | crate::sha256_digest(txhashs.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_NONCE` in this scope [INFO] [stdout] --> src/proof_of_work.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | while nonce src/proof_of_work.rs:18:25 [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] warning: unused imports: `TXInput`, `TXOutput`, and `self` [INFO] [stdout] --> src/block.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::transaction::{self, TXInput, TXOutput, Transaction}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/proof_of_work.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tree` [INFO] [stdout] --> src/blockchain.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use sled::{Db,Tree}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/blockchain.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::block::{self, Block}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/blockchain.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::transaction::{self, Transaction}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_proof_of_work` found for struct `ProofOfWork` in the current scope [INFO] [stdout] --> src/block.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | let pow = ProofOfWork::new_proof_of_work(block.clone); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `ProofOfWork` [INFO] [stdout] | [INFO] [stdout] ::: src/proof_of_work.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ProofOfWork{ [INFO] [stdout] | ---------------------- function or associated item `new_proof_of_work` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `clone` on type `Block` [INFO] [stdout] --> src/block.rs:27:56 [INFO] [stdout] | [INFO] [stdout] 27 | let pow = ProofOfWork::new_proof_of_work(block.clone); [INFO] [stdout] | ^^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 27 | let pow = ProofOfWork::new_proof_of_work(block.clone()); [INFO] [stdout] | ++ [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:66:40 [INFO] [stdout] | [INFO] [stdout] 66 | txhashs.extend(transaction.get_id()); [INFO] [stdout] | ^^^^^^ method not found in `&Transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepare_data` found for reference `&ProofOfWork` in the current scope [INFO] [stdout] --> src/proof_of_work.rs:17:27 [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[E0599]: no function or associated item named `new_coinbase_tx` found for struct `Transaction` in the current scope [INFO] [stdout] --> src/blockchain.rs:22:42 [INFO] [stdout] | [INFO] [stdout] 22 | let coinbase_tx=Transaction::new_coinbase_tx(genesis_address); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `Transaction` [INFO] [stdout] | [INFO] [stdout] ::: src/transaction.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Transaction{ [INFO] [stdout] | ----------------------- function or associated item `new_coinbase_tx` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `update_blocks_tree` found for struct `Blockchain` in the current scope [INFO] [stdout] --> src/blockchain.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Blockchain{ [INFO] [stdout] | --------------------- function or associated item `update_blocks_tree` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 24 | Self::update_blocks_tree(&blocks_tree,&block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Blockchain` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Blockchain` consider using one of the following associated functions: [INFO] [stdout] Blockchain::create_blockchain [INFO] [stdout] Blockchain::new_blockchain [INFO] [stdout] --> src/blockchain.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn create_blockchain(genesis_address:&str)->Blockchain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn new_blockchain()->Blockchain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify` found for struct `Transaction` in the current scope [INFO] [stdout] --> src/blockchain.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | if transaction.verify(self) == false { [INFO] [stdout] | ^^^^^^ method not found in `Transaction` [INFO] [stdout] | [INFO] [stdout] ::: src/transaction.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Transaction{ [INFO] [stdout] | ----------------------- method `verify` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_best_height` found for mutable reference `&mut Blockchain` in the current scope [INFO] [stdout] --> src/blockchain.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 64 | let best_height=self.get_best_height(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&mut Blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `update_blocks_tree` found for struct `Blockchain` in the current scope [INFO] [stdout] --> src/blockchain.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Blockchain{ [INFO] [stdout] | --------------------- function or associated item `update_blocks_tree` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 68 | Self::update_blocks_tree(&blocks_tree,&block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `Blockchain` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Blockchain` consider using one of the following associated functions: [INFO] [stdout] Blockchain::create_blockchain [INFO] [stdout] Blockchain::new_blockchain [INFO] [stdout] --> src/blockchain.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn create_blockchain(genesis_address:&str)->Blockchain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn new_blockchain()->Blockchain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/blockchain.rs:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | 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[E0599]: no method named `get_tip_hash` found for reference `&BlockchainIterator` in the current scope [INFO] [stdout] --> src/blockchain.rs:84:38 [INFO] [stdout] | [INFO] [stdout] 84 | BlockchainIterator::new(self.get_tip_hash(),self.db.clone()) [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&BlockchainIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/blockchain.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | 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] Some errors have detailed explanations: E0308, E0425, E0599, E0615. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-blockchain` (lib) due to 17 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f7082565491c6abb0d976af4cebc32748b9c6115e8eb2d5972f6e5a5505fc679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7082565491c6abb0d976af4cebc32748b9c6115e8eb2d5972f6e5a5505fc679", kill_on_drop: false }` [INFO] [stdout] f7082565491c6abb0d976af4cebc32748b9c6115e8eb2d5972f6e5a5505fc679