[INFO] fetching crate yap2p 0.1.2... [INFO] testing yap2p-0.1.2 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate yap2p 0.1.2 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate yap2p 0.1.2 [INFO] finished tweaking crates.io crate yap2p 0.1.2 [INFO] tweaked toml for crates.io crate yap2p 0.1.2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate yap2p 0.1.2 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 213 packages to latest compatible versions [INFO] [stderr] Adding bincode v1.3.3 (available: v2.0.1) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.2.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding ureq v2.12.1 (available: v3.1.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1cb6b1a97175ddf8a017f322eac5b1fd19c36d970766be7689ff096b60889046 [INFO] running `Command { std: "docker" "start" "-a" "1cb6b1a97175ddf8a017f322eac5b1fd19c36d970766be7689ff096b60889046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cb6b1a97175ddf8a017f322eac5b1fd19c36d970766be7689ff096b60889046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cb6b1a97175ddf8a017f322eac5b1fd19c36d970766be7689ff096b60889046", kill_on_drop: false }` [INFO] [stdout] 1cb6b1a97175ddf8a017f322eac5b1fd19c36d970766be7689ff096b60889046 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 140a29dab38ada99fd4a0274e684afce81099e0e19b2466ef2a18e38edffc8c8 [INFO] running `Command { std: "docker" "start" "-a" "140a29dab38ada99fd4a0274e684afce81099e0e19b2466ef2a18e38edffc8c8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling yap2p v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [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: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 558 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 558 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 577 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 577 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 507 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 507 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 526 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 526 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [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 `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIVE_BUFFER_SIZE` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const RECEIVE_BUFFER_SIZE: usize = 1220; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MeshContacts` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) struct MeshContacts { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `serialize` and `deserialize` are never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn deserialize(bytes: Vec) -> MeshContacts { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MbpDriver` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stdout] 2 | | #![warn(missing_docs)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod peer; [INFO] [stdout] ... | [INFO] [stdout] 9 | | pub(crate) mod ip; [INFO] [stdout] 10 | | pub(crate) mod utils; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | first_packet: Packet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rest_of_payload: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | first_packet_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | payload: Mutex> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "140a29dab38ada99fd4a0274e684afce81099e0e19b2466ef2a18e38edffc8c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "140a29dab38ada99fd4a0274e684afce81099e0e19b2466ef2a18e38edffc8c8", kill_on_drop: false }` [INFO] [stdout] 140a29dab38ada99fd4a0274e684afce81099e0e19b2466ef2a18e38edffc8c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 351ebf1bd7c9b7ec37b71c51cd00dcb8ab0b7a461cbdfc9cd510990e2ebff68d [INFO] running `Command { std: "docker" "start" "-a" "351ebf1bd7c9b7ec37b71c51cd00dcb8ab0b7a461cbdfc9cd510990e2ebff68d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [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: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 558 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 558 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 577 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 577 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 507 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 507 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 526 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 526 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [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 `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling yap2p v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `RECEIVE_BUFFER_SIZE` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const RECEIVE_BUFFER_SIZE: usize = 1220; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MeshContacts` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) struct MeshContacts { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `serialize` and `deserialize` are never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn deserialize(bytes: Vec) -> MeshContacts { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MbpDriver` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stdout] 2 | | #![warn(missing_docs)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod peer; [INFO] [stdout] ... | [INFO] [stdout] 9 | | pub(crate) mod ip; [INFO] [stdout] 10 | | pub(crate) mod utils; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | first_packet: Packet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rest_of_payload: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | first_packet_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | payload: Mutex> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [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: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 558 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 558 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 577 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 577 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 507 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 507 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stdout] | [INFO] [stdout] 526 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] 526 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [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 `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECEIVE_BUFFER_SIZE` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const RECEIVE_BUFFER_SIZE: usize = 1220; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MeshContacts` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) struct MeshContacts { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `serialize` and `deserialize` are never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn deserialize(bytes: Vec) -> MeshContacts { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scheduler` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MbpDriver` is never constructed [INFO] [stdout] --> src/protocols/mbp/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stdout] 2 | | #![warn(missing_docs)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod peer; [INFO] [stdout] ... | [INFO] [stdout] 9 | | pub(crate) mod ip; [INFO] [stdout] 10 | | pub(crate) mod utils; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | first_packet: Packet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rest_of_payload: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | first_packet_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | payload: Mutex> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.31s [INFO] running `Command { std: "docker" "inspect" "351ebf1bd7c9b7ec37b71c51cd00dcb8ab0b7a461cbdfc9cd510990e2ebff68d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "351ebf1bd7c9b7ec37b71c51cd00dcb8ab0b7a461cbdfc9cd510990e2ebff68d", kill_on_drop: false }` [INFO] [stdout] 351ebf1bd7c9b7ec37b71c51cd00dcb8ab0b7a461cbdfc9cd510990e2ebff68d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 86770601e90650077b3bbcfa712c946486f2161a62ee510c970e4f3a51b4ce01 [INFO] running `Command { std: "docker" "start" "-a" "86770601e90650077b3bbcfa712c946486f2161a62ee510c970e4f3a51b4ce01", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::SocketAddr` [INFO] [stderr] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::net::SocketAddr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stderr] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stderr] | [INFO] [stderr] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::task::Waker` [INFO] [stderr] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::task::Waker; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::Rng` [INFO] [stderr] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use rand::Rng; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::Mutex` [INFO] [stderr] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use tokio::sync::Mutex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::crypto::history::*` [INFO] [stderr] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use crate::crypto::history::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stderr] | [INFO] [stderr] 111 | / loop { [INFO] [stderr] 112 | | // handling incoming packet [INFO] [stderr] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stderr] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stderr] ... | [INFO] [stderr] 160 | | } [INFO] [stderr] | |_________- any code following this expression is unreachable [INFO] [stderr] 161 | return Poll::Ready(()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_bytes_sent` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stderr] | [INFO] [stderr] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 558 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stderr] | [INFO] [stderr] 558 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] 558 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_bytes_sent` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stderr] | [INFO] [stderr] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 577 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stderr] | [INFO] [stderr] 577 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] 577 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stderr] | [INFO] [stderr] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_packets` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stderr] | [INFO] [stderr] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stderr] | [INFO] [stderr] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stderr] | [INFO] [stderr] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_packets` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stderr] | [INFO] [stderr] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stderr] | [INFO] [stderr] 1358 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_bytes_sent` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stderr] | [INFO] [stderr] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 507 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stderr] | [INFO] [stderr] 507 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] 507 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_bytes_sent` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stderr] | [INFO] [stderr] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 526 | if let Ok(_n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `RECEIVE_BUFFER_SIZE` [INFO] [stderr] | [INFO] [stderr] 526 - if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stderr] 526 + if let Ok(protocols::mbp::RECEIVE_BUFFER_SIZE) = ready!(self.socket.poll_send_to( [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `receiver` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stderr] | [INFO] [stderr] 1143 | for receiver in receivers { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stderr] | [INFO] [stderr] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_packets` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stderr] | [INFO] [stderr] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stderr] | [INFO] [stderr] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `receiver` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stderr] | [INFO] [stderr] 1200 | ... for receiver in receivers { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stderr] | [INFO] [stderr] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_packets` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stderr] | [INFO] [stderr] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stderr] | [INFO] [stderr] 1236 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `contacts` [INFO] [stderr] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stderr] | [INFO] [stderr] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `contact` [INFO] [stderr] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stderr] | [INFO] [stderr] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stderr] | [INFO] [stderr] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stderr] --> src/peer/mod.rs:334:19 [INFO] [stderr] | [INFO] [stderr] 285 | impl Contact { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 360 | pub(crate) fn remove_addr(&self, device: u16) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `echo` is never used [INFO] [stderr] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stderr] | [INFO] [stderr] 416 | impl SdpConnection { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 423 | fn echo( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `echo` is never used [INFO] [stderr] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stderr] | [INFO] [stderr] 363 | impl SdpSelfConnection { [INFO] [stderr] | ---------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 370 | fn echo( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `RECEIVE_BUFFER_SIZE` is never used [INFO] [stderr] --> src/protocols/mbp/mod.rs:25:7 [INFO] [stderr] | [INFO] [stderr] 25 | const RECEIVE_BUFFER_SIZE: usize = 1220; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MeshContacts` is never constructed [INFO] [stderr] --> src/protocols/mbp/mod.rs:29:19 [INFO] [stderr] | [INFO] [stderr] 29 | pub(crate) struct MeshContacts { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `serialize` and `deserialize` are never used [INFO] [stderr] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stderr] | [INFO] [stderr] 38 | impl MeshContacts { [INFO] [stderr] | ----------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | pub(crate) fn deserialize(bytes: Vec) -> MeshContacts { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Scheduler` is never constructed [INFO] [stderr] --> src/protocols/mbp/mod.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | struct Scheduler { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MbpDriver` is never constructed [INFO] [stderr] --> src/protocols/mbp/mod.rs:68:12 [INFO] [stderr] | [INFO] [stderr] 68 | pub struct MbpDriver { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stderr] | [INFO] [stderr] 80 | impl MbpDriver { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `obtain_ipv4_addr` is never used [INFO] [stderr] --> src/ip/mod.rs:26:15 [INFO] [stderr] | [INFO] [stderr] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `chunk_data_for_encryption` is never used [INFO] [stderr] --> src/utils.rs:10:15 [INFO] [stderr] | [INFO] [stderr] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for the crate [INFO] [stderr] --> src/lib.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stderr] 2 | | #![warn(missing_docs)] [INFO] [stderr] 3 | | [INFO] [stderr] 4 | | pub mod peer; [INFO] [stderr] ... | [INFO] [stderr] 9 | | pub(crate) mod ip; [INFO] [stderr] 10 | | pub(crate) mod utils; [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | #![warn(missing_docs)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/crypto/dh.rs:59:21 [INFO] [stderr] | [INFO] [stderr] 59 | let mut A = self.base.pow(log); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/crypto/dh.rs:81:21 [INFO] [stderr] | [INFO] [stderr] 81 | let mut A = self.base.pow(log); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> src/protocols/sdp/mod.rs:151:9 [INFO] [stderr] | [INFO] [stderr] 151 | first_packet: Packet, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> src/protocols/sdp/mod.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 152 | rest_of_payload: VecDeque> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> src/protocols/sdp/mod.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 157 | first_packet_id: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> src/protocols/sdp/mod.rs:158:9 [INFO] [stderr] | [INFO] [stderr] 158 | payload: Mutex> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `yap2p` (lib) generated 47 warnings (run `cargo fix --lib -p yap2p` to apply 12 suggestions) [INFO] [stderr] warning: `yap2p` (lib test) generated 47 warnings (47 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/yap2p-86840bd4b8754232) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests yap2p [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "86770601e90650077b3bbcfa712c946486f2161a62ee510c970e4f3a51b4ce01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86770601e90650077b3bbcfa712c946486f2161a62ee510c970e4f3a51b4ce01", kill_on_drop: false }` [INFO] [stdout] 86770601e90650077b3bbcfa712c946486f2161a62ee510c970e4f3a51b4ce01