[INFO] cloning repository https://github.com/BenMagill/local-drop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BenMagill/local-drop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenMagill%2Flocal-drop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenMagill%2Flocal-drop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 331bcd25e725183a128f2062682093b711b0fe3a [INFO] checking BenMagill/local-drop/331bcd25e725183a128f2062682093b711b0fe3a against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenMagill%2Flocal-drop" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BenMagill/local-drop on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BenMagill/local-drop [INFO] finished tweaking git repo https://github.com/BenMagill/local-drop [INFO] tweaked toml for git repo https://github.com/BenMagill/local-drop written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BenMagill/local-drop already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bonjour-sys v0.1.0 [INFO] [stderr] Downloaded avahi-sys v0.10.0 [INFO] [stderr] Downloaded portable-atomic v1.4.3 [INFO] [stderr] Downloaded zeroconf v0.11.1 [INFO] [stderr] Downloaded derive-getters v0.2.1 [INFO] [stderr] Downloaded indicatif v0.17.6 [INFO] [stderr] Downloaded zeroconf-macros v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 365a7a1dcfcf25ff33a90262a1827d7f816bc37ec08ac5525c6617ea022008ac [INFO] running `Command { std: "docker" "start" "-a" "365a7a1dcfcf25ff33a90262a1827d7f816bc37ec08ac5525c6617ea022008ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "365a7a1dcfcf25ff33a90262a1827d7f816bc37ec08ac5525c6617ea022008ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "365a7a1dcfcf25ff33a90262a1827d7f816bc37ec08ac5525c6617ea022008ac", kill_on_drop: false }` [INFO] [stdout] 365a7a1dcfcf25ff33a90262a1827d7f816bc37ec08ac5525c6617ea022008ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7ff2bd9454bd1dbf82c885a7719e991ed7883291ead11255fd38a3a4a81e631 [INFO] running `Command { std: "docker" "start" "-a" "c7ff2bd9454bd1dbf82c885a7719e991ed7883291ead11255fd38a3a4a81e631", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling clang-sys v1.6.1 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling bindgen v0.55.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustix v0.38.9 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Compiling portable-atomic v1.4.3 [INFO] [stderr] Compiling serde v1.0.186 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking unicode-linebreak v0.1.5 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling derive_builder v0.9.0 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling aho-corasick v1.0.4 [INFO] [stderr] Checking textwrap v0.15.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Checking clap_builder v4.4.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.15 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking indicatif v0.17.6 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking requestty-ui v0.5.0 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Checking requestty v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.186 [INFO] [stderr] Compiling clap_derive v4.4.0 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Compiling derive-getters v0.2.1 [INFO] [stderr] Compiling zeroconf-macros v0.1.2 [INFO] [stderr] Checking clap v4.4.1 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling derive_builder_core v0.9.0 [INFO] [stderr] Compiling avahi-sys v0.10.0 [INFO] [stderr] Checking zeroconf v0.11.1 [INFO] [stderr] Checking local-drop v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `io::Read` and `net::TcpStream` [INFO] [stdout] --> src/comms.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, net::TcpStream}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/sender.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{env, fs::File, io::Read, thread}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Read` and `net::TcpStream` [INFO] [stdout] --> src/comms.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, net::TcpStream}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Read` and `net::TcpStream` [INFO] [stdout] --> src/comms.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, net::TcpStream}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Read` and `net::TcpStream` [INFO] [stdout] --> src/comms.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, net::TcpStream}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/sender.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{env, fs::File, io::Read, thread}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `service_name` is never read [INFO] [stdout] --> src/receiver.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 29 | service_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/comms.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait Encoder { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 22 | fn to_bytes(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Serialiser` is never constructed [INFO] [stdout] --> src/comms.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Serialiser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_u8`, `add`, and `output` are never used [INFO] [stdout] --> src/comms.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Serialiser { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Serialiser { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_u8(&mut self, data: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn add(&mut self, data: impl Encoder) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn output(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ask` and `Data` are never constructed [INFO] [stdout] --> src/message.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MessageType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Ask = 0b0000_0001, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Data = 0b0000_0100, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build_ask` and `build_data` are never used [INFO] [stdout] --> src/message.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn build_ask(file_name: &str, file_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn build_data(data: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `port`, and `name` are never read [INFO] [stdout] --> src/peer.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Peer { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 19 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Peer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peers` and `stop` are never read [INFO] [stdout] --> src/peer.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct PeerService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 25 | peers: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | stop: Arc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_peers`, `start_search`, and `end_search` are never used [INFO] [stdout] --> src/peer.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl PeerService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> PeerService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_peers(&self) -> Peers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn start_search(&self) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn end_search(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_u8` is never used [INFO] [stdout] --> src/comms.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Serialiser { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_u8(&mut self, data: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `service_name` is never read [INFO] [stdout] --> src/receiver.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 29 | service_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/comms.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait Encoder { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 22 | fn to_bytes(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Serialiser` is never constructed [INFO] [stdout] --> src/comms.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Serialiser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_u8`, `add`, and `output` are never used [INFO] [stdout] --> src/comms.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Serialiser { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Serialiser { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_u8(&mut self, data: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn add(&mut self, data: impl Encoder) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn output(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AskOk`, `AskDeny`, and `DataRecvd` are never constructed [INFO] [stdout] --> src/message.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MessageType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Ask = 0b0000_0001, [INFO] [stdout] 11 | AskOk = 0b0000_0010, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | AskDeny = 0b000_0011, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | Data = 0b0000_0100, [INFO] [stdout] 14 | DataRecvd = 0b0000_0101, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ask` and `Data` are never constructed [INFO] [stdout] --> src/message.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MessageType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Ask = 0b0000_0001, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Data = 0b0000_0100, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build_ask` and `build_data` are never used [INFO] [stdout] --> src/message.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn build_ask(file_name: &str, file_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn build_data(data: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `port`, and `name` are never read [INFO] [stdout] --> src/peer.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Peer { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 19 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Peer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peers` and `stop` are never read [INFO] [stdout] --> src/peer.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct PeerService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 25 | peers: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | stop: Arc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_peers`, `start_search`, and `end_search` are never used [INFO] [stdout] --> src/peer.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl PeerService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> PeerService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_peers(&self) -> Peers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn start_search(&self) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn end_search(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_size` and `file_name` are never read [INFO] [stdout] --> src/message.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct AskInfo { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 25 | pub file_size: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | pub file_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AskInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/message.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | Ask(AskInfo), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Ask(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build_ask_ok`, `build_ask_deny`, and `build_data_received` are never used [INFO] [stdout] --> src/message.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn build_ask_ok() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn build_ask_deny() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn build_data_received() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_first_byte` and `read_amount_closure` are never used [INFO] [stdout] --> src/message.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl Stream { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn read_first_byte(&mut self) -> (u32, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn read_amount_closure(&mut self, amount: u32, clsr: F) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `service_name` is never read [INFO] [stdout] --> src/peer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 12 | service_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `announce` is never used [INFO] [stdout] --> src/peer.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl PeerService { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn announce(name: String, port: u16) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_u8` is never used [INFO] [stdout] --> src/comms.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Serialiser { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_u8(&mut self, data: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AskOk`, `AskDeny`, and `DataRecvd` are never constructed [INFO] [stdout] --> src/message.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MessageType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Ask = 0b0000_0001, [INFO] [stdout] 11 | AskOk = 0b0000_0010, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | AskDeny = 0b000_0011, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | Data = 0b0000_0100, [INFO] [stdout] 14 | DataRecvd = 0b0000_0101, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_size` and `file_name` are never read [INFO] [stdout] --> src/message.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct AskInfo { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 25 | pub file_size: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | pub file_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AskInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/message.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | Ask(AskInfo), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Ask(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build_ask_ok`, `build_ask_deny`, and `build_data_received` are never used [INFO] [stdout] --> src/message.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn build_ask_ok() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn build_ask_deny() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn build_data_received() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_first_byte` and `read_amount_closure` are never used [INFO] [stdout] --> src/message.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl Stream { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn read_first_byte(&mut self) -> (u32, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn read_amount_closure(&mut self, amount: u32, clsr: F) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `service_name` is never read [INFO] [stdout] --> src/peer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 12 | service_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `announce` is never used [INFO] [stdout] --> src/peer.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl PeerService { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn announce(name: String, port: u16) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.47s [INFO] running `Command { std: "docker" "inspect" "c7ff2bd9454bd1dbf82c885a7719e991ed7883291ead11255fd38a3a4a81e631", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7ff2bd9454bd1dbf82c885a7719e991ed7883291ead11255fd38a3a4a81e631", kill_on_drop: false }` [INFO] [stdout] c7ff2bd9454bd1dbf82c885a7719e991ed7883291ead11255fd38a3a4a81e631