[INFO] fetching crate EasyDist 0.2.0... [INFO] testing EasyDist-0.2.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate EasyDist 0.2.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate EasyDist 0.2.0 [INFO] removed 2 missing examples [INFO] finished tweaking crates.io crate EasyDist 0.2.0 [INFO] tweaked toml for crates.io crate EasyDist 0.2.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate EasyDist 0.2.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate EasyDist 0.2.0 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8093df1b861f8c832d481ef84dec502dd96010d218f6dc17e96b388c5d527527 [INFO] running `Command { std: "docker" "start" "-a" "8093df1b861f8c832d481ef84dec502dd96010d218f6dc17e96b388c5d527527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8093df1b861f8c832d481ef84dec502dd96010d218f6dc17e96b388c5d527527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8093df1b861f8c832d481ef84dec502dd96010d218f6dc17e96b388c5d527527", kill_on_drop: false }` [INFO] [stdout] 8093df1b861f8c832d481ef84dec502dd96010d218f6dc17e96b388c5d527527 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2415a5c5cc865b49daebc54afaac4e77630debbc2cc3d5619a8160926acbb178 [INFO] running `Command { std: "docker" "start" "-a" "2415a5c5cc865b49daebc54afaac4e77630debbc2cc3d5619a8160926acbb178", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling dashmap v6.0.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling simplelog v0.12.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling fs4 v0.9.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling env_logger v0.11.3 [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] Compiling tokio v1.38.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: struct `Backup` is never constructed [INFO] [stdout] --> src/snapshot.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct Backup { [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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.75s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2415a5c5cc865b49daebc54afaac4e77630debbc2cc3d5619a8160926acbb178", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2415a5c5cc865b49daebc54afaac4e77630debbc2cc3d5619a8160926acbb178", kill_on_drop: false }` [INFO] [stdout] 2415a5c5cc865b49daebc54afaac4e77630debbc2cc3d5619a8160926acbb178 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81d2cdec44fc3ddd914636854abca4f82dd31d5c922a69a76b99585b4988edf7 [INFO] running `Command { std: "docker" "start" "-a" "81d2cdec44fc3ddd914636854abca4f82dd31d5c922a69a76b99585b4988edf7", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [stderr] Compiling EasyDist v0.2.0 (/opt/rustwide/workdir) [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: struct `Backup` is never constructed [INFO] [stdout] --> src/snapshot.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct Backup { [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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) 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 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: struct `Backup` is never constructed [INFO] [stdout] --> src/snapshot.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct Backup { [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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.64s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "81d2cdec44fc3ddd914636854abca4f82dd31d5c922a69a76b99585b4988edf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81d2cdec44fc3ddd914636854abca4f82dd31d5c922a69a76b99585b4988edf7", kill_on_drop: false }` [INFO] [stdout] 81d2cdec44fc3ddd914636854abca4f82dd31d5c922a69a76b99585b4988edf7 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] acb9b6190557f4759187fccb6d9da33bc830c2a2a9a6dd3345b0f13928e19a49 [INFO] running `Command { std: "docker" "start" "-a" "acb9b6190557f4759187fccb6d9da33bc830c2a2a9a6dd3345b0f13928e19a49", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ParseError` [INFO] [stderr] --> src/msg/set.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::msg::{Parse, ParseError}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `config` [INFO] [stderr] --> src/client.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{config, msg::Ping, Connection, Frame}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Public` [INFO] [stderr] --> src/node.rs:17:30 [INFO] [stderr] | [INFO] [stderr] 17 | use openssl::pkey::{Private, Public}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Verifier` [INFO] [stderr] --> src/node.rs:22:20 [INFO] [stderr] | [INFO] [stderr] 22 | sign::{Signer, Verifier}, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ADDR2` is never used [INFO] [stderr] --> src/config.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | pub const ADDR2: &str = "127.0.0.1:8081"; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `into_frame` is never used [INFO] [stderr] --> src/msg/get.rs:85:19 [INFO] [stderr] | [INFO] [stderr] 17 | impl Get { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 85 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `into_frame` is never used [INFO] [stderr] --> src/msg/set.rs:89:19 [INFO] [stderr] | [INFO] [stderr] 19 | impl Set { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_id`, `get_addr`, and `get_sig` are never used [INFO] [stderr] --> src/msg/heartbeat.rs:69:19 [INFO] [stderr] | [INFO] [stderr] 19 | impl HeartBeat { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 69 | pub(crate) fn get_id(&self) -> u64 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub(crate) fn get_addr(&self) -> String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub(crate) fn get_sig(&self) -> Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `into_frame` are never used [INFO] [stderr] --> src/msg/restablish.rs:18:19 [INFO] [stderr] | [INFO] [stderr] 17 | impl Restablish { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] 18 | pub(crate) fn new(id: u64, addr: String, sig: &[u8]) -> Restablish { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `to_error` is never used [INFO] [stderr] --> src/frame.rs:162:19 [INFO] [stderr] | [INFO] [stderr] 27 | impl Frame { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 162 | pub(crate) fn to_error(&self) -> crate::Error { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_log_snapshot` is never used [INFO] [stderr] --> src/db.rs:72:25 [INFO] [stderr] | [INFO] [stderr] 25 | impl Db { [INFO] [stderr] | ------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 72 | pub(crate) async fn get_log_snapshot(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Backup` is never constructed [INFO] [stderr] --> src/snapshot.rs:16:19 [INFO] [stderr] | [INFO] [stderr] 16 | pub(crate) struct Backup { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `save_to_file`, and `load_from_file` are never used [INFO] [stderr] --> src/snapshot.rs:26:19 [INFO] [stderr] | [INFO] [stderr] 21 | impl Backup { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 26 | pub(crate) fn new(neighbors: DashMap, log: Vec) -> Backup { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | pub(crate) fn save_to_file(&self) -> std::io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | pub(crate) fn load_from_file() -> std::io::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `entry_overhead` is never used [INFO] [stderr] --> src/wal/segment.rs:703:8 [INFO] [stderr] | [INFO] [stderr] 703 | pub fn entry_overhead(len: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `segment_overhead` is never used [INFO] [stderr] --> src/wal/segment.rs:708:8 [INFO] [stderr] | [INFO] [stderr] 708 | pub fn segment_overhead() -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `current_term` and `voted_for` are never read [INFO] [stderr] --> src/state.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct State { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 10 | current_term: Mutex, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 16 | voted_for: Mutex>, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: crate `EasyDist` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `easy_dist` [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: module `asyncEventQueue` should have a snake case name [INFO] [stderr] --> src/lib.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | pub mod asyncEventQueue; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `async_event_queue` [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> src/msg/get.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | dst.write_frame(&response); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: module `asyncEventQueue` should have a snake case name [INFO] [stderr] --> src/lib.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | pub mod asyncEventQueue; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `async_event_queue` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `EasyDist` (lib) generated 19 warnings (run `cargo fix --lib -p EasyDist` to apply 4 suggestions) [INFO] [stderr] warning: `EasyDist` (lib test) generated 18 warnings (17 duplicates) [INFO] [stderr] warning: unused variable: `message` [INFO] [stderr] --> src/bin/pong.rs:22:28 [INFO] [stderr] | [INFO] [stderr] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `connection` [INFO] [stderr] --> src/bin/pong.rs:22:50 [INFO] [stderr] | [INFO] [stderr] 22 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stderr] [INFO] [stderr] warning: `EasyDist` (bin "pong" test) generated 2 warnings (run `cargo fix --bin "pong" -p EasyDist --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/EasyDist-1f939656965ac7fe) [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] Running unittests src/bin/node.rs (/opt/rustwide/target/debug/deps/node-9857912bfc3270b3) [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] [stdout] [INFO] [stderr] Running unittests src/bin/ping.rs (/opt/rustwide/target/debug/deps/ping-927b3d88f1c4f99c) [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] Running unittests src/bin/pong.rs (/opt/rustwide/target/debug/deps/pong-bb45f55bb879bb7a) [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 EasyDist [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] test src/lib.rs - (line 44) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/lib.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 12 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | Arc::new(Node::new( [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/lib.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Arc::new(Node::new( [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use EasyDist::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | Arc::new(Node::default()) [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/lib.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | Arc::new(Node::default()) [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use EasyDist::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 44) stdout ---- [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 44 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Serialize, Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 44 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:55:3 [INFO] [stdout] | [INFO] [stdout] 55 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 44 + use async_trait::async_trait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `UserMessageHandler` in this scope [INFO] [stdout] --> src/lib.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | impl UserMessageHandler for CustomHandler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 44 + use EasyDist::node::UserMessageHandler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UserDefined` in this scope [INFO] [stdout] --> src/lib.rs:57:37 [INFO] [stdout] | [INFO] [stdout] 57 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use EasyDist::msg::UserDefined; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:57:62 [INFO] [stdout] | [INFO] [stdout] 57 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Node` in this scope [INFO] [stdout] --> src/lib.rs:57:66 [INFO] [stdout] | [INFO] [stdout] 57 | async fn handle(&self, message: UserDefined, connection: Arc) -> EasyDist::Result<()> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use EasyDist::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/lib.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 72 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 44 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | Arc::new(Node::new( [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/lib.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | Arc::new(Node::new( [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use EasyDist::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | Arc::new(Node::default()) [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/lib.rs:86:18 [INFO] [stdout] | [INFO] [stdout] 86 | Arc::new(Node::default()) [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use EasyDist::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | let handle = Arc::new(CustomHandler {}); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 44) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.29s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "acb9b6190557f4759187fccb6d9da33bc830c2a2a9a6dd3345b0f13928e19a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acb9b6190557f4759187fccb6d9da33bc830c2a2a9a6dd3345b0f13928e19a49", kill_on_drop: false }` [INFO] [stdout] acb9b6190557f4759187fccb6d9da33bc830c2a2a9a6dd3345b0f13928e19a49