[INFO] cloning repository https://github.com/ChaicBlack/EasyDist [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChaicBlack/EasyDist" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChaicBlack%2FEasyDist", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChaicBlack%2FEasyDist'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3952652fdf0b10eab3c322567bfd73444d91922 [INFO] checking ChaicBlack/EasyDist against master#22572d0994593197593e2a1b7b18d720a9a349a7 for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChaicBlack%2FEasyDist" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChaicBlack/EasyDist on toolchain 22572d0994593197593e2a1b7b18d720a9a349a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ChaicBlack/EasyDist [INFO] removed 2 missing examples [INFO] finished tweaking git repo https://github.com/ChaicBlack/EasyDist [INFO] tweaked toml for git repo https://github.com/ChaicBlack/EasyDist written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ChaicBlack/EasyDist 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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fs4 v0.9.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 448f9d3cbe401f6aa78529192d9b70d50374c87fffbd91fb0798a4d267f31fb1 [INFO] running `Command { std: "docker" "start" "-a" "448f9d3cbe401f6aa78529192d9b70d50374c87fffbd91fb0798a4d267f31fb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "448f9d3cbe401f6aa78529192d9b70d50374c87fffbd91fb0798a4d267f31fb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "448f9d3cbe401f6aa78529192d9b70d50374c87fffbd91fb0798a4d267f31fb1", kill_on_drop: false }` [INFO] [stdout] 448f9d3cbe401f6aa78529192d9b70d50374c87fffbd91fb0798a4d267f31fb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96295a4e96971e626005677ac1524164f0bf3373fabf08447f48eb398c6cf222 [INFO] running `Command { std: "docker" "start" "-a" "96295a4e96971e626005677ac1524164f0bf3373fabf08447f48eb398c6cf222", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking dashmap v6.0.1 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking fs4 v0.9.1 [INFO] [stderr] Checking simplelog v0.12.2 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking rsa v0.9.6 [INFO] [stderr] Checking EasyDist v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/msg/set.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::msg::{Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config` [INFO] [stdout] --> src/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config, msg::Ping, Connection, Frame}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Public` [INFO] [stdout] --> src/node.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | use openssl::pkey::{Private, Public}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Verifier` [INFO] [stdout] --> src/node.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | sign::{Signer, Verifier}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/msg/set.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::msg::{Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config` [INFO] [stdout] --> src/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config, msg::Ping, Connection, Frame}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Public` [INFO] [stdout] --> src/node.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | use openssl::pkey::{Private, Public}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Verifier` [INFO] [stdout] --> src/node.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | sign::{Signer, Verifier}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADDR2` is never used [INFO] [stdout] --> src/config.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const ADDR2: &str = "127.0.0.1:8081"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/get.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Get { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/set.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl Set { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `get_addr`, and `get_sig` are never used [INFO] [stdout] --> src/msg/heartbeat.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl HeartBeat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub(crate) fn get_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub(crate) fn get_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn get_sig(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `into_frame` are never used [INFO] [stdout] --> src/msg/restablish.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Restablish { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub(crate) fn new(id: u64, addr: String, sig: &[u8]) -> Restablish { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_error` is never used [INFO] [stdout] --> src/frame.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub(crate) fn to_error(&self) -> crate::Error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_log_snapshot` is never used [INFO] [stdout] --> src/db.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 25 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) async fn get_log_snapshot(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save_to_file`, and `load_from_file` are never used [INFO] [stdout] --> src/snapshot.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Backup { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn new(neighbors: DashMap, log: Vec) -> Backup { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub(crate) fn save_to_file(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn load_from_file() -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entry_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:703:8 [INFO] [stdout] | [INFO] [stdout] 703 | pub fn entry_overhead(len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segment_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:708:8 [INFO] [stdout] | [INFO] [stdout] 708 | pub fn segment_overhead() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term` and `voted_for` are never read [INFO] [stdout] --> src/state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | current_term: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | voted_for: Mutex>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `EasyDist` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `easy_dist` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `asyncEventQueue` should have a snake case name [INFO] [stdout] --> src/lib.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub mod asyncEventQueue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `async_event_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADDR2` is never used [INFO] [stdout] --> src/config.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const ADDR2: &str = "127.0.0.1:8081"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/get.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Get { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/set.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl Set { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `get_addr`, and `get_sig` are never used [INFO] [stdout] --> src/msg/heartbeat.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl HeartBeat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub(crate) fn get_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub(crate) fn get_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn get_sig(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `into_frame` are never used [INFO] [stdout] --> src/msg/restablish.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Restablish { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub(crate) fn new(id: u64, addr: String, sig: &[u8]) -> Restablish { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_error` is never used [INFO] [stdout] --> src/frame.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub(crate) fn to_error(&self) -> crate::Error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_log_snapshot` is never used [INFO] [stdout] --> src/db.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 25 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) async fn get_log_snapshot(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save_to_file`, and `load_from_file` are never used [INFO] [stdout] --> src/snapshot.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Backup { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn new(neighbors: DashMap, log: Vec) -> Backup { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub(crate) fn save_to_file(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn load_from_file() -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entry_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:703:8 [INFO] [stdout] | [INFO] [stdout] 703 | pub fn entry_overhead(len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segment_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:708:8 [INFO] [stdout] | [INFO] [stdout] 708 | pub fn segment_overhead() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term` and `voted_for` are never read [INFO] [stdout] --> src/state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | current_term: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | voted_for: Mutex>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `asyncEventQueue` should have a snake case name [INFO] [stdout] --> src/lib.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub mod asyncEventQueue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `async_event_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/msg/get.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | dst.write_frame(&response); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/msg/get.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | dst.write_frame(&response); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/bin/pong.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection` [INFO] [stdout] --> src/bin/pong.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/bin/pong.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection` [INFO] [stdout] --> src/bin/pong.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.54s [INFO] running `Command { std: "docker" "inspect" "96295a4e96971e626005677ac1524164f0bf3373fabf08447f48eb398c6cf222", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96295a4e96971e626005677ac1524164f0bf3373fabf08447f48eb398c6cf222", kill_on_drop: false }` [INFO] [stdout] 96295a4e96971e626005677ac1524164f0bf3373fabf08447f48eb398c6cf222 [INFO] checking ChaicBlack/EasyDist against try#6289438dbad80b1a0029c66dd3f6abf57c2c51be for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChaicBlack%2FEasyDist" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChaicBlack/EasyDist on toolchain 6289438dbad80b1a0029c66dd3f6abf57c2c51be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ChaicBlack/EasyDist [INFO] removed 2 missing examples [INFO] finished tweaking git repo https://github.com/ChaicBlack/EasyDist [INFO] tweaked toml for git repo https://github.com/ChaicBlack/EasyDist written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ChaicBlack/EasyDist 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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8bc6d205156ac1babef8b20f44172c2278434fa36c500f28e3c4955b4c44eb0a [INFO] running `Command { std: "docker" "start" "-a" "8bc6d205156ac1babef8b20f44172c2278434fa36c500f28e3c4955b4c44eb0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8bc6d205156ac1babef8b20f44172c2278434fa36c500f28e3c4955b4c44eb0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bc6d205156ac1babef8b20f44172c2278434fa36c500f28e3c4955b4c44eb0a", kill_on_drop: false }` [INFO] [stdout] 8bc6d205156ac1babef8b20f44172c2278434fa36c500f28e3c4955b4c44eb0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1c086161e24db9a2aafa2ffd4608107003ebf7251abfd3579c6a8d4fd0b5425 [INFO] running `Command { std: "docker" "start" "-a" "a1c086161e24db9a2aafa2ffd4608107003ebf7251abfd3579c6a8d4fd0b5425", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking dashmap v6.0.1 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking simplelog v0.12.2 [INFO] [stderr] Checking fs4 v0.9.1 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking rsa v0.9.6 [INFO] [stderr] Checking EasyDist v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/msg/set.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::msg::{Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config` [INFO] [stdout] --> src/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config, msg::Ping, Connection, Frame}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Public` [INFO] [stdout] --> src/node.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | use openssl::pkey::{Private, Public}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Verifier` [INFO] [stdout] --> src/node.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | sign::{Signer, Verifier}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/msg/set.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::msg::{Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config` [INFO] [stdout] --> src/client.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config, msg::Ping, Connection, Frame}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Public` [INFO] [stdout] --> src/node.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | use openssl::pkey::{Private, Public}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Verifier` [INFO] [stdout] --> src/node.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | sign::{Signer, Verifier}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADDR2` is never used [INFO] [stdout] --> src/config.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const ADDR2: &str = "127.0.0.1:8081"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/get.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Get { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/set.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl Set { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `get_addr`, and `get_sig` are never used [INFO] [stdout] --> src/msg/heartbeat.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl HeartBeat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub(crate) fn get_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub(crate) fn get_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn get_sig(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `into_frame` are never used [INFO] [stdout] --> src/msg/restablish.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Restablish { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub(crate) fn new(id: u64, addr: String, sig: &[u8]) -> Restablish { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_error` is never used [INFO] [stdout] --> src/frame.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub(crate) fn to_error(&self) -> crate::Error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_log_snapshot` is never used [INFO] [stdout] --> src/db.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 25 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) async fn get_log_snapshot(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save_to_file`, and `load_from_file` are never used [INFO] [stdout] --> src/snapshot.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Backup { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn new(neighbors: DashMap, log: Vec) -> Backup { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub(crate) fn save_to_file(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn load_from_file() -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entry_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:703:8 [INFO] [stdout] | [INFO] [stdout] 703 | pub fn entry_overhead(len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segment_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:708:8 [INFO] [stdout] | [INFO] [stdout] 708 | pub fn segment_overhead() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term` and `voted_for` are never read [INFO] [stdout] --> src/state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | current_term: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | voted_for: Mutex>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `asyncEventQueue` should have a snake case name [INFO] [stdout] --> src/lib.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub mod asyncEventQueue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `async_event_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/msg/get.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | dst.write_frame(&response); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADDR2` is never used [INFO] [stdout] --> src/config.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const ADDR2: &str = "127.0.0.1:8081"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/get.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Get { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/msg/set.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl Set { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `get_addr`, and `get_sig` are never used [INFO] [stdout] --> src/msg/heartbeat.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl HeartBeat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub(crate) fn get_id(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub(crate) fn get_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn get_sig(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `into_frame` are never used [INFO] [stdout] --> src/msg/restablish.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Restablish { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub(crate) fn new(id: u64, addr: String, sig: &[u8]) -> Restablish { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_error` is never used [INFO] [stdout] --> src/frame.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub(crate) fn to_error(&self) -> crate::Error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_log_snapshot` is never used [INFO] [stdout] --> src/db.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 25 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) async fn get_log_snapshot(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save_to_file`, and `load_from_file` are never used [INFO] [stdout] --> src/snapshot.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Backup { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn new(neighbors: DashMap, log: Vec) -> Backup { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub(crate) fn save_to_file(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn load_from_file() -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entry_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:703:8 [INFO] [stdout] | [INFO] [stdout] 703 | pub fn entry_overhead(len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segment_overhead` is never used [INFO] [stdout] --> src/wal/segment.rs:708:8 [INFO] [stdout] | [INFO] [stdout] 708 | pub fn segment_overhead() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term` and `voted_for` are never read [INFO] [stdout] --> src/state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | current_term: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | voted_for: Mutex>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `EasyDist` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `easy_dist` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `asyncEventQueue` should have a snake case name [INFO] [stdout] --> src/lib.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub mod asyncEventQueue; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `async_event_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/msg/get.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | dst.write_frame(&response); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/bin/pong.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection` [INFO] [stdout] --> src/bin/pong.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/bin/pong.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection` [INFO] [stdout] --> src/bin/pong.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.65s [INFO] running `Command { std: "docker" "inspect" "a1c086161e24db9a2aafa2ffd4608107003ebf7251abfd3579c6a8d4fd0b5425", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1c086161e24db9a2aafa2ffd4608107003ebf7251abfd3579c6a8d4fd0b5425", kill_on_drop: false }` [INFO] [stdout] a1c086161e24db9a2aafa2ffd4608107003ebf7251abfd3579c6a8d4fd0b5425