[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 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBertrandD%2Fbitcoin-p2p-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[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-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/BertrandD/bitcoin-p2p-rs on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3b55cd639312c8fada3219f5e95f45c4d52d3b94467adfb783dd7da7b53c3e3a
[INFO] running `Command { std: "docker" "start" "-a" "3b55cd639312c8fada3219f5e95f45c4d52d3b94467adfb783dd7da7b53c3e3a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3b55cd639312c8fada3219f5e95f45c4d52d3b94467adfb783dd7da7b53c3e3a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3b55cd639312c8fada3219f5e95f45c4d52d3b94467adfb783dd7da7b53c3e3a", kill_on_drop: false }`
[INFO] [stdout] 3b55cd639312c8fada3219f5e95f45c4d52d3b94467adfb783dd7da7b53c3e3a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 59c88cb2708fe376b4cd2394f330a806f37381365d8ef0b551e268a2341228ec
[INFO] running `Command { std: "docker" "start" "-a" "59c88cb2708fe376b4cd2394f330a806f37381365d8ef0b551e268a2341228ec", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.83
[INFO] [stderr]    Compiling cc v1.0.98
[INFO] [stderr]    Compiling bitcoin-internals v0.3.0
[INFO] [stderr]     Checking bitcoin-io v0.1.2
[INFO] [stderr]     Checking regex-syntax v0.8.3
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]    Compiling hex_lit v0.1.1
[INFO] [stderr]     Checking is-terminal v0.4.12
[INFO] [stderr]     Checking hex-conservative v0.2.1
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]    Compiling bitcoin v0.32.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking bech32 v0.11.0
[INFO] [stderr]     Checking parking_lot v0.12.2
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking bitcoin_hashes v0.14.0
[INFO] [stderr]     Checking bitcoin-units v0.1.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling secp256k1-sys v0.10.0
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]    Compiling syn v2.0.66
[INFO] [stderr]     Checking base58ck v0.1.0
[INFO] [stderr]     Checking regex v1.10.4
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking pretty_env_logger v0.5.0
[INFO] [stderr]     Checking secp256k1 v0.29.0
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]     Checking tokio v1.37.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)]` (part of `#[warn(unused)]`) on by default
[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)]` (part of `#[warn(unused)]`) 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: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<BlockHash> {
[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(io::Error),
[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(Block),
[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<BlockHash>) -> Command {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<String, Infallible>
[INFO] [stdout]    --> src/peer.rs:150:25
[INFO] [stdout]     |
[INFO] [stdout] 150 |             user_agent: "bitcoin-p2p-rs".parse().unwrap(),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bitcoin-p2p-rs` (bin "bitcoin-p2p-rs") due to 1 previous error; 8 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[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: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<BlockHash> {
[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(io::Error),
[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(Block),
[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<BlockHash>) -> Command {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<String, Infallible>
[INFO] [stdout]    --> src/peer.rs:150:25
[INFO] [stdout]     |
[INFO] [stdout] 150 |             user_agent: "bitcoin-p2p-rs".parse().unwrap(),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bitcoin-p2p-rs` (bin "bitcoin-p2p-rs" test) due to 1 previous error; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "59c88cb2708fe376b4cd2394f330a806f37381365d8ef0b551e268a2341228ec", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "59c88cb2708fe376b4cd2394f330a806f37381365d8ef0b551e268a2341228ec", kill_on_drop: false }`
[INFO] [stdout] 59c88cb2708fe376b4cd2394f330a806f37381365d8ef0b551e268a2341228ec
