[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 try#51b1964e35e5e26f8cd938940f0da6f7b5cc54fc for pr-138176 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkvago36%2Fbittorrent" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kvago36/bittorrent on toolchain 51b1964e35e5e26f8cd938940f0da6f7b5cc54fc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51b1964e35e5e26f8cd938940f0da6f7b5cc54fc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+51b1964e35e5e26f8cd938940f0da6f7b5cc54fc" "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 redox_syscall v0.5.3 [INFO] [stderr] Downloaded serde_bencode v0.2.4 [INFO] [stderr] Downloaded serde_derive v1.0.203 [INFO] [stderr] Downloaded backtrace v0.3.73 [INFO] [stderr] Downloaded hyper-util v0.1.6 [INFO] [stderr] Downloaded bendy v0.3.3 [INFO] [stderr] Downloaded mio v1.0.1 [INFO] [stderr] Downloaded serde_json v1.0.120 [INFO] [stderr] Downloaded crossbeam-channel v0.5.13 [INFO] [stderr] Downloaded serde v1.0.203 [INFO] [stderr] Downloaded cc v1.0.104 [INFO] [stderr] Downloaded rustls-webpki v0.102.5 [INFO] [stderr] Downloaded syn v2.0.68 [INFO] [stderr] Downloaded bytes v1.7.1 [INFO] [stderr] Downloaded object v0.36.1 [INFO] [stderr] Downloaded rustls v0.23.11 [INFO] [stderr] Downloaded tokio v1.39.2 [INFO] [stderr] Downloaded hyper v1.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+51b1964e35e5e26f8cd938940f0da6f7b5cc54fc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70475b4c4f780863e530fa951248558658ec9177bdf8c02f39681f04f1d7fc63 [INFO] running `Command { std: "docker" "start" "-a" "70475b4c4f780863e530fa951248558658ec9177bdf8c02f39681f04f1d7fc63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70475b4c4f780863e530fa951248558658ec9177bdf8c02f39681f04f1d7fc63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70475b4c4f780863e530fa951248558658ec9177bdf8c02f39681f04f1d7fc63", kill_on_drop: false }` [INFO] [stdout] 70475b4c4f780863e530fa951248558658ec9177bdf8c02f39681f04f1d7fc63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+51b1964e35e5e26f8cd938940f0da6f7b5cc54fc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b06784a1bebd42c084ac5b3da5db5cb88d6f2ab0da21dfadee68935c0f4348e2 [INFO] running `Command { std: "docker" "start" "-a" "b06784a1bebd42c084ac5b3da5db5cb88d6f2ab0da21dfadee68935c0f4348e2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking object v0.36.1 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking event-listener v5.3.1 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking event-listener-strategy v0.5.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking regex v1.11.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [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 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 serde_bencode v0.2.4 [INFO] [stderr] Checking bendy v0.3.3 [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)]` on by default [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)]` on by default [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)]` 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: `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)]` 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: `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: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 { [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 { [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 + '_ { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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, state: HashSet) { [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) -> 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: 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(&self, f: F) [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>>) -> 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 { [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 { [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 + '_ { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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, state: HashSet) { [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) -> 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: 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(&self, f: F) [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>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.40s [INFO] running `Command { std: "docker" "inspect" "b06784a1bebd42c084ac5b3da5db5cb88d6f2ab0da21dfadee68935c0f4348e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b06784a1bebd42c084ac5b3da5db5cb88d6f2ab0da21dfadee68935c0f4348e2", kill_on_drop: false }` [INFO] [stdout] b06784a1bebd42c084ac5b3da5db5cb88d6f2ab0da21dfadee68935c0f4348e2