[INFO] cloning repository https://github.com/solmidnight/editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/solmidnight/editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsolmidnight%2Feditor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsolmidnight%2Feditor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a9a9b52d424bbd6a0f5d573e6b32188627fc356 [INFO] checking solmidnight/editor against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsolmidnight%2Feditor" "/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/solmidnight/editor on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/solmidnight/editor [INFO] finished tweaking git repo https://github.com/solmidnight/editor [INFO] tweaked toml for git repo https://github.com/solmidnight/editor written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/solmidnight/editor 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_millis v0.1.1 [INFO] [stderr] Downloaded rustls-platform-verifier v0.3.2 [INFO] [stderr] Downloaded left-right v0.11.5 [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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f3beed15d8391a2e1306c0246818cba3ec2346aa3291aa3f2628c492b2c59a2b [INFO] running `Command { std: "docker" "start" "-a" "f3beed15d8391a2e1306c0246818cba3ec2346aa3291aa3f2628c492b2c59a2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3beed15d8391a2e1306c0246818cba3ec2346aa3291aa3f2628c492b2c59a2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3beed15d8391a2e1306c0246818cba3ec2346aa3291aa3f2628c492b2c59a2b", kill_on_drop: false }` [INFO] [stdout] f3beed15d8391a2e1306c0246818cba3ec2346aa3291aa3f2628c492b2c59a2b [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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7c69b5f0fe1e15e92853ef9ecee07af5c6f9ee9aeeff4364a9484974d252f1b [INFO] running `Command { std: "docker" "start" "-a" "c7c69b5f0fe1e15e92853ef9ecee07af5c6f9ee9aeeff4364a9484974d252f1b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling cc v1.0.101 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling rustls v0.23.10 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rustls-native-certs v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tinyvec v1.6.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking yasna v0.5.2 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking sha1_smol v1.0.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking left-right v0.11.5 [INFO] [stderr] Checking bimap v0.6.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking sysinfo v0.30.12 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking rustls-webpki v0.102.4 [INFO] [stderr] Checking rcgen v0.13.1 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking quinn-udp v0.5.2 [INFO] [stderr] Checking rustls-platform-verifier v0.3.2 [INFO] [stderr] Checking quinn-proto v0.11.3 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serde_millis v0.1.1 [INFO] [stderr] Checking uuid v1.9.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking ordered-float v4.2.0 [INFO] [stderr] Checking quinn v0.11.2 [INFO] [stderr] Checking span v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error`, `info`, and `warn` [INFO] [stdout] --> src/net/endpoint.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | use tracing::{error, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `info`, and `warn` [INFO] [stdout] --> src/net/endpoint.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | use tracing::{error, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cluster` [INFO] [stdout] --> src/net/raft.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{Cluster, Id}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Not`, and `iter` [INFO] [stdout] --> src/net/raft.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 12 | iter, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | ops::{Add, Not}, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/net/raft.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cluster` [INFO] [stdout] --> src/net/raft.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{Cluster, Id}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Not`, and `iter` [INFO] [stdout] --> src/net/raft.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 12 | iter, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | ops::{Add, Not}, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/net/raft.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, `Ordering`, `any::TypeId`, and `iter` [INFO] [stdout] --> src/net/mod.rs:4:2 [INFO] [stdout] | [INFO] [stdout] 4 | any::TypeId, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | collections::VecDeque, [INFO] [stdout] 6 | iter, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | atomic::{AtomicBool, Ordering}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 11 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ActivePeer` [INFO] [stdout] --> src/net/mod.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | use endpoint::{ActivePeer, Endpoint}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReadHandleFactory` [INFO] [stdout] --> src/net/mod.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | use left_right::{Absorb, ReadHandle, ReadHandleFactory, WriteHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `info` [INFO] [stdout] --> src/net/mod.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use tracing::{debug, error, info, trace}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, `Ordering`, `any::TypeId`, and `iter` [INFO] [stdout] --> src/net/mod.rs:4:2 [INFO] [stdout] | [INFO] [stdout] 4 | any::TypeId, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | collections::VecDeque, [INFO] [stdout] 6 | iter, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | atomic::{AtomicBool, Ordering}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 11 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ActivePeer` [INFO] [stdout] --> src/net/mod.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | use endpoint::{ActivePeer, Endpoint}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReadHandleFactory` [INFO] [stdout] --> src/net/mod.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | use left_right::{Absorb, ReadHandle, ReadHandleFactory, WriteHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `info` [INFO] [stdout] --> src/net/mod.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use tracing::{debug, error, info, trace}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/net/endpoint.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | _ => panic!("what?"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/net/endpoint.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 280 | Peer::Partitioned(_) => {} [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 281 | / Peer::Connected(ConnectedPeer { [INFO] [stdout] 282 | | conn: other_conn, [INFO] [stdout] 283 | | handles, [INFO] [stdout] 284 | | .. [INFO] [stdout] 285 | | }) => { [INFO] [stdout] | |______________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 290 | / Peer::Active(ActivePeer { [INFO] [stdout] 291 | | id, [INFO] [stdout] 292 | | conn: other_conn, [INFO] [stdout] 293 | | .. [INFO] [stdout] 294 | | }) => { [INFO] [stdout] | |______________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 299 | _ => panic!("what?"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/net/endpoint.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | id, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_conn` [INFO] [stdout] --> src/net/endpoint.rs:292:11 [INFO] [stdout] | [INFO] [stdout] 292 | conn: other_conn, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/net/endpoint.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | let Id(uuid) = self.id; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/net/endpoint.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | _ => panic!("what?"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/net/endpoint.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 280 | Peer::Partitioned(_) => {} [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 281 | / Peer::Connected(ConnectedPeer { [INFO] [stdout] 282 | | conn: other_conn, [INFO] [stdout] 283 | | handles, [INFO] [stdout] 284 | | .. [INFO] [stdout] 285 | | }) => { [INFO] [stdout] | |______________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 290 | / Peer::Active(ActivePeer { [INFO] [stdout] 291 | | id, [INFO] [stdout] 292 | | conn: other_conn, [INFO] [stdout] 293 | | .. [INFO] [stdout] 294 | | }) => { [INFO] [stdout] | |______________- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 299 | _ => panic!("what?"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/net/endpoint.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | id, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_conn` [INFO] [stdout] --> src/net/endpoint.rs:292:11 [INFO] [stdout] | [INFO] [stdout] 292 | conn: other_conn, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/net/endpoint.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | let Id(uuid) = self.id; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attempt_backoff` [INFO] [stdout] --> src/net/endpoint.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | let attempt_backoff = *attempt_backoff; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attempt_backoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attempt_backoff` [INFO] [stdout] --> src/net/endpoint.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | let attempt_backoff = *attempt_backoff; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attempt_backoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/net/endpoint.rs:164:16 [INFO] [stdout] | [INFO] [stdout] 164 | stream, id, conn, .. [INFO] [stdout] | ^^^^ help: try ignoring the field: `conn: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/net/endpoint.rs:169:7 [INFO] [stdout] | [INFO] [stdout] 169 | let id = *id; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/net/endpoint.rs:164:16 [INFO] [stdout] | [INFO] [stdout] 164 | stream, id, conn, .. [INFO] [stdout] | ^^^^ help: try ignoring the field: `conn: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/net/endpoint.rs:169:7 [INFO] [stdout] | [INFO] [stdout] 169 | let id = *id; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection_handle` [INFO] [stdout] --> src/net/mod.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | let connection_handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection_handle` [INFO] [stdout] --> src/net/mod.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | let connection_handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/mod.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | let (mut res_tx, res_rx) = mpsc::channel(8192); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/mod.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | let (mut res_tx, res_rx) = mpsc::channel(8192); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Request` is never used [INFO] [stdout] --> src/net/mod.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | enum Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Response` is never used [INFO] [stdout] --> src/net/mod.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cluster` is never constructed [INFO] [stdout] --> src/net/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Cluster { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelInfo` is never constructed [INFO] [stdout] --> src/net/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ChannelInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `connect` and `tick` are never used [INFO] [stdout] --> src/net/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | impl Cluster { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 71 | pub fn connect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn tick(node: &mut Node, endpoint: &mut Endpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Datatype` is never used [INFO] [stdout] --> src/net/mod.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | pub trait Datatype { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dataset` is never constructed [INFO] [stdout] --> src/net/mod.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 228 | pub struct Dataset { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create`, `status`, `send`, and `recv` are never used [INFO] [stdout] --> src/net/mod.rs:237:15 [INFO] [stdout] | [INFO] [stdout] 236 | impl Dataset { [INFO] [stdout] | ----------------------------------------------------------- associated items in this implementation [INFO] [stdout] 237 | pub async fn create(cluster: &mut Cluster, identifier: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn status(&self) -> Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub async fn send(&mut self, data: &T) -> Result<(), ()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub async fn recv(&mut self) -> Result, ()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Candidate` and `Leader` are never constructed [INFO] [stdout] --> src/net/mod.rs:283:2 [INFO] [stdout] | [INFO] [stdout] 280 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 283 | Candidate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 284 | Leader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `State`, `Term`, `Commit`, `Throughput`, `Ping`, and `Jitter` are never constructed [INFO] [stdout] --> src/net/mod.rs:299:2 [INFO] [stdout] | [INFO] [stdout] 298 | pub enum StatusOp { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 299 | State(State), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 300 | Term(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 301 | Commit(usize), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 302 | Throughput(f32), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 303 | Ping(f32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 304 | Jitter(f32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusOp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_BACKOFF` is never used [INFO] [stdout] --> src/net/endpoint.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const MAX_BACKOFF: u32 = 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEADBEEF` is never used [INFO] [stdout] --> src/net/endpoint.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const DEADBEEF: u32 = 0xDEADBEEF; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartitionedPeer` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PartitionedPeer { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectedPeer` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ConnectedPeer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActivePeer` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ActivePeer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Peer` is never used [INFO] [stdout] --> src/net/endpoint.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum Peer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stream` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Stream { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/net/endpoint.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 63 | impl Stream { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 64 | async fn close(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `next_attempt`, and `attempt` are never used [INFO] [stdout] --> src/net/endpoint.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | impl Peer { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 71 | fn init() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn next_attempt(&self) -> Instant { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn attempt(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ConnectJoinHandle` is never used [INFO] [stdout] --> src/net/endpoint.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | pub type ConnectJoinHandle = JoinHandle>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Endpoint` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Endpoint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/net/endpoint.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | impl Endpoint { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 120 | pub fn connect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn peer_ids(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub async fn send(&mut self, id: Id, data: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub async fn recv(&mut self) -> Option<(Id, Vec)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub async fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | async fn poll(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | async fn accept(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | async fn open(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | async fn establish(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn active_peers(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | fn start_accept(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `establish_handle_factories` is never used [INFO] [stdout] --> src/net/endpoint.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn establish_handle_factories( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_duration` is never used [INFO] [stdout] --> src/net/endpoint.rs:485:4 [INFO] [stdout] | [INFO] [stdout] 485 | fn random_duration(min: Duration, max: Duration) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EstablishPayload` is never used [INFO] [stdout] --> src/net/endpoint.rs:492:6 [INFO] [stdout] | [INFO] [stdout] 492 | type EstablishPayload = ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EstablishError` is never used [INFO] [stdout] --> src/net/endpoint.rs:499:6 [INFO] [stdout] | [INFO] [stdout] 499 | type EstablishError = Result<(), ()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EstablishHandle` is never used [INFO] [stdout] --> src/net/endpoint.rs:500:6 [INFO] [stdout] | [INFO] [stdout] 500 | type EstablishHandle = JoinHandle>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_write` is never used [INFO] [stdout] --> src/net/endpoint.rs:502:10 [INFO] [stdout] | [INFO] [stdout] 502 | async fn send_write(mut tx: SendStream, mut tx_rx: Receiver>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send` is never used [INFO] [stdout] --> src/net/endpoint.rs:531:4 [INFO] [stdout] | [INFO] [stdout] 531 | fn send(tx: SendStream) -> (JoinHandle<()>, Sender>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `establish` is never used [INFO] [stdout] --> src/net/endpoint.rs:541:10 [INFO] [stdout] | [INFO] [stdout] 541 | async fn establish( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `receive_id` is never used [INFO] [stdout] --> src/net/endpoint.rs:562:10 [INFO] [stdout] | [INFO] [stdout] 562 | async fn receive_id(rx: &mut Receiver>) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recv` is never used [INFO] [stdout] --> src/net/endpoint.rs:580:4 [INFO] [stdout] | [INFO] [stdout] 580 | fn recv(rx: RecvStream) -> (JoinHandle<()>, Receiver>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_exact` is never used [INFO] [stdout] --> src/net/endpoint.rs:590:10 [INFO] [stdout] | [INFO] [stdout] 590 | async fn read_exact( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recv_read` is never used [INFO] [stdout] --> src/net/endpoint.rs:612:10 [INFO] [stdout] | [INFO] [stdout] 612 | async fn recv_read(mut rx: RecvStream, rx_tx: mpsc::Sender>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_exact_or_yield` is never used [INFO] [stdout] --> src/net/endpoint.rs:665:10 [INFO] [stdout] | [INFO] [stdout] 665 | async fn read_exact_or_yield( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `endpoint` is never used [INFO] [stdout] --> src/net/endpoint.rs:684:4 [INFO] [stdout] | [INFO] [stdout] 684 | fn endpoint(listen: SocketAddr) -> quinn::Endpoint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transport_config` is never used [INFO] [stdout] --> src/net/endpoint.rs:718:4 [INFO] [stdout] | [INFO] [stdout] 718 | fn transport_config() -> TransportConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkipServerVerification` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:727:8 [INFO] [stdout] | [INFO] [stdout] 727 | struct SkipServerVerification(Arc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/endpoint.rs:730:5 [INFO] [stdout] | [INFO] [stdout] 729 | impl SkipServerVerification { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 730 | fn new() -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transmissions` is never read [INFO] [stdout] --> src/net/raft.rs:138:2 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct SelfNetStats { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 138 | transmissions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelfNetStats` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `net`, `compute`, and `cluster` are never read [INFO] [stdout] --> src/net/raft.rs:156:6 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct SelfStats { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 156 | pub net: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] 157 | pub compute: ComputeStats, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 158 | pub cluster: ClusterStats, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelfStats` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_index` and `match_index` are never read [INFO] [stdout] --> src/net/raft.rs:181:6 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Status { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 181 | pub next_index: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 182 | pub match_index: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/net/raft.rs:187:2 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct FollowerCandidate { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 187 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | last_log_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 189 | last_log_term: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FollowerCandidate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Active` and `Election` are never constructed [INFO] [stdout] --> src/net/raft.rs:194:2 [INFO] [stdout] | [INFO] [stdout] 193 | pub enum Follower { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 194 | Active, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 195 | Election { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Follower` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Leader`, `Candidate`, and `Follower` are never constructed [INFO] [stdout] --> src/net/raft.rs:202:2 [INFO] [stdout] | [INFO] [stdout] 201 | pub enum Role { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 202 | Leader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | Follower(Follower), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/net/raft.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub struct Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/net/raft.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/raft.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 265 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 266 | pub fn new(id: Uuid, timeout: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timings` is never constructed [INFO] [stdout] --> src/net/raft.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | pub struct Timings { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/net/raft.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 291 | impl Timings { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 292 | pub fn new(timeout: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn recall(&mut self, start: Instant) -> Instant { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | fn act(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | fn reset_stats(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn reset_back_off(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | fn new_delay(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | fn gen_delay(range: Duration, backoff: usize) -> Duration { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | fn heartbeat(&self) -> Instant { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | fn timeout(&self, total_leaders: usize) -> Instant { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn vote(&self) -> Instant { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | fn stat(&self) -> Instant { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/net/raft.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 357 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 358 | pub fn channel(&mut self, channel: ChannelId) -> &mut Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | pub fn put(channel: &mut Channel, data: Vec) -> Result, ()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 382 | pub fn ready(channel: &mut Channel) -> &mut Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn process(&mut self, datagram: Datagram) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 626 | pub fn step(&mut self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 790 | fn append_follower(action: Action, channel: &mut Channel, datagram_term: usize) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 837 | fn peers(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 845 | fn elect_me(self_id: Id, peers: Vec, channel: &mut Channel) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 864 | fn elect(stats: &HashMap, channel: &mut Channel) -> Result, ()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Request` is never used [INFO] [stdout] --> src/net/mod.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | enum Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Response` is never used [INFO] [stdout] --> src/net/mod.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cluster` is never constructed [INFO] [stdout] --> src/net/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Cluster { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelInfo` is never constructed [INFO] [stdout] --> src/net/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ChannelInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `connect` and `tick` are never used [INFO] [stdout] --> src/net/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | impl Cluster { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 71 | pub fn connect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn tick(node: &mut Node, endpoint: &mut Endpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Datatype` is never used [INFO] [stdout] --> src/net/mod.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | pub trait Datatype { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dataset` is never constructed [INFO] [stdout] --> src/net/mod.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 228 | pub struct Dataset { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create`, `status`, `send`, and `recv` are never used [INFO] [stdout] --> src/net/mod.rs:237:15 [INFO] [stdout] | [INFO] [stdout] 236 | impl Dataset { [INFO] [stdout] | ----------------------------------------------------------- associated items in this implementation [INFO] [stdout] 237 | pub async fn create(cluster: &mut Cluster, identifier: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn status(&self) -> Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub async fn send(&mut self, data: &T) -> Result<(), ()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub async fn recv(&mut self) -> Result, ()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Candidate` and `Leader` are never constructed [INFO] [stdout] --> src/net/mod.rs:283:2 [INFO] [stdout] | [INFO] [stdout] 280 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 283 | Candidate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 284 | Leader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `State`, `Term`, `Commit`, `Throughput`, `Ping`, and `Jitter` are never constructed [INFO] [stdout] --> src/net/mod.rs:299:2 [INFO] [stdout] | [INFO] [stdout] 298 | pub enum StatusOp { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 299 | State(State), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 300 | Term(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 301 | Commit(usize), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 302 | Throughput(f32), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 303 | Ping(f32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 304 | Jitter(f32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusOp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_BACKOFF` is never used [INFO] [stdout] --> src/net/endpoint.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const MAX_BACKOFF: u32 = 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEADBEEF` is never used [INFO] [stdout] --> src/net/endpoint.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const DEADBEEF: u32 = 0xDEADBEEF; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartitionedPeer` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PartitionedPeer { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectedPeer` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ConnectedPeer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActivePeer` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ActivePeer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Peer` is never used [INFO] [stdout] --> src/net/endpoint.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum Peer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stream` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Stream { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/net/endpoint.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 63 | impl Stream { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 64 | async fn close(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `next_attempt`, and `attempt` are never used [INFO] [stdout] --> src/net/endpoint.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | impl Peer { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 71 | fn init() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn next_attempt(&self) -> Instant { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn attempt(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ConnectJoinHandle` is never used [INFO] [stdout] --> src/net/endpoint.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | pub type ConnectJoinHandle = JoinHandle>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Endpoint` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Endpoint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/net/endpoint.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | impl Endpoint { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 120 | pub fn connect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn peer_ids(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub async fn send(&mut self, id: Id, data: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub async fn recv(&mut self) -> Option<(Id, Vec)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub async fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | async fn poll(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | async fn accept(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | async fn open(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | async fn establish(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn active_peers(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | fn start_accept(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `establish_handle_factories` is never used [INFO] [stdout] --> src/net/endpoint.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn establish_handle_factories( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_duration` is never used [INFO] [stdout] --> src/net/endpoint.rs:485:4 [INFO] [stdout] | [INFO] [stdout] 485 | fn random_duration(min: Duration, max: Duration) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EstablishPayload` is never used [INFO] [stdout] --> src/net/endpoint.rs:492:6 [INFO] [stdout] | [INFO] [stdout] 492 | type EstablishPayload = ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EstablishError` is never used [INFO] [stdout] --> src/net/endpoint.rs:499:6 [INFO] [stdout] | [INFO] [stdout] 499 | type EstablishError = Result<(), ()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EstablishHandle` is never used [INFO] [stdout] --> src/net/endpoint.rs:500:6 [INFO] [stdout] | [INFO] [stdout] 500 | type EstablishHandle = JoinHandle>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_write` is never used [INFO] [stdout] --> src/net/endpoint.rs:502:10 [INFO] [stdout] | [INFO] [stdout] 502 | async fn send_write(mut tx: SendStream, mut tx_rx: Receiver>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send` is never used [INFO] [stdout] --> src/net/endpoint.rs:531:4 [INFO] [stdout] | [INFO] [stdout] 531 | fn send(tx: SendStream) -> (JoinHandle<()>, Sender>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `establish` is never used [INFO] [stdout] --> src/net/endpoint.rs:541:10 [INFO] [stdout] | [INFO] [stdout] 541 | async fn establish( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `receive_id` is never used [INFO] [stdout] --> src/net/endpoint.rs:562:10 [INFO] [stdout] | [INFO] [stdout] 562 | async fn receive_id(rx: &mut Receiver>) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recv` is never used [INFO] [stdout] --> src/net/endpoint.rs:580:4 [INFO] [stdout] | [INFO] [stdout] 580 | fn recv(rx: RecvStream) -> (JoinHandle<()>, Receiver>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_exact` is never used [INFO] [stdout] --> src/net/endpoint.rs:590:10 [INFO] [stdout] | [INFO] [stdout] 590 | async fn read_exact( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recv_read` is never used [INFO] [stdout] --> src/net/endpoint.rs:612:10 [INFO] [stdout] | [INFO] [stdout] 612 | async fn recv_read(mut rx: RecvStream, rx_tx: mpsc::Sender>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_exact_or_yield` is never used [INFO] [stdout] --> src/net/endpoint.rs:665:10 [INFO] [stdout] | [INFO] [stdout] 665 | async fn read_exact_or_yield( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `endpoint` is never used [INFO] [stdout] --> src/net/endpoint.rs:684:4 [INFO] [stdout] | [INFO] [stdout] 684 | fn endpoint(listen: SocketAddr) -> quinn::Endpoint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transport_config` is never used [INFO] [stdout] --> src/net/endpoint.rs:718:4 [INFO] [stdout] | [INFO] [stdout] 718 | fn transport_config() -> TransportConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkipServerVerification` is never constructed [INFO] [stdout] --> src/net/endpoint.rs:727:8 [INFO] [stdout] | [INFO] [stdout] 727 | struct SkipServerVerification(Arc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/endpoint.rs:730:5 [INFO] [stdout] | [INFO] [stdout] 729 | impl SkipServerVerification { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 730 | fn new() -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transmissions` is never read [INFO] [stdout] --> src/net/raft.rs:138:2 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct SelfNetStats { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 138 | transmissions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelfNetStats` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `net`, `compute`, and `cluster` are never read [INFO] [stdout] --> src/net/raft.rs:156:6 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct SelfStats { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 156 | pub net: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] 157 | pub compute: ComputeStats, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 158 | pub cluster: ClusterStats, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelfStats` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_index` and `match_index` are never read [INFO] [stdout] --> src/net/raft.rs:181:6 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Status { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 181 | pub next_index: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 182 | pub match_index: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/net/raft.rs:187:2 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct FollowerCandidate { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 187 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | last_log_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 189 | last_log_term: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FollowerCandidate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Active` and `Election` are never constructed [INFO] [stdout] --> src/net/raft.rs:194:2 [INFO] [stdout] | [INFO] [stdout] 193 | pub enum Follower { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 194 | Active, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 195 | Election { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Follower` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Leader`, `Candidate`, and `Follower` are never constructed [INFO] [stdout] --> src/net/raft.rs:202:2 [INFO] [stdout] | [INFO] [stdout] 201 | pub enum Role { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 202 | Leader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | Follower(Follower), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/net/raft.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub struct Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/net/raft.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/raft.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 265 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 266 | pub fn new(id: Uuid, timeout: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timings` is never constructed [INFO] [stdout] --> src/net/raft.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | pub struct Timings { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/net/raft.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 291 | impl Timings { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 292 | pub fn new(timeout: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn recall(&mut self, start: Instant) -> Instant { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | fn act(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | fn reset_stats(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn reset_back_off(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | fn new_delay(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | fn gen_delay(range: Duration, backoff: usize) -> Duration { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | fn heartbeat(&self) -> Instant { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | fn timeout(&self, total_leaders: usize) -> Instant { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn vote(&self) -> Instant { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | fn stat(&self) -> Instant { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/net/raft.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 357 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 358 | pub fn channel(&mut self, channel: ChannelId) -> &mut Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | pub fn put(channel: &mut Channel, data: Vec) -> Result, ()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 382 | pub fn ready(channel: &mut Channel) -> &mut Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn process(&mut self, datagram: Datagram) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 626 | pub fn step(&mut self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 790 | fn append_follower(action: Action, channel: &mut Channel, datagram_term: usize) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 837 | fn peers(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 845 | fn elect_me(self_id: Id, peers: Vec, channel: &mut Channel) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 864 | fn elect(stats: &HashMap, channel: &mut Channel) -> Result, ()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.30s [INFO] running `Command { std: "docker" "inspect" "c7c69b5f0fe1e15e92853ef9ecee07af5c6f9ee9aeeff4364a9484974d252f1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7c69b5f0fe1e15e92853ef9ecee07af5c6f9ee9aeeff4364a9484974d252f1b", kill_on_drop: false }` [INFO] [stdout] c7c69b5f0fe1e15e92853ef9ecee07af5c6f9ee9aeeff4364a9484974d252f1b