[INFO] cloning repository https://github.com/LucasUTNFRD/programming-bitcoin-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LucasUTNFRD/programming-bitcoin-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucasUTNFRD%2Fprogramming-bitcoin-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucasUTNFRD%2Fprogramming-bitcoin-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 387d4b873b36e100b7f101464418e3fa3c0ca00a [INFO] checking LucasUTNFRD/programming-bitcoin-in-rust against try#47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 for pr-149058 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucasUTNFRD%2Fprogramming-bitcoin-in-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LucasUTNFRD/programming-bitcoin-in-rust [INFO] finished tweaking git repo https://github.com/LucasUTNFRD/programming-bitcoin-in-rust [INFO] tweaked toml for git repo https://github.com/LucasUTNFRD/programming-bitcoin-in-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LucasUTNFRD/programming-bitcoin-in-rust on toolchain 47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LucasUTNFRD/programming-bitcoin-in-rust 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" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded impl-codec v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7daac1c972ba6802e1d3aa862fe26aaf660f6cebbcb1ac677e0c3f8c0e2ced2 [INFO] running `Command { std: "docker" "start" "-a" "f7daac1c972ba6802e1d3aa862fe26aaf660f6cebbcb1ac677e0c3f8c0e2ced2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7daac1c972ba6802e1d3aa862fe26aaf660f6cebbcb1ac677e0c3f8c0e2ced2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7daac1c972ba6802e1d3aa862fe26aaf660f6cebbcb1ac677e0c3f8c0e2ced2", kill_on_drop: false }` [INFO] [stdout] f7daac1c972ba6802e1d3aa862fe26aaf660f6cebbcb1ac677e0c3f8c0e2ced2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+47eaa3b85fbe5fa2b3b731b5fecdc5954cbfc268" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afd31650484dea219191d2c88c743f023ca6e1785258bf329beab4dbdcb5a597 [INFO] running `Command { std: "docker" "start" "-a" "afd31650484dea219191d2c88c743f023ca6e1785258bf329beab4dbdcb5a597", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking uint v0.10.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking primitive-types v0.13.1 [INFO] [stderr] Checking programmign-bitcoin-in-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/script/opcode.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | hash256::{self, hash256}, [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: `path::Display` [INFO] [stdout] --> src/transactions/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | path::Display, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `primitive_types::H256` [INFO] [stdout] --> src/transactions/tx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use primitive_types::H256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/script/opcode.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | hash256::{self, hash256}, [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: `path::Display` [INFO] [stdout] --> src/transactions/tx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | path::Display, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `primitive_types::H256` [INFO] [stdout] --> src/transactions/tx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use primitive_types::H256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/transactions/tx.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/transactions/tx.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | fn verify_input(&self, input: &TxIn) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `testnet` [INFO] [stdout] --> src/transactions/tx.rs:298:28 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn fetch_tx(&self, testnet: bool) -> Transaction { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_testnet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `testnet` [INFO] [stdout] --> src/transactions/tx.rs:302:25 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn value(&self, testnet: BlockChain) -> Amount { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_testnet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `testnet` [INFO] [stdout] --> src/transactions/tx.rs:306:33 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn script_pubkey(&self, testnet: bool) -> Script { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_testnet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/transactions/tx.rs:384:9 [INFO] [stdout] | [INFO] [stdout] 384 | blockchain: BlockChain, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> src/base58/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn decode(addr: String) -> [u8; 20] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `one` and `is_one` are never used [INFO] [stdout] --> src/ecc/field_element.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait FiniteField: [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 27 | fn one() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn is_one(&self) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Script` is never constructed [INFO] [stdout] --> src/script/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Script { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ScriptCmd` is never used [INFO] [stdout] --> src/script/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum ScriptCmd { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/script/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl ScriptCmd { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 25 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `concat`, `decode`, `raw_serialize`, `encode`, and `execute` are never used [INFO] [stdout] --> src/script/mod.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Script { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 50 | pub fn new(cmds: Option>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn concat(self, other: Script) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn decode(stream: &mut impl std::io::Read) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn raw_serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn encode(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn execute(&self, z: Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionCtx` is never constructed [INFO] [stdout] --> src/script/mod.rs:164:19 [INFO] [stdout] | [INFO] [stdout] 164 | pub(crate) struct ExecutionCtx { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StackItem` is never used [INFO] [stdout] --> src/script/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | pub(crate) enum StackItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/script/mod.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 175 | impl ExecutionCtx { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 176 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpCode` is never used [INFO] [stdout] --> src/script/opcode.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum OpCode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p2pkh_script` is never used [INFO] [stdout] --> src/script/opcode.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn p2pkh_script(h160: H160) -> Script { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_byte` and `execute` are never used [INFO] [stdout] --> src/script/opcode.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl OpCode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 45 | pub fn as_byte(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn execute(&self, ctx: &mut ExecutionCtx, z: Option) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_PUSHDATA1` is never used [INFO] [stdout] --> src/script/opcode.rs:167:18 [INFO] [stdout] | [INFO] [stdout] 167 | pub(crate) const OP_PUSHDATA1: u8 = 76u8; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_PUSHDATA2` is never used [INFO] [stdout] --> src/script/opcode.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | pub(crate) const OP_PUSHDATA2: u8 = 77u8; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_PUSHDATA4` is never used [INFO] [stdout] --> src/script/opcode.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 169 | pub(crate) const OP_PUSHDATA4: u8 = 78u8; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_PUSHBYTES_1_START` is never used [INFO] [stdout] --> src/script/opcode.rs:170:18 [INFO] [stdout] | [INFO] [stdout] 170 | pub(crate) const OP_PUSHBYTES_1_START: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_PUSHBYTES_75_END` is never used [INFO] [stdout] --> src/script/opcode.rs:171:18 [INFO] [stdout] | [INFO] [stdout] 171 | pub(crate) const OP_PUSHBYTES_75_END: u8 = 0x4b; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/transactions/tx.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BlockChain` is never used [INFO] [stdout] --> src/transactions/tx.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum BlockChain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/transactions/tx.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VarInt` is never constructed [INFO] [stdout] --> src/transactions/tx.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct VarInt(pub u64); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `value`, `read_varint`, and `encode_varint` are never used [INFO] [stdout] --> src/transactions/tx.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl VarInt { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 57 | pub fn value(&self) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn read_varint(stream: &mut impl Read) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn encode_varint(i: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/transactions/tx.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 113 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn parse(stream: &mut impl Read) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn verify(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn verify_input(&self, input: &TxIn) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn fee(&self) -> Amount { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Sequence` is never used [INFO] [stdout] --> src/transactions/tx.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | pub type Sequence = u32; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TxID` is never used [INFO] [stdout] --> src/transactions/tx.rs:228:10 [INFO] [stdout] | [INFO] [stdout] 228 | pub type TxID = [u8; 32]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxIn` is never constructed [INFO] [stdout] --> src/transactions/tx.rs:231:12 [INFO] [stdout] | [INFO] [stdout] 231 | pub struct TxIn { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `parse`, `serialize`, `fetch_tx`, `value`, and `script_pubkey` are never used [INFO] [stdout] --> src/transactions/tx.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 238 | impl TxIn { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 239 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn parse(stream: &mut impl Read) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn fetch_tx(&self, testnet: bool) -> Transaction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn value(&self, testnet: BlockChain) -> Amount { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn script_pubkey(&self, testnet: bool) -> Script { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Amount` is never used [INFO] [stdout] --> src/transactions/tx.rs:321:10 [INFO] [stdout] | [INFO] [stdout] 321 | pub type Amount = u64; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxOut` is never constructed [INFO] [stdout] --> src/transactions/tx.rs:324:12 [INFO] [stdout] | [INFO] [stdout] 324 | pub struct TxOut { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `parse`, and `serialize` are never used [INFO] [stdout] --> src/transactions/tx.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 329 | impl TxOut { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 330 | pub fn new(amount: Amount, script_pubkey: Script) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn parse(stream: &mut impl Read) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxFetcher` is never constructed [INFO] [stdout] --> src/transactions/tx.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub struct TxFetcher { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_url`, and `fetch` are never used [INFO] [stdout] --> src/transactions/tx.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 368 | impl TxFetcher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 369 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn get_url(&self, blockchain: BlockChain) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | pub fn fetch( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash160` is never used [INFO] [stdout] --> src/utils/hash160.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn hash160(data: &[u8]) -> [u8; 20] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/transactions/tx.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.02s [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/transactions/tx.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | fn verify_input(&self, input: &TxIn) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `testnet` [INFO] [stdout] --> src/transactions/tx.rs:298:28 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn fetch_tx(&self, testnet: bool) -> Transaction { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_testnet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `testnet` [INFO] [stdout] --> src/transactions/tx.rs:302:25 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn value(&self, testnet: BlockChain) -> Amount { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_testnet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `testnet` [INFO] [stdout] --> src/transactions/tx.rs:306:33 [INFO] [stdout] | [INFO] [stdout] 306 | pub fn script_pubkey(&self, testnet: bool) -> Script { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_testnet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/transactions/tx.rs:384:9 [INFO] [stdout] | [INFO] [stdout] 384 | blockchain: BlockChain, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/script/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl ScriptCmd { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 25 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `raw_serialize` and `encode` are never used [INFO] [stdout] --> src/script/mod.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl Script { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | fn raw_serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn encode(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alt_stack` is never read [INFO] [stdout] --> src/script/mod.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 164 | pub(crate) struct ExecutionCtx { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 165 | stack: Vec, [INFO] [stdout] 166 | alt_stack: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExecutionCtx` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OP_HASH256` and `OP_EQUALVERIFY` are never constructed [INFO] [stdout] --> src/script/opcode.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum OpCode { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | OP_HASH256, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | OP_CHECKSIG, [INFO] [stdout] 27 | OP_EQUALVERIFY, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p2pkh_script` is never used [INFO] [stdout] --> src/script/opcode.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn p2pkh_script(h160: H160) -> Script { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_byte` is never used [INFO] [stdout] --> src/script/opcode.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl OpCode { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 45 | pub fn as_byte(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/transactions/tx.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub network: BlockChain, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TestNet` is never constructed [INFO] [stdout] --> src/transactions/tx.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum BlockChain { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 36 | TestNet, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockChain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnexpectedEof` and `InvalidVarInt` are never constructed [INFO] [stdout] --> src/transactions/tx.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 47 | UnexpectedEof, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 48 | #[error("Invalid varint encoding")] [INFO] [stdout] 49 | InvalidVarInt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `encode_varint` is never used [INFO] [stdout] --> src/transactions/tx.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl VarInt { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn encode_varint(i: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `verify`, `verify_input`, `id`, `serialize`, `hash`, and `fee` are never used [INFO] [stdout] --> src/transactions/tx.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Transaction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn verify(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn verify_input(&self, input: &TxIn) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn fee(&self) -> Amount { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prev_tx_id`, `prev_tx_idx`, `sequence`, and `script_sig` are never read [INFO] [stdout] --> src/transactions/tx.rs:232:5 [INFO] [stdout] | [INFO] [stdout] 231 | pub struct TxIn { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 232 | prev_tx_id: TxID, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 233 | prev_tx_idx: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 234 | pub sequence: Sequence, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 235 | pub script_sig: Option