[INFO] cloning repository https://github.com/007tickooayush/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/007tickooayush/rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F007tickooayush%2Frust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F007tickooayush%2Frust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1aff917c499e35314b3d41b463c24ed516d6a62 [INFO] checking 007tickooayush/rust-blockchain against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F007tickooayush%2Frust-blockchain" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/007tickooayush/rust-blockchain on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/007tickooayush/rust-blockchain [INFO] finished tweaking git repo https://github.com/007tickooayush/rust-blockchain [INFO] tweaked toml for git repo https://github.com/007tickooayush/rust-blockchain written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/007tickooayush/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memchr v2.7.1 [INFO] [stderr] Downloaded itoa v1.0.10 [INFO] [stderr] Downloaded bitcoincash-addr v0.5.2 [INFO] [stderr] Downloaded strsim v0.11.0 [INFO] [stderr] Downloaded bitcoin_hashes v0.7.6 [INFO] [stderr] Downloaded clap v4.5.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.78 [INFO] [stderr] Downloaded regex v1.10.3 [INFO] [stderr] Downloaded syn v2.0.52 [INFO] [stderr] Downloaded serde_json v1.0.114 [INFO] [stderr] Downloaded smallvec v1.13.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a406758028c8e2a62d4e57daf374df5e6f1e405331e75483eeeaf402fe0b9c1 [INFO] running `Command { std: "docker" "start" "-a" "3a406758028c8e2a62d4e57daf374df5e6f1e405331e75483eeeaf402fe0b9c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a406758028c8e2a62d4e57daf374df5e6f1e405331e75483eeeaf402fe0b9c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a406758028c8e2a62d4e57daf374df5e6f1e405331e75483eeeaf402fe0b9c1", kill_on_drop: false }` [INFO] [stdout] 3a406758028c8e2a62d4e57daf374df5e6f1e405331e75483eeeaf402fe0b9c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69ef52d0f028a0b40710af7015f8d85fc3edec3904550696faa9abdb96b75f1a [INFO] running `Command { std: "docker" "start" "-a" "69ef52d0f028a0b40710af7015f8d85fc3edec3904550696faa9abdb96b75f1a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking bitcoin_hashes v0.7.6 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking merkle-cbt v0.3.2 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking addr2line v0.21.0 [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.8 [INFO] [stderr] Checking clap v4.5.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking bitcoincash-addr v0.5.2 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking blockchain-mark1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `hex` is imported redundantly [INFO] [stdout] --> src/block.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hex; [INFO] [stdout] | ^^^ the item `hex` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `hex` is imported redundantly [INFO] [stdout] --> src/block.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hex; [INFO] [stdout] | ^^^ the item `hex` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/block.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TARGET_HEX` is never used [INFO] [stdout] --> src/block.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const TARGET_HEX: usize = 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/block.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/block.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_genesis_block`, `get_hash`, `new`, `run_proof_of_work`, `validate`, and `prepare_hash_data` are never used [INFO] [stdout] --> src/block.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub fn new_genesis_block() -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_hash(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new(data: String, prev_block_hash: String, height: usize) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn run_proof_of_work(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn validate(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn prepare_hash_data(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_block` are never used [INFO] [stdout] --> src/block.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Blockchain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 113 | pub fn new() -> Blockchain { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn add_block(&mut self, data: String) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.57s [INFO] running `Command { std: "docker" "inspect" "69ef52d0f028a0b40710af7015f8d85fc3edec3904550696faa9abdb96b75f1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69ef52d0f028a0b40710af7015f8d85fc3edec3904550696faa9abdb96b75f1a", kill_on_drop: false }` [INFO] [stdout] 69ef52d0f028a0b40710af7015f8d85fc3edec3904550696faa9abdb96b75f1a