[INFO] cloning repository https://github.com/KonstmarNSK/ngamahi-raft
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KonstmarNSK/ngamahi-raft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ae70f7825e2cdbfcb5cb5fa242af2e7adcb70309
[INFO] checking KonstmarNSK/ngamahi-raft against master#30f74ff0dc4d66debc8b50724c446f817e5f75f4 for pr-121848-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/KonstmarNSK/ngamahi-raft on toolchain 30f74ff0dc4d66debc8b50724c446f817e5f75f4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/KonstmarNSK/ngamahi-raft
[INFO] finished tweaking git repo https://github.com/KonstmarNSK/ngamahi-raft
[INFO] tweaked toml for git repo https://github.com/KonstmarNSK/ngamahi-raft written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/KonstmarNSK/ngamahi-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" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[ERROR] this task or one of its parent failed!
[ERROR] no output for 300 seconds
[ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace.
[INFO] checking KonstmarNSK/ngamahi-raft against try#72eda894eb3548c7ba774079ce0afab42958d4ee for pr-121848-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-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] validating manifest of git repo https://github.com/KonstmarNSK/ngamahi-raft on toolchain 72eda894eb3548c7ba774079ce0afab42958d4ee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/KonstmarNSK/ngamahi-raft
[INFO] finished tweaking git repo https://github.com/KonstmarNSK/ngamahi-raft
[INFO] tweaked toml for git repo https://github.com/KonstmarNSK/ngamahi-raft written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/KonstmarNSK/ngamahi-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" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] checking KonstmarNSK/ngamahi-raft against try#72eda894eb3548c7ba774079ce0afab42958d4ee for pr-121848-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-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] validating manifest of git repo https://github.com/KonstmarNSK/ngamahi-raft on toolchain 72eda894eb3548c7ba774079ce0afab42958d4ee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/KonstmarNSK/ngamahi-raft
[INFO] finished tweaking git repo https://github.com/KonstmarNSK/ngamahi-raft
[INFO] tweaked toml for git repo https://github.com/KonstmarNSK/ngamahi-raft written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/KonstmarNSK/ngamahi-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" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d471a8907e59900066a79b60d9cee8102f6704b84358093a5362c4c36ef5f061
[INFO] running `Command { std: "docker" "start" "-a" "d471a8907e59900066a79b60d9cee8102f6704b84358093a5362c4c36ef5f061", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d471a8907e59900066a79b60d9cee8102f6704b84358093a5362c4c36ef5f061", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d471a8907e59900066a79b60d9cee8102f6704b84358093a5362c4c36ef5f061", kill_on_drop: false }`
[INFO] [stdout] d471a8907e59900066a79b60d9cee8102f6704b84358093a5362c4c36ef5f061
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 14b7f1b5f82825b6a1d1b9d5af9c05db12d56978228999ac199590c723cade97
[INFO] running `Command { std: "docker" "start" "-a" "14b7f1b5f82825b6a1d1b9d5af9c05db12d56978228999ac199590c723cade97", kill_on_drop: false }`
[INFO] [stderr]    Compiling crossbeam-utils v0.8.11
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.10
[INFO] [stderr]    Compiling crossbeam-queue v0.3.6
[INFO] [stderr]     Checking crossbeam-channel v0.5.6
[INFO] [stderr]     Checking crossbeam-deque v0.8.2
[INFO] [stderr]     Checking crossbeam v0.8.2
[INFO] [stderr]     Checking ngamahi-raft v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Debug`, `Formatter`
[INFO] [stdout]  --> src/lib.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::{Debug, Formatter};
[INFO] [stdout]   |                ^^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RaftTerm`
[INFO] [stdout]  --> src/msg_process/mod.rs:2:57
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stdout]   |                                                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::Ordering`
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::cmp::Ordering;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Candidate`, `Leader`
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:7:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::state::{Leader, Follower, Candidate};
[INFO] [stdout]   |                    ^^^^^^            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RaftLog`
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:2:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::state::{Follower, NodeId, RaftLog, RaftTerm, State, Types};
[INFO] [stdout]   |                                      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::message::OutputMessage::RaftResp`
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::message::OutputMessage::RaftResp;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::message::RaftRpcResp::RequestVote`
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::message::RaftRpcResp::RequestVote;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LogEntry`, `NodeId`
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:4:49
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::state::{Candidate, Follower, Leader, LogEntry, NodeId, State, Types};
[INFO] [stdout]   |                                                 ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Debug`, `Formatter`
[INFO] [stdout]  --> src/lib.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::{Debug, Formatter};
[INFO] [stdout]   |                ^^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RaftTerm`
[INFO] [stdout]  --> src/msg_process/mod.rs:2:57
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stdout]   |                                                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::Ordering`
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::cmp::Ordering;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Candidate`, `Leader`
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:7:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::state::{Leader, Follower, Candidate};
[INFO] [stdout]   |                    ^^^^^^            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RaftLog`
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:2:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::state::{Follower, NodeId, RaftLog, RaftTerm, State, Types};
[INFO] [stdout]   |                                      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::message::OutputMessage::RaftResp`
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::message::OutputMessage::RaftResp;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::message::RaftRpcResp::RequestVote`
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::message::RaftRpcResp::RequestVote;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LogEntry`, `NodeId`
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:4:49
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::state::{Candidate, Follower, Leader, LogEntry, NodeId, State, Types};
[INFO] [stdout]   |                                                 ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StateMachine`
[INFO] [stdout]  --> src/msg_process/mod.rs:2:74
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stdout]   |                                                                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/state.rs:133:16
[INFO] [stdout]     |
[INFO] [stdout] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[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: unused variable: `node_id`
[INFO] [stdout]    --> src/state.rs:141:12
[INFO] [stdout]     |
[INFO] [stdout] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stdout]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `entries`
[INFO] [stdout]    --> src/state.rs:173:34
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StateMachine`
[INFO] [stdout]  --> src/msg_process/mod.rs:2:74
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stdout]   |                                                                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:9:35
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stdout]   |                                   ----^^^^^
[INFO] [stdout]   |                                   |
[INFO] [stdout]   |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:4:35
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stdout]   |                                   ----^^^^^
[INFO] [stdout]   |                                   |
[INFO] [stdout]   |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:4:61
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stdout]   |                                                             ----^^^^^^^
[INFO] [stdout]   |                                                             |
[INFO] [stdout]   |                                                             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:6:35
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stdout]   |                                   ----^^^^^
[INFO] [stdout]   |                                   |
[INFO] [stdout]   |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:91:9
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let mut state = state.into_candidate();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addressee`
[INFO] [stdout]   --> src/msg_process/mod.rs:14:45
[INFO] [stdout]    |
[INFO] [stdout] 14 |                 RaftRpcReq::AppendEntries { addressee, req } => {
[INFO] [stdout]    |                                             ^^^^^^^^^ help: try ignoring the field: `addressee: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/msg_process/mod.rs:77:69
[INFO] [stdout]    |
[INFO] [stdout] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stdout]    |                                                                     ----^^^
[INFO] [stdout]    |                                                                     |
[INFO] [stdout]    |                                                                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/state.rs:133:16
[INFO] [stdout]     |
[INFO] [stdout] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[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: unused variable: `id`
[INFO] [stdout]    --> src/msg_process/mod.rs:140:33
[INFO] [stdout]     |
[INFO] [stdout] 140 |                         .map(|(&id, &idx)| idx)
[INFO] [stdout]     |                                 ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node_id`
[INFO] [stdout]    --> src/state.rs:141:12
[INFO] [stdout]     |
[INFO] [stdout] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stdout]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `entries`
[INFO] [stdout]    --> src/state.rs:173:34
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/msg_process/mod.rs:174:5
[INFO] [stdout]     |
[INFO] [stdout] 174 |     mut state: State<TTypes>,
[INFO] [stdout]     |     ----^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `process_message` is never used
[INFO] [stdout]   --> src/lib.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<TTypes: Types> RaftNode<TTypes> {
[INFO] [stdout]    | ------------------------------------ method in this implementation
[INFO] [stdout] 13 |     pub fn process_message(&mut self, message: InputMessage<TTypes>) -> Vec<OutputMessage<TTypes>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `apply_commands` is never used
[INFO] [stdout]   --> src/state.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 51 | impl<TTypes: Types> PersistentCommonState<TTypes> {
[INFO] [stdout]    | ------------------------------------------------- method in this implementation
[INFO] [stdout] 52 |     pub fn apply_commands(&mut self, start: usize, end: usize) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl<TTypes: Types> PersistentCommonState<TTypes> {
[INFO] [stdout]    | ------------------------------------------------- associated function in this implementation
[INFO] [stdout] 58 |     pub fn new(node_id: NodeId, mut others: HashSet<NodeId>, state_machine: TTypes::TStateMachine) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `State` is never used
[INFO] [stdout]   --> src/state.rs:86:10
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub enum State<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `StateMachine` is never used
[INFO] [stdout]   --> src/state.rs:93:11
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub trait StateMachine<TTypes: Types> {
[INFO] [stdout]    |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `InitParams` is never constructed
[INFO] [stdout]    --> src/state.rs:120:12
[INFO] [stdout]     |
[INFO] [stdout] 120 | pub struct InitParams<TTypes: Types> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RaftNode` is never constructed
[INFO] [stdout]    --> src/state.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 128 | pub struct RaftNode<TTypes: Types> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/state.rs:133:12
[INFO] [stdout]     |
[INFO] [stdout] 132 | impl<TTypes: Types> RaftNode<TTypes> {
[INFO] [stdout]     | ------------------------------------ associated function in this implementation
[INFO] [stdout] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `common`, `common_mut`, `apply_commands`, and `add_to_log` are never used
[INFO] [stdout]    --> src/state.rs:141:8
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl<TTypes: Types> State<TTypes> {
[INFO] [stdout]     | --------------------------------- associated items in this implementation
[INFO] [stdout] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub fn common(&self) -> &CommonState<TTypes> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 154 |     pub fn common_mut(&mut self) -> &mut CommonState<TTypes> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     pub fn apply_commands(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:9:35
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stdout]   |                                   ----^^^^^
[INFO] [stdout]   |                                   |
[INFO] [stdout]   |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `into_candidate` are never used
[INFO] [stdout]    --> src/state.rs:179:8
[INFO] [stdout]     |
[INFO] [stdout] 178 | impl<TTypes: Types> Follower<TTypes> {
[INFO] [stdout]     | ------------------------------------ associated items in this implementation
[INFO] [stdout] 179 |     fn new(persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 184 |     pub fn into_candidate(self) -> Candidate<TTypes> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/state.rs:190:8
[INFO] [stdout]     |
[INFO] [stdout] 189 | impl<TTypes: Types> CommonState<TTypes> {
[INFO] [stdout]     | --------------------------------------- associated function in this implementation
[INFO] [stdout] 190 |     fn new(persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_msg` is never used
[INFO] [stdout]  --> src/msg_process/mod.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn process_msg<TTypes: Types>(state: State<TTypes>, message: InputMessage<TTypes>)
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `client_resp_false` is never used
[INFO] [stdout]   --> src/msg_process/mod.rs:68:4
[INFO] [stdout]    |
[INFO] [stdout] 68 | fn client_resp_false<TTypes: Types>(req_uid: u128, leader: Option<NodeId>) -> ClientMessageResp {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_client_request` is never used
[INFO] [stdout]   --> src/msg_process/mod.rs:77:4
[INFO] [stdout]    |
[INFO] [stdout] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_append_entries_response_common` is never used
[INFO] [stdout]   --> src/msg_process/mod.rs:96:4
[INFO] [stdout]    |
[INFO] [stdout] 96 | fn process_append_entries_response_common<TTypes: Types>(
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_append_entries_response` is never used
[INFO] [stdout]    --> src/msg_process/mod.rs:114:4
[INFO] [stdout]     |
[INFO] [stdout] 114 | fn process_append_entries_response<TTypes: Types>(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_request_vote_response_common` is never used
[INFO] [stdout]    --> src/msg_process/mod.rs:173:4
[INFO] [stdout]     |
[INFO] [stdout] 173 | fn process_request_vote_response_common<TTypes: Types>(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_request_vote_response` is never used
[INFO] [stdout]    --> src/msg_process/mod.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn process_request_vote_response<TTypes: Types>(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `heartbeat_msg` is never used
[INFO] [stdout]    --> src/msg_process/mod.rs:206:8
[INFO] [stdout]     |
[INFO] [stdout] 206 | pub fn heartbeat_msg<TTypes: Types>(state: &Leader<TTypes>) -> AppendEntriesReq<TTypes> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_msg` is never used
[INFO] [stdout]  --> src/msg_process/process_append_entries.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reply_false` is never used
[INFO] [stdout]    --> src/msg_process/process_append_entries.rs:133:4
[INFO] [stdout]     |
[INFO] [stdout] 133 | fn reply_false(curr_term: RaftTerm, appended: usize, sender: NodeId) -> RaftRpcResp {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reply_true` is never used
[INFO] [stdout]    --> src/msg_process/process_append_entries.rs:137:4
[INFO] [stdout]     |
[INFO] [stdout] 137 | fn reply_true(curr_term: RaftTerm, appended: usize, sender: NodeId) -> RaftRpcResp {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_msg` is never used
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reply_false` is never used
[INFO] [stdout]   --> src/msg_process/process_request_vote.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn reply_false(curr_term: RaftTerm, sender: NodeId) -> RaftRpcResp {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reply_true` is never used
[INFO] [stdout]   --> src/msg_process/process_request_vote.rs:63:4
[INFO] [stdout]    |
[INFO] [stdout] 63 | fn reply_true(curr_term: RaftTerm, sender: NodeId) -> RaftRpcResp {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_log_up_to_date` is never used
[INFO] [stdout]   --> src/msg_process/process_request_vote.rs:68:4
[INFO] [stdout]    |
[INFO] [stdout] 68 | fn is_log_up_to_date<TTypes: Types>(state: &Follower<TTypes>, req: &RequestVoteReq) -> bool {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_msg` is never used
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_heartbeat_trigger` is never used
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn process_heartbeat_trigger<TTypes: Types>(state: &Leader<TTypes>) -> Vec<OutputMessage<TTypes>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `FollowerOrCandidate` is never used
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:74:6
[INFO] [stdout]    |
[INFO] [stdout] 74 | enum FollowerOrCandidate<TTypes: Types> {
[INFO] [stdout]    |      ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_election_trigger` is never used
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:79:4
[INFO] [stdout]    |
[INFO] [stdout] 79 | fn process_election_trigger<TTypes: Types>(state: FollowerOrCandidate<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `follower_elect` is never used
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:89:4
[INFO] [stdout]    |
[INFO] [stdout] 89 | fn follower_elect<TTypes: Types>(state: Follower<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `start_election` is never used
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:97:4
[INFO] [stdout]    |
[INFO] [stdout] 97 | fn start_election<TTypes: Types>(mut state: Candidate<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]  --> src/message.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:4:35
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stdout]   |                                   ----^^^^^
[INFO] [stdout]   |                                   |
[INFO] [stdout]   |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `InputMessage` is never used
[INFO] [stdout]   --> src/message.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `InputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OutputMessage` is never used
[INFO] [stdout]   --> src/message.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OutputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_request_vote.rs:4:61
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stdout]   |                                                             ----^^^^^^^
[INFO] [stdout]   |                                                             |
[INFO] [stdout]   |                                                             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMessageReq` is never constructed
[INFO] [stdout]   --> src/message.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct ClientMessageReq<TTypes: Types>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageReq` 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 `ClientMessageResp` is never constructed
[INFO] [stdout]   --> src/message.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct ClientMessageResp{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TimerMessage` is never used
[INFO] [stdout]   --> src/message.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RaftRpcReq` is never used
[INFO] [stdout]   --> src/message.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RaftRpcReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RaftRpcResp` is never used
[INFO] [stdout]   --> src/message.rs:52:10
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RaftRpcResp` 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 `AppendEntriesResp` is never constructed
[INFO] [stdout]   --> src/message.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct AppendEntriesResp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendEntriesResp` 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 `ReqVoteResp` is never constructed
[INFO] [stdout]   --> src/message.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct ReqVoteResp {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReqVoteResp` 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 `AppendEntriesReq` is never constructed
[INFO] [stdout]   --> src/message.rs:73:12
[INFO] [stdout]    |
[INFO] [stdout] 73 | pub struct AppendEntriesReq<TTypes: Types> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendEntriesReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/msg_process/process_timer_events.rs:6:35
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stdout]   |                                   ----^^^^^
[INFO] [stdout]   |                                   |
[INFO] [stdout]   |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequestVoteReq` is never constructed
[INFO] [stdout]   --> src/message.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub struct RequestVoteReq {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stdout]   --> src/state.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                          ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use fully disambiguated paths (i.e., `<T as Trait>::Assoc`) to refer to associated types in type aliases
[INFO] [stdout]   --> src/state.rs:37:48
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                                                ^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stdout]    |
[INFO] [stdout] 37 - pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout] 37 + pub type RaftLog<TTypes> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs:122:46
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs:125:46
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs:166:46
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 .and_modify(|&mut old_idx| { old_idx - 1; });
[INFO] [stdout]     |                                              ^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 .and_modify(|&mut old_idx| { let _ = old_idx - 1; });
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/msg_process/process_timer_events.rs:91:9
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let mut state = state.into_candidate();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addressee`
[INFO] [stdout]   --> src/msg_process/mod.rs:14:45
[INFO] [stdout]    |
[INFO] [stdout] 14 |                 RaftRpcReq::AppendEntries { addressee, req } => {
[INFO] [stdout]    |                                             ^^^^^^^^^ help: try ignoring the field: `addressee: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/msg_process/mod.rs:77:69
[INFO] [stdout]    |
[INFO] [stdout] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stdout]    |                                                                     ----^^^
[INFO] [stdout]    |                                                                     |
[INFO] [stdout]    |                                                                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/msg_process/mod.rs:140:33
[INFO] [stdout]     |
[INFO] [stdout] 140 |                         .map(|(&id, &idx)| idx)
[INFO] [stdout]     |                                 ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/msg_process/mod.rs:174:5
[INFO] [stdout]     |
[INFO] [stdout] 174 |     mut state: State<TTypes>,
[INFO] [stdout]     |     ----^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 70 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:73:33
[INFO] [stdout]    |
[INFO] [stdout] 73 |         fn params(node: NodeId, mut others: Vec<NodeId>) -> InitParams<TestTypes> {
[INFO] [stdout]    |                                 ----^^^^^^
[INFO] [stdout]    |                                 |
[INFO] [stdout]    |                                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node2`
[INFO] [stdout]   --> src/lib.rs:90:29
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_node2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node3`
[INFO] [stdout]   --> src/lib.rs:90:40
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stdout]    |                                        ^^^^^ help: if this is intentional, prefix it with an underscore: `_node3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:90:25
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stdout]    |                         ----^^^^^
[INFO] [stdout]    |                         |
[INFO] [stdout]    |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:90:36
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stdout]    |                                    ----^^^^^
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node3_response_in`
[INFO] [stdout]    --> src/lib.rs:172:14
[INFO] [stdout]     |
[INFO] [stdout] 172 |         let (node3_response_in, node2_response_in) : (In<TestTypes>, In<TestTypes>) =
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node3_response_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `leader`
[INFO] [stdout]    --> src/lib.rs:187:27
[INFO] [stdout]     |
[INFO] [stdout] 187 |             State::Leader(leader) => (),
[INFO] [stdout]     |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_to_log` is never used
[INFO] [stdout]    --> src/state.rs:173:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl<TTypes: Types> State<TTypes> {
[INFO] [stdout]     | --------------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]  --> src/message.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TriggerHeartbeat` is never constructed
[INFO] [stdout]   --> src/message.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] 41 |     TriggerHeartbeat,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stdout]   --> src/state.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                          ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use fully disambiguated paths (i.e., `<T as Trait>::Assoc`) to refer to associated types in type aliases
[INFO] [stdout]   --> src/state.rs:37:48
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                                                ^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stdout]    |
[INFO] [stdout] 37 - pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout] 37 + pub type RaftLog<TTypes> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs:122:46
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs:125:46
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs:166:46
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 .and_modify(|&mut old_idx| { old_idx - 1; });
[INFO] [stdout]     |                                              ^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 .and_modify(|&mut old_idx| { let _ = old_idx - 1; });
[INFO] [stdout]     |                                              +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 36 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.05s
[INFO] running `Command { std: "docker" "inspect" "14b7f1b5f82825b6a1d1b9d5af9c05db12d56978228999ac199590c723cade97", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "14b7f1b5f82825b6a1d1b9d5af9c05db12d56978228999ac199590c723cade97", kill_on_drop: false }`
[INFO] [stdout] 14b7f1b5f82825b6a1d1b9d5af9c05db12d56978228999ac199590c723cade97
