[INFO] cloning repository https://github.com/kvago36/bittorrent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kvago36/bittorrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkvago36%2Fbittorrent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkvago36%2Fbittorrent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d16d66b3490c4dcb68010e3b17e8611e8fb70943
[INFO] checking kvago36/bittorrent against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkvago36%2Fbittorrent" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/kvago36/bittorrent
[INFO] finished tweaking git repo https://github.com/kvago36/bittorrent
[INFO] tweaked toml for git repo https://github.com/kvago36/bittorrent written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kvago36/bittorrent on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kvago36/bittorrent 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded bendy v0.3.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 68897ebc3f7f8bcfe4c16e70d02fd282c5a143ac3cf3d686be02d81e2bbb9d5a
[INFO] running `Command { std: "docker" "start" "-a" "68897ebc3f7f8bcfe4c16e70d02fd282c5a143ac3cf3d686be02d81e2bbb9d5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "68897ebc3f7f8bcfe4c16e70d02fd282c5a143ac3cf3d686be02d81e2bbb9d5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "68897ebc3f7f8bcfe4c16e70d02fd282c5a143ac3cf3d686be02d81e2bbb9d5a", kill_on_drop: false }`
[INFO] [stdout] 68897ebc3f7f8bcfe4c16e70d02fd282c5a143ac3cf3d686be02d81e2bbb9d5a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ac5e5e9799640d6858008c529d8d349c9dfb0b2af4960747890893aa20f85f07
[INFO] running `Command { std: "docker" "start" "-a" "ac5e5e9799640d6858008c529d8d349c9dfb0b2af4960747890893aa20f85f07", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.68
[INFO] [stderr]    Compiling cc v1.0.104
[INFO] [stderr]     Checking mio v1.0.1
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]     Checking futures-task v0.3.30
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking http v1.1.0
[INFO] [stderr]    Compiling serde v1.0.203
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling openssl v0.10.64
[INFO] [stderr]     Checking indexmap v2.2.6
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]     Checking bitflags v2.6.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]     Checking gimli v0.29.0
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking miniz_oxide v0.7.4
[INFO] [stderr]     Checking regex-automata v0.4.8
[INFO] [stderr]     Checking object v0.36.1
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking rustls-pki-types v1.7.0
[INFO] [stderr]    Compiling serde_json v1.0.120
[INFO] [stderr]     Checking rustls-pemfile v2.1.2
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking anstream v0.6.15
[INFO] [stderr]     Checking sync_wrapper v1.0.1
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking concurrent-queue v2.5.0
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking crossbeam-channel v0.5.13
[INFO] [stderr]     Checking crossbeam-queue v0.3.11
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking event-listener v5.3.1
[INFO] [stderr]     Checking crossbeam-deque v0.8.5
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking http-body v1.0.0
[INFO] [stderr]     Checking event-listener-strategy v0.5.2
[INFO] [stderr]     Checking async-channel v2.3.1
[INFO] [stderr]     Checking crossbeam v0.8.4
[INFO] [stderr]    Compiling openssl-sys v0.9.102
[INFO] [stderr]    Compiling backtrace v0.3.73
[INFO] [stderr]     Checking regex v1.11.0
[INFO] [stderr]     Checking http-body-util v0.1.2
[INFO] [stderr]     Checking env_filter v0.1.2
[INFO] [stderr]     Checking env_logger v0.11.5
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]     Checking addr2line v0.22.0
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling serde_derive v1.0.203
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.64
[INFO] [stderr]     Checking failure v0.1.8
[INFO] [stderr]     Checking tokio v1.39.2
[INFO] [stderr]     Checking pin-project v1.1.5
[INFO] [stderr]     Checking thiserror v1.0.64
[INFO] [stderr]     Checking tokio-util v0.7.11
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tokio-stream v0.1.16
[INFO] [stderr]     Checking h2 v0.4.5
[INFO] [stderr]     Checking serde_bytes v0.11.14
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking bendy v0.3.3
[INFO] [stderr]     Checking serde_bencode v0.2.4
[INFO] [stderr]     Checking hyper v1.4.0
[INFO] [stderr]     Checking hyper-util v0.1.6
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.5
[INFO] [stderr]     Checking bittorrent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/download.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Range;
[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: `error`
[INFO] [stdout]   --> src/foo.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | use log::{error, info};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/peer.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::{bitfield::{self, Bitfield}, message::{Message, ParsingError}};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/download.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Range;
[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: `error`
[INFO] [stdout]   --> src/foo.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | use log::{error, info};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/peer.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::{bitfield::{self, Bitfield}, message::{Message, ParsingError}};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]    --> src/foo.rs:727:25
[INFO] [stdout]     |
[INFO] [stdout] 727 |         let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]     = help: consider replacing the `if let` with a `let`
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]    --> src/foo.rs:727:25
[INFO] [stdout]     |
[INFO] [stdout] 727 |         let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]     = help: consider replacing the `if let` with a `let`
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bitfield`
[INFO] [stdout]    --> src/foo.rs:284:55
[INFO] [stdout]     |
[INFO] [stdout] 284 | ...                   Message::Bitfield(bitfield) => todo!(),
[INFO] [stdout]     |                                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitfield`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_index`
[INFO] [stdout]    --> src/foo.rs:299:53
[INFO] [stdout]     |
[INFO] [stdout] 299 | ...                   Message::Have { piece_index } => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^^ help: try ignoring the field: `piece_index: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:300:54
[INFO] [stdout]     |
[INFO] [stdout] 300 | ...                   Message::Request(block_info) => todo!(),
[INFO] [stdout]     |                                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:360:53
[INFO] [stdout]     |
[INFO] [stdout] 360 | ...                   Message::Cancel(block_info) => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_index`
[INFO] [stdout]    --> src/foo.rs:571:53
[INFO] [stdout]     |
[INFO] [stdout] 571 | ...                   Message::Have { piece_index } => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^^ help: try ignoring the field: `piece_index: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bitfield`
[INFO] [stdout]    --> src/foo.rs:284:55
[INFO] [stdout]     |
[INFO] [stdout] 284 | ...                   Message::Bitfield(bitfield) => todo!(),
[INFO] [stdout]     |                                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitfield`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:572:54
[INFO] [stdout]     |
[INFO] [stdout] 572 | ...                   Message::Request(block_info) => todo!(),
[INFO] [stdout]     |                                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:602:53
[INFO] [stdout]     |
[INFO] [stdout] 602 | ...                   Message::Cancel(block_info) => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_index`
[INFO] [stdout]    --> src/foo.rs:299:53
[INFO] [stdout]     |
[INFO] [stdout] 299 | ...                   Message::Have { piece_index } => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^^ help: try ignoring the field: `piece_index: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:300:54
[INFO] [stdout]     |
[INFO] [stdout] 300 | ...                   Message::Request(block_info) => todo!(),
[INFO] [stdout]     |                                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:360:53
[INFO] [stdout]     |
[INFO] [stdout] 360 | ...                   Message::Cancel(block_info) => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_index`
[INFO] [stdout]    --> src/foo.rs:571:53
[INFO] [stdout]     |
[INFO] [stdout] 571 | ...                   Message::Have { piece_index } => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^^ help: try ignoring the field: `piece_index: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:572:54
[INFO] [stdout]     |
[INFO] [stdout] 572 | ...                   Message::Request(block_info) => todo!(),
[INFO] [stdout]     |                                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_info`
[INFO] [stdout]    --> src/foo.rs:602:53
[INFO] [stdout]     |
[INFO] [stdout] 602 | ...                   Message::Cancel(block_info) => todo!(),
[INFO] [stdout]     |                                       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]    --> src/main.rs:100:17
[INFO] [stdout]     |
[INFO] [stdout] 100 |             let res = resp_rx.await.unwrap();
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]    --> src/main.rs:100:17
[INFO] [stdout]     |
[INFO] [stdout] 100 |             let res = resp_rx.await.unwrap();
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestBlock` is more private than the item `piece_wrapper`
[INFO] [stdout]    --> src/foo.rs:35:1
[INFO] [stdout]     |
[INFO] [stdout]  35 | pub fn piece_wrapper(b: &RequestBlock) -> Vec<u8> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `piece_wrapper` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `RequestBlock` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/foo.rs:133:1
[INFO] [stdout]     |
[INFO] [stdout] 133 | struct RequestBlock {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestBlock` is more private than the item `piece_parcer`
[INFO] [stdout]    --> src/foo.rs:54:1
[INFO] [stdout]     |
[INFO] [stdout]  54 | / pub fn piece_parcer(
[INFO] [stdout]  55 | |     index: usize,
[INFO] [stdout]  56 | |     torrent_length: usize,
[INFO] [stdout]  57 | |     pieces_count: usize,
[INFO] [stdout]  58 | |     plength: usize,
[INFO] [stdout]  59 | | ) -> Vec<RequestBlock> {
[INFO] [stdout]     | |______________________^ function `piece_parcer` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `RequestBlock` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/foo.rs:133:1
[INFO] [stdout]     |
[INFO] [stdout] 133 | struct RequestBlock {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `pieces` is never used
[INFO] [stdout]   --> src/bitfield.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl Bitfield {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 16 |   pub(crate) fn pieces(&self) -> impl Iterator<Item = usize> + '_ {
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_recived` is never used
[INFO] [stdout]   --> src/download.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl DownloadState {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn is_recived(&self, index: &usize) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Empty` and `Choke` are never constructed
[INFO] [stdout]    --> src/foo.rs:100:5
[INFO] [stdout]     |
[INFO] [stdout]  95 | pub enum FooError {
[INFO] [stdout]     |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 100 |     Empty,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     Choke,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `FooError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `PeerState` is never used
[INFO] [stdout]    --> src/foo.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 113 | enum PeerState {
[INFO] [stdout]     |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `blabla` is never used
[INFO] [stdout]    --> src/foo.rs:385:18
[INFO] [stdout]     |
[INFO] [stdout] 166 | impl Foo {
[INFO] [stdout]     | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 385 |     pub async fn blabla(&self, mut r: UnboundedReceiver<SocketAddrV4>, state: HashSet<usize>) {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Have`, `Request`, and `Cancel` are never constructed
[INFO] [stdout]   --> src/message.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub(crate) enum Message {
[INFO] [stdout]    |                 ------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 53 |     Have {
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     Request(BlockInfo),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     Cancel(BlockInfo),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]    --> src/message.rs:191:12
[INFO] [stdout]     |
[INFO] [stdout] 191 | pub struct Request {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `index`, `begin`, `length`, and `as_bytes_mut` are never used
[INFO] [stdout]    --> src/message.rs:198:12
[INFO] [stdout]     |
[INFO] [stdout] 197 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] 198 |     pub fn new(index: u32, begin: u32, length: u32) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub fn index(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 210 |     pub fn begin(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 214 |     pub fn length(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 218 |     pub fn as_bytes_mut(&mut self) -> &mut [u8] {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `choked` is never read
[INFO] [stdout]   --> src/peer.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct PeerConnection {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 15 |     choked: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PeerConnection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_LEN` is never used
[INFO] [stdout]  --> src/piece.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub(crate) const BLOCK_LEN: u32 = 0x4000;
[INFO] [stdout]   |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `piece_index` is never read
[INFO] [stdout]   --> src/piece.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Block {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 12 |   /// The index of the piece of which this is a block.
[INFO] [stdout] 13 |   pub piece_index: PieceIndex,
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Block` 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 items `new` and `info` are never used
[INFO] [stdout]   --> src/piece.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Block {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 21 |   /// Constructs a new block based on the metadata and data.
[INFO] [stdout] 22 |   pub fn new(info: BlockInfo, data: impl Into<BlockData>) -> Self {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |   pub fn info(&self) -> BlockInfo {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `index_in_piece` is never used
[INFO] [stdout]   --> src/piece.rs:54:12
[INFO] [stdout]    |
[INFO] [stdout] 51 | impl BlockInfo {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn index_in_piece(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TorrentError` is never used
[INFO] [stdout]   --> src/torrent.rs:11:10
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum TorrentError {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ThreadPool` is never constructed
[INFO] [stdout]  --> src/worker.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct ThreadPool {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Job` is never used
[INFO] [stdout]   --> src/worker.rs:13:6
[INFO] [stdout]    |
[INFO] [stdout] 13 | type Job = Box<dyn FnOnce() + Send + 'static>;
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `execute` are never used
[INFO] [stdout]   --> src/worker.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl ThreadPool {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn new(size: usize) -> ThreadPool {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn execute<F>(&self, f: F)
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Worker` is never constructed
[INFO] [stdout]   --> src/worker.rs:66:8
[INFO] [stdout]    |
[INFO] [stdout] 66 | struct Worker {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/worker.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 71 | impl Worker {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 72 |     fn new(id: usize, receiver: Arc<Mutex<mpsc::Receiver<Job>>>) -> Worker {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestBlock` is more private than the item `piece_wrapper`
[INFO] [stdout]    --> src/foo.rs:35:1
[INFO] [stdout]     |
[INFO] [stdout]  35 | pub fn piece_wrapper(b: &RequestBlock) -> Vec<u8> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `piece_wrapper` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `RequestBlock` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/foo.rs:133:1
[INFO] [stdout]     |
[INFO] [stdout] 133 | struct RequestBlock {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestBlock` is more private than the item `piece_parcer`
[INFO] [stdout]    --> src/foo.rs:54:1
[INFO] [stdout]     |
[INFO] [stdout]  54 | / pub fn piece_parcer(
[INFO] [stdout]  55 | |     index: usize,
[INFO] [stdout]  56 | |     torrent_length: usize,
[INFO] [stdout]  57 | |     pieces_count: usize,
[INFO] [stdout]  58 | |     plength: usize,
[INFO] [stdout]  59 | | ) -> Vec<RequestBlock> {
[INFO] [stdout]     | |______________________^ function `piece_parcer` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `RequestBlock` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/foo.rs:133:1
[INFO] [stdout]     |
[INFO] [stdout] 133 | struct RequestBlock {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `pieces` is never used
[INFO] [stdout]   --> src/bitfield.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl Bitfield {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 16 |   pub(crate) fn pieces(&self) -> impl Iterator<Item = usize> + '_ {
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_recived` is never used
[INFO] [stdout]   --> src/download.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl DownloadState {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn is_recived(&self, index: &usize) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Empty` and `Choke` are never constructed
[INFO] [stdout]    --> src/foo.rs:100:5
[INFO] [stdout]     |
[INFO] [stdout]  95 | pub enum FooError {
[INFO] [stdout]     |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 100 |     Empty,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     Choke,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `FooError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `PeerState` is never used
[INFO] [stdout]    --> src/foo.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 113 | enum PeerState {
[INFO] [stdout]     |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `blabla` is never used
[INFO] [stdout]    --> src/foo.rs:385:18
[INFO] [stdout]     |
[INFO] [stdout] 166 | impl Foo {
[INFO] [stdout]     | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 385 |     pub async fn blabla(&self, mut r: UnboundedReceiver<SocketAddrV4>, state: HashSet<usize>) {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Have`, `Request`, and `Cancel` are never constructed
[INFO] [stdout]   --> src/message.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub(crate) enum Message {
[INFO] [stdout]    |                 ------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 53 |     Have {
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     Request(BlockInfo),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     Cancel(BlockInfo),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]    --> src/message.rs:191:12
[INFO] [stdout]     |
[INFO] [stdout] 191 | pub struct Request {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `index`, `begin`, `length`, and `as_bytes_mut` are never used
[INFO] [stdout]    --> src/message.rs:198:12
[INFO] [stdout]     |
[INFO] [stdout] 197 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] 198 |     pub fn new(index: u32, begin: u32, length: u32) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub fn index(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 210 |     pub fn begin(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 214 |     pub fn length(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 218 |     pub fn as_bytes_mut(&mut self) -> &mut [u8] {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `choked` is never read
[INFO] [stdout]   --> src/peer.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct PeerConnection {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 15 |     choked: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PeerConnection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_LEN` is never used
[INFO] [stdout]  --> src/piece.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub(crate) const BLOCK_LEN: u32 = 0x4000;
[INFO] [stdout]   |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `piece_index` is never read
[INFO] [stdout]   --> src/piece.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Block {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 12 |   /// The index of the piece of which this is a block.
[INFO] [stdout] 13 |   pub piece_index: PieceIndex,
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Block` 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 items `new` and `info` are never used
[INFO] [stdout]   --> src/piece.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Block {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 21 |   /// Constructs a new block based on the metadata and data.
[INFO] [stdout] 22 |   pub fn new(info: BlockInfo, data: impl Into<BlockData>) -> Self {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |   pub fn info(&self) -> BlockInfo {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `index_in_piece` is never used
[INFO] [stdout]   --> src/piece.rs:54:12
[INFO] [stdout]    |
[INFO] [stdout] 51 | impl BlockInfo {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn index_in_piece(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TorrentError` is never used
[INFO] [stdout]   --> src/torrent.rs:11:10
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum TorrentError {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ThreadPool` is never constructed
[INFO] [stdout]  --> src/worker.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct ThreadPool {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Job` is never used
[INFO] [stdout]   --> src/worker.rs:13:6
[INFO] [stdout]    |
[INFO] [stdout] 13 | type Job = Box<dyn FnOnce() + Send + 'static>;
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `execute` are never used
[INFO] [stdout]   --> src/worker.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl ThreadPool {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn new(size: usize) -> ThreadPool {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn execute<F>(&self, f: F)
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Worker` is never constructed
[INFO] [stdout]   --> src/worker.rs:66:8
[INFO] [stdout]    |
[INFO] [stdout] 66 | struct Worker {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/worker.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 71 | impl Worker {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 72 |     fn new(id: usize, receiver: Arc<Mutex<mpsc::Receiver<Job>>>) -> Worker {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.60s
[INFO] running `Command { std: "docker" "inspect" "ac5e5e9799640d6858008c529d8d349c9dfb0b2af4960747890893aa20f85f07", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ac5e5e9799640d6858008c529d8d349c9dfb0b2af4960747890893aa20f85f07", kill_on_drop: false }`
[INFO] [stdout] ac5e5e9799640d6858008c529d8d349c9dfb0b2af4960747890893aa20f85f07
