[INFO] fetching crate yap2p 0.1.2... [INFO] testing yap2p-0.1.2 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate yap2p 0.1.2 into /workspace/builds/worker-7-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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate yap2p 0.1.2 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d78ac24092748ec51852ab911e0cdcb8efc06c69314ee4b3d900227a6dceebc7 [INFO] running `Command { std: "docker" "start" "-a" "d78ac24092748ec51852ab911e0cdcb8efc06c69314ee4b3d900227a6dceebc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d78ac24092748ec51852ab911e0cdcb8efc06c69314ee4b3d900227a6dceebc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d78ac24092748ec51852ab911e0cdcb8efc06c69314ee4b3d900227a6dceebc7", kill_on_drop: false }` [INFO] [stdout] d78ac24092748ec51852ab911e0cdcb8efc06c69314ee4b3d900227a6dceebc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 810db3d79287a07ef2c87bfa9d3944bbcc49efbed7d95b144704ce54d6b1fb5e [INFO] running `Command { std: "docker" "start" "-a" "810db3d79287a07ef2c87bfa9d3944bbcc49efbed7d95b144704ce54d6b1fb5e", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling futures-util v0.3.31 [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 rand v0.8.5 [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 futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v0.14.32 [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)]` 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)]` 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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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)]` 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)]` 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)]` 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 11.52s [INFO] running `Command { std: "docker" "inspect" "810db3d79287a07ef2c87bfa9d3944bbcc49efbed7d95b144704ce54d6b1fb5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "810db3d79287a07ef2c87bfa9d3944bbcc49efbed7d95b144704ce54d6b1fb5e", kill_on_drop: false }` [INFO] [stdout] 810db3d79287a07ef2c87bfa9d3944bbcc49efbed7d95b144704ce54d6b1fb5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df8d59d83eeb8f83afabac5a1096a09df78e50a2c5cbb59292c3a59eba1c29e4 [INFO] running `Command { std: "docker" "start" "-a" "df8d59d83eeb8f83afabac5a1096a09df78e50a2c5cbb59292c3a59eba1c29e4", 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)]` 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)]` 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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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)]` 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)]` 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)]` 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] 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)]` 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)]` 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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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)]` 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)]` 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)]` 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.61s [INFO] running `Command { std: "docker" "inspect" "df8d59d83eeb8f83afabac5a1096a09df78e50a2c5cbb59292c3a59eba1c29e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df8d59d83eeb8f83afabac5a1096a09df78e50a2c5cbb59292c3a59eba1c29e4", kill_on_drop: false }` [INFO] [stdout] df8d59d83eeb8f83afabac5a1096a09df78e50a2c5cbb59292c3a59eba1c29e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 51e36276493b6a9912b1cbb8e40e95b75c73e83e5fd5a149da444e2f0e30fbcb [INFO] running `Command { std: "docker" "start" "-a" "51e36276493b6a9912b1cbb8e40e95b75c73e83e5fd5a149da444e2f0e30fbcb", 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)]` 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)]` 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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [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)]` 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)]` 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)]` 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 8 suggestions) [INFO] [stderr] warning: `yap2p` (lib test) generated 47 warnings (47 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/yap2p-0a5a358a6c4dc1c8) [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" "51e36276493b6a9912b1cbb8e40e95b75c73e83e5fd5a149da444e2f0e30fbcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51e36276493b6a9912b1cbb8e40e95b75c73e83e5fd5a149da444e2f0e30fbcb", kill_on_drop: false }` [INFO] [stdout] 51e36276493b6a9912b1cbb8e40e95b75c73e83e5fd5a149da444e2f0e30fbcb