[INFO] cloning repository https://github.com/vinay1668/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/vinay1668/blockchain-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinay1668%2Fblockchain-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinay1668%2Fblockchain-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4cc65a88ac257e6419766aff53ea3735af35b6aa [INFO] checking vinay1668/blockchain-rust against master#667247db71ea18c4130dd018d060e7f09d589490 for pr-140824 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinay1668%2Fblockchain-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vinay1668/blockchain-rust on toolchain 667247db71ea18c4130dd018d060e7f09d589490 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+667247db71ea18c4130dd018d060e7f09d589490" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vinay1668/blockchain-rust [INFO] finished tweaking git repo https://github.com/vinay1668/blockchain-rust [INFO] tweaked toml for git repo https://github.com/vinay1668/blockchain-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vinay1668/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" "+667247db71ea18c4130dd018d060e7f09d589490" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+667247db71ea18c4130dd018d060e7f09d589490" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bcd3ce355d188f2707ea9f0f8bb3747e83daab7a03a00089d3b4d9cee3b8d013 [INFO] running `Command { std: "docker" "start" "-a" "bcd3ce355d188f2707ea9f0f8bb3747e83daab7a03a00089d3b4d9cee3b8d013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bcd3ce355d188f2707ea9f0f8bb3747e83daab7a03a00089d3b4d9cee3b8d013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcd3ce355d188f2707ea9f0f8bb3747e83daab7a03a00089d3b4d9cee3b8d013", kill_on_drop: false }` [INFO] [stdout] bcd3ce355d188f2707ea9f0f8bb3747e83daab7a03a00089d3b4d9cee3b8d013 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+667247db71ea18c4130dd018d060e7f09d589490" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58337271ea9a87e776b84faae22265e5a03431f6e6f8e7d11937dfb7be12a1f2 [INFO] running `Command { std: "docker" "start" "-a" "58337271ea9a87e776b84faae22265e5a03431f6e6f8e7d11937dfb7be12a1f2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling serde_json v1.0.97 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking cpufeatures v0.2.8 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.7 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Checking blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/models/block.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(index: u64, previous_hash:String) -> Self{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_hash` [INFO] [stdout] --> src/models/block.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(index: u64, previous_hash:String) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/models/block.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut block = Block{ [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/models/blockchain.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut genesis_block = Block { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `genesis_block` is never read [INFO] [stdout] --> src/models/blockchain.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Blockchain{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 11 | pub genesis_block: Block, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/models/block.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(index: u64, previous_hash:String) -> Self{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_hash` [INFO] [stdout] --> src/models/block.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(index: u64, previous_hash:String) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/models/block.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut block = Block{ [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/models/blockchain.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut genesis_block = Block { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `genesis_block` is never read [INFO] [stdout] --> src/models/blockchain.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Blockchain{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 11 | pub genesis_block: Block, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.29s [INFO] running `Command { std: "docker" "inspect" "58337271ea9a87e776b84faae22265e5a03431f6e6f8e7d11937dfb7be12a1f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58337271ea9a87e776b84faae22265e5a03431f6e6f8e7d11937dfb7be12a1f2", kill_on_drop: false }` [INFO] [stdout] 58337271ea9a87e776b84faae22265e5a03431f6e6f8e7d11937dfb7be12a1f2