[INFO] cloning repository https://github.com/korir248/blockchain-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/korir248/blockchain-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkorir248%2Fblockchain-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkorir248%2Fblockchain-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e679c6d905dc609f2a78392740c1a1b93bd06517 [INFO] checking korir248/blockchain-rust against master#f2d69d5a7c04617d122facd0a7a5bdde0af928ae for pr-138363 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkorir248%2Fblockchain-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/korir248/blockchain-rust on toolchain f2d69d5a7c04617d122facd0a7a5bdde0af928ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/korir248/blockchain-rust [INFO] finished tweaking git repo https://github.com/korir248/blockchain-rust [INFO] tweaked toml for git repo https://github.com/korir248/blockchain-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/korir248/blockchain-rust 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" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8b45c330954319f4e9b98d0b30446619aa4b6bd18117fb7b3b8c9f184e2b44f9 [INFO] running `Command { std: "docker" "start" "-a" "8b45c330954319f4e9b98d0b30446619aa4b6bd18117fb7b3b8c9f184e2b44f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b45c330954319f4e9b98d0b30446619aa4b6bd18117fb7b3b8c9f184e2b44f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b45c330954319f4e9b98d0b30446619aa4b6bd18117fb7b3b8c9f184e2b44f9", kill_on_drop: false }` [INFO] [stdout] 8b45c330954319f4e9b98d0b30446619aa4b6bd18117fb7b3b8c9f184e2b44f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e2468d5382bd04f222592e00c75a0e9e584d684f55f71c35cec779aedf7b3f7 [INFO] running `Command { std: "docker" "start" "-a" "8e2468d5382bd04f222592e00c75a0e9e584d684f55f71c35cec779aedf7b3f7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/blockchain.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | 'outer: for tx in block.get_transactions() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/blockchain.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | 'outer: for tx in block.get_transactions() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [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:45:48 [INFO] [stdout] | [INFO] [stdout] 45 | 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:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | 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 method named `verify` found for reference `&Transaction` in the current scope [INFO] [stdout] --> src/blockchain.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | if transaction.verify(self) == false { [INFO] [stdout] | ^^^^^^ method not found in `&Transaction` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `verify`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `VerificationAlgorithm` [INFO] [stdout] candidate #2: `rsa::padding::Verification` [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:45:48 [INFO] [stdout] | [INFO] [stdout] 45 | 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:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | 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 method named `verify` found for reference `&Transaction` in the current scope [INFO] [stdout] --> src/blockchain.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | if transaction.verify(self) == false { [INFO] [stdout] | ^^^^^^ method not found in `&Transaction` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `verify`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `VerificationAlgorithm` [INFO] [stdout] candidate #2: `rsa::padding::Verification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spent_txos` [INFO] [stdout] --> src/blockchain.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut spent_txos: HashMap> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spent_txos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txid_hex` [INFO] [stdout] --> src/blockchain.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | let txid_hex = HEXLOWER.encode(tx.get_id()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_txid_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/blockchain.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | for (idx, out) in tx.get_vout().iter().enumerate() {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/blockchain.rs:150:27 [INFO] [stdout] | [INFO] [stdout] 150 | for (idx, out) in tx.get_vout().iter().enumerate() {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut utxo: HashMap> = HashMap::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut spent_txos: HashMap> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/proof_of_work.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_proof_of_work(block: Block) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/proof_of_work.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | fn prepare_data(&self, nonce: i64) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spent_txos` [INFO] [stdout] --> src/blockchain.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut spent_txos: HashMap> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spent_txos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txid_hex` [INFO] [stdout] --> src/blockchain.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | let txid_hex = HEXLOWER.encode(tx.get_id()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_txid_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/blockchain.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | for (idx, out) in tx.get_vout().iter().enumerate() {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/blockchain.rs:150:27 [INFO] [stdout] | [INFO] [stdout] 150 | for (idx, out) in tx.get_vout().iter().enumerate() {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut utxo: HashMap> = HashMap::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut spent_txos: HashMap> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/proof_of_work.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_proof_of_work(block: Block) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/proof_of_work.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | fn prepare_data(&self, nonce: i64) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain` (lib) due to 2 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain` (lib test) due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8e2468d5382bd04f222592e00c75a0e9e584d684f55f71c35cec779aedf7b3f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e2468d5382bd04f222592e00c75a0e9e584d684f55f71c35cec779aedf7b3f7", kill_on_drop: false }` [INFO] [stdout] 8e2468d5382bd04f222592e00c75a0e9e584d684f55f71c35cec779aedf7b3f7