[INFO] cloning repository https://github.com/kakoc/myox_cryptocurrency [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kakoc/myox_cryptocurrency" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakoc%2Fmyox_cryptocurrency", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakoc%2Fmyox_cryptocurrency'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 163760d5dd42d789e0ccad15b35b399bdff9c2a7 [INFO] testing kakoc/myox_cryptocurrency against 1.63.0 for beta-1.64-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakoc%2Fmyox_cryptocurrency" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kakoc/myox_cryptocurrency on toolchain 1.63.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.63.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kakoc/myox_cryptocurrency [INFO] finished tweaking git repo https://github.com/kakoc/myox_cryptocurrency [INFO] tweaked toml for git repo https://github.com/kakoc/myox_cryptocurrency written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/kakoc/myox_cryptocurrency already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.63.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded adler v0.2.2 [INFO] [stderr] Downloaded actix-threadpool v0.3.2 [INFO] [stderr] Downloaded listenfd v0.3.3 [INFO] [stderr] Downloaded bit-vec v0.6.2 [INFO] [stderr] Downloaded secp256k1 v0.17.2 [INFO] [stderr] Downloaded rand_xorshift v0.2.0 [INFO] [stderr] Downloaded wait-timeout v0.2.0 [INFO] [stderr] Downloaded bit-set v0.5.2 [INFO] [stderr] Downloaded rusty-fork v0.3.0 [INFO] [stderr] Downloaded proptest v0.10.0 [INFO] [stderr] Downloaded secp256k1-sys v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9de8b8d63a89c211755eefd303d8c4b35921c4bce5cafb825db206e7ed87d246 [INFO] running `Command { std: "docker" "start" "-a" "9de8b8d63a89c211755eefd303d8c4b35921c4bce5cafb825db206e7ed87d246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9de8b8d63a89c211755eefd303d8c4b35921c4bce5cafb825db206e7ed87d246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9de8b8d63a89c211755eefd303d8c4b35921c4bce5cafb825db206e7ed87d246", kill_on_drop: false }` [INFO] [stdout] 9de8b8d63a89c211755eefd303d8c4b35921c4bce5cafb825db206e7ed87d246 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d166390bcaadf3e681d1c092c76f75b9411892102e9c3509f03c606d9627ea4e [INFO] running `Command { std: "docker" "start" "-a" "d166390bcaadf3e681d1c092c76f75b9411892102e9c3509f03c606d9627ea4e", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling smallvec v1.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling cc v1.0.41 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling gimli v0.21.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling adler v0.2.2 [INFO] [stderr] Compiling parking v1.0.4 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling fastrand v1.3.3 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling bit-vec v0.6.2 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling miniz_oxide v0.4.0 [INFO] [stderr] Compiling concurrent-queue v1.1.1 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling listenfd v0.3.3 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling secp256k1-sys v0.1.2 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling flate2 v1.0.16 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling addr2line v0.12.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_xorshift v0.2.0 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling backtrace v0.3.49 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling chrono v0.4.12 [INFO] [stderr] Compiling secp256k1 v0.17.2 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling proptest v0.10.0 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling actix-web-codegen v0.2.2 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling pin-project v0.4.22 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling actix-threadpool v0.3.2 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling actix-service v1.0.5 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling blocking v0.4.6 [INFO] [stderr] Compiling h2 v0.2.5 [INFO] [stderr] Compiling combine v4.2.1 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Compiling smol v0.1.18 [INFO] [stderr] Compiling actix-utils v1.0.6 [INFO] [stderr] Compiling async-std v1.6.2 [INFO] [stderr] Compiling actix-server v1.0.3 [INFO] [stderr] Compiling actix-tls v1.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling actix-router v0.2.4 [INFO] [stderr] Compiling actix-connect v1.0.2 [INFO] [stderr] Compiling actix-http v1.0.1 [INFO] [stderr] Compiling awc v1.0.1 [INFO] [stderr] Compiling redis v0.16.0 [INFO] [stderr] Compiling actix-web v2.0.0 [INFO] [stderr] Compiling myox_cryptocurrency v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `to_binary` [INFO] [stdout] --> src/block.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | hashing::{gen_hash, to_binary}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proptest::prelude::*` [INFO] [stdout] --> src/blockchain.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use proptest::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/blockchain.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Connection` [INFO] [stdout] --> src/pub_sub.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use redis::{Commands, Connection, RedisResult, Value}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pin_mut` [INFO] [stdout] --> src/pub_sub.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pin_mut, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi` [INFO] [stdout] --> src/transaction.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use secp256k1::{ffi, PublicKey, Signature}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os::raw::c_uchar` [INFO] [stdout] --> src/transaction.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{collections::HashMap, os::raw::c_uchar}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/transaction.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Verification` [INFO] [stdout] --> src/wallet.rs:4:82 [INFO] [stdout] | [INFO] [stdout] 4 | use secp256k1::{All, Error, Message, PublicKey, Secp256k1, SecretKey, Signature, Verification}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `channel` [INFO] [stdout] --> src/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::channel::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Strategy`, `ValueTree` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use proptest::strategy::{Strategy, ValueTree}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proptest::test_runner::TestRunner` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use proptest::test_runner::TestRunner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/main.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Commands` [INFO] [stdout] --> src/pub_sub.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use redis::{Commands, Connection, RedisResult, Value}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/main.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/blockchain.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let t = block.timestamp; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_simulation` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn run_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_nth_block` is never used [INFO] [stdout] --> src/blockchain.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn get_nth_block(&self, i: usize) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_chain` is never used [INFO] [stdout] --> src/blockchain.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn is_valid_chain(chain: &Blockchain) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `replace_chain` is never used [INFO] [stdout] --> src/blockchain.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn replace_chain(&mut self, chain: &Blockchain) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_binary` is never used [INFO] [stdout] --> src/hashing.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_binary(string: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHANNELS` is never used [INFO] [stdout] --> src/pub_sub.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const CHANNELS: &'static [&'static str] = &["TEST", "BLOCKCHAIN"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `from`, `to` and `amount` are never read [INFO] [stdout] --> src/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 21 | id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | from: Wallet, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | to: PublicKey, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 24 | amount: u64, [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] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(from: Wallet, to: PublicKey, amount: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_transaction` is never used [INFO] [stdout] --> src/transaction.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn is_valid_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/transaction.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn update(&mut self, from: Wallet, to: PublicKey, amount: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secp` and `secret_key` are never read [INFO] [stdout] --> src/wallet.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Wallet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | secp: Secp256k1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub public_key: PublicKey, [INFO] [stdout] 11 | secret_key: SecretKey, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wallet` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/wallet.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(start_balance: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sign` is never used [INFO] [stdout] --> src/wallet.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn sign(&self, data: String) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `verify` is never used [INFO] [stdout] --> src/wallet.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn verify(&self, data: String, sig: [u8; 64]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_transaction` is never used [INFO] [stdout] --> src/wallet.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn create_transaction(&mut self, amount: u64, to: PublicKey) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/wallet.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn verify(data: String, sig: [u8; 64], public_key: PublicKey) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 0 that must be used [INFO] [stdout] --> src/main.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | futures::join!(server.run(), pubsub.handle_message()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `futures::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 43s [INFO] running `Command { std: "docker" "inspect" "d166390bcaadf3e681d1c092c76f75b9411892102e9c3509f03c606d9627ea4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d166390bcaadf3e681d1c092c76f75b9411892102e9c3509f03c606d9627ea4e", kill_on_drop: false }` [INFO] [stdout] d166390bcaadf3e681d1c092c76f75b9411892102e9c3509f03c606d9627ea4e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81c649216be0f08f1001e613691eed979759cb89ad7b3c9b2fbd29d835c1d8e4 [INFO] running `Command { std: "docker" "start" "-a" "81c649216be0f08f1001e613691eed979759cb89ad7b3c9b2fbd29d835c1d8e4", kill_on_drop: false }` [INFO] [stderr] Compiling myox_cryptocurrency v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `to_binary` [INFO] [stdout] --> src/block.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | hashing::{gen_hash, to_binary}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Connection` [INFO] [stdout] --> src/pub_sub.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use redis::{Commands, Connection, RedisResult, Value}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pin_mut` [INFO] [stdout] --> src/pub_sub.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pin_mut, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi` [INFO] [stdout] --> src/transaction.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use secp256k1::{ffi, PublicKey, Signature}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os::raw::c_uchar` [INFO] [stdout] --> src/transaction.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{collections::HashMap, os::raw::c_uchar}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/transaction.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Verification` [INFO] [stdout] --> src/wallet.rs:4:82 [INFO] [stdout] | [INFO] [stdout] 4 | use secp256k1::{All, Error, Message, PublicKey, Secp256k1, SecretKey, Signature, Verification}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `channel` [INFO] [stdout] --> src/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::channel::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Strategy`, `ValueTree` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use proptest::strategy::{Strategy, ValueTree}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proptest::test_runner::TestRunner` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use proptest::test_runner::TestRunner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/main.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/main.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Commands` [INFO] [stdout] --> src/pub_sub.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use redis::{Commands, Connection, RedisResult, Value}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/blockchain.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let t = block.timestamp; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/blockchain.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | for (i,v) in data.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/blockchain.rs:137:18 [INFO] [stdout] | [INFO] [stdout] 137 | for (i,v) in data.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/blockchain.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | for (i,v) in data2.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/wallet.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let w = Wallet::new(111); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/wallet.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | if let Some(r) = r { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/wallet.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | if let Some(r) = r { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_simulation` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn run_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_binary` is never used [INFO] [stdout] --> src/hashing.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_binary(string: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHANNELS` is never used [INFO] [stdout] --> src/pub_sub.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const CHANNELS: &'static [&'static str] = &["TEST", "BLOCKCHAIN"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to` and `amount` are never read [INFO] [stdout] --> src/transaction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 21 | id: String, [INFO] [stdout] 22 | from: Wallet, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | to: PublicKey, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 24 | amount: u64, [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] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 0 that must be used [INFO] [stdout] --> src/main.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | futures::join!(server.run(), pubsub.handle_message()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `futures::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.68s [INFO] running `Command { std: "docker" "inspect" "81c649216be0f08f1001e613691eed979759cb89ad7b3c9b2fbd29d835c1d8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81c649216be0f08f1001e613691eed979759cb89ad7b3c9b2fbd29d835c1d8e4", kill_on_drop: false }` [INFO] [stdout] 81c649216be0f08f1001e613691eed979759cb89ad7b3c9b2fbd29d835c1d8e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8fc275d58e7a08edf5003772069482cdc76fd3ceca5757cb81dbb57a8b313efd [INFO] running `Command { std: "docker" "start" "-a" "8fc275d58e7a08edf5003772069482cdc76fd3ceca5757cb81dbb57a8b313efd", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `to_binary` [INFO] [stderr] --> src/block.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | hashing::{gen_hash, to_binary}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::Utc` [INFO] [stderr] --> src/block.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use chrono::Utc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::Utc` [INFO] [stderr] --> src/blockchain.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use chrono::Utc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Connection` [INFO] [stderr] --> src/pub_sub.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use redis::{Commands, Connection, RedisResult, Value}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pin_mut` [INFO] [stderr] --> src/pub_sub.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | pin_mut, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ffi` [INFO] [stderr] --> src/transaction.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | use secp256k1::{ffi, PublicKey, Signature}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `os::raw::c_uchar` [INFO] [stderr] --> src/transaction.rs:6:33 [INFO] [stderr] | [INFO] [stderr] 6 | use std::{collections::HashMap, os::raw::c_uchar}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stderr] --> src/transaction.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Verification` [INFO] [stderr] --> src/wallet.rs:4:82 [INFO] [stderr] | [INFO] [stderr] 4 | use secp256k1::{All, Error, Message, PublicKey, Secp256k1, SecretKey, Signature, Verification}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Receiver`, `channel` [INFO] [stderr] --> src/main.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | use futures::channel::mpsc::{channel, Receiver, Sender}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Strategy`, `ValueTree` [INFO] [stderr] --> src/main.rs:14:26 [INFO] [stderr] | [INFO] [stderr] 14 | use proptest::strategy::{Strategy, ValueTree}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `proptest::test_runner::TestRunner` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use proptest::test_runner::TestRunner; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Sha256` [INFO] [stderr] --> src/main.rs:18:20 [INFO] [stderr] | [INFO] [stderr] 18 | use sha2::{Digest, Sha256}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Digest` [INFO] [stderr] --> src/main.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | use sha2::{Digest, Sha256}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Commands` [INFO] [stderr] --> src/pub_sub.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use redis::{Commands, Connection, RedisResult, Value}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/blockchain.rs:64:13 [INFO] [stderr] | [INFO] [stderr] 64 | let t = block.timestamp; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/blockchain.rs:121:18 [INFO] [stderr] | [INFO] [stderr] 121 | for (i,v) in data.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/blockchain.rs:137:18 [INFO] [stderr] | [INFO] [stderr] 137 | for (i,v) in data.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/blockchain.rs:141:18 [INFO] [stderr] | [INFO] [stderr] 141 | for (i,v) in data2.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/wallet.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | let w = Wallet::new(111); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/wallet.rs:99:21 [INFO] [stderr] | [INFO] [stderr] 99 | if let Some(r) = r { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/wallet.rs:112:21 [INFO] [stderr] | [INFO] [stderr] 112 | if let Some(r) = r { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: function `run_simulation` is never used [INFO] [stderr] --> src/main.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | fn run_simulation() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `to_binary` is never used [INFO] [stderr] --> src/hashing.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn to_binary(string: &str) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CHANNELS` is never used [INFO] [stderr] --> src/pub_sub.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | const CHANNELS: &'static [&'static str] = &["TEST", "BLOCKCHAIN"]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `from`, `to` and `amount` are never read [INFO] [stderr] --> src/transaction.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct Transaction { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 21 | id: String, [INFO] [stderr] 22 | from: Wallet, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 23 | to: PublicKey, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 24 | amount: u64, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Transaction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: unused `Result` in tuple element 0 that must be used [INFO] [stderr] --> src/main.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | futures::join!(server.run(), pubsub.handle_message()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `futures::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `myox_cryptocurrency` (bin "myox_cryptocurrency" test) generated 27 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/myox_cryptocurrency-1787594ec4a15ef0) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test transaction::test::test_has_id ... ok [INFO] [stdout] test transaction::test::test_state_after_transaction ... ok [INFO] [stdout] test transaction::test::test_transaction_from_lower_than_amount - should panic ... ok [INFO] [stdout] test transaction::test::test_transaction_next_transaction_with_same_recipient ... ok [INFO] [stdout] test transaction::test::test_transaction_update_high_amount - should panic ... ok [INFO] [stdout] test transaction::test::test_transaction_invalid ... ok [INFO] [stdout] test wallet::test::test_basic_creation ... ok [INFO] [stdout] test wallet::test::test_invalid_sign_data ... ok [INFO] [stdout] test transaction::test::test_transaction_next_transaction ... ok [INFO] [stdout] test wallet::test::test_valid_sign_data ... ok [INFO] [stdout] test transaction::test::test_transaction_valid ... ok [INFO] [stdout] test wallet::test::transaction_created ... ok [INFO] [stdout] test wallet::test::transaction_not_created ... ok [INFO] [stdout] test wallet::test::transaction_has_valid_props ... ok [INFO] [stdout] test block::test_block_creation ... ok [INFO] [stdout] test blockchain::test::test_replace_chain ... ok [INFO] [stdout] test blockchain::test::test_broken_chain ... ok [INFO] [stdout] test blockchain::test::test_chain_validity ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 14.91s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8fc275d58e7a08edf5003772069482cdc76fd3ceca5757cb81dbb57a8b313efd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fc275d58e7a08edf5003772069482cdc76fd3ceca5757cb81dbb57a8b313efd", kill_on_drop: false }` [INFO] [stdout] 8fc275d58e7a08edf5003772069482cdc76fd3ceca5757cb81dbb57a8b313efd