[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] building kvago36/bittorrent against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkvago36%2Fbittorrent" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kvago36/bittorrent on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v1.0.64 [INFO] [stderr] Downloaded bytes v1.7.1 [INFO] [stderr] Downloaded thiserror-impl v1.0.64 [INFO] [stderr] Downloaded redox_syscall v0.5.3 [INFO] [stderr] Downloaded tokio-stream v0.1.16 [INFO] [stderr] Downloaded serde v1.0.203 [INFO] [stderr] Downloaded syn v2.0.68 [INFO] [stderr] Downloaded synstructure v0.12.6 [INFO] [stderr] Downloaded event-listener-strategy v0.5.2 [INFO] [stderr] Downloaded bendy v0.3.3 [INFO] [stderr] Downloaded openssl-sys v0.9.102 [INFO] [stderr] Downloaded anstyle-query v1.1.1 [INFO] [stderr] Downloaded openssl v0.10.64 [INFO] [stderr] Downloaded hyper v1.4.0 [INFO] [stderr] Downloaded security-framework v2.11.0 [INFO] [stderr] Downloaded security-framework-sys v2.11.0 [INFO] [stderr] Downloaded anstyle-wincon v3.0.4 [INFO] [stderr] Downloaded regex v1.11.0 [INFO] [stderr] Downloaded colorchoice v1.0.2 [INFO] [stderr] Downloaded crossbeam-channel v0.5.13 [INFO] [stderr] Downloaded anstream v0.6.15 [INFO] [stderr] Downloaded humantime v2.1.0 [INFO] [stderr] Downloaded env_logger v0.11.5 [INFO] [stderr] Downloaded ppv-lite86 v0.2.17 [INFO] [stderr] Downloaded serde_bytes v0.11.14 [INFO] [stderr] Downloaded unicode-xid v0.2.4 [INFO] [stderr] Downloaded regex-automata v0.4.8 [INFO] [stderr] Downloaded failure_derive v0.1.8 [INFO] [stderr] Downloaded failure v0.1.8 [INFO] [stderr] Downloaded crossbeam-queue v0.3.11 [INFO] [stderr] Downloaded crossbeam v0.8.4 [INFO] [stderr] Downloaded anstyle-parse v0.2.5 [INFO] [stderr] Downloaded env_filter v0.1.2 [INFO] [stderr] Downloaded http-body v1.0.0 [INFO] [stderr] Downloaded serde_bencode v0.2.4 [INFO] [stderr] Downloaded serde_derive v1.0.203 [INFO] [stderr] Downloaded tokio v1.39.2 [INFO] [stderr] Downloaded cc v1.0.104 [INFO] [stderr] Downloaded mio v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84235f301a978d424cdc01260a74820c774fe0b05801421535bb7c85f00bb624 [INFO] running `Command { std: "docker" "start" "-a" "84235f301a978d424cdc01260a74820c774fe0b05801421535bb7c85f00bb624", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84235f301a978d424cdc01260a74820c774fe0b05801421535bb7c85f00bb624", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84235f301a978d424cdc01260a74820c774fe0b05801421535bb7c85f00bb624", kill_on_drop: false }` [INFO] [stdout] 84235f301a978d424cdc01260a74820c774fe0b05801421535bb7c85f00bb624 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aea0fa8d505db34adbd41e315c226937b4432b90129a7283e8a69144caf9eb27 [INFO] running `Command { std: "docker" "start" "-a" "aea0fa8d505db34adbd41e315c226937b4432b90129a7283e8a69144caf9eb27", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling object v0.36.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling synstructure v0.12.6 [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] Compiling tokio v1.39.2 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling serde_bytes v0.11.14 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bendy v0.3.3 [INFO] [stderr] Compiling serde_bencode v0.2.4 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling hyper v1.4.0 [INFO] [stderr] Compiling hyper-util v0.1.6 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.5 [INFO] [stderr] Compiling 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: `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 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: 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: `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: 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)]` (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, 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: 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; [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: 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>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s [INFO] running `Command { std: "docker" "inspect" "aea0fa8d505db34adbd41e315c226937b4432b90129a7283e8a69144caf9eb27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aea0fa8d505db34adbd41e315c226937b4432b90129a7283e8a69144caf9eb27", kill_on_drop: false }` [INFO] [stdout] aea0fa8d505db34adbd41e315c226937b4432b90129a7283e8a69144caf9eb27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36fd2cdecebd87578216b1e8bb4d6fc1c3ca88d04b49dca227d0052db52f3636 [INFO] running `Command { std: "docker" "start" "-a" "36fd2cdecebd87578216b1e8bb4d6fc1c3ca88d04b49dca227d0052db52f3636", kill_on_drop: false }` [INFO] [stderr] Compiling 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: `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 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: 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: `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: 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)]` (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, 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: 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; [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: 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>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.27s [INFO] running `Command { std: "docker" "inspect" "36fd2cdecebd87578216b1e8bb4d6fc1c3ca88d04b49dca227d0052db52f3636", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36fd2cdecebd87578216b1e8bb4d6fc1c3ca88d04b49dca227d0052db52f3636", kill_on_drop: false }` [INFO] [stdout] 36fd2cdecebd87578216b1e8bb4d6fc1c3ca88d04b49dca227d0052db52f3636