[INFO] cloning repository https://github.com/BertrandD/bitcoin-p2p-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BertrandD/bitcoin-p2p-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBertrandD%2Fbitcoin-p2p-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBertrandD%2Fbitcoin-p2p-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82c8311d2cce7b8dc90e33b45f929fbd6ffeafa8 [INFO] checking BertrandD/bitcoin-p2p-rs/82c8311d2cce7b8dc90e33b45f929fbd6ffeafa8 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBertrandD%2Fbitcoin-p2p-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BertrandD/bitcoin-p2p-rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BertrandD/bitcoin-p2p-rs [INFO] finished tweaking git repo https://github.com/BertrandD/bitcoin-p2p-rs [INFO] tweaked toml for git repo https://github.com/BertrandD/bitcoin-p2p-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BertrandD/bitcoin-p2p-rs 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitcoin-internals v0.3.0 [INFO] [stderr] Downloaded base58ck v0.1.0 [INFO] [stderr] Downloaded bech32 v0.11.0 [INFO] [stderr] Downloaded bitcoin-units v0.1.1 [INFO] [stderr] Downloaded bitcoin v0.32.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbf90f705b560b1317703be79a08bab0983b75d0f23fee86aad179629088527f [INFO] running `Command { std: "docker" "start" "-a" "cbf90f705b560b1317703be79a08bab0983b75d0f23fee86aad179629088527f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbf90f705b560b1317703be79a08bab0983b75d0f23fee86aad179629088527f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbf90f705b560b1317703be79a08bab0983b75d0f23fee86aad179629088527f", kill_on_drop: false }` [INFO] [stdout] cbf90f705b560b1317703be79a08bab0983b75d0f23fee86aad179629088527f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58cb4fe27a0ca39273f7518579018432ac56af2d0ad82eed8597e843b8e42817 [INFO] running `Command { std: "docker" "start" "-a" "58cb4fe27a0ca39273f7518579018432ac56af2d0ad82eed8597e843b8e42817", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Compiling bitcoin-internals v0.3.0 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking bitcoin-io v0.1.2 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling secp256k1-sys v0.10.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling bitcoin v0.32.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking bech32 v0.11.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking bitcoin-units v0.1.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking hex-conservative v0.2.1 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking bitcoin_hashes v0.14.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking base58ck v0.1.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking secp256k1 v0.29.0 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Checking bitcoin-p2p-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/blockchain.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn get_block_by_hash(&self, hash: &str) -> Option<&Block> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/blockchain.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/blockchain.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/blockchain.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Blockchain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn add_block(&mut self, block: BlockData) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn commit(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn last_blocks(&self, count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn get_block_by_height(&self, height: usize) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn get_block_by_hash(&self, hash: &str) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/peer.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | PeerUnreachable(io::Error), [INFO] [stdout] | --------------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PeerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | PeerUnreachable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | NewBlock(Block), [INFO] [stdout] | -------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | NewBlock(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GetBlocks` is never constructed [INFO] [stdout] --> src/types.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 32 | GetBlocks(GetBlocksCommand), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` 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 `get_blocks` is never used [INFO] [stdout] --> src/types.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Command { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 37 | pub fn get_blocks(known_blocks: Vec) -> Command { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/blockchain.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn get_block_by_hash(&self, hash: &str) -> Option<&Block> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/blockchain.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blockchain` is never constructed [INFO] [stdout] --> src/blockchain.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/blockchain.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Blockchain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn add_block(&mut self, block: BlockData) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn commit(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn last_blocks(&self, count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn get_block_by_height(&self, height: usize) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn get_block_by_hash(&self, hash: &str) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/peer.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | PeerUnreachable(io::Error), [INFO] [stdout] | --------------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PeerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | PeerUnreachable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | NewBlock(Block), [INFO] [stdout] | -------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | NewBlock(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GetBlocks` is never constructed [INFO] [stdout] --> src/types.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 32 | GetBlocks(GetBlocksCommand), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` 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 `get_blocks` is never used [INFO] [stdout] --> src/types.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Command { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 37 | pub fn get_blocks(known_blocks: Vec) -> Command { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.96s [INFO] running `Command { std: "docker" "inspect" "58cb4fe27a0ca39273f7518579018432ac56af2d0ad82eed8597e843b8e42817", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58cb4fe27a0ca39273f7518579018432ac56af2d0ad82eed8597e843b8e42817", kill_on_drop: false }` [INFO] [stdout] 58cb4fe27a0ca39273f7518579018432ac56af2d0ad82eed8597e843b8e42817