[INFO] cloning repository https://github.com/687c/practical1
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/687c/practical1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ee4598e750f8f99279d8fe8bc97c50244ba0a87c
[INFO] checking 687c/practical1 against try#5fee451ebd94296ea05214e819c311e164b30af6 for pr-139042
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F687c%2Fpractical1" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/687c/practical1 on toolchain 5fee451ebd94296ea05214e819c311e164b30af6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/687c/practical1
[INFO] finished tweaking git repo https://github.com/687c/practical1
[INFO] tweaked toml for git repo https://github.com/687c/practical1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/687c/practical1 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" "+5fee451ebd94296ea05214e819c311e164b30af6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 75cc59788ade459a69fcfdb703dcd2c4b78c63a6ec92143fef0d820d17106514
[INFO] running `Command { std: "docker" "start" "-a" "75cc59788ade459a69fcfdb703dcd2c4b78c63a6ec92143fef0d820d17106514", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "75cc59788ade459a69fcfdb703dcd2c4b78c63a6ec92143fef0d820d17106514", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "75cc59788ade459a69fcfdb703dcd2c4b78c63a6ec92143fef0d820d17106514", kill_on_drop: false }`
[INFO] [stdout] 75cc59788ade459a69fcfdb703dcd2c4b78c63a6ec92143fef0d820d17106514
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2ffe323cb566d0a19ca048d85233c979fca42aff43690f901bd71f9a8d130b20
[INFO] running `Command { std: "docker" "start" "-a" "2ffe323cb566d0a19ca048d85233c979fca42aff43690f901bd71f9a8d130b20", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.132
[INFO] [stderr]    Compiling typenum v1.15.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.43
[INFO] [stderr]    Compiling quote v1.0.21
[INFO] [stderr]    Compiling unicode-ident v1.0.3
[INFO] [stderr]    Compiling generic-array v0.14.6
[INFO] [stderr]    Compiling cc v1.0.73
[INFO] [stderr]    Compiling syn v1.0.99
[INFO] [stderr]     Checking ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling anyhow v1.0.63
[INFO] [stderr]     Checking cpufeatures v0.2.4
[INFO] [stderr]     Checking bitcoin_hashes v0.11.0
[INFO] [stderr]     Checking base64ct v1.5.2
[INFO] [stderr]    Compiling secp256k1-sys v0.6.0
[INFO] [stderr]     Checking getrandom v0.2.7
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking block-buffer v0.10.2
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.10.3
[INFO] [stderr]     Checking sha2 v0.10.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.34
[INFO] [stderr]     Checking thiserror v1.0.34
[INFO] [stderr]     Checking secp256k1 v0.24.0
[INFO] [stderr]     Checking practical1 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/account.rs:15:12
[INFO] [stdout]     |
[INFO] [stdout] 14  | impl Account {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] 15  |     pub fn gen_account() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34  |     pub fn add_key_pair_to_wallet(&mut self, key_pair: KeyPair) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn airdrop_coins(&mut self, input: u128) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 78  |     pub fn create_payment_op(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn get_balance(&self) -> u128 {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     pub fn print_balance(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn sign_data(&self, msg: String, index: usize) -> Signature {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `create_block` and `create_hash` are never used
[INFO] [stdout]   --> src/block.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Block {
[INFO] [stdout]    | ---------- associated functions in this implementation
[INFO] [stdout] 15 |     pub fn create_block(set_of_tx: Vec<Transaction>, prev_hash: String) -> Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     fn create_hash<T: Hash>(t: &T) -> u64 {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Blockchain` is never constructed
[INFO] [stdout]  --> src/blockchain.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Blockchain {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init_blockchain`, `get_faucet_tokens`, `validate_block`, and `show_coin_db` 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 init_blockchain() -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52  |     pub fn get_faucet_tokens(&mut self, acc: &mut Account, amt: u128) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 68  |     pub fn validate_block(&mut self, block: &mut Block) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn show_coin_db(&self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Hash` is never constructed
[INFO] [stdout]  --> src/hash.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Hash {}
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `to_sha256` is never used
[INFO] [stdout]  --> src/hash.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | impl Hash {
[INFO] [stdout]   | --------- associated function in this implementation
[INFO] [stdout] 7 |     fn to_sha256(message: String) -> String {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new_key_pair`, `print_key_pair`, `save_key_to_file`, and `read_from_file` are never used
[INFO] [stdout]   --> src/keypair.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl KeyPair {
[INFO] [stdout]    | ------------ associated functions in this implementation
[INFO] [stdout] 16 |     pub fn new_key_pair() -> Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn print_key_pair(key_pair: &Self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn save_key_to_file(key_pair: &Self /* path: Path */) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     pub fn read_from_file(/* path: Path */) -> Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `create_operation` and `verify_operation` are never used
[INFO] [stdout]   --> src/operation.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Operation {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 14 |     pub fn create_operation(
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn verify_operation(self /*, operation: Operation */) -> Result<bool> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `sign_data`, `verify_sig`, and `print_sig` are never used
[INFO] [stdout]   --> src/signature.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Signature {
[INFO] [stdout]    | -------------- associated functions in this implementation
[INFO] [stdout] 12 |     pub fn sign_data(private_key: &SecretKey, message: String) -> Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn verify_sig(sig: Signature, public_key: PublicKey, message: String) -> Result<bool> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn print_sig(sig: &Self) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `create_tx`, `calculate_hash`, and `gen_nonce` are never used
[INFO] [stdout]   --> src/tx.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Transaction {
[INFO] [stdout]    | ---------------- associated functions in this implementation
[INFO] [stdout] 15 |     pub fn create_tx(set_of_ops: Vec<Operation>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     fn calculate_hash<T: Hash>(t: &T) -> u64 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     fn gen_nonce() -> String {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sig`
[INFO] [stdout]   --> src/operation.rs:95:13
[INFO] [stdout]    |
[INFO] [stdout] 95 |         let sig = acc1.sign_data(comment.to_string(), 0);
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_sig`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_balance` is never used
[INFO] [stdout]    --> src/account.rs:114:12
[INFO] [stdout]     |
[INFO] [stdout] 14  | impl Account {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 114 |     pub fn print_balance(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `print_key_pair`, `save_key_to_file`, and `read_from_file` are never used
[INFO] [stdout]   --> src/keypair.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl KeyPair {
[INFO] [stdout]    | ------------ associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn print_key_pair(key_pair: &Self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn save_key_to_file(key_pair: &Self /* path: Path */) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     pub fn read_from_file(/* path: Path */) -> Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `print_sig` is never used
[INFO] [stdout]   --> src/signature.rs:38:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Signature {
[INFO] [stdout]    | -------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn print_sig(sig: &Self) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/blockchain.rs:265:9
[INFO] [stdout]     |
[INFO] [stdout] 265 |         init.show_coin_db();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 265 |         let _ = init.show_coin_db();
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.78s
[INFO] running `Command { std: "docker" "inspect" "2ffe323cb566d0a19ca048d85233c979fca42aff43690f901bd71f9a8d130b20", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2ffe323cb566d0a19ca048d85233c979fca42aff43690f901bd71f9a8d130b20", kill_on_drop: false }`
[INFO] [stdout] 2ffe323cb566d0a19ca048d85233c979fca42aff43690f901bd71f9a8d130b20
