[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] building 007tickooayush/rust-blockchain against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F007tickooayush%2Frust-blockchain" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/007tickooayush/rust-blockchain on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 610a3fc198e3f7b927612a202532780be1c42ed067892d67c2429f79d8fac510 [INFO] running `Command { std: "docker" "start" "-a" "610a3fc198e3f7b927612a202532780be1c42ed067892d67c2429f79d8fac510", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "610a3fc198e3f7b927612a202532780be1c42ed067892d67c2429f79d8fac510", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "610a3fc198e3f7b927612a202532780be1c42ed067892d67c2429f79d8fac510", kill_on_drop: false }` [INFO] [stdout] 610a3fc198e3f7b927612a202532780be1c42ed067892d67c2429f79d8fac510 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28d6343da186d78360896e9d1f4ca57934a4aa9caf6ed69358155989a0b9a5c9 [INFO] running `Command { std: "docker" "start" "-a" "28d6343da186d78360896e9d1f4ca57934a4aa9caf6ed69358155989a0b9a5c9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling 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 utf8parse v0.2.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling anstream v0.6.13 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling strsim v0.11.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling clap_builder v4.5.2 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling clap v4.5.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling merkle-cbt v0.3.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling bitcoincash-addr v0.5.2 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling blockchain-mark1 v0.1.0 (/opt/rustwide/workdir) [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)]` (part of `#[warn(unused)]`) 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] [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] [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "28d6343da186d78360896e9d1f4ca57934a4aa9caf6ed69358155989a0b9a5c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28d6343da186d78360896e9d1f4ca57934a4aa9caf6ed69358155989a0b9a5c9", kill_on_drop: false }` [INFO] [stdout] 28d6343da186d78360896e9d1f4ca57934a4aa9caf6ed69358155989a0b9a5c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 661ea53e6e777ea471d484b5d457a0c67dc18df93a1bc62b3843b65453810431 [INFO] running `Command { std: "docker" "start" "-a" "661ea53e6e777ea471d484b5d457a0c67dc18df93a1bc62b3843b65453810431", kill_on_drop: false }` [INFO] [stderr] Compiling blockchain-mark1 v0.1.0 (/opt/rustwide/workdir) [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.75s [INFO] running `Command { std: "docker" "inspect" "661ea53e6e777ea471d484b5d457a0c67dc18df93a1bc62b3843b65453810431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "661ea53e6e777ea471d484b5d457a0c67dc18df93a1bc62b3843b65453810431", kill_on_drop: false }` [INFO] [stdout] 661ea53e6e777ea471d484b5d457a0c67dc18df93a1bc62b3843b65453810431