[INFO] cloning repository https://github.com/jhcheng/rust-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jhcheng/rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhcheng%2Frust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhcheng%2Frust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0707e225c0e627a96917f6579928cbbef46ad3a5 [INFO] checking jhcheng/rust-blockchain against master#be181dd75c83d72fcc95538e235768bc367b76b9 for pr-140208 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhcheng%2Frust-blockchain" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jhcheng/rust-blockchain on toolchain be181dd75c83d72fcc95538e235768bc367b76b9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+be181dd75c83d72fcc95538e235768bc367b76b9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jhcheng/rust-blockchain [INFO] finished tweaking git repo https://github.com/jhcheng/rust-blockchain [INFO] tweaked toml for git repo https://github.com/jhcheng/rust-blockchain written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jhcheng/rust-blockchain 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" "+be181dd75c83d72fcc95538e235768bc367b76b9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+be181dd75c83d72fcc95538e235768bc367b76b9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a15a1df63490497850cc28a414360be6e82da77d463dcfde40fa2a2744c2988 [INFO] running `Command { std: "docker" "start" "-a" "6a15a1df63490497850cc28a414360be6e82da77d463dcfde40fa2a2744c2988", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a15a1df63490497850cc28a414360be6e82da77d463dcfde40fa2a2744c2988", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a15a1df63490497850cc28a414360be6e82da77d463dcfde40fa2a2744c2988", kill_on_drop: false }` [INFO] [stdout] 6a15a1df63490497850cc28a414360be6e82da77d463dcfde40fa2a2744c2988 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+be181dd75c83d72fcc95538e235768bc367b76b9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e16c0bc002b6cdcf18349f656ab04bd71951d66bc4c6fed9759a756e59c521f [INFO] running `Command { std: "docker" "start" "-a" "9e16c0bc002b6cdcf18349f656ab04bd71951d66bc4c6fed9759a756e59c521f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking base64ct v1.7.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking rust-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AeadCore` [INFO] [stdout] --> src/account.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use aes_gcm::{AeadCore, Aes256Gcm, Key, KeyInit, Nonce}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `XofReader` [INFO] [stdout] --> src/account.rs:17:47 [INFO] [stdout] | [INFO] [stdout] 17 | use sha3::{digest::{ExtendableOutput, Update, XofReader}, Digest, Keccak256, Shake256}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AeadCore` [INFO] [stdout] --> src/account.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use aes_gcm::{AeadCore, Aes256Gcm, Key, KeyInit, Nonce}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `XofReader` [INFO] [stdout] --> src/account.rs:17:47 [INFO] [stdout] | [INFO] [stdout] 17 | use sha3::{digest::{ExtendableOutput, Update, XofReader}, Digest, Keccak256, Shake256}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json` [INFO] [stdout] --> src/tx.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | let json = serde_json::to_string(&tx).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Proof` is more private than the item `merkle_prove` [INFO] [stdout] --> src/merkle.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / pub fn merkle_prove( [INFO] [stdout] 58 | | txh: H, [INFO] [stdout] 59 | | merkle_tree: &[H], [INFO] [stdout] 60 | | ) -> Result>, Box> { [INFO] [stdout] | |__________________________________________^ function `merkle_prove` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Proof` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/merkle.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Proof { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENC_KEY_LEN` is never used [INFO] [stdout] --> src/account.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const ENC_KEY_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_p256k1_public_key` is never used [INFO] [stdout] --> src/account.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_p256k1_public_key(pub_key: &PublicKey) -> P256k1PublicKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_p256k1_private_key` is never used [INFO] [stdout] --> src/account.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn new_p256k1_private_key(prv_key: &SecretKey) -> P256k1PrivateKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_address` is never used [INFO] [stdout] --> src/account.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn new_address(pub_key: &PublicKey) -> Address { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/account.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/account.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Account { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 67 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn address(&self) -> &Address { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn write(&self, dir: &str, pass: &[u8]) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn read_account(path: &str, pass: &[u8]) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn encode_private_key(&self) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn decode_private_key(jprv: &[u8]) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn sign_tx(&self, tx: &Tx) -> SigTx { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn sign_gen(&self, genesis: Genesis) -> SigGenesis { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn sign_block(&self, block: Block) -> SigBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt_with_password` is never used [INFO] [stdout] --> src/account.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn encrypt_with_password(msg: &[u8], pass: &[u8]) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_with_password` is never used [INFO] [stdout] --> src/account.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn decrypt_with_password(ciph: &[u8], pass: &[u8]) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `now` is never used [INFO] [stdout] --> src/tx.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn now() -> DateTime { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/tx.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Hash { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_hash` is never used [INFO] [stdout] --> src/tx.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn new_hash(val : & impl Serialize) -> Hash { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `hash` are never used [INFO] [stdout] --> src/tx.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Tx { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 66 | pub fn new(from: &Address, to: &Address, value: u64, nonce: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tx.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl SigTx { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 89 | pub fn new(tx: &Tx, sig: &Vec, rec_id: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_tx` is never used [INFO] [stdout] --> src/tx.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn verify_tx(sig_tx: SigTx) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tx_hash` is never used [INFO] [stdout] --> src/tx.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn tx_hash(tx: &SigTx) -> Hash { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tx_pair_hash` is never used [INFO] [stdout] --> src/tx.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn tx_pair_hash(l : Hash, r : Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTx` is never constructed [INFO] [stdout] --> src/tx.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | struct SearchTx { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCKS_FILE` is never used [INFO] [stdout] --> src/block.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const BLOCKS_FILE: &str = "block.store"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `hash` are never used [INFO] [stdout] --> src/block.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | fn new(number: u64, parent: Hash, txs: &[SigTx]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `hash`, and `write` are never used [INFO] [stdout] --> src/block.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl SigBlock { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 54 | pub fn new(block: Block, sig: &[u8], rec_id: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn write(&self, dir: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_block_store` is never used [INFO] [stdout] --> src/block.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn init_block_store(dir: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_block` is never used [INFO] [stdout] --> src/block.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn read_block(dir: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_block` is never used [INFO] [stdout] --> src/block.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn verify_block(sig_block: SigBlock, authority: Address) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_proof` is never used [INFO] [stdout] --> src/merkle.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn new_proof( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_hash` is never used [INFO] [stdout] --> src/merkle.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn merkle_hash( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_prove` is never used [INFO] [stdout] --> src/merkle.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn merkle_prove( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_verify` is never used [INFO] [stdout] --> src/merkle.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn merkle_verify( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENESIS_FILE` is never used [INFO] [stdout] --> src/genesis.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const GENESIS_FILE: &'static str = "genesis.json"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `hash` are never used [INFO] [stdout] --> src/genesis.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Genesis { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 25 | pub fn new(name: String, authority: &Address, acc: &Address, balance: u64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `hash`, and `write` are never used [INFO] [stdout] --> src/genesis.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl SigGenesis { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 44 | pub fn new(genesis: Genesis, sig: &[u8], rec_id: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn write(&self, dir: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_genesis` is never used [INFO] [stdout] --> src/genesis.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn read_genesis(dir: &str) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_genesis_bytes` is never used [INFO] [stdout] --> src/genesis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn read_genesis_bytes(dir: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_gen` is never used [INFO] [stdout] --> src/genesis.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn verify_gen(gen: &SigGenesis) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `merkle::Proof` is more private than the item `merkle::merkle_prove` [INFO] [stdout] --> src/merkle.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / pub fn merkle_prove( [INFO] [stdout] 58 | | txh: H, [INFO] [stdout] 59 | | merkle_tree: &[H], [INFO] [stdout] 60 | | ) -> Result>, Box> { [INFO] [stdout] | |__________________________________________^ function `merkle::merkle_prove` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `merkle::Proof` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/merkle.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Proof { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTx` is never constructed [INFO] [stdout] --> src/tx.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | struct SearchTx { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_mock_time` is never used [INFO] [stdout] --> src/tx.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn clear_mock_time() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/block.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl SigBlock { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_block_store` is never used [INFO] [stdout] --> src/block.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn init_block_store(dir: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_merkle_tree_str` is never used [INFO] [stdout] --> src/merkle.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | fn format_merkle_tree_str(merkle_tree: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_genesis_bytes` is never used [INFO] [stdout] --> src/genesis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn read_genesis_bytes(dir: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.79s [INFO] running `Command { std: "docker" "inspect" "9e16c0bc002b6cdcf18349f656ab04bd71951d66bc4c6fed9759a756e59c521f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e16c0bc002b6cdcf18349f656ab04bd71951d66bc4c6fed9759a756e59c521f", kill_on_drop: false }` [INFO] [stdout] 9e16c0bc002b6cdcf18349f656ab04bd71951d66bc4c6fed9759a756e59c521f