[INFO] cloning repository https://github.com/gregoriB/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/gregoriB/blockchain-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 899751ac72e5c0cfb5a9d16f4892a558868d9287 [INFO] checking gregoriB/blockchain-Rust against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgregoriB%2Fblockchain-Rust" "/workspace/builds/worker-59/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-59/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gregoriB/blockchain-Rust on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gregoriB/blockchain-Rust [INFO] finished tweaking git repo https://github.com/gregoriB/blockchain-Rust [INFO] tweaked toml for git repo https://github.com/gregoriB/blockchain-Rust written to /workspace/builds/worker-59/source/Cargo.toml [INFO] crate git repo https://github.com/gregoriB/blockchain-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b62cde336a303a95cea64a0732823e09ed7091300ddd88d3ca8bc60638c5c3a2 [INFO] running `Command { std: "docker" "start" "-a" "b62cde336a303a95cea64a0732823e09ed7091300ddd88d3ca8bc60638c5c3a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b62cde336a303a95cea64a0732823e09ed7091300ddd88d3ca8bc60638c5c3a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b62cde336a303a95cea64a0732823e09ed7091300ddd88d3ca8bc60638c5c3a2", kill_on_drop: false }` [INFO] [stdout] b62cde336a303a95cea64a0732823e09ed7091300ddd88d3ca8bc60638c5c3a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70e6a47d4ee7bc575cc5f9ab15dfac2433f99e7d81da8719abd9703ea96be95e [INFO] running `Command { std: "docker" "start" "-a" "70e6a47d4ee7bc575cc5f9ab15dfac2433f99e7d81da8719abd9703ea96be95e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Checking bitflags v1.3.1 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.65 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking crypto-hash v0.3.4 [INFO] [stderr] Checking block_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/blockchain/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::BlockChain` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::blockchain::BlockChain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/blockchain/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_prev_hash` [INFO] [stdout] --> src/block/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_prev_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_prev_hash` [INFO] [stdout] --> src/block/mod.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_prev_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_hash` [INFO] [stdout] --> src/block/mod.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_next_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_next_hash` [INFO] [stdout] --> src/block/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn set_next_hash(&mut self, hash: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BlockChain` [INFO] [stdout] --> src/blockchain/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockChain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hash` [INFO] [stdout] --> src/transaction/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_sender` [INFO] [stdout] --> src/transaction/mod.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_sender(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_receiver` [INFO] [stdout] --> src/transaction/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_receiver(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_amount` [INFO] [stdout] --> src/transaction/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_amount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `BlockChain` in the current scope [INFO] [stdout] --> src/blockchain/mod.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockChain { [INFO] [stdout] | --------------------- function or associated item `new` not found for this [INFO] [stdout] ... [INFO] [stdout] 25 | let blockchain = BlockChain::new(name, difficulty, payout, supply); [INFO] [stdout] | ^^^ function or associated item not found in `BlockChain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `BlockChain` in the current scope [INFO] [stdout] --> src/blockchain/mod.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockChain { [INFO] [stdout] | --------------------- function or associated item `new` not found for this [INFO] [stdout] ... [INFO] [stdout] 45 | let blockchain = BlockChain::new(name, difficulty, payout, supply); [INFO] [stdout] | ^^^ function or associated item not found in `BlockChain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_transaction` found for struct `BlockChain` in the current scope [INFO] [stdout] --> src/blockchain/mod.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockChain { [INFO] [stdout] | --------------------- method `add_transaction` not found for this [INFO] [stdout] ... [INFO] [stdout] 66 | blockchain.add_transaction(transaction); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `BlockChain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_transaction` found for struct `BlockChain` in the current scope [INFO] [stdout] --> src/blockchain/mod.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockChain { [INFO] [stdout] | --------------------- method `add_transaction` not found for this [INFO] [stdout] ... [INFO] [stdout] 77 | blockchain.add_transaction(transaction); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `BlockChain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_block` found for struct `BlockChain` in the current scope [INFO] [stdout] --> src/blockchain/mod.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockChain { [INFO] [stdout] | --------------------- method `add_block` not found for this [INFO] [stdout] ... [INFO] [stdout] 79 | blockchain.add_block(payout_address); [INFO] [stdout] | ^^^^^^^^^ method not found in `BlockChain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `block_chain` due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "70e6a47d4ee7bc575cc5f9ab15dfac2433f99e7d81da8719abd9703ea96be95e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70e6a47d4ee7bc575cc5f9ab15dfac2433f99e7d81da8719abd9703ea96be95e", kill_on_drop: false }` [INFO] [stdout] 70e6a47d4ee7bc575cc5f9ab15dfac2433f99e7d81da8719abd9703ea96be95e