[INFO] cloning repository https://github.com/JasonDavidoff85/wumbo_coin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JasonDavidoff85/wumbo_coin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJasonDavidoff85%2Fwumbo_coin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJasonDavidoff85%2Fwumbo_coin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e01e2e71baad3d6d232e18431f16a4cc8f8f04c [INFO] building JasonDavidoff85/wumbo_coin against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJasonDavidoff85%2Fwumbo_coin" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JasonDavidoff85/wumbo_coin [INFO] finished tweaking git repo https://github.com/JasonDavidoff85/wumbo_coin [INFO] tweaked toml for git repo https://github.com/JasonDavidoff85/wumbo_coin written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JasonDavidoff85/wumbo_coin on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JasonDavidoff85/wumbo_coin 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.5.6 [INFO] [stderr] Downloaded cc v1.1.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3062318a9315ef461a1d5211188c6b21f2f42e7df46e76d6e52196ccc1dc610a [INFO] running `Command { std: "docker" "start" "-a" "3062318a9315ef461a1d5211188c6b21f2f42e7df46e76d6e52196ccc1dc610a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3062318a9315ef461a1d5211188c6b21f2f42e7df46e76d6e52196ccc1dc610a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3062318a9315ef461a1d5211188c6b21f2f42e7df46e76d6e52196ccc1dc610a", kill_on_drop: false }` [INFO] [stdout] 3062318a9315ef461a1d5211188c6b21f2f42e7df46e76d6e52196ccc1dc610a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d45c43b89d2c4085bec2c117203ecc4deb67e83323127c7f2eb0ad720681f3a [INFO] running `Command { std: "docker" "start" "-a" "7d45c43b89d2c4085bec2c117203ecc4deb67e83323127c7f2eb0ad720681f3a", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling cc v1.1.22 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hex-literal v0.4.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling wumbo_coin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sha2::digest::consts::U256` [INFO] [stdout] --> src/blockchain/hash_chain.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sha2::digest::consts::U256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/blockchain/hash_chain.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use super::transaction::{self, Transaction}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transaction::Transaction` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pkcs1v15Encrypt` [INFO] [stdout] --> src/key.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use rsa::{Pkcs1v15Encrypt, RsaPrivateKey, RsaPublicKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerifyingKey` [INFO] [stdout] --> src/key.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use rsa::pkcs1v15::{Signature, SigningKey, VerifyingKey}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keypair`, `SignatureEncoding`, and `Verifier` [INFO] [stdout] --> src/key.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use rsa::signature::{Keypair, RandomizedSigner, SignatureEncoding, Verifier}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> src/key.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain/hash_chain.rs:48:68 [INFO] [stdout] | [INFO] [stdout] 48 | ... Some(Box::new(Block{ transaction: todo!(), previois_block: todo!(), height: todo!(), creator: todo!(), block_reward: todo!(), proof... [INFO] [stdout] | ------- ^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain/hash_chain.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 56 | creator: todo!("get node username"), [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 57 | block_reward: todo!("calculate somehow"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction` [INFO] [stdout] --> src/blockchain/hash_chain.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | fn new_block_with_transaction(transaction: Transaction) -> BlockRef { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/blockchain.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BlockRef` is never used [INFO] [stdout] --> src/blockchain/hash_chain.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type BlockRef = Option>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashChain` is never constructed [INFO] [stdout] --> src/blockchain/hash_chain.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HashChain { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/blockchain/hash_chain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockHash` is never constructed [INFO] [stdout] --> src/blockchain/hash_chain.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BlockHash { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_transaction` are never used [INFO] [stdout] --> src/blockchain/hash_chain.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl HashChain { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_genesis_block`, `new_block`, `new_block_with_transaction`, and `get_hashable` are never used [INFO] [stdout] --> src/blockchain/hash_chain.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 47 | fn new_genesis_block() -> BlockRef { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn new_block(transaction: Transaction, prev: u64, height: u32) -> BlockRef { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn new_block_with_transaction(transaction: Transaction) -> BlockRef { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn get_hashable(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/blockchain/transaction.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionHashable` is never constructed [INFO] [stdout] --> src/blockchain/transaction.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TransactionHashable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_hashable` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 18 | pub fn to_hashable(&self) -> TransactionHashable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/user.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/key.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sign`, and `hash` are never used [INFO] [stdout] --> src/key.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Key { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn sign(&self, data: &[u8]) -> Signature { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn hash(data: &[u8]) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.03s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "7d45c43b89d2c4085bec2c117203ecc4deb67e83323127c7f2eb0ad720681f3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d45c43b89d2c4085bec2c117203ecc4deb67e83323127c7f2eb0ad720681f3a", kill_on_drop: false }` [INFO] [stdout] 7d45c43b89d2c4085bec2c117203ecc4deb67e83323127c7f2eb0ad720681f3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 321e2383f3d9f8d47abf4e85a2f8dd9a285fc5f1dc8c678ad8174885b032f98c [INFO] running `Command { std: "docker" "start" "-a" "321e2383f3d9f8d47abf4e85a2f8dd9a285fc5f1dc8c678ad8174885b032f98c", kill_on_drop: false }` [INFO] [stderr] Compiling wumbo_coin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sha2::digest::consts::U256` [INFO] [stdout] --> src/blockchain/hash_chain.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sha2::digest::consts::U256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/blockchain/hash_chain.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use super::transaction::{self, Transaction}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transaction::Transaction` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pkcs1v15Encrypt` [INFO] [stdout] --> src/key.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use rsa::{Pkcs1v15Encrypt, RsaPrivateKey, RsaPublicKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerifyingKey` [INFO] [stdout] --> src/key.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use rsa::pkcs1v15::{Signature, SigningKey, VerifyingKey}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keypair`, `SignatureEncoding`, and `Verifier` [INFO] [stdout] --> src/key.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use rsa::signature::{Keypair, RandomizedSigner, SignatureEncoding, Verifier}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> src/key.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain/hash_chain.rs:48:68 [INFO] [stdout] | [INFO] [stdout] 48 | ... Some(Box::new(Block{ transaction: todo!(), previois_block: todo!(), height: todo!(), creator: todo!(), block_reward: todo!(), proof... [INFO] [stdout] | ------- ^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain/hash_chain.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 56 | creator: todo!("get node username"), [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 57 | block_reward: todo!("calculate somehow"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction` [INFO] [stdout] --> src/blockchain/hash_chain.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | fn new_block_with_transaction(transaction: Transaction) -> BlockRef { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/blockchain.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BlockRef` is never used [INFO] [stdout] --> src/blockchain/hash_chain.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type BlockRef = Option>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashChain` is never constructed [INFO] [stdout] --> src/blockchain/hash_chain.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HashChain { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/blockchain/hash_chain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockHash` is never constructed [INFO] [stdout] --> src/blockchain/hash_chain.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BlockHash { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_transaction` are never used [INFO] [stdout] --> src/blockchain/hash_chain.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl HashChain { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_genesis_block`, `new_block`, `new_block_with_transaction`, and `get_hashable` are never used [INFO] [stdout] --> src/blockchain/hash_chain.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 47 | fn new_genesis_block() -> BlockRef { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn new_block(transaction: Transaction, prev: u64, height: u32) -> BlockRef { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn new_block_with_transaction(transaction: Transaction) -> BlockRef { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn get_hashable(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/blockchain/transaction.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionHashable` is never constructed [INFO] [stdout] --> src/blockchain/transaction.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TransactionHashable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_hashable` is never used [INFO] [stdout] --> src/blockchain/transaction.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 18 | pub fn to_hashable(&self) -> TransactionHashable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/user.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/key.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sign`, and `hash` are never used [INFO] [stdout] --> src/key.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Key { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn sign(&self, data: &[u8]) -> Signature { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn hash(data: &[u8]) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "321e2383f3d9f8d47abf4e85a2f8dd9a285fc5f1dc8c678ad8174885b032f98c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "321e2383f3d9f8d47abf4e85a2f8dd9a285fc5f1dc8c678ad8174885b032f98c", kill_on_drop: false }` [INFO] [stdout] 321e2383f3d9f8d47abf4e85a2f8dd9a285fc5f1dc8c678ad8174885b032f98c