[INFO] cloning repository https://github.com/keelgur/simplechain
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/keelgur/simplechain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeelgur%2Fsimplechain", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeelgur%2Fsimplechain'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0f4b5201e8e097e6987a5788066b7aed7649a144
[INFO] checking keelgur/simplechain against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeelgur%2Fsimplechain" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/keelgur/simplechain
[INFO] finished tweaking git repo https://github.com/keelgur/simplechain
[INFO] tweaked toml for git repo https://github.com/keelgur/simplechain written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/keelgur/simplechain on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/keelgur/simplechain 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded serde_json v1.0.82
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1d79337c24ecf6c64f7138640fb5af1b9bedc81a04c9d283f60c81e51aec224c
[INFO] running `Command { std: "docker" "start" "-a" "1d79337c24ecf6c64f7138640fb5af1b9bedc81a04c9d283f60c81e51aec224c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1d79337c24ecf6c64f7138640fb5af1b9bedc81a04c9d283f60c81e51aec224c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1d79337c24ecf6c64f7138640fb5af1b9bedc81a04c9d283f60c81e51aec224c", kill_on_drop: false }`
[INFO] [stdout] 1d79337c24ecf6c64f7138640fb5af1b9bedc81a04c9d283f60c81e51aec224c
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 72fa3f43b5e0ab656edb8328e9cb14e111aef9a60be8b7d50b73082507d5fd97
[INFO] running `Command { std: "docker" "start" "-a" "72fa3f43b5e0ab656edb8328e9cb14e111aef9a60be8b7d50b73082507d5fd97", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.40
[INFO] [stderr]    Compiling quote v1.0.20
[INFO] [stderr]    Compiling unicode-ident v1.0.2
[INFO] [stderr]    Compiling syn v1.0.98
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling serde v1.0.140
[INFO] [stderr]    Compiling ahash v0.7.6
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling serde_derive v1.0.140
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]     Checking once_cell v1.13.0
[INFO] [stderr]    Compiling serde_json v1.0.82
[INFO] [stderr]     Checking itoa v1.0.2
[INFO] [stderr]     Checking ryu v1.0.10
[INFO] [stderr]     Checking getrandom v0.2.7
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking hashbrown v0.11.2
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]    Compiling toml v0.5.9
[INFO] [stderr]    Compiling borsh-derive-internal v0.9.3
[INFO] [stderr]    Compiling borsh-schema-derive-internal v0.9.3
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling borsh-derive v0.9.3
[INFO] [stderr]     Checking borsh v0.9.3
[INFO] [stderr]     Checking simplechain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout]    --> src/chain.rs:183:13
[INFO] [stdout]     |
[INFO] [stdout] 183 |         let hash = s.finish();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/chain.rs:204:17
[INFO] [stdout]     |
[INFO] [stdout] 204 |             let mut l:Vec<Block>=Vec::new();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `NotEnoughTransactionsError` is never constructed
[INFO] [stdout]   --> src/chain.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum Errs{
[INFO] [stdout]    |          ---- variant in this enum
[INFO] [stdout] 13 |     EmptyMempoolError,
[INFO] [stdout] 14 |     NotEnoughTransactionsError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Errs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Header` is never constructed
[INFO] [stdout]    --> src/chain.rs:108:12
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub struct Header{
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `mint_pow` is never used
[INFO] [stdout]    --> src/chain.rs:116:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl Blockchain{
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] 116 |     fn mint_pow(&mut self, pool: &mut Mempool)->Result<Header,Errs>{
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `difficulty` is never read
[INFO] [stdout]    --> src/chain.rs:152:5
[INFO] [stdout]     |
[INFO] [stdout] 151 | pub struct Config{
[INFO] [stdout]     |            ------ field in this struct
[INFO] [stdout] 152 |     difficulty: String,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mine_block` is never used
[INFO] [stdout]    --> src/chain.rs:170:4
[INFO] [stdout]     |
[INFO] [stdout] 170 | fn mine_block(b:&Block, head:&Header, diff:&Config) -> (u64, String) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout]    --> src/chain.rs:183:13
[INFO] [stdout]     |
[INFO] [stdout] 183 |         let hash = s.finish();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/chain.rs:204:17
[INFO] [stdout]     |
[INFO] [stdout] 204 |             let mut l:Vec<Block>=Vec::new();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Errs` is never used
[INFO] [stdout]   --> src/chain.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum Errs{
[INFO] [stdout]    |          ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Transaction` is never constructed
[INFO] [stdout]   --> src/chain.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub struct Transaction{
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/chain.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl Transaction{
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] 27 |     pub fn new(fr:&str,t:&str,am:f64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Block` is never constructed
[INFO] [stdout]   --> src/chain.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |  pub struct Block{
[INFO] [stdout]    |             ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `hash_block`, and `get_prev` are never used
[INFO] [stdout]   --> src/chain.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 44 | impl Block{
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 45 |     pub fn new(pr:&str) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |     pub fn hash_block(&self) -> u64 {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     pub fn get_prev(&self)->String{
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Blockchain` is never constructed
[INFO] [stdout]   --> src/chain.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct Blockchain{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Mempool` is never constructed
[INFO] [stdout]   --> src/chain.rs:63:12
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub struct Mempool{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.18s
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/chain.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 67 | impl Mempool{
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 68 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `on_transaction`, and `mint` are never used
[INFO] [stdout]   --> src/chain.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 73 | impl Blockchain{
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] 74 |     pub fn new(mut list: Vec<Block>) -> Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |      pub fn on_transaction(tx: Transaction, pool:&mut Mempool) {
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 90 |     pub fn mint(&mut self, pool: &mut Mempool) ->Result<(),Errs>{
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Header` is never constructed
[INFO] [stdout]    --> src/chain.rs:108:12
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub struct Header{
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `mint_pow` is never used
[INFO] [stdout]    --> src/chain.rs:116:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl Blockchain{
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] 116 |     fn mint_pow(&mut self, pool: &mut Mempool)->Result<Header,Errs>{
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Config` is never constructed
[INFO] [stdout]    --> src/chain.rs:151:12
[INFO] [stdout]     |
[INFO] [stdout] 151 | pub struct Config{
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `load_config` is never used
[INFO] [stdout]    --> src/chain.rs:156:8
[INFO] [stdout]     |
[INFO] [stdout] 156 | pub fn load_config()->Config{
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_savepath` is never used
[INFO] [stdout]    --> src/chain.rs:164:12
[INFO] [stdout]     |
[INFO] [stdout] 163 | impl Config{
[INFO] [stdout]     | ----------- method in this implementation
[INFO] [stdout] 164 |     pub fn get_savepath(&self)->String{
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mine_block` is never used
[INFO] [stdout]    --> src/chain.rs:170:4
[INFO] [stdout]     |
[INFO] [stdout] 170 | fn mine_block(b:&Block, head:&Header, diff:&Config) -> (u64, String) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `load` and `save` are never used
[INFO] [stdout]    --> src/chain.rs:193:12
[INFO] [stdout]     |
[INFO] [stdout] 192 | impl Blockchain{
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] 193 |     pub fn load<P: AsRef<Path>>(&self,path: P) -> Blockchain {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 208 |     pub fn save(&self,config: &Config) -> std::io::Result<()> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "72fa3f43b5e0ab656edb8328e9cb14e111aef9a60be8b7d50b73082507d5fd97", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "72fa3f43b5e0ab656edb8328e9cb14e111aef9a60be8b7d50b73082507d5fd97", kill_on_drop: false }`
[INFO] [stdout] 72fa3f43b5e0ab656edb8328e9cb14e111aef9a60be8b7d50b73082507d5fd97
