[INFO] cloning repository https://github.com/nyavro/rust-bc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nyavro/rust-bc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyavro%2Frust-bc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyavro%2Frust-bc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4b26090ffedae2f3c96e90fdb9b01ca0032b27ba [INFO] checking nyavro/rust-bc against master#d93f678fa55842cccd2f091deccd93e9494b3764 for pr-138844 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyavro%2Frust-bc" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nyavro/rust-bc on toolchain d93f678fa55842cccd2f091deccd93e9494b3764 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nyavro/rust-bc [INFO] finished tweaking git repo https://github.com/nyavro/rust-bc [INFO] tweaked toml for git repo https://github.com/nyavro/rust-bc written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nyavro/rust-bc 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" "+d93f678fa55842cccd2f091deccd93e9494b3764" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64199bc7a6d6c539ebf463f3b42931530ffe990e7f344468a0e38fa626337266 [INFO] running `Command { std: "docker" "start" "-a" "64199bc7a6d6c539ebf463f3b42931530ffe990e7f344468a0e38fa626337266", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64199bc7a6d6c539ebf463f3b42931530ffe990e7f344468a0e38fa626337266", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64199bc7a6d6c539ebf463f3b42931530ffe990e7f344468a0e38fa626337266", kill_on_drop: false }` [INFO] [stdout] 64199bc7a6d6c539ebf463f3b42931530ffe990e7f344468a0e38fa626337266 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d23bba240c10e5e90a4cbab149adedbfe8163547aee8e0530d6be05ebc4f58c1 [INFO] running `Command { std: "docker" "start" "-a" "d23bba240c10e5e90a4cbab149adedbfe8163547aee8e0530d6be05ebc4f58c1", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking data-encoding v2.7.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking rust-bc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/block.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_encoding::HEXLOWER` [INFO] [stdout] --> src/proof_of_work.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use data_encoding::HEXLOWER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sign` [INFO] [stdout] --> src/proof_of_work.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use num_bigint::{BigInt, Sign}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/proof_of_work.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::ShlAssign` [INFO] [stdout] --> src/proof_of_work.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::ShlAssign; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/block.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_encoding::HEXLOWER` [INFO] [stdout] --> src/proof_of_work.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use data_encoding::HEXLOWER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sign` [INFO] [stdout] --> src/proof_of_work.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use num_bigint::{BigInt, Sign}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/proof_of_work.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::ShlAssign` [INFO] [stdout] --> src/proof_of_work.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::ShlAssign; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/proof_of_work.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let target: BigInt = BigInt::from(1) << (256 - TARGET_BITS);//BigInt::from(1).shl_assign(rhs); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_data` [INFO] [stdout] --> src/proof_of_work.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn proof_of_work(block_data: &DataBlock) -> (String, i64) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/data_block.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataBlock` is never constructed [INFO] [stdout] --> src/data_block.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DataBlock { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataBlock` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/block.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(pre_block_hash: String, transactions: &[Transaction], height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TARGET_BITS` is never used [INFO] [stdout] --> src/proof_of_work.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const TARGET_BITS: i32 = 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proof_of_work` is never used [INFO] [stdout] --> src/proof_of_work.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn proof_of_work(block_data: &DataBlock) -> (String, i64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/proof_of_work.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let target: BigInt = BigInt::from(1) << (256 - TARGET_BITS);//BigInt::from(1).shl_assign(rhs); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_data` [INFO] [stdout] --> src/proof_of_work.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn proof_of_work(block_data: &DataBlock) -> (String, i64) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/data_block.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataBlock` is never constructed [INFO] [stdout] --> src/data_block.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DataBlock { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataBlock` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/block.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(pre_block_hash: String, transactions: &[Transaction], height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TARGET_BITS` is never used [INFO] [stdout] --> src/proof_of_work.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const TARGET_BITS: i32 = 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proof_of_work` is never used [INFO] [stdout] --> src/proof_of_work.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn proof_of_work(block_data: &DataBlock) -> (String, i64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.94s [INFO] running `Command { std: "docker" "inspect" "d23bba240c10e5e90a4cbab149adedbfe8163547aee8e0530d6be05ebc4f58c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d23bba240c10e5e90a4cbab149adedbfe8163547aee8e0530d6be05ebc4f58c1", kill_on_drop: false }` [INFO] [stdout] d23bba240c10e5e90a4cbab149adedbfe8163547aee8e0530d6be05ebc4f58c1