[INFO] cloning repository https://github.com/osifo/bitcoin-study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/osifo/bitcoin-study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fosifo%2Fbitcoin-study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fosifo%2Fbitcoin-study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 314337a27b35a7edb01f0e88cdbebd36e9beae18 [INFO] checking osifo/bitcoin-study against master#ba412a6e70ac84641be7764d088acabd0eb3fa39 for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fosifo%2Fbitcoin-study" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/osifo/bitcoin-study [INFO] finished tweaking git repo https://github.com/osifo/bitcoin-study [INFO] tweaked toml for git repo https://github.com/osifo/bitcoin-study written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/osifo/bitcoin-study on toolchain ba412a6e70ac84641be7764d088acabd0eb3fa39 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/osifo/bitcoin-study 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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 200a9ad59d261fe59991e018052876d7e9d216b574daf22a7d6cc5a85e8b5350 [INFO] running `Command { std: "docker" "start" "-a" "200a9ad59d261fe59991e018052876d7e9d216b574daf22a7d6cc5a85e8b5350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "200a9ad59d261fe59991e018052876d7e9d216b574daf22a7d6cc5a85e8b5350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "200a9ad59d261fe59991e018052876d7e9d216b574daf22a7d6cc5a85e8b5350", kill_on_drop: false }` [INFO] [stdout] 200a9ad59d261fe59991e018052876d7e9d216b574daf22a7d6cc5a85e8b5350 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb9a29ffe4104ff3881136d4923677c2997dc107f1a0d78a9b99d8a14645eb4a [INFO] running `Command { std: "docker" "start" "-a" "bb9a29ffe4104ff3881136d4923677c2997dc107f1a0d78a9b99d8a14645eb4a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking clap_builder v4.5.27 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling clap_derive v4.5.24 [INFO] [stderr] Checking clap v4.5.27 [INFO] [stderr] Checking trx-decoder v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generic_struct.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point where T: Add + Sub + Mul { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_zero` is never used [INFO] [stdout] --> src/generic_struct.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Point where T: Add + Sub + Mul + Copy, f64: From { [INFO] [stdout] | -------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] 9 | fn distance_from_zero(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute` is never used [INFO] [stdout] --> src/generic_struct.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn execute() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encodable` is never used [INFO] [stdout] --> src/transaction.rs:266:11 [INFO] [stdout] | [INFO] [stdout] 266 | pub trait Encodable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute` is never used [INFO] [stdout] --> src/generic_struct.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn execute() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encodable` is never used [INFO] [stdout] --> src/transaction.rs:266:11 [INFO] [stdout] | [INFO] [stdout] 266 | pub trait Encodable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute` is never used [INFO] [stdout] --> src/generic_struct.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn execute() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxIn` is never constructed [INFO] [stdout] --> src/transaction.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TxIn { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxOut` is never constructed [INFO] [stdout] --> src/transaction.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct TxOut { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tx_id` is never used [INFO] [stdout] --> src/transaction.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 31 | pub fn tx_id(&self) -> TxId { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Amount` is never constructed [INFO] [stdout] --> src/transaction.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Amount (u64); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_sat` is never used [INFO] [stdout] --> src/transaction.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Amount { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 54 | pub fn from_sat(satoshi: u64) -> Amount { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxId` is never constructed [INFO] [stdout] --> src/transaction.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct TxId ([u8; 32]); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_hash` and `from_raw_transaction` are never used [INFO] [stdout] --> src/transaction.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl TxId { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 63 | pub fn from_hash(trx_bytes: [u8;32]) -> TxId { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn from_raw_transaction(transaction_hex: Vec) -> TxId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitcoinValue` is never used [INFO] [stdout] --> src/transaction.rs:91:7 [INFO] [stdout] | [INFO] [stdout] 91 | trait BitcoinValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `as_btc` is never used [INFO] [stdout] --> src/transaction.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn as_btc(t: &T, s: S) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/transaction.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompactSize` is never constructed [INFO] [stdout] --> src/transaction.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct CompactSize(u64); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Decodable` is never used [INFO] [stdout] --> src/transaction.rs:124:11 [INFO] [stdout] | [INFO] [stdout] 124 | pub trait Decodable: Sized { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encodable` is never used [INFO] [stdout] --> src/transaction.rs:266:11 [INFO] [stdout] | [INFO] [stdout] 266 | pub trait Encodable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generic_struct.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point where T: Add + Sub + Mul { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_zero` is never used [INFO] [stdout] --> src/generic_struct.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Point where T: Add + Sub + Mul + Copy, f64: From { [INFO] [stdout] | -------------------------------------------------------------------------------------- method in this implementation [INFO] [stdout] 9 | fn distance_from_zero(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute` is never used [INFO] [stdout] --> src/generic_struct.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn execute() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxIn` is never constructed [INFO] [stdout] --> src/transaction.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TxIn { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxOut` is never constructed [INFO] [stdout] --> src/transaction.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct TxOut { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tx_id` is never used [INFO] [stdout] --> src/transaction.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 31 | pub fn tx_id(&self) -> TxId { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Amount` is never constructed [INFO] [stdout] --> src/transaction.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Amount (u64); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_sat` is never used [INFO] [stdout] --> src/transaction.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Amount { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 54 | pub fn from_sat(satoshi: u64) -> Amount { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxId` is never constructed [INFO] [stdout] --> src/transaction.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct TxId ([u8; 32]); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_hash` and `from_raw_transaction` are never used [INFO] [stdout] --> src/transaction.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl TxId { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 63 | pub fn from_hash(trx_bytes: [u8;32]) -> TxId { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn from_raw_transaction(transaction_hex: Vec) -> TxId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitcoinValue` is never used [INFO] [stdout] --> src/transaction.rs:91:7 [INFO] [stdout] | [INFO] [stdout] 91 | trait BitcoinValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `as_btc` is never used [INFO] [stdout] --> src/transaction.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn as_btc(t: &T, s: S) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/transaction.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompactSize` is never constructed [INFO] [stdout] --> src/transaction.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct CompactSize(u64); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Decodable` is never used [INFO] [stdout] --> src/transaction.rs:124:11 [INFO] [stdout] | [INFO] [stdout] 124 | pub trait Decodable: Sized { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encodable` is never used [INFO] [stdout] --> src/transaction.rs:266:11 [INFO] [stdout] | [INFO] [stdout] 266 | pub trait Encodable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.96s [INFO] running `Command { std: "docker" "inspect" "bb9a29ffe4104ff3881136d4923677c2997dc107f1a0d78a9b99d8a14645eb4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb9a29ffe4104ff3881136d4923677c2997dc107f1a0d78a9b99d8a14645eb4a", kill_on_drop: false }` [INFO] [stdout] bb9a29ffe4104ff3881136d4923677c2997dc107f1a0d78a9b99d8a14645eb4a