[INFO] cloning repository https://github.com/sqdfa/blk
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sqdfa/blk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsqdfa%2Fblk", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsqdfa%2Fblk'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 02a83eb7f1f9039e9571d52c248bbc9c34a36a5b
[INFO] checking sqdfa/blk against master#32cd9114712a24010b0583624dc52ac302194128 for pr-143717
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsqdfa%2Fblk" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/sqdfa/blk
[INFO] finished tweaking git repo https://github.com/sqdfa/blk
[INFO] tweaked toml for git repo https://github.com/sqdfa/blk written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/sqdfa/blk on toolchain 32cd9114712a24010b0583624dc52ac302194128
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/sqdfa/blk 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" "+32cd9114712a24010b0583624dc52ac302194128" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ba5c42c68b14303d9a2eae70adc4ea01826325afc8a30e077302801f7e99a63f
[INFO] running `Command { std: "docker" "start" "-a" "ba5c42c68b14303d9a2eae70adc4ea01826325afc8a30e077302801f7e99a63f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ba5c42c68b14303d9a2eae70adc4ea01826325afc8a30e077302801f7e99a63f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ba5c42c68b14303d9a2eae70adc4ea01826325afc8a30e077302801f7e99a63f", kill_on_drop: false }`
[INFO] [stdout] ba5c42c68b14303d9a2eae70adc4ea01826325afc8a30e077302801f7e99a63f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 52c78e3cffde321bb50d5926107aa2f88f05c3b28829d7cce3528003e5e63510
[INFO] running `Command { std: "docker" "start" "-a" "52c78e3cffde321bb50d5926107aa2f88f05c3b28829d7cce3528003e5e63510", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling serde v1.0.216
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking fxhash v0.2.1
[INFO] [stderr]     Checking crc32fast v1.4.2
[INFO] [stderr]     Checking rustc-serialize v0.3.25
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling serde_derive v1.0.216
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking nanoid v0.4.0
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking blockchain-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/transaction.rs:4:40
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::{utxoset::UTXOSET, wallet::{self, Wallet}};
[INFO] [stdout]   |                                        ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/transaction.rs:4:40
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::{utxoset::UTXOSET, wallet::{self, Wallet}};
[INFO] [stdout]   |                                        ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/utxoset.rs:41:18
[INFO] [stdout]    |
[INFO] [stdout] 41 |             for (i, tx_out) in tx_outs.iter().enumerate(){
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_UTXO_set` should have a snake case name
[INFO] [stdout]   --> src/blockchain.rs:92:12
[INFO] [stdout]    |
[INFO] [stdout] 92 |     pub fn get_UTXO_set(&self) -> HashMap<String, Vec<Txout>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_utxo_set`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_get_UTXO_set` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:166:8
[INFO] [stdout]     |
[INFO] [stdout] 166 |     fn test_get_UTXO_set() {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_get_utxo_set`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/utxoset.rs:41:18
[INFO] [stdout]    |
[INFO] [stdout] 41 |             for (i, tx_out) in tx_outs.iter().enumerate(){
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TARGET_HEXS` is never used
[INFO] [stdout]  --> src/block.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const TARGET_HEXS:usize=4;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/block.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Block {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 24 |     //设置区块哈希
[INFO] [stdout] 25 |     pub fn set_hash(&mut self)->Result<(),Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn new_block(trans:Vec<Transaction>, prev_block_hash: String,height:u128) ->Result<Self,Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub fn get_hash(&self)->String{
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn get_prev_hash(&self)->String{
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58 |     pub fn new_init_block(to:Vec<u8>) ->Result<Self,Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn verify_block(&mut self)->bool{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub fn mine_block(&mut self)->Result<(),Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 78 |     pub fn get_height(&self)->u128{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BlockChain` is never constructed
[INFO] [stdout]   --> src/blockchain.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct BlockChain {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `add_block`, `new`, `print_blocks`, and `get_UTXO_set` are never used
[INFO] [stdout]   --> src/blockchain.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl BlockChain {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] 16 |     pub fn add_block(&mut self, trans: Vec<Transaction>) -> Result<Block, Box<dyn std::error::Error>> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn new(to:Vec<u8>) -> Result<Self, Box<dyn std::error::Error>> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn print_blocks(&self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub fn get_UTXO_set(&self) -> HashMap<String, Vec<Txout>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new_coinbase_tx`, `new`, and `is_coinbase` are never used
[INFO] [stdout]   --> src/transaction.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl Transaction{
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 27 |     pub fn new_coinbase_tx(to:Vec<u8>)->Result<Self,Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn new(wallet:Wallet, to:Vec<u8>, amount:u128, utxo: &mut UTXOSET)->Result<Self,Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 82 |     pub fn is_coinbase(&self)->bool{
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UTXOSET` is never constructed
[INFO] [stdout]  --> src/utxoset.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct UTXOSET(pub HashMap<String, Vec<Txout>>);
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `update`, `update_tx`, and `find_spendable_outputs` are never used
[INFO] [stdout]   --> src/utxoset.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 9  | impl UTXOSET{
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 10 |     pub fn new(bc:&BlockChain)->Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     pub fn update(&mut self, block:Block){
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn update_tx(&mut self, tx:&Transaction){
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn find_spendable_outputs(&self, pubkey:&[u8])->Result<(u128,HashMap<String,Vec<u128>>),Box<dyn std::error::Error>>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `signature`, `verify`, and `get_pubkey` are never used
[INFO] [stdout]   --> src/wallet.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Wallet{
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 16 |     pub fn new(path:String)->Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn signature(&self, data:String)->Vec<u8>{
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn verify(&self, data:String, signature:Vec<u8>)->bool{
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn get_pubkey(&self)->Vec<u8>{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_UTXO_set` should have a snake case name
[INFO] [stdout]   --> src/blockchain.rs:92:12
[INFO] [stdout]    |
[INFO] [stdout] 92 |     pub fn get_UTXO_set(&self) -> HashMap<String, Vec<Txout>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_utxo_set`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.64s
[INFO] running `Command { std: "docker" "inspect" "52c78e3cffde321bb50d5926107aa2f88f05c3b28829d7cce3528003e5e63510", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "52c78e3cffde321bb50d5926107aa2f88f05c3b28829d7cce3528003e5e63510", kill_on_drop: false }`
[INFO] [stdout] 52c78e3cffde321bb50d5926107aa2f88f05c3b28829d7cce3528003e5e63510
