[INFO] cloning repository https://github.com/ukaushik-98/toy-raft
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ukaushik-98/toy-raft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e46ad18cc2cf42ff542b7201128ee82cae9a20aa
[INFO] checking ukaushik-98/toy-raft against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ukaushik-98/toy-raft
[INFO] finished tweaking git repo https://github.com/ukaushik-98/toy-raft
[INFO] tweaked toml for git repo https://github.com/ukaushik-98/toy-raft written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ukaushik-98/toy-raft on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ukaushik-98/toy-raft 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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 01a1f28ede266105a8f6e951c3cbd07cf29de52b51101d7fb9d05e52f3ef881c
[INFO] running `Command { std: "docker" "start" "-a" "01a1f28ede266105a8f6e951c3cbd07cf29de52b51101d7fb9d05e52f3ef881c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "01a1f28ede266105a8f6e951c3cbd07cf29de52b51101d7fb9d05e52f3ef881c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "01a1f28ede266105a8f6e951c3cbd07cf29de52b51101d7fb9d05e52f3ef881c", kill_on_drop: false }`
[INFO] [stdout] 01a1f28ede266105a8f6e951c3cbd07cf29de52b51101d7fb9d05e52f3ef881c
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6c83a338d31101a42fddd57c3e3f3213f79c96c8cca37e3a5e577c924c552b23
[INFO] running `Command { std: "docker" "start" "-a" "6c83a338d31101a42fddd57c3e3f3213f79c96c8cca37e3a5e577c924c552b23", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking bytes v1.9.0
[INFO] [stderr]     Checking pin-project-lite v0.2.15
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling syn v2.0.94
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]     Checking tokio v1.42.0
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking city-raft v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: type `HeartBeatRPC` is more private than the item `RPC::HeartBeatRPC::0`
[INFO] [stdout]   --> src/rpc/mod.rs:5:18
[INFO] [stdout]    |
[INFO] [stdout]  5 |     HeartBeatRPC(HeartBeatRPC),
[INFO] [stdout]    |                  ^^^^^^^^^^^^ field `RPC::HeartBeatRPC::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `HeartBeatRPC` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:16:1
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct HeartBeatRPC {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `HeartBeatRPCResponse` is more private than the item `RPC::HeartBeatRPCResponse::0`
[INFO] [stdout]   --> src/rpc/mod.rs:6:26
[INFO] [stdout]    |
[INFO] [stdout]  6 |     HeartBeatRPCResponse(HeartBeatRPCResponse),
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^^ field `RPC::HeartBeatRPCResponse::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `HeartBeatRPCResponse` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | struct HeartBeatRPCResponse {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `AppendRPCResponse` is more private than the item `RPC::AppendRPCResponse::0`
[INFO] [stdout]   --> src/rpc/mod.rs:8:23
[INFO] [stdout]    |
[INFO] [stdout]  8 |     AppendRPCResponse(AppendRPCResponse),
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^ field `RPC::AppendRPCResponse::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `AppendRPCResponse` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:78:1
[INFO] [stdout]    |
[INFO] [stdout] 78 | struct AppendRPCResponse {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestVoteRPC` is more private than the item `RPC::RequestVote::0`
[INFO] [stdout]   --> src/rpc/mod.rs:9:17
[INFO] [stdout]    |
[INFO] [stdout]  9 |     RequestVote(RequestVoteRPC),
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^ field `RPC::RequestVote::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `RequestVoteRPC` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:34:1
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct RequestVoteRPC {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestVoteRPCResponse` is more private than the item `RPC::RequestVoteRPCResponse::0`
[INFO] [stdout]   --> src/rpc/mod.rs:10:28
[INFO] [stdout]    |
[INFO] [stdout] 10 |     RequestVoteRPCResponse(RequestVoteRPCResponse),
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^ field `RPC::RequestVoteRPCResponse::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `RequestVoteRPCResponse` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:48:1
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct RequestVoteRPCResponse {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct HeartBeatRPC {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 17 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 18 |     candidate_id: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 19 |     last_log_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 20 |     last_log_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HeartBeatRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term` and `success` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:27:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | struct HeartBeatRPCResponse {
[INFO] [stdout]    |        -------------------- fields in this struct
[INFO] [stdout] 27 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 28 |     success: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HeartBeatRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct RequestVoteRPC {
[INFO] [stdout]    |        -------------- fields in this struct
[INFO] [stdout] 35 |     /// candidate's term
[INFO] [stdout] 36 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 37 |     /// candidate requesting vote
[INFO] [stdout] 38 |     candidate_id: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 39 |     /// index of candidate's last log entry
[INFO] [stdout] 40 |     last_log_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 41 |     /// term of cnadidate's last log entry
[INFO] [stdout] 42 |     last_log_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term` and `vote_granted` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct RequestVoteRPCResponse {
[INFO] [stdout]    |        ---------------------- fields in this struct
[INFO] [stdout] 49 |     /// currentTerm, for candidate to update itself
[INFO] [stdout] 50 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 51 |     /// true means candidate received vote
[INFO] [stdout] 52 |     vote_granted: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term`, `leader_id`, `prev_log_index`, `prev_log_term`, `entries`, and `leader_commit` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct AppendRPC {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 59 |     /// leader's term
[INFO] [stdout] 60 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 61 |     /// so follower can redirect clients
[INFO] [stdout] 62 |     leader_id: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     prev_log_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 66 |     /// term of prevLogIndex entry
[INFO] [stdout] 67 |     prev_log_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     entries: Vec<LogEntries>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 71 |     /// leader's commitIndex
[INFO] [stdout] 72 |     leader_commit: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term` and `success` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:80:5
[INFO] [stdout]    |
[INFO] [stdout] 78 | struct AppendRPCResponse {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 79 |     /// currentTerm, for leader to update itsel
[INFO] [stdout] 80 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     success: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `persistent_server_state` and `volatile_server_state` are never read
[INFO] [stdout]  --> src/server/node.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct FollowerServer {
[INFO] [stdout]   |            -------------- fields in this struct
[INFO] [stdout] 8 |     persistent_server_state: PersistentServerState,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 9 |     volatile_server_state: VolatileServerState,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `FollowerServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `vote` is never used
[INFO] [stdout]   --> src/server/node.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl FollowerServer {
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn vote() {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `server_state` and `leader_server_state` are never read
[INFO] [stdout]   --> src/server/node.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub struct LeaderServer {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 47 |     server_state: FollowerServer,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 48 |     leader_server_state: VolatileLeaderServerState,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LeaderServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `into_follower` is never used
[INFO] [stdout]   --> src/server/node.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | impl LeaderServer {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] 52 |     fn into_follower(self) -> FollowerServer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `current_term`, `voted_for`, and `log` are never read
[INFO] [stdout]   --> src/server/state.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct PersistentServerState {
[INFO] [stdout]    |            --------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout]  9 |     current_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 |     voted_for: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     log: Vec<RPC>,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PersistentServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `commit_index` and `last_applied` are never read
[INFO] [stdout]   --> src/server/state.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct VolatileServerState {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     commit_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     last_applied: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `VolatileServerState` has a derived impl for the trait `Debug`, 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/server/state.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct VolatileLeaderServerState {
[INFO] [stdout]    |            ------------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 58 |     next_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     match_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `VolatileLeaderServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `HeartBeatRPC` is more private than the item `RPC::HeartBeatRPC::0`
[INFO] [stdout]   --> src/rpc/mod.rs:5:18
[INFO] [stdout]    |
[INFO] [stdout]  5 |     HeartBeatRPC(HeartBeatRPC),
[INFO] [stdout]    |                  ^^^^^^^^^^^^ field `RPC::HeartBeatRPC::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `HeartBeatRPC` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:16:1
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct HeartBeatRPC {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `HeartBeatRPCResponse` is more private than the item `RPC::HeartBeatRPCResponse::0`
[INFO] [stdout]   --> src/rpc/mod.rs:6:26
[INFO] [stdout]    |
[INFO] [stdout]  6 |     HeartBeatRPCResponse(HeartBeatRPCResponse),
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^^ field `RPC::HeartBeatRPCResponse::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `HeartBeatRPCResponse` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | struct HeartBeatRPCResponse {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `AppendRPCResponse` is more private than the item `RPC::AppendRPCResponse::0`
[INFO] [stdout]   --> src/rpc/mod.rs:8:23
[INFO] [stdout]    |
[INFO] [stdout]  8 |     AppendRPCResponse(AppendRPCResponse),
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^ field `RPC::AppendRPCResponse::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `AppendRPCResponse` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:78:1
[INFO] [stdout]    |
[INFO] [stdout] 78 | struct AppendRPCResponse {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestVoteRPC` is more private than the item `RPC::RequestVote::0`
[INFO] [stdout]   --> src/rpc/mod.rs:9:17
[INFO] [stdout]    |
[INFO] [stdout]  9 |     RequestVote(RequestVoteRPC),
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^ field `RPC::RequestVote::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `RequestVoteRPC` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:34:1
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct RequestVoteRPC {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `RequestVoteRPCResponse` is more private than the item `RPC::RequestVoteRPCResponse::0`
[INFO] [stdout]   --> src/rpc/mod.rs:10:28
[INFO] [stdout]    |
[INFO] [stdout] 10 |     RequestVoteRPCResponse(RequestVoteRPCResponse),
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^ field `RPC::RequestVoteRPCResponse::0` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `RequestVoteRPCResponse` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/rpc/mod.rs:48:1
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct RequestVoteRPCResponse {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct HeartBeatRPC {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 17 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 18 |     candidate_id: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 19 |     last_log_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 20 |     last_log_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HeartBeatRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term` and `success` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:27:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | struct HeartBeatRPCResponse {
[INFO] [stdout]    |        -------------------- fields in this struct
[INFO] [stdout] 27 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 28 |     success: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HeartBeatRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct RequestVoteRPC {
[INFO] [stdout]    |        -------------- fields in this struct
[INFO] [stdout] 35 |     /// candidate's term
[INFO] [stdout] 36 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 37 |     /// candidate requesting vote
[INFO] [stdout] 38 |     candidate_id: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 39 |     /// index of candidate's last log entry
[INFO] [stdout] 40 |     last_log_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 41 |     /// term of cnadidate's last log entry
[INFO] [stdout] 42 |     last_log_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term` and `vote_granted` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct RequestVoteRPCResponse {
[INFO] [stdout]    |        ---------------------- fields in this struct
[INFO] [stdout] 49 |     /// currentTerm, for candidate to update itself
[INFO] [stdout] 50 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 51 |     /// true means candidate received vote
[INFO] [stdout] 52 |     vote_granted: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term`, `leader_id`, `prev_log_index`, `prev_log_term`, `entries`, and `leader_commit` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct AppendRPC {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 59 |     /// leader's term
[INFO] [stdout] 60 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 61 |     /// so follower can redirect clients
[INFO] [stdout] 62 |     leader_id: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     prev_log_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 66 |     /// term of prevLogIndex entry
[INFO] [stdout] 67 |     prev_log_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     entries: Vec<LogEntries>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 71 |     /// leader's commitIndex
[INFO] [stdout] 72 |     leader_commit: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `term` and `success` are never read
[INFO] [stdout]   --> src/rpc/mod.rs:80:5
[INFO] [stdout]    |
[INFO] [stdout] 78 | struct AppendRPCResponse {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 79 |     /// currentTerm, for leader to update itsel
[INFO] [stdout] 80 |     term: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     success: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `persistent_server_state` and `volatile_server_state` are never read
[INFO] [stdout]  --> src/server/node.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct FollowerServer {
[INFO] [stdout]   |            -------------- fields in this struct
[INFO] [stdout] 8 |     persistent_server_state: PersistentServerState,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 9 |     volatile_server_state: VolatileServerState,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `FollowerServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `vote` is never used
[INFO] [stdout]   --> src/server/node.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl FollowerServer {
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn vote() {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `server_state` and `leader_server_state` are never read
[INFO] [stdout]   --> src/server/node.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub struct LeaderServer {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 47 |     server_state: FollowerServer,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 48 |     leader_server_state: VolatileLeaderServerState,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LeaderServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `into_follower` is never used
[INFO] [stdout]   --> src/server/node.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | impl LeaderServer {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] 52 |     fn into_follower(self) -> FollowerServer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `current_term`, `voted_for`, and `log` are never read
[INFO] [stdout]   --> src/server/state.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct PersistentServerState {
[INFO] [stdout]    |            --------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout]  9 |     current_term: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 |     voted_for: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     log: Vec<RPC>,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PersistentServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `commit_index` and `last_applied` are never read
[INFO] [stdout]   --> src/server/state.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct VolatileServerState {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     commit_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     last_applied: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `VolatileServerState` has a derived impl for the trait `Debug`, 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/server/state.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct VolatileLeaderServerState {
[INFO] [stdout]    |            ------------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 58 |     next_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     match_index: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `VolatileLeaderServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.41s
[INFO] running `Command { std: "docker" "inspect" "6c83a338d31101a42fddd57c3e3f3213f79c96c8cca37e3a5e577c924c552b23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c83a338d31101a42fddd57c3e3f3213f79c96c8cca37e3a5e577c924c552b23", kill_on_drop: false }`
[INFO] [stdout] 6c83a338d31101a42fddd57c3e3f3213f79c96c8cca37e3a5e577c924c552b23
