[INFO] cloning repository https://github.com/janus/neighbor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/janus/neighbor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjanus%2Fneighbor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjanus%2Fneighbor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e60aeaa9ce6fb1aeebbd6a65c1ad374772f71e54 [INFO] checking janus/neighbor against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjanus%2Fneighbor" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/janus/neighbor on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/janus/neighbor [INFO] finished tweaking git repo https://github.com/janus/neighbor [INFO] tweaked toml for git repo https://github.com/janus/neighbor written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/janus/neighbor already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7921206e369fa1f31f36834cad2b0965d9968486b204f6a3cb2c8e347ddce0d5 [INFO] running `Command { std: "docker" "start" "-a" "7921206e369fa1f31f36834cad2b0965d9968486b204f6a3cb2c8e347ddce0d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7921206e369fa1f31f36834cad2b0965d9968486b204f6a3cb2c8e347ddce0d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7921206e369fa1f31f36834cad2b0965d9968486b204f6a3cb2c8e347ddce0d5", kill_on_drop: false }` [INFO] [stdout] 7921206e369fa1f31f36834cad2b0965d9968486b204f6a3cb2c8e347ddce0d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3317ba09c8e04dc699a372fd7a2b9c61d063e9dea02cbc1b5fae49d176189dd [INFO] running `Command { std: "docker" "start" "-a" "e3317ba09c8e04dc699a372fd7a2b9c61d063e9dea02cbc1b5fae49d176189dd", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.30 [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking serde v0.7.15 [INFO] [stderr] Checking log v0.3.8 [INFO] [stderr] Checking serde v1.0.14 [INFO] [stderr] Checking lazycell v0.5.1 [INFO] [stderr] Checking secrets v0.11.1 [INFO] [stderr] Checking base64 v0.6.0 [INFO] [stderr] Compiling libsodium-sys v0.0.12 [INFO] [stderr] Checking time v0.1.38 [INFO] [stderr] Checking iovec v0.1.0 [INFO] [stderr] Checking net2 v0.2.31 [INFO] [stderr] Checking bytes v0.4.5 [INFO] [stderr] Checking num-integer v0.1.35 [INFO] [stderr] Checking num-iter v0.1.34 [INFO] [stderr] Checking mio v0.6.10 [INFO] [stderr] Checking num v0.1.40 [INFO] [stderr] Checking chrono v0.2.25 [INFO] [stderr] Checking sodiumoxide v0.0.12 [INFO] [stderr] Checking edcert v9.0.1 [INFO] [stderr] Checking chrono v0.4.0 [INFO] [stderr] Checking neighbor v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `decode` [INFO] [stdout] --> src/serialization.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/serialization.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::ENDPOINT` [INFO] [stdout] --> src/neighbors.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use types::ENDPOINT; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/types.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf` [INFO] [stdout] --> src/pingnetwork.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BytesMut, Buf, BufMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Multicast_Net` should have an upper camel case name [INFO] [stdout] --> src/pingnetwork.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Multicast_Net { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MulticastNet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/pingnetwork.rs:105:54 [INFO] [stdout] | [INFO] [stdout] 105 | println!("UDP sent Nothing");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `BytesMut` [INFO] [stdout] --> src/pingnetwork.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/types.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf` [INFO] [stdout] --> src/pingnetwork.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BytesMut, Buf, BufMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `mio::udp`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use mio::udp::*; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn UDPsocket(ipadr: &str, port: &str) -> (UdpSocket, SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | let socket = match UdpSocket::bind(&saddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn read_udpsocket(&mut self,rx: &UdpSocket, _: &mut Poll, token: Token, _: Ready) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn send_packet(&mut self, tx: &UdpSocket, ipaddr: &SocketAddr, _: &mut Poll, token: Token, _: Ready) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Multicast_Net` should have an upper camel case name [INFO] [stdout] --> src/pingnetwork.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Multicast_Net { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MulticastNet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/pingnetwork.rs:105:54 [INFO] [stdout] | [INFO] [stdout] 105 | println!("UDP sent Nothing");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `mio::udp`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use mio::udp::*; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn UDPsocket(ipadr: &str, port: &str) -> (UdpSocket, SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | let socket = match UdpSocket::bind(&saddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn read_udpsocket(&mut self,rx: &UdpSocket, _: &mut Poll, token: Token, _: Ready) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `mio::udp::UdpSocket`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn send_packet(&mut self, tx: &UdpSocket, ipaddr: &SocketAddr, _: &mut Poll, token: Token, _: Ready) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `mio::udp::UdpSocket::bind`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 21 | let socket = match UdpSocket::bind(&saddr) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `mio::udp::UdpSocket::recv_from`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | match rx.recv_from(&mut buf[..]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `mio::udp::UdpSocket::send_to`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:96:26 [INFO] [stdout] | [INFO] [stdout] 96 | match tx.send_to(&self.buf[..], &ipaddr) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `mio::udp::UdpSocket::bind`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 21 | let socket = match UdpSocket::bind(&saddr) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `mio::udp::UdpSocket::recv_from`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | match rx.recv_from(&mut buf[..]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `mio::udp::UdpSocket::send_to`: use net module instead [INFO] [stdout] --> src/pingnetwork.rs:96:26 [INFO] [stdout] | [INFO] [stdout] 96 | match tx.send_to(&self.buf[..], &ipaddr) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_time` is never used [INFO] [stdout] --> src/serialization.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn not_time() -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_neighbor` and `get_neighbor` are never used [INFO] [stdout] --> src/neighbors.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Neighbors { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn delete_neighbor(&mut self, neighbr: &Neighbor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_neighbor(&mut self, pub_key: &str) -> Option<&Neighbor> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DATAGRAM` is never constructed [INFO] [stdout] --> src/types.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DATAGRAM { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BUFFER_CAPACITY_MESSAGE` is never used [INFO] [stdout] --> src/serialization.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const BUFFER_CAPACITY_MESSAGE: usize = 400; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `secret` is never read [INFO] [stdout] --> src/pingnetwork.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Multicast_Net { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 37 | secret: [u8; 64], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HELLO_CONFIRM` is never used [INFO] [stdout] --> src/serialization.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const HELLO_CONFIRM: &'static str ="hello_confirm"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_key` is never used [INFO] [stdout] --> src/serialization.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn decode_key(mstr: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `payload` is never used [INFO] [stdout] --> src/serialization.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn payload( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `on_pong` is never used [INFO] [stdout] --> src/serialization.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn on_pong(packet: &BytesMut, active: i32) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_header` is never used [INFO] [stdout] --> src/serialization.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn match_header(packet: &BytesMut) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_size` is never used [INFO] [stdout] --> src/serialization.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn check_size(packet: &BytesMut) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `time_within` is never used [INFO] [stdout] --> src/serialization.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn time_within(sent_tm: i64, now_tm: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_vec` is never used [INFO] [stdout] --> src/serialization.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn bytes_vec(packet: &BytesMut) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_payload` is never used [INFO] [stdout] --> src/serialization.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn extract_payload(vec: &Vec<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeVal` should have a snake case name [INFO] [stdout] --> src/serialization.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | fn encodeVal(udp_port: &str, ip_address: &str) -> (String, String, String, [u8; 64]) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `encode_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_str` is never used [INFO] [stdout] --> src/neighbor.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn decode_str(mstr: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Neighbor` is never constructed [INFO] [stdout] --> src/neighbor.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Neighbor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_pub_key`, `get_payment_address`, `get_endpoint`, `get_seqnum`, and `get_active` are never used [INFO] [stdout] --> src/neighbor.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Neighbor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 35 | pub fn new(vec_fields: &Vec<&str>, ttnum: i32) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_pub_key(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_payment_address(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn get_endpoint(&self) -> &ENDPOINT { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn get_seqnum(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_active(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Neighbors` is never constructed [INFO] [stdout] --> src/neighbors.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Neighbors { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/neighbors.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Neighbors { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Neighbors { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn insert_neighbor(&mut self, neighbr: Neighbor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn delete_with_pub_key(&mut self, pub_key: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn delete_neighbor(&mut self, neighbr: &Neighbor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_neighbor(&mut self, pub_key: &str) -> Option<&Neighbor> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_host_status_num(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_host_status_num(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_neighbors(&mut self) -> Vec<&Neighbor> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn remove_inactive_neighbors(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ENDPOINT` is never constructed [INFO] [stdout] --> src/types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ENDPOINT { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DATAGRAM` is never constructed [INFO] [stdout] --> src/types.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DATAGRAM { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BUFFER_CAPACITY` is never used [INFO] [stdout] --> src/pingnetwork.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const BUFFER_CAPACITY: usize = 800; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LISTENER` is never used [INFO] [stdout] --> src/pingnetwork.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const LISTENER: Token = Token(0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SENDER` is never used [INFO] [stdout] --> src/pingnetwork.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const SENDER: Token = Token(1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HELLO` is never used [INFO] [stdout] --> src/pingnetwork.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const HELLO: &'static str ="hello"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UDPsocket` is never used [INFO] [stdout] --> src/pingnetwork.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn UDPsocket(ipadr: &str, port: &str) -> (UdpSocket, SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dcod` is never used [INFO] [stdout] --> src/pingnetwork.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn dcod(mstr: &str) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Multicast_Net` is never constructed [INFO] [stdout] --> src/pingnetwork.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Multicast_Net { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `parse_packet`, `read_udpsocket`, `send_packet`, and `start_net` are never used [INFO] [stdout] --> src/pingnetwork.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Multicast_Net { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 46 | pub fn new(pro_vec: &Vec<&str>, secret: [u8; 64]) -> Multicast_Net { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn parse_packet(&mut self, buf: &BytesMut) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn read_udpsocket(&mut self,rx: &UdpSocket, _: &mut Poll, token: Token, _: Ready) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn send_packet(&mut self, tx: &UdpSocket, ipaddr: &SocketAddr, _: &mut Poll, token: Token, _: Ready) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn start_net(&mut self, rx_ip: &str, rx_udp: &str, pro_vec: &Vec<&str>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeVal` should have a snake case name [INFO] [stdout] --> src/neighbor.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn encodeVal(udp_port: &str, ip_address: &str) -> (String, String, String) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `encode_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbor.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | vec.push(not_applicable.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbors.rs:45:80 [INFO] [stdout] | [INFO] [stdout] 45 | let neighbors: Vec<&Neighbor> = self.neighbrs.iter().map(|(_, nbr)| nbr.clone()).collect(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `Neighbor` does not implement `Clone`, so calling `clone` on `&Neighbor` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeVal` should have a snake case name [INFO] [stdout] --> src/neighbors.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn encodeVal(udp_port: &str, ip_address: &str) -> (String, String, String) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `encode_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbors.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | vec.push(not_applicable.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbors.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | vec.push(not_applicable.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbors.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | vec.push(not_applicable.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbors.rs:133:32 [INFO] [stdout] | [INFO] [stdout] 133 | vec.push(not_applicable.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/neighbors.rs:45:80 [INFO] [stdout] | [INFO] [stdout] 45 | let neighbors: Vec<&Neighbor> = self.neighbrs.iter().map(|(_, nbr)| nbr.clone()).collect(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `Neighbor` does not implement `Clone`, so calling `clone` on `&Neighbor` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UDPsocket` should have a snake case name [INFO] [stdout] --> src/pingnetwork.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn UDPsocket(ipadr: &str, port: &str) -> (UdpSocket, SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `udpsocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `UDPsocket` should have a snake case name [INFO] [stdout] --> src/pingnetwork.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn UDPsocket(ipadr: &str, port: &str) -> (UdpSocket, SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `udpsocket` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encodeVal` should have a snake case name [INFO] [stdout] --> src/pingnetwork.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | fn encodeVal( [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `encode_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `neighbor` (lib) due to 2 previous errors; 38 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `neighbor` (lib test) due to 7 previous errors; 25 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e3317ba09c8e04dc699a372fd7a2b9c61d063e9dea02cbc1b5fae49d176189dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3317ba09c8e04dc699a372fd7a2b9c61d063e9dea02cbc1b5fae49d176189dd", kill_on_drop: false }` [INFO] [stdout] e3317ba09c8e04dc699a372fd7a2b9c61d063e9dea02cbc1b5fae49d176189dd