[INFO] cloning repository https://github.com/huiminliu09/blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huiminliu09/blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuiminliu09%2Fblockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuiminliu09%2Fblockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 74178013637391f1fa50baba1e51b47c54746574 [INFO] building huiminliu09/blockchain against try#8aaecdf5df68a6fbc126704e44d399ba2fe66bf2 for pr-94962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuiminliu09%2Fblockchain" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huiminliu09/blockchain on toolchain 8aaecdf5df68a6fbc126704e44d399ba2fe66bf2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8aaecdf5df68a6fbc126704e44d399ba2fe66bf2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huiminliu09/blockchain [INFO] finished tweaking git repo https://github.com/huiminliu09/blockchain [INFO] tweaked toml for git repo https://github.com/huiminliu09/blockchain written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/huiminliu09/blockchain already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8aaecdf5df68a6fbc126704e44d399ba2fe66bf2" "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-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+8aaecdf5df68a6fbc126704e44d399ba2fe66bf2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4275d18a938ac60dd7997853a3b0c6a6b3f43eac70e92860346925809fe5b6b3 [INFO] running `Command { std: "docker" "start" "-a" "4275d18a938ac60dd7997853a3b0c6a6b3f43eac70e92860346925809fe5b6b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4275d18a938ac60dd7997853a3b0c6a6b3f43eac70e92860346925809fe5b6b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4275d18a938ac60dd7997853a3b0c6a6b3f43eac70e92860346925809fe5b6b3", kill_on_drop: false }` [INFO] [stdout] 4275d18a938ac60dd7997853a3b0c6a6b3f43eac70e92860346925809fe5b6b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+8aaecdf5df68a6fbc126704e44d399ba2fe66bf2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e69e1be38373b8dccb0a9502ae4ff5a79df870859c97dba4e8b52e7b15d6ce6 [INFO] running `Command { std: "docker" "start" "-a" "9e69e1be38373b8dccb0a9502ae4ff5a79df870859c97dba4e8b52e7b15d6ce6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling unicode-width v0.1.6 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling termcolor v0.3.6 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling untrusted v0.7.0 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling hex v0.4.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling unicode-normalization v0.1.8 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling term_size v0.3.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling chrono v0.4.9 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling url v2.1.0 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling crossbeam v0.7.2 [INFO] [stderr] Compiling mio-extras v2.0.5 [INFO] [stderr] Compiling stderrlog v0.4.1 [INFO] [stderr] Compiling tiny_http v0.6.2 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling hex-literal-impl v0.2.1 [INFO] [stderr] Compiling hex-literal v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.44 [INFO] [stderr] Compiling bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `VerificationAlgorithm` [INFO] [stdout] --> src/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/blockchain.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn insert(&mut self, block: &Block) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/transaction.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/transaction.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/transaction.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn verify(t: &Transaction, public_key: &::PublicKey, signature: &Signature) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `public_key` [INFO] [stdout] --> src/transaction.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn verify(t: &Transaction, public_key: &::PublicKey, signature: &Signature) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/transaction.rs:14:85 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn verify(t: &Transaction, public_key: &::PublicKey, signature: &Signature) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/crypto/merkle.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datum` [INFO] [stdout] --> src/crypto/merkle.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_datum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/crypto/merkle.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:25:58 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/crypto/merkle.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(data: &[T]) -> Self where T: Hashable, { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn proof(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `server` [INFO] [stdout] --> src/miner.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | server: ServerHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `server` [INFO] [stdout] --> src/network/worker.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | server: ServerHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Context` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/network/worker.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 46s [INFO] running `Command { std: "docker" "inspect" "9e69e1be38373b8dccb0a9502ae4ff5a79df870859c97dba4e8b52e7b15d6ce6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e69e1be38373b8dccb0a9502ae4ff5a79df870859c97dba4e8b52e7b15d6ce6", kill_on_drop: false }` [INFO] [stdout] 9e69e1be38373b8dccb0a9502ae4ff5a79df870859c97dba4e8b52e7b15d6ce6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+8aaecdf5df68a6fbc126704e44d399ba2fe66bf2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2aabce925ff8d597cedaf5bd2af783cee13f60f3a3ed8f7dea5b59b4f43c8042 [INFO] running `Command { std: "docker" "start" "-a" "2aabce925ff8d597cedaf5bd2af783cee13f60f3a3ed8f7dea5b59b4f43c8042", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `EdDSAParameters`, `VerificationAlgorithm` [INFO] [stdout] --> src/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/blockchain.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn insert(&mut self, block: &Block) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/transaction.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/transaction.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/transaction.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn verify(t: &Transaction, public_key: &::PublicKey, signature: &Signature) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `public_key` [INFO] [stdout] --> src/transaction.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn verify(t: &Transaction, public_key: &::PublicKey, signature: &Signature) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/transaction.rs:14:85 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn verify(t: &Transaction, public_key: &::PublicKey, signature: &Signature) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/block.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn generate_random_block(parent: &H256) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/crypto/merkle.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datum` [INFO] [stdout] --> src/crypto/merkle.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_datum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/crypto/merkle.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:25:58 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/crypto/merkle.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(data: &[T]) -> Self where T: Hashable, { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn proof(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `server` [INFO] [stdout] --> src/miner.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | server: ServerHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `server` [INFO] [stdout] --> src/network/worker.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | server: ServerHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Context` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/network/worker.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 23.56s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/bitcoin-99eb38c501a4b1e9) [INFO] running `Command { std: "docker" "inspect" "2aabce925ff8d597cedaf5bd2af783cee13f60f3a3ed8f7dea5b59b4f43c8042", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2aabce925ff8d597cedaf5bd2af783cee13f60f3a3ed8f7dea5b59b4f43c8042", kill_on_drop: false }` [INFO] [stdout] 2aabce925ff8d597cedaf5bd2af783cee13f60f3a3ed8f7dea5b59b4f43c8042