[INFO] cloning repository https://github.com/ntswamp/proof-of-kill [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ntswamp/proof-of-kill" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fntswamp%2Fproof-of-kill", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fntswamp%2Fproof-of-kill'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69b1e71a72307a7ca20005c89c15615ce95bd6fa [INFO] testing ntswamp/proof-of-kill against try#d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fntswamp%2Fproof-of-kill" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ntswamp/proof-of-kill on toolchain d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ntswamp/proof-of-kill [INFO] finished tweaking git repo https://github.com/ntswamp/proof-of-kill [INFO] tweaked toml for git repo https://github.com/ntswamp/proof-of-kill written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/ntswamp/proof-of-kill already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e136e5532223cefae4cac975e489094ce216a21ffd65e5ce44a4eff81cb5f70 [INFO] running `Command { std: "docker" "start" "-a" "3e136e5532223cefae4cac975e489094ce216a21ffd65e5ce44a4eff81cb5f70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e136e5532223cefae4cac975e489094ce216a21ffd65e5ce44a4eff81cb5f70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e136e5532223cefae4cac975e489094ce216a21ffd65e5ce44a4eff81cb5f70", kill_on_drop: false }` [INFO] [stdout] 3e136e5532223cefae4cac975e489094ce216a21ffd65e5ce44a4eff81cb5f70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ec93f40fc8780fc21f0310d78a2b1901a78422b0b51b9ed050a4fafbd232619 [INFO] running `Command { std: "docker" "start" "-a" "5ec93f40fc8780fc21f0310d78a2b1901a78422b0b51b9ed050a4fafbd232619", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling gimli v0.25.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling merkle-cbt v0.3.0 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling object v0.26.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling backtrace v0.3.61 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.3.1 [INFO] [stderr] Compiling rand_seeder v0.2.2 [INFO] [stderr] Compiling sled v0.34.6 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling addr2line v0.16.0 [INFO] [stderr] Compiling bitcoincash-addr v0.5.2 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling proof-of-kill v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `last_hash` in this scope [INFO] [stdout] --> src/blockchain.rs:76:31 [INFO] [stdout] | [INFO] [stdout] 76 | String::from_utf8(last_hash.to_vec())?, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/crypto.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/fight.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/fight.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::agent::*` [INFO] [stdout] --> src/fight.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::agent::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/transaction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `env_logger::from_env`: Prefer `env_logger::Builder::from_env()` instead. [INFO] [stdout] --> src/main.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | env_logger::from_env(Env::default().default_filter_or("warning")).init(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/blockchain.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | let newblock = Block::new_block( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected 4 arguments [INFO] [stdout] 75 | transactions, [INFO] [stdout] | ------------ [INFO] [stdout] 76 | String::from_utf8(last_hash.to_vec())?, [INFO] [stdout] | -------------------------------------- [INFO] [stdout] 77 | self.get_best_height()? + 1, [INFO] [stdout] | --------------------------- supplied 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/block.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new_block(transactions: Vec, prev_block_hash: String,height: i32,agent:&Agent) -> Result { [INFO] [stdout] | ^^^^^^^^^ ------------------------------ ----------------------- ----------- ------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | let agent = Agent::new(None).unwrap(); [INFO] [stdout] | ^^^^ expected struct `agent::Build`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `agent::Build` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:157:32 [INFO] [stdout] | [INFO] [stdout] 157 | let mut agent = Agent::new(None).unwrap(); [INFO] [stdout] | ^^^^ expected struct `agent::Build`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `agent::Build` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:202:28 [INFO] [stdout] | [INFO] [stdout] 202 | let agent = Agent::new(None).unwrap(); [INFO] [stdout] | ^^^^ expected struct `agent::Build`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `agent::Build` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `chain_height` and `sender_build` in initializer of `transaction::Transaction` [INFO] [stdout] --> src/transaction.rs:93:22 [INFO] [stdout] | [INFO] [stdout] 93 | let mut tx = Transaction { [INFO] [stdout] | ^^^^^^^^^^^ missing `chain_height` and `sender_build` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `chain_height` and `sender_build` in initializer of `transaction::Transaction` [INFO] [stdout] --> src/transaction.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | let mut tx = Transaction { [INFO] [stdout] | ^^^^^^^^^^^ missing `chain_height` and `sender_build` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `chain_height` and `sender_build` in initializer of `transaction::Transaction` [INFO] [stdout] --> src/transaction.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | Transaction { [INFO] [stdout] | ^^^^^^^^^^^ missing `chain_height` and `sender_build` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0063, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `proof-of-kill` due to 9 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5ec93f40fc8780fc21f0310d78a2b1901a78422b0b51b9ed050a4fafbd232619", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ec93f40fc8780fc21f0310d78a2b1901a78422b0b51b9ed050a4fafbd232619", kill_on_drop: false }` [INFO] [stdout] 5ec93f40fc8780fc21f0310d78a2b1901a78422b0b51b9ed050a4fafbd232619