[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] testing KonstmarNSK/ngamahi-raft against 1.75.0 for beta-1.76-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft" "/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/KonstmarNSK/ngamahi-raft on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "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-6-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" "+1.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 78f61c9c9e7be72cbec1b57d75d2d228c7cae29915d5ddd36d099e00de7c69ce
[INFO] running `Command { std: "docker" "start" "-a" "78f61c9c9e7be72cbec1b57d75d2d228c7cae29915d5ddd36d099e00de7c69ce", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "78f61c9c9e7be72cbec1b57d75d2d228c7cae29915d5ddd36d099e00de7c69ce", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78f61c9c9e7be72cbec1b57d75d2d228c7cae29915d5ddd36d099e00de7c69ce", kill_on_drop: false }`
[INFO] [stdout] 78f61c9c9e7be72cbec1b57d75d2d228c7cae29915d5ddd36d099e00de7c69ce
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d693907f010ed199393b11da2a7f5d7058c1b534d8784dfd2e115cee71d7255c
[INFO] running `Command { std: "docker" "start" "-a" "d693907f010ed199393b11da2a7f5d7058c1b534d8784dfd2e115cee71d7255c", kill_on_drop: false }`
[INFO] [stderr]    Compiling crossbeam-utils v0.8.11
[INFO] [stderr]    Compiling once_cell v1.14.0
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.10
[INFO] [stderr]    Compiling crossbeam-queue v0.3.6
[INFO] [stderr]    Compiling crossbeam-channel v0.5.6
[INFO] [stderr]    Compiling crossbeam-deque v0.8.2
[INFO] [stderr]    Compiling crossbeam v0.8.2
[INFO] [stderr]    Compiling 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 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: 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: 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: 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: 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: 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: variants `Input` and `Output` are never constructed
[INFO] [stdout]  --> src/message.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ------- variants in this enum
[INFO] [stdout] 5 |     Input(InputMessage<TTypes>),
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     Output(OutputMessage<TTypes>),
[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: variants `RaftRequest`, `RaftResponse`, `TimerMsg`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 11 |     RaftRequest(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 12 |     RaftResponse(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 13 |     TimerMsg(TimerMessage),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     // when client wants to add a new command in log it sends this message to one of raft nodes
[INFO] [stdout] 15 |     ClientMsg(ClientMessageReq<TTypes>),
[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: variants `RaftReq`, `RaftResp`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 20 |     RaftReq(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 21 |     RaftResp(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 |     ClientMsg(ClientMessageResp),
[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: variants `TriggerHeartbeat` and `TriggerElections` are never constructed
[INFO] [stdout]   --> src/message.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 41 |     TriggerHeartbeat,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 42 |     TriggerElections,
[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: variants `AppendEntries` and `ReqVote` are never constructed
[INFO] [stdout]   --> src/message.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] 47 |     AppendEntries { addressee: NodeId, req: AppendEntriesReq<TTypes> },
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ReqVote(RequestVoteReq),
[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: variants `AppendEntries` and `RequestVote` are never constructed
[INFO] [stdout]   --> src/message.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 53 |     AppendEntries(AppendEntriesResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 54 |     RequestVote(ReqVoteResp),
[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: 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: 63 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1.46s
[INFO] running `Command { std: "docker" "inspect" "d693907f010ed199393b11da2a7f5d7058c1b534d8784dfd2e115cee71d7255c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d693907f010ed199393b11da2a7f5d7058c1b534d8784dfd2e115cee71d7255c", kill_on_drop: false }`
[INFO] [stdout] d693907f010ed199393b11da2a7f5d7058c1b534d8784dfd2e115cee71d7255c
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6e8000caefc9b57fe7bf4803940acf424c418c6956fc0e65e21838e4a8d10e87
[INFO] running `Command { std: "docker" "start" "-a" "6e8000caefc9b57fe7bf4803940acf424c418c6956fc0e65e21838e4a8d10e87", kill_on_drop: false }`
[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: 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: 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: 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: 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: 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: variants `Input` and `Output` are never constructed
[INFO] [stdout]  --> src/message.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ------- variants in this enum
[INFO] [stdout] 5 |     Input(InputMessage<TTypes>),
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     Output(OutputMessage<TTypes>),
[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: variants `RaftRequest`, `RaftResponse`, `TimerMsg`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 11 |     RaftRequest(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 12 |     RaftResponse(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 13 |     TimerMsg(TimerMessage),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     // when client wants to add a new command in log it sends this message to one of raft nodes
[INFO] [stdout] 15 |     ClientMsg(ClientMessageReq<TTypes>),
[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: variants `RaftReq`, `RaftResp`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 20 |     RaftReq(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 21 |     RaftResp(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 |     ClientMsg(ClientMessageResp),
[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: variants `TriggerHeartbeat` and `TriggerElections` are never constructed
[INFO] [stdout]   --> src/message.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 41 |     TriggerHeartbeat,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 42 |     TriggerElections,
[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: variants `AppendEntries` and `ReqVote` are never constructed
[INFO] [stdout]   --> src/message.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] 47 |     AppendEntries { addressee: NodeId, req: AppendEntriesReq<TTypes> },
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ReqVote(RequestVoteReq),
[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: variants `AppendEntries` and `RequestVote` are never constructed
[INFO] [stdout]   --> src/message.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 53 |     AppendEntries(AppendEntriesResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 54 |     RequestVote(ReqVoteResp),
[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: 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] [stderr]    Compiling ngamahi-raft v0.1.0 (/opt/rustwide/workdir)
[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: 63 warnings emitted
[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: 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: 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: 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: variants `Input` and `Output` are never constructed
[INFO] [stdout]  --> src/message.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ------- variants in this enum
[INFO] [stdout] 5 |     Input(InputMessage<TTypes>),
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     Output(OutputMessage<TTypes>),
[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 test [unoptimized + debuginfo] target(s) in 0.58s
[INFO] running `Command { std: "docker" "inspect" "6e8000caefc9b57fe7bf4803940acf424c418c6956fc0e65e21838e4a8d10e87", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6e8000caefc9b57fe7bf4803940acf424c418c6956fc0e65e21838e4a8d10e87", kill_on_drop: false }`
[INFO] [stdout] 6e8000caefc9b57fe7bf4803940acf424c418c6956fc0e65e21838e4a8d10e87
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.75.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 76e7634dff0110d5ec0a8275ff730076e9c15bc0957f1f0756dd65bd040cb044
[INFO] running `Command { std: "docker" "start" "-a" "76e7634dff0110d5ec0a8275ff730076e9c15bc0957f1f0756dd65bd040cb044", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `Debug`, `Formatter`
[INFO] [stderr]  --> src/lib.rs:3:16
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::fmt::{Debug, Formatter};
[INFO] [stderr]   |                ^^^^^  ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `RaftTerm`
[INFO] [stderr]  --> src/msg_process/mod.rs:2:57
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stderr]   |                                                         ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::cmp::Ordering`
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::cmp::Ordering;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::fmt::format`
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::fmt::format;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Candidate`, `Leader`
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:7:20
[INFO] [stderr]   |
[INFO] [stderr] 7 | use crate::state::{Leader, Follower, Candidate};
[INFO] [stderr]   |                    ^^^^^^            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `RaftLog`
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:2:38
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::state::{Follower, NodeId, RaftLog, RaftTerm, State, Types};
[INFO] [stderr]   |                                      ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::message::OutputMessage::RaftResp`
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::message::OutputMessage::RaftResp;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::message::RaftRpcResp::RequestVote`
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::message::RaftRpcResp::RequestVote;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `LogEntry`, `NodeId`
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:4:49
[INFO] [stderr]   |
[INFO] [stderr] 4 | use crate::state::{Candidate, Follower, Leader, LogEntry, NodeId, State, Types};
[INFO] [stderr]   |                                                 ^^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `StateMachine`
[INFO] [stderr]  --> src/msg_process/mod.rs:2:74
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stderr]   |                                                                          ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/state.rs:133:16
[INFO] [stderr]     |
[INFO] [stderr] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[INFO] [stderr]     |                ----^^^^^^
[INFO] [stderr]     |                |
[INFO] [stderr]     |                help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node_id`
[INFO] [stderr]    --> src/state.rs:141:12
[INFO] [stderr]     |
[INFO] [stderr] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `entries`
[INFO] [stderr]    --> src/state.rs:173:34
[INFO] [stderr]     |
[INFO] [stderr] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stderr]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:9:35
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stderr]   |                                   ----^^^^^
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:4:35
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stderr]   |                                   ----^^^^^
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:4:61
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stderr]   |                                                             ----^^^^^^^
[INFO] [stderr]   |                                                             |
[INFO] [stderr]   |                                                             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:6:35
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stderr]   |                                   ----^^^^^
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:91:9
[INFO] [stderr]    |
[INFO] [stderr] 91 |     let mut state = state.into_candidate();
[INFO] [stderr]    |         ----^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `addressee`
[INFO] [stderr]   --> src/msg_process/mod.rs:14:45
[INFO] [stderr]    |
[INFO] [stderr] 14 |                 RaftRpcReq::AppendEntries { addressee, req } => {
[INFO] [stderr]    |                                             ^^^^^^^^^ help: try ignoring the field: `addressee: _`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/msg_process/mod.rs:77:69
[INFO] [stderr]    |
[INFO] [stderr] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stderr]    |                                                                     ----^^^
[INFO] [stderr]    |                                                                     |
[INFO] [stderr]    |                                                                     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `id`
[INFO] [stderr]    --> src/msg_process/mod.rs:140:33
[INFO] [stderr]     |
[INFO] [stderr] 140 |                         .map(|(&id, &idx)| idx)
[INFO] [stderr]     |                                 ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/msg_process/mod.rs:174:5
[INFO] [stderr]     |
[INFO] [stderr] 174 |     mut state: State<TTypes>,
[INFO] [stderr]     |     ----^^^^^
[INFO] [stderr]     |     |
[INFO] [stderr]     |     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: method `process_message` is never used
[INFO] [stderr]   --> src/lib.rs:13:12
[INFO] [stderr]    |
[INFO] [stderr] 12 | impl<TTypes: Types> RaftNode<TTypes> {
[INFO] [stderr]    | ------------------------------------ method in this implementation
[INFO] [stderr] 13 |     pub fn process_message(&mut self, message: InputMessage<TTypes>) -> Vec<OutputMessage<TTypes>> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `apply_commands` is never used
[INFO] [stderr]   --> src/state.rs:52:12
[INFO] [stderr]    |
[INFO] [stderr] 51 | impl<TTypes: Types> PersistentCommonState<TTypes> {
[INFO] [stderr]    | ------------------------------------------------- method in this implementation
[INFO] [stderr] 52 |     pub fn apply_commands(&mut self, start: usize, end: usize) {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/state.rs:58:12
[INFO] [stderr]    |
[INFO] [stderr] 57 | impl<TTypes: Types> PersistentCommonState<TTypes> {
[INFO] [stderr]    | ------------------------------------------------- associated function in this implementation
[INFO] [stderr] 58 |     pub fn new(node_id: NodeId, mut others: HashSet<NodeId>, state_machine: TTypes::TStateMachine) -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `State` is never used
[INFO] [stderr]   --> src/state.rs:86:10
[INFO] [stderr]    |
[INFO] [stderr] 86 | pub enum State<TTypes: Types> {
[INFO] [stderr]    |          ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `InitParams` is never constructed
[INFO] [stderr]    --> src/state.rs:120:12
[INFO] [stderr]     |
[INFO] [stderr] 120 | pub struct InitParams<TTypes: Types> {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `RaftNode` is never constructed
[INFO] [stderr]    --> src/state.rs:128:12
[INFO] [stderr]     |
[INFO] [stderr] 128 | pub struct RaftNode<TTypes: Types> {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/state.rs:133:12
[INFO] [stderr]     |
[INFO] [stderr] 132 | impl<TTypes: Types> RaftNode<TTypes> {
[INFO] [stderr]     | ------------------------------------ associated function in this implementation
[INFO] [stderr] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `common`, `common_mut`, `apply_commands`, and `add_to_log` are never used
[INFO] [stderr]    --> src/state.rs:141:8
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl<TTypes: Types> State<TTypes> {
[INFO] [stderr]     | --------------------------------- associated items in this implementation
[INFO] [stderr] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 145 |     pub fn common(&self) -> &CommonState<TTypes> {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 154 |     pub fn common_mut(&mut self) -> &mut CommonState<TTypes> {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 162 |     pub fn apply_commands(&mut self) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `into_candidate` are never used
[INFO] [stderr]    --> src/state.rs:179:8
[INFO] [stderr]     |
[INFO] [stderr] 178 | impl<TTypes: Types> Follower<TTypes> {
[INFO] [stderr]     | ------------------------------------ associated items in this implementation
[INFO] [stderr] 179 |     fn new(persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 184 |     pub fn into_candidate(self) -> Candidate<TTypes> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/state.rs:190:8
[INFO] [stderr]     |
[INFO] [stderr] 189 | impl<TTypes: Types> CommonState<TTypes> {
[INFO] [stderr]     | --------------------------------------- associated function in this implementation
[INFO] [stderr] 190 |     fn new(persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/mod.rs:9:8
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn process_msg<TTypes: Types>(state: State<TTypes>, message: InputMessage<TTypes>)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `client_resp_false` is never used
[INFO] [stderr]   --> src/msg_process/mod.rs:68:4
[INFO] [stderr]    |
[INFO] [stderr] 68 | fn client_resp_false<TTypes: Types>(req_uid: u128, leader: Option<NodeId>) -> ClientMessageResp {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_client_request` is never used
[INFO] [stderr]   --> src/msg_process/mod.rs:77:4
[INFO] [stderr]    |
[INFO] [stderr] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_append_entries_response_common` is never used
[INFO] [stderr]   --> src/msg_process/mod.rs:96:4
[INFO] [stderr]    |
[INFO] [stderr] 96 | fn process_append_entries_response_common<TTypes: Types>(
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_append_entries_response` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:114:4
[INFO] [stderr]     |
[INFO] [stderr] 114 | fn process_append_entries_response<TTypes: Types>(
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_request_vote_response_common` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:173:4
[INFO] [stderr]     |
[INFO] [stderr] 173 | fn process_request_vote_response_common<TTypes: Types>(
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_request_vote_response` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:190:4
[INFO] [stderr]     |
[INFO] [stderr] 190 | fn process_request_vote_response<TTypes: Types>(
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `heartbeat_msg` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:206:8
[INFO] [stderr]     |
[INFO] [stderr] 206 | pub fn heartbeat_msg<TTypes: Types>(state: &Leader<TTypes>) -> AppendEntriesReq<TTypes> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:9:8
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_false` is never used
[INFO] [stderr]    --> src/msg_process/process_append_entries.rs:133:4
[INFO] [stderr]     |
[INFO] [stderr] 133 | fn reply_false(curr_term: RaftTerm, appended: usize, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]     |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_true` is never used
[INFO] [stderr]    --> src/msg_process/process_append_entries.rs:137:4
[INFO] [stderr]     |
[INFO] [stderr] 137 | fn reply_true(curr_term: RaftTerm, appended: usize, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]     |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:4:8
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_false` is never used
[INFO] [stderr]   --> src/msg_process/process_request_vote.rs:59:4
[INFO] [stderr]    |
[INFO] [stderr] 59 | fn reply_false(curr_term: RaftTerm, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]    |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_true` is never used
[INFO] [stderr]   --> src/msg_process/process_request_vote.rs:63:4
[INFO] [stderr]    |
[INFO] [stderr] 63 | fn reply_true(curr_term: RaftTerm, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]    |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `is_log_up_to_date` is never used
[INFO] [stderr]   --> src/msg_process/process_request_vote.rs:68:4
[INFO] [stderr]    |
[INFO] [stderr] 68 | fn is_log_up_to_date<TTypes: Types>(state: &Follower<TTypes>, req: &RequestVoteReq) -> bool {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:6:8
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_heartbeat_trigger` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub fn process_heartbeat_trigger<TTypes: Types>(state: &Leader<TTypes>) -> Vec<OutputMessage<TTypes>> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `FollowerOrCandidate` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:74:6
[INFO] [stderr]    |
[INFO] [stderr] 74 | enum FollowerOrCandidate<TTypes: Types> {
[INFO] [stderr]    |      ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_election_trigger` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:79:4
[INFO] [stderr]    |
[INFO] [stderr] 79 | fn process_election_trigger<TTypes: Types>(state: FollowerOrCandidate<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `follower_elect` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:89:4
[INFO] [stderr]    |
[INFO] [stderr] 89 | fn follower_elect<TTypes: Types>(state: Follower<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `start_election` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:97:4
[INFO] [stderr]    |
[INFO] [stderr] 97 | fn start_election<TTypes: Types>(mut state: Candidate<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Input` and `Output` are never constructed
[INFO] [stderr]  --> src/message.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub enum Message<TTypes: Types> {
[INFO] [stderr]   |          ------- variants in this enum
[INFO] [stderr] 5 |     Input(InputMessage<TTypes>),
[INFO] [stderr]   |     ^^^^^
[INFO] [stderr] 6 |     Output(OutputMessage<TTypes>),
[INFO] [stderr]   |     ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `RaftRequest`, `RaftResponse`, `TimerMsg`, and `ClientMsg` are never constructed
[INFO] [stderr]   --> src/message.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stderr]    |          ------------ variants in this enum
[INFO] [stderr] 11 |     RaftRequest(RaftRpcReq<TTypes>),
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 12 |     RaftResponse(RaftRpcResp),
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 13 |     TimerMsg(TimerMessage),
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] 14 |     // when client wants to add a new command in log it sends this message to one of raft nodes
[INFO] [stderr] 15 |     ClientMsg(ClientMessageReq<TTypes>),
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `InputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `RaftReq`, `RaftResp`, and `ClientMsg` are never constructed
[INFO] [stderr]   --> src/message.rs:20:5
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stderr]    |          ------------- variants in this enum
[INFO] [stderr] 20 |     RaftReq(RaftRpcReq<TTypes>),
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr] 21 |     RaftResp(RaftRpcResp),
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] 22 |     ClientMsg(ClientMessageResp),
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `OutputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `TriggerHeartbeat` and `TriggerElections` are never constructed
[INFO] [stderr]   --> src/message.rs:41:5
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub enum TimerMessage {
[INFO] [stderr]    |          ------------ variants in this enum
[INFO] [stderr] 41 |     TriggerHeartbeat,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 42 |     TriggerElections,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `AppendEntries` and `ReqVote` are never constructed
[INFO] [stderr]   --> src/message.rs:47:5
[INFO] [stderr]    |
[INFO] [stderr] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stderr]    |          ---------- variants in this enum
[INFO] [stderr] 47 |     AppendEntries { addressee: NodeId, req: AppendEntriesReq<TTypes> },
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 48 |     ReqVote(RequestVoteReq),
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RaftRpcReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `AppendEntries` and `RequestVote` are never constructed
[INFO] [stderr]   --> src/message.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub enum RaftRpcResp {
[INFO] [stderr]    |          ----------- variants in this enum
[INFO] [stderr] 53 |     AppendEntries(AppendEntriesResp),
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 54 |     RequestVote(ReqVoteResp),
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RaftRpcResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stderr]   --> src/state.rs:37:26
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |                          ^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: use fully disambiguated paths (i.e., `<T as Trait>::Assoc`) to refer to associated types in type aliases
[INFO] [stderr]   --> src/state.rs:37:48
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |                                                ^^^^^^^^^^^^
[INFO] [stderr]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stderr] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stderr]    |
[INFO] [stderr] 37 - pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr] 37 + pub type RaftLog<TTypes> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused arithmetic operation that must be used
[INFO] [stderr]    --> src/msg_process/mod.rs:122:46
[INFO] [stderr]     |
[INFO] [stderr] 122 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 122 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused arithmetic operation that must be used
[INFO] [stderr]    --> src/msg_process/mod.rs:125:46
[INFO] [stderr]     |
[INFO] [stderr] 125 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stderr]     |
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 125 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused arithmetic operation that must be used
[INFO] [stderr]    --> src/msg_process/mod.rs:166:46
[INFO] [stderr]     |
[INFO] [stderr] 166 |                 .and_modify(|&mut old_idx| { old_idx - 1; });
[INFO] [stderr]     |                                              ^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stderr]     |
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 166 |                 .and_modify(|&mut old_idx| { let _ = old_idx - 1; });
[INFO] [stderr]     |                                              +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/lib.rs:73:33
[INFO] [stderr]    |
[INFO] [stderr] 73 |         fn params(node: NodeId, mut others: Vec<NodeId>) -> InitParams<TestTypes> {
[INFO] [stderr]    |                                 ----^^^^^^
[INFO] [stderr]    |                                 |
[INFO] [stderr]    |                                 help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node2`
[INFO] [stderr]   --> src/lib.rs:90:29
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_node2`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node3`
[INFO] [stderr]   --> src/lib.rs:90:40
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                                        ^^^^^ help: if this is intentional, prefix it with an underscore: `_node3`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/lib.rs:90:25
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                         ----^^^^^
[INFO] [stderr]    |                         |
[INFO] [stderr]    |                         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/lib.rs:90:36
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                                    ----^^^^^
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node3_response_in`
[INFO] [stderr]    --> src/lib.rs:172:14
[INFO] [stderr]     |
[INFO] [stderr] 172 |         let (node3_response_in, node2_response_in) : (In<TestTypes>, In<TestTypes>) =
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node3_response_in`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `leader`
[INFO] [stderr]    --> src/lib.rs:187:27
[INFO] [stderr]     |
[INFO] [stderr] 187 |             State::Leader(leader) => (),
[INFO] [stderr]     |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader`
[INFO] [stderr] 
[INFO] [stderr] warning: method `add_to_log` is never used
[INFO] [stderr]    --> src/state.rs:173:12
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl<TTypes: Types> State<TTypes> {
[INFO] [stderr]     | --------------------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variant `TriggerHeartbeat` is never constructed
[INFO] [stderr]   --> src/message.rs:41:5
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub enum TimerMessage {
[INFO] [stderr]    |          ------------ variant in this enum
[INFO] [stderr] 41 |     TriggerHeartbeat,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `ngamahi-raft` (lib) generated 63 warnings (run `cargo fix --lib -p ngamahi-raft` to apply 22 suggestions)
[INFO] [stderr] warning: `ngamahi-raft` (lib test) generated 36 warnings (27 duplicates) (run `cargo fix --lib -p ngamahi-raft --tests` to apply 7 suggestions)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ngamahi_raft-268603a67703b022)
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test tests::it_works ... ok
[INFO] [stdout] test tests::election_triggers ... ok
[INFO] [stdout] test tests::log_replicates ... FAILED
[INFO] [stdout] test tests::election_succeeds ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::log_replicates stdout ----
[INFO] [stdout] thread 'tests::log_replicates' panicked at src/lib.rs:240:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: 1
[INFO] [stdout]  right: 2
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x564f3007752c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x564f3007752c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x564f3007752c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x564f3007752c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x564f300a1e90 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x564f300a1e90 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x564f30074edf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x564f30077314 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x564f30077314 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x564f30078fd7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x564f30078cc3 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x564f300496d7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x564f300496d7 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x564f300795e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x564f300795e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x564f3007933e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x564f300779f6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x564f300790a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x564f2ffefcf5 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x564f2fff010b - core::panicking::assert_failed_inner::h0bba8b7c26ee4492
[INFO] [stdout]   20:     0x564f3001127e - core::panicking::assert_failed::hc841225b78f7a290
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:279:5
[INFO] [stdout]   21:     0x564f3000f52b - ngamahi_raft::tests::log_replicates::hc293697c68d3c777
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:240:9
[INFO] [stdout]   22:     0x564f3000e7d7 - ngamahi_raft::tests::log_replicates::{{closure}}::he43e50e032e80fe5
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:194:24
[INFO] [stdout]   23:     0x564f3000a1d6 - core::ops::function::FnOnce::call_once::h53d23cb0d6c8afaa
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x564f3004ed2f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x564f3004ed2f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x564f3004dd45 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x564f3004dd45 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x564f3004dd45 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x564f3004dd45 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x564f3004dd45 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x564f3004dd45 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x564f3004dd45 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x564f30016006 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x564f30016006 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x564f3001b0b7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x564f3001b0b7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x564f3001b0b7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x564f3001b0b7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x564f3001b0b7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x564f3001b0b7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x564f3001b0b7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x564f3007e075 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x564f3007e075 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x564f3007e075 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7f49e88b3ac3 - <unknown>
[INFO] [stdout]   46:     0x7f49e8944bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::election_succeeds stdout ----
[INFO] [stdout] thread 'tests::election_succeeds' panicked at src/lib.rs:149:17:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: RaftTerm(0)
[INFO] [stdout]  right: RaftTerm(1)
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x564f3007752c - std::backtrace_rs::backtrace::libunwind::trace::ha637c64ce894333a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x564f3007752c - std::backtrace_rs::backtrace::trace_unsynchronized::h47f62dea28e0c88d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x564f3007752c - std::sys_common::backtrace::_print_fmt::h9eef0abe20ede486
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x564f3007752c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hed7f999df88cc644
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x564f300a1e90 - core::fmt::rt::Argument::fmt::h1539a9308b8d058d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x564f300a1e90 - core::fmt::write::h3a39390d8560d9c9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x564f30074edf - std::io::Write::write_fmt::h040b369f3a0f9cbc
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/io/mod.rs:1762:15
[INFO] [stdout]    7:     0x564f30077314 - std::sys_common::backtrace::_print::h894006fb5c6f3d45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x564f30077314 - std::sys_common::backtrace::print::h23a2d212c6fff936
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x564f30078fd7 - std::panicking::default_hook::{{closure}}::h8a1d2ee00185001a
[INFO] [stdout]   10:     0x564f30078cc3 - std::panicking::default_hook::h6038f2eba384e475
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x564f300496d7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0ad024c9bdc6d768
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x564f300496d7 - test::test_main::{{closure}}::h7500b54257359db6
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x564f300795e8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1f8f335eaa9cfaee
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x564f300795e8 - std::panicking::rust_panic_with_hook::h2b5517d590cab22e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x564f3007933e - std::panicking::begin_panic_handler::{{closure}}::h233112c06e0ef43e
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x564f300779f6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e893f24d7ebbff8
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x564f300790a2 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x564f2ffefcf5 - core::panicking::panic_fmt::hbf0e066aabfa482c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x564f2fff010b - core::panicking::assert_failed_inner::h0bba8b7c26ee4492
[INFO] [stdout]   20:     0x564f300111fe - core::panicking::assert_failed::ha9c4353991c96859
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:279:5
[INFO] [stdout]   21:     0x564f3000d9a4 - ngamahi_raft::tests::election_succeeds::hb2ab8792e5c8639e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:149:17
[INFO] [stdout]   22:     0x564f3000d0e7 - ngamahi_raft::tests::election_succeeds::{{closure}}::h35cbaa1865a50121
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:120:27
[INFO] [stdout]   23:     0x564f3000a256 - core::ops::function::FnOnce::call_once::h9ea00f871ae8ab51
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x564f3004ed2f - core::ops::function::FnOnce::call_once::h2b5d431d5046312d
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x564f3004ed2f - test::__rust_begin_short_backtrace::h7714669af176e207
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:628:18
[INFO] [stdout]   26:     0x564f3004dd45 - test::run_test_in_process::{{closure}}::h85218797dcbcec12
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:60
[INFO] [stdout]   27:     0x564f3004dd45 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h76c106ea31c14d7b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x564f3004dd45 - std::panicking::try::do_call::h3bd5d0f6620ee946
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x564f3004dd45 - std::panicking::try::h232e535e4744fe31
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x564f3004dd45 - std::panic::catch_unwind::h3ce3bd6ca8dbac68
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x564f3004dd45 - test::run_test_in_process::hc97b257c9621286a
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:651:27
[INFO] [stdout]   32:     0x564f3004dd45 - test::run_test::{{closure}}::h2aa798823a438d38
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:574:43
[INFO] [stdout]   33:     0x564f30016006 - test::run_test::{{closure}}::h87d231c78fb59832
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/test/src/lib.rs:602:41
[INFO] [stdout]   34:     0x564f30016006 - std::sys_common::backtrace::__rust_begin_short_backtrace::he6df152596625789
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x564f3001b0b7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha94be15d1e0acf36
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x564f3001b0b7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9dc6bd6372f16606
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x564f3001b0b7 - std::panicking::try::do_call::h9057517f80303cd4
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x564f3001b0b7 - std::panicking::try::he3a30b11ee45340c
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x564f3001b0b7 - std::panic::catch_unwind::h410458cfd3528b8b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x564f3001b0b7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h72ac3bdb567b737b
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x564f3001b0b7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h38f34da3654a8344
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x564f3007e075 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc7eafaff61e32df9
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x564f3007e075 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6ba4a5de48dd2304
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x564f3007e075 - std::sys::unix::thread::Thread::new::thread_start::he469335aef763e45
[INFO] [stdout]                                at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7f49e88b3ac3 - <unknown>
[INFO] [stdout]   46:     0x7f49e8944bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::election_succeeds
[INFO] [stdout]     tests::log_replicates
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "76e7634dff0110d5ec0a8275ff730076e9c15bc0957f1f0756dd65bd040cb044", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "76e7634dff0110d5ec0a8275ff730076e9c15bc0957f1f0756dd65bd040cb044", kill_on_drop: false }`
[INFO] [stdout] 76e7634dff0110d5ec0a8275ff730076e9c15bc0957f1f0756dd65bd040cb044
[INFO] testing KonstmarNSK/ngamahi-raft against beta-2023-12-22 for beta-1.76-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/KonstmarNSK/ngamahi-raft on toolchain beta-2023-12-22
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "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-6-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" "+beta-2023-12-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7924bbc2aabe6444154a1b02347a4cb46d2aaf025f196a8f6c8f61134049bf7d
[INFO] running `Command { std: "docker" "start" "-a" "7924bbc2aabe6444154a1b02347a4cb46d2aaf025f196a8f6c8f61134049bf7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7924bbc2aabe6444154a1b02347a4cb46d2aaf025f196a8f6c8f61134049bf7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7924bbc2aabe6444154a1b02347a4cb46d2aaf025f196a8f6c8f61134049bf7d", kill_on_drop: false }`
[INFO] [stdout] 7924bbc2aabe6444154a1b02347a4cb46d2aaf025f196a8f6c8f61134049bf7d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2023-12-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e22dadce0d8f3471e456f399f767d23fa3baa2e1adf85c14a01a808a4d4c4067
[INFO] running `Command { std: "docker" "start" "-a" "e22dadce0d8f3471e456f399f767d23fa3baa2e1adf85c14a01a808a4d4c4067", kill_on_drop: false }`
[INFO] [stderr]    Compiling crossbeam-utils v0.8.11
[INFO] [stderr]    Compiling once_cell v1.14.0
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.10
[INFO] [stderr]    Compiling crossbeam-queue v0.3.6
[INFO] [stderr]    Compiling crossbeam-channel v0.5.6
[INFO] [stderr]    Compiling crossbeam-deque v0.8.2
[INFO] [stderr]    Compiling crossbeam v0.8.2
[INFO] [stderr]    Compiling 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 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: 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: 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: 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: 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: 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: variants `Input` and `Output` are never constructed
[INFO] [stdout]  --> src/message.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ------- variants in this enum
[INFO] [stdout] 5 |     Input(InputMessage<TTypes>),
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     Output(OutputMessage<TTypes>),
[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: variants `RaftRequest`, `RaftResponse`, `TimerMsg`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 11 |     RaftRequest(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 12 |     RaftResponse(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 13 |     TimerMsg(TimerMessage),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     // when client wants to add a new command in log it sends this message to one of raft nodes
[INFO] [stdout] 15 |     ClientMsg(ClientMessageReq<TTypes>),
[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: variants `RaftReq`, `RaftResp`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 20 |     RaftReq(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 21 |     RaftResp(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 |     ClientMsg(ClientMessageResp),
[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: variants `TriggerHeartbeat` and `TriggerElections` are never constructed
[INFO] [stdout]   --> src/message.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 41 |     TriggerHeartbeat,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 42 |     TriggerElections,
[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: variants `AppendEntries` and `ReqVote` are never constructed
[INFO] [stdout]   --> src/message.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] 47 |     AppendEntries { addressee: NodeId, req: AppendEntriesReq<TTypes> },
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ReqVote(RequestVoteReq),
[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: variants `AppendEntries` and `RequestVote` are never constructed
[INFO] [stdout]   --> src/message.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 53 |     AppendEntries(AppendEntriesResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 54 |     RequestVote(ReqVoteResp),
[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: 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: 63 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.88s
[INFO] running `Command { std: "docker" "inspect" "e22dadce0d8f3471e456f399f767d23fa3baa2e1adf85c14a01a808a4d4c4067", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e22dadce0d8f3471e456f399f767d23fa3baa2e1adf85c14a01a808a4d4c4067", kill_on_drop: false }`
[INFO] [stdout] e22dadce0d8f3471e456f399f767d23fa3baa2e1adf85c14a01a808a4d4c4067
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2023-12-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5b97343317f34a43000f8c2f84bb31ee569ca16cf536e083c5ebc2162feb78fd
[INFO] running `Command { std: "docker" "start" "-a" "5b97343317f34a43000f8c2f84bb31ee569ca16cf536e083c5ebc2162feb78fd", kill_on_drop: false }`
[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: 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: 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: 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: 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: 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: variants `Input` and `Output` are never constructed
[INFO] [stdout]  --> src/message.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ------- variants in this enum
[INFO] [stdout] 5 |     Input(InputMessage<TTypes>),
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     Output(OutputMessage<TTypes>),
[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: variants `RaftRequest`, `RaftResponse`, `TimerMsg`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 11 |     RaftRequest(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 12 |     RaftResponse(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 13 |     TimerMsg(TimerMessage),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     // when client wants to add a new command in log it sends this message to one of raft nodes
[INFO] [stdout] 15 |     ClientMsg(ClientMessageReq<TTypes>),
[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: variants `RaftReq`, `RaftResp`, and `ClientMsg` are never constructed
[INFO] [stdout]   --> src/message.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 20 |     RaftReq(RaftRpcReq<TTypes>),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 21 |     RaftResp(RaftRpcResp),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 |     ClientMsg(ClientMessageResp),
[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: variants `TriggerHeartbeat` and `TriggerElections` are never constructed
[INFO] [stdout]   --> src/message.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 41 |     TriggerHeartbeat,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 42 |     TriggerElections,
[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: variants `AppendEntries` and `ReqVote` are never constructed
[INFO] [stdout]   --> src/message.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] 47 |     AppendEntries { addressee: NodeId, req: AppendEntriesReq<TTypes> },
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ReqVote(RequestVoteReq),
[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: variants `AppendEntries` and `RequestVote` are never constructed
[INFO] [stdout]   --> src/message.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 53 |     AppendEntries(AppendEntriesResp),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 54 |     RequestVote(ReqVoteResp),
[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: 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] [stderr]    Compiling ngamahi-raft v0.1.0 (/opt/rustwide/workdir)
[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: 63 warnings emitted
[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: 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: 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: 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: variants `Input` and `Output` are never constructed
[INFO] [stdout]  --> src/message.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ------- variants in this enum
[INFO] [stdout] 5 |     Input(InputMessage<TTypes>),
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     Output(OutputMessage<TTypes>),
[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 test [unoptimized + debuginfo] target(s) in 0.44s
[INFO] running `Command { std: "docker" "inspect" "5b97343317f34a43000f8c2f84bb31ee569ca16cf536e083c5ebc2162feb78fd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5b97343317f34a43000f8c2f84bb31ee569ca16cf536e083c5ebc2162feb78fd", kill_on_drop: false }`
[INFO] [stdout] 5b97343317f34a43000f8c2f84bb31ee569ca16cf536e083c5ebc2162feb78fd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2023-12-22" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 3b224e562261777c850008b0147184e82bf176aac561c6e04adfdb001361aad9
[INFO] running `Command { std: "docker" "start" "-a" "3b224e562261777c850008b0147184e82bf176aac561c6e04adfdb001361aad9", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `Debug`, `Formatter`
[INFO] [stderr]  --> src/lib.rs:3:16
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::fmt::{Debug, Formatter};
[INFO] [stderr]   |                ^^^^^  ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `RaftTerm`
[INFO] [stderr]  --> src/msg_process/mod.rs:2:57
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stderr]   |                                                         ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::cmp::Ordering`
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::cmp::Ordering;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::fmt::format`
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::fmt::format;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Candidate`, `Leader`
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:7:20
[INFO] [stderr]   |
[INFO] [stderr] 7 | use crate::state::{Leader, Follower, Candidate};
[INFO] [stderr]   |                    ^^^^^^            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `RaftLog`
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:2:38
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::state::{Follower, NodeId, RaftLog, RaftTerm, State, Types};
[INFO] [stderr]   |                                      ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::message::OutputMessage::RaftResp`
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::message::OutputMessage::RaftResp;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::message::RaftRpcResp::RequestVote`
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::message::RaftRpcResp::RequestVote;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `LogEntry`, `NodeId`
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:4:49
[INFO] [stderr]   |
[INFO] [stderr] 4 | use crate::state::{Candidate, Follower, Leader, LogEntry, NodeId, State, Types};
[INFO] [stderr]   |                                                 ^^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `StateMachine`
[INFO] [stderr]  --> src/msg_process/mod.rs:2:74
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::state::{Candidate, Leader, LogEntry, NodeId, RaftTerm, State, StateMachine, Types};
[INFO] [stderr]   |                                                                          ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/state.rs:133:16
[INFO] [stderr]     |
[INFO] [stderr] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[INFO] [stderr]     |                ----^^^^^^
[INFO] [stderr]     |                |
[INFO] [stderr]     |                help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node_id`
[INFO] [stderr]    --> src/state.rs:141:12
[INFO] [stderr]     |
[INFO] [stderr] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `entries`
[INFO] [stderr]    --> src/state.rs:173:34
[INFO] [stderr]     |
[INFO] [stderr] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stderr]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:9:35
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stderr]   |                                   ----^^^^^
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:4:35
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stderr]   |                                   ----^^^^^
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:4:61
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stderr]   |                                                             ----^^^^^^^
[INFO] [stderr]   |                                                             |
[INFO] [stderr]   |                                                             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:6:35
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stderr]   |                                   ----^^^^^
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:91:9
[INFO] [stderr]    |
[INFO] [stderr] 91 |     let mut state = state.into_candidate();
[INFO] [stderr]    |         ----^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `addressee`
[INFO] [stderr]   --> src/msg_process/mod.rs:14:45
[INFO] [stderr]    |
[INFO] [stderr] 14 |                 RaftRpcReq::AppendEntries { addressee, req } => {
[INFO] [stderr]    |                                             ^^^^^^^^^ help: try ignoring the field: `addressee: _`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/msg_process/mod.rs:77:69
[INFO] [stderr]    |
[INFO] [stderr] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stderr]    |                                                                     ----^^^
[INFO] [stderr]    |                                                                     |
[INFO] [stderr]    |                                                                     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `id`
[INFO] [stderr]    --> src/msg_process/mod.rs:140:33
[INFO] [stderr]     |
[INFO] [stderr] 140 |                         .map(|(&id, &idx)| idx)
[INFO] [stderr]     |                                 ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/msg_process/mod.rs:174:5
[INFO] [stderr]     |
[INFO] [stderr] 174 |     mut state: State<TTypes>,
[INFO] [stderr]     |     ----^^^^^
[INFO] [stderr]     |     |
[INFO] [stderr]     |     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: method `process_message` is never used
[INFO] [stderr]   --> src/lib.rs:13:12
[INFO] [stderr]    |
[INFO] [stderr] 12 | impl<TTypes: Types> RaftNode<TTypes> {
[INFO] [stderr]    | ------------------------------------ method in this implementation
[INFO] [stderr] 13 |     pub fn process_message(&mut self, message: InputMessage<TTypes>) -> Vec<OutputMessage<TTypes>> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `apply_commands` is never used
[INFO] [stderr]   --> src/state.rs:52:12
[INFO] [stderr]    |
[INFO] [stderr] 51 | impl<TTypes: Types> PersistentCommonState<TTypes> {
[INFO] [stderr]    | ------------------------------------------------- method in this implementation
[INFO] [stderr] 52 |     pub fn apply_commands(&mut self, start: usize, end: usize) {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/state.rs:58:12
[INFO] [stderr]    |
[INFO] [stderr] 57 | impl<TTypes: Types> PersistentCommonState<TTypes> {
[INFO] [stderr]    | ------------------------------------------------- associated function in this implementation
[INFO] [stderr] 58 |     pub fn new(node_id: NodeId, mut others: HashSet<NodeId>, state_machine: TTypes::TStateMachine) -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `State` is never used
[INFO] [stderr]   --> src/state.rs:86:10
[INFO] [stderr]    |
[INFO] [stderr] 86 | pub enum State<TTypes: Types> {
[INFO] [stderr]    |          ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `InitParams` is never constructed
[INFO] [stderr]    --> src/state.rs:120:12
[INFO] [stderr]     |
[INFO] [stderr] 120 | pub struct InitParams<TTypes: Types> {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `RaftNode` is never constructed
[INFO] [stderr]    --> src/state.rs:128:12
[INFO] [stderr]     |
[INFO] [stderr] 128 | pub struct RaftNode<TTypes: Types> {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/state.rs:133:12
[INFO] [stderr]     |
[INFO] [stderr] 132 | impl<TTypes: Types> RaftNode<TTypes> {
[INFO] [stderr]     | ------------------------------------ associated function in this implementation
[INFO] [stderr] 133 |     pub fn new(mut params: InitParams<TTypes>) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `common`, `common_mut`, `apply_commands`, and `add_to_log` are never used
[INFO] [stderr]    --> src/state.rs:141:8
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl<TTypes: Types> State<TTypes> {
[INFO] [stderr]     | --------------------------------- associated items in this implementation
[INFO] [stderr] 141 |     fn new(node_id: NodeId, persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 145 |     pub fn common(&self) -> &CommonState<TTypes> {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 154 |     pub fn common_mut(&mut self) -> &mut CommonState<TTypes> {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 162 |     pub fn apply_commands(&mut self) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `into_candidate` are never used
[INFO] [stderr]    --> src/state.rs:179:8
[INFO] [stderr]     |
[INFO] [stderr] 178 | impl<TTypes: Types> Follower<TTypes> {
[INFO] [stderr]     | ------------------------------------ associated items in this implementation
[INFO] [stderr] 179 |     fn new(persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 184 |     pub fn into_candidate(self) -> Candidate<TTypes> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/state.rs:190:8
[INFO] [stderr]     |
[INFO] [stderr] 189 | impl<TTypes: Types> CommonState<TTypes> {
[INFO] [stderr]     | --------------------------------------- associated function in this implementation
[INFO] [stderr] 190 |     fn new(persisted_state: PersistentCommonState<TTypes>) -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/mod.rs:9:8
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn process_msg<TTypes: Types>(state: State<TTypes>, message: InputMessage<TTypes>)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `client_resp_false` is never used
[INFO] [stderr]   --> src/msg_process/mod.rs:68:4
[INFO] [stderr]    |
[INFO] [stderr] 68 | fn client_resp_false<TTypes: Types>(req_uid: u128, leader: Option<NodeId>) -> ClientMessageResp {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_client_request` is never used
[INFO] [stderr]   --> src/msg_process/mod.rs:77:4
[INFO] [stderr]    |
[INFO] [stderr] 77 | fn process_client_request<TTypes: Types>(mut state: Leader<TTypes>, mut req: ClientMessageReq<TTypes>)
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_append_entries_response_common` is never used
[INFO] [stderr]   --> src/msg_process/mod.rs:96:4
[INFO] [stderr]    |
[INFO] [stderr] 96 | fn process_append_entries_response_common<TTypes: Types>(
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_append_entries_response` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:114:4
[INFO] [stderr]     |
[INFO] [stderr] 114 | fn process_append_entries_response<TTypes: Types>(
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_request_vote_response_common` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:173:4
[INFO] [stderr]     |
[INFO] [stderr] 173 | fn process_request_vote_response_common<TTypes: Types>(
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_request_vote_response` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:190:4
[INFO] [stderr]     |
[INFO] [stderr] 190 | fn process_request_vote_response<TTypes: Types>(
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `heartbeat_msg` is never used
[INFO] [stderr]    --> src/msg_process/mod.rs:206:8
[INFO] [stderr]     |
[INFO] [stderr] 206 | pub fn heartbeat_msg<TTypes: Types>(state: &Leader<TTypes>) -> AppendEntriesReq<TTypes> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/process_append_entries.rs:9:8
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: AppendEntriesReq<TTypes>)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_false` is never used
[INFO] [stderr]    --> src/msg_process/process_append_entries.rs:133:4
[INFO] [stderr]     |
[INFO] [stderr] 133 | fn reply_false(curr_term: RaftTerm, appended: usize, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]     |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_true` is never used
[INFO] [stderr]    --> src/msg_process/process_append_entries.rs:137:4
[INFO] [stderr]     |
[INFO] [stderr] 137 | fn reply_true(curr_term: RaftTerm, appended: usize, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]     |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/process_request_vote.rs:4:8
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, mut message: RequestVoteReq)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_false` is never used
[INFO] [stderr]   --> src/msg_process/process_request_vote.rs:59:4
[INFO] [stderr]    |
[INFO] [stderr] 59 | fn reply_false(curr_term: RaftTerm, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]    |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `reply_true` is never used
[INFO] [stderr]   --> src/msg_process/process_request_vote.rs:63:4
[INFO] [stderr]    |
[INFO] [stderr] 63 | fn reply_true(curr_term: RaftTerm, sender: NodeId) -> RaftRpcResp {
[INFO] [stderr]    |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `is_log_up_to_date` is never used
[INFO] [stderr]   --> src/msg_process/process_request_vote.rs:68:4
[INFO] [stderr]    |
[INFO] [stderr] 68 | fn is_log_up_to_date<TTypes: Types>(state: &Follower<TTypes>, req: &RequestVoteReq) -> bool {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_msg` is never used
[INFO] [stderr]  --> src/msg_process/process_timer_events.rs:6:8
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub fn process_msg<TTypes: Types>(mut state: State<TTypes>, message: TimerMessage)
[INFO] [stderr]   |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_heartbeat_trigger` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub fn process_heartbeat_trigger<TTypes: Types>(state: &Leader<TTypes>) -> Vec<OutputMessage<TTypes>> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `FollowerOrCandidate` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:74:6
[INFO] [stderr]    |
[INFO] [stderr] 74 | enum FollowerOrCandidate<TTypes: Types> {
[INFO] [stderr]    |      ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `process_election_trigger` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:79:4
[INFO] [stderr]    |
[INFO] [stderr] 79 | fn process_election_trigger<TTypes: Types>(state: FollowerOrCandidate<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `follower_elect` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:89:4
[INFO] [stderr]    |
[INFO] [stderr] 89 | fn follower_elect<TTypes: Types>(state: Follower<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `start_election` is never used
[INFO] [stderr]   --> src/msg_process/process_timer_events.rs:97:4
[INFO] [stderr]    |
[INFO] [stderr] 97 | fn start_election<TTypes: Types>(mut state: Candidate<TTypes>) -> (State<TTypes>, Vec<OutputMessage<TTypes>>) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Input` and `Output` are never constructed
[INFO] [stderr]  --> src/message.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub enum Message<TTypes: Types> {
[INFO] [stderr]   |          ------- variants in this enum
[INFO] [stderr] 5 |     Input(InputMessage<TTypes>),
[INFO] [stderr]   |     ^^^^^
[INFO] [stderr] 6 |     Output(OutputMessage<TTypes>),
[INFO] [stderr]   |     ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `RaftRequest`, `RaftResponse`, `TimerMsg`, and `ClientMsg` are never constructed
[INFO] [stderr]   --> src/message.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stderr]    |          ------------ variants in this enum
[INFO] [stderr] 11 |     RaftRequest(RaftRpcReq<TTypes>),
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 12 |     RaftResponse(RaftRpcResp),
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 13 |     TimerMsg(TimerMessage),
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] 14 |     // when client wants to add a new command in log it sends this message to one of raft nodes
[INFO] [stderr] 15 |     ClientMsg(ClientMessageReq<TTypes>),
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `InputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `RaftReq`, `RaftResp`, and `ClientMsg` are never constructed
[INFO] [stderr]   --> src/message.rs:20:5
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stderr]    |          ------------- variants in this enum
[INFO] [stderr] 20 |     RaftReq(RaftRpcReq<TTypes>),
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr] 21 |     RaftResp(RaftRpcResp),
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] 22 |     ClientMsg(ClientMessageResp),
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `OutputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `TriggerHeartbeat` and `TriggerElections` are never constructed
[INFO] [stderr]   --> src/message.rs:41:5
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub enum TimerMessage {
[INFO] [stderr]    |          ------------ variants in this enum
[INFO] [stderr] 41 |     TriggerHeartbeat,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 42 |     TriggerElections,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `AppendEntries` and `ReqVote` are never constructed
[INFO] [stderr]   --> src/message.rs:47:5
[INFO] [stderr]    |
[INFO] [stderr] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stderr]    |          ---------- variants in this enum
[INFO] [stderr] 47 |     AppendEntries { addressee: NodeId, req: AppendEntriesReq<TTypes> },
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 48 |     ReqVote(RequestVoteReq),
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RaftRpcReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variants `AppendEntries` and `RequestVote` are never constructed
[INFO] [stderr]   --> src/message.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub enum RaftRpcResp {
[INFO] [stderr]    |          ----------- variants in this enum
[INFO] [stderr] 53 |     AppendEntries(AppendEntriesResp),
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 54 |     RequestVote(ReqVoteResp),
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RaftRpcResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stderr]   --> src/state.rs:37:26
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |                          ^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: use fully disambiguated paths (i.e., `<T as Trait>::Assoc`) to refer to associated types in type aliases
[INFO] [stderr]   --> src/state.rs:37:48
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |                                                ^^^^^^^^^^^^
[INFO] [stderr]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stderr] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stderr]    |
[INFO] [stderr] 37 - pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr] 37 + pub type RaftLog<TTypes> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused arithmetic operation that must be used
[INFO] [stderr]    --> src/msg_process/mod.rs:122:46
[INFO] [stderr]     |
[INFO] [stderr] 122 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 122 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused arithmetic operation that must be used
[INFO] [stderr]    --> src/msg_process/mod.rs:125:46
[INFO] [stderr]     |
[INFO] [stderr] 125 |                 .and_modify(|&mut old_idx| { old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stderr]     |
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 125 |                 .and_modify(|&mut old_idx| { let _ = old_idx + resp.appended_entries_count; });
[INFO] [stderr]     |                                              +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused arithmetic operation that must be used
[INFO] [stderr]    --> src/msg_process/mod.rs:166:46
[INFO] [stderr]     |
[INFO] [stderr] 166 |                 .and_modify(|&mut old_idx| { old_idx - 1; });
[INFO] [stderr]     |                                              ^^^^^^^^^^^ the arithmetic operation produces a value
[INFO] [stderr]     |
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 166 |                 .and_modify(|&mut old_idx| { let _ = old_idx - 1; });
[INFO] [stderr]     |                                              +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/lib.rs:73:33
[INFO] [stderr]    |
[INFO] [stderr] 73 |         fn params(node: NodeId, mut others: Vec<NodeId>) -> InitParams<TestTypes> {
[INFO] [stderr]    |                                 ----^^^^^^
[INFO] [stderr]    |                                 |
[INFO] [stderr]    |                                 help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node2`
[INFO] [stderr]   --> src/lib.rs:90:29
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_node2`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node3`
[INFO] [stderr]   --> src/lib.rs:90:40
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                                        ^^^^^ help: if this is intentional, prefix it with an underscore: `_node3`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/lib.rs:90:25
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                         ----^^^^^
[INFO] [stderr]    |                         |
[INFO] [stderr]    |                         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/lib.rs:90:36
[INFO] [stderr]    |
[INFO] [stderr] 90 |         let (mut node1, mut node2, mut node3) = test_nodes();
[INFO] [stderr]    |                                    ----^^^^^
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `node3_response_in`
[INFO] [stderr]    --> src/lib.rs:172:14
[INFO] [stderr]     |
[INFO] [stderr] 172 |         let (node3_response_in, node2_response_in) : (In<TestTypes>, In<TestTypes>) =
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node3_response_in`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `leader`
[INFO] [stderr]    --> src/lib.rs:187:27
[INFO] [stderr]     |
[INFO] [stderr] 187 |             State::Leader(leader) => (),
[INFO] [stderr]     |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader`
[INFO] [stderr] 
[INFO] [stderr] warning: method `add_to_log` is never used
[INFO] [stderr]    --> src/state.rs:173:12
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl<TTypes: Types> State<TTypes> {
[INFO] [stderr]     | --------------------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 173 |     pub fn add_to_log(&mut self, entries: &[LogEntry<TTypes::TCmd>]) {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variant `TriggerHeartbeat` is never constructed
[INFO] [stderr]   --> src/message.rs:41:5
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub enum TimerMessage {
[INFO] [stderr]    |          ------------ variant in this enum
[INFO] [stderr] 41 |     TriggerHeartbeat,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `ngamahi-raft` (lib) generated 63 warnings (run `cargo fix --lib -p ngamahi-raft` to apply 22 suggestions)
[INFO] [stderr] warning: `ngamahi-raft` (lib test) generated 36 warnings (27 duplicates) (run `cargo fix --lib -p ngamahi-raft --tests` to apply 7 suggestions)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ngamahi_raft-b6e862cda1036d1d)
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test tests::it_works ... ok
[INFO] [stdout] test tests::election_triggers ... ok
[INFO] [stdout] test tests::election_succeeds ... FAILED
[INFO] [stdout] test tests::log_replicates ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::election_succeeds stdout ----
[INFO] [stdout] thread 'tests::election_succeeds' panicked at src/lib.rs:149:17:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: RaftTerm(0)
[INFO] [stdout]  right: RaftTerm(1)
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x558a54aa4f76 - std::backtrace_rs::backtrace::libunwind::trace::h261606ad26a499c1
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x558a54aa4f76 - std::backtrace_rs::backtrace::trace_unsynchronized::hd183f0625477fb28
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x558a54aa4f76 - std::sys_common::backtrace::_print_fmt::hd7f8fef21b4eda67
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:68:5
[INFO] [stdout]    3:     0x558a54aa4f76 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h623d9b51f2f453f1
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x558a54acebe0 - core::fmt::rt::Argument::fmt::h9f417ac76a86f368
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x558a54acebe0 - core::fmt::write::hc9b6faf4ac2aeff7
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x558a54aa29df - std::io::Write::write_fmt::he04625a3a989fec3
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/io/mod.rs:1810:15
[INFO] [stdout]    7:     0x558a54aa4d54 - std::sys_common::backtrace::_print::hd5d66399c7df88a2
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x558a54aa4d54 - std::sys_common::backtrace::print::he81ed2da642d37e5
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x558a54aa6ac7 - std::panicking::default_hook::{{closure}}::h85773f4fa117163d
[INFO] [stdout]   10:     0x558a54aa67ad - std::panicking::default_hook::h6a1694a91d09b278
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x558a54a76987 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h616ac37fa3cd6c8f
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2029:9
[INFO] [stdout]   12:     0x558a54a76987 - test::test_main::{{closure}}::h00d84697cefdcbb6
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x558a54aa70e6 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hcb3fe3b9bb537ba8
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2029:9
[INFO] [stdout]   14:     0x558a54aa70e6 - std::panicking::rust_panic_with_hook::h0a7ad96e90f7145b
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x558a54aa6e32 - std::panicking::begin_panic_handler::{{closure}}::h7919090525c6485e
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x558a54aa5476 - std::sys_common::backtrace::__rust_end_short_backtrace::hf3289479464f7dfe
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:171:18
[INFO] [stdout]   17:     0x558a54aa6b90 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x558a54a1bcd5 - core::panicking::panic_fmt::hcc9f77c5c132af55
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x558a54a1c10b - core::panicking::assert_failed_inner::h9f13e27dd63c3a08
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:342:17
[INFO] [stdout]   20:     0x558a54a2a37e - core::panicking::assert_failed::h62f68d5c19f473f6
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:297:5
[INFO] [stdout]   21:     0x558a54a2e7ac - ngamahi_raft::tests::election_succeeds::h718202266db55012
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:149:17
[INFO] [stdout]   22:     0x558a54a2dec7 - ngamahi_raft::tests::election_succeeds::{{closure}}::hec3ebb4a32c7fb62
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:120:27
[INFO] [stdout]   23:     0x558a54a31bb6 - core::ops::function::FnOnce::call_once::h89c6bd6739a8141a
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x558a54a7c25f - core::ops::function::FnOnce::call_once::hd64d26f405258157
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x558a54a7c25f - test::__rust_begin_short_backtrace::he21b0b7a6d731bf9
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:627:18
[INFO] [stdout]   26:     0x558a54a7afe1 - test::run_test_in_process::{{closure}}::hf5c73986d7bdfde2
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:650:60
[INFO] [stdout]   27:     0x558a54a7afe1 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h330011ad032aadc0
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x558a54a7afe1 - std::panicking::try::do_call::he61b0a958b795a41
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x558a54a7afe1 - std::panicking::try::h7309da130f906eb7
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x558a54a7afe1 - std::panic::catch_unwind::hc5c3a06fdaf0a92a
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x558a54a7afe1 - test::run_test_in_process::h7e7b7c71c3324e0f
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:650:27
[INFO] [stdout]   32:     0x558a54a7afe1 - test::run_test::{{closure}}::h1f509f28f5cf20b1
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:573:43
[INFO] [stdout]   33:     0x558a54a42316 - test::run_test::{{closure}}::h1754218abf443f6d
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:601:41
[INFO] [stdout]   34:     0x558a54a42316 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2ee174b9d5954948
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:155:18
[INFO] [stdout]   35:     0x558a54a47377 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hf60bee9c1a17ef09
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x558a54a47377 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h33d0dddec5216160
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x558a54a47377 - std::panicking::try::do_call::h144b3048b546f835
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x558a54a47377 - std::panicking::try::h978244d04646189f
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x558a54a47377 - std::panic::catch_unwind::hdf436369d188fe86
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x558a54a47377 - std::thread::Builder::spawn_unchecked_::{{closure}}::h87329cbdd33c79ec
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x558a54a47377 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h401abbe67897d450
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x558a54aabb95 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5d7c8f150ab9c84c
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2015:9
[INFO] [stdout]   43:     0x558a54aabb95 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h570d5b005c242c15
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2015:9
[INFO] [stdout]   44:     0x558a54aabb95 - std::sys::unix::thread::Thread::new::thread_start::h36b0a20c0b2361ad
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7f709e9f5ac3 - <unknown>
[INFO] [stdout]   46:     0x7f709ea86bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::log_replicates stdout ----
[INFO] [stdout] thread 'tests::log_replicates' panicked at src/lib.rs:240:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: 1
[INFO] [stdout]  right: 2
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x558a54aa4f76 - std::backtrace_rs::backtrace::libunwind::trace::h261606ad26a499c1
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
[INFO] [stdout]    1:     0x558a54aa4f76 - std::backtrace_rs::backtrace::trace_unsynchronized::hd183f0625477fb28
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x558a54aa4f76 - std::sys_common::backtrace::_print_fmt::hd7f8fef21b4eda67
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:68:5
[INFO] [stdout]    3:     0x558a54aa4f76 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h623d9b51f2f453f1
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x558a54acebe0 - core::fmt::rt::Argument::fmt::h9f417ac76a86f368
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/fmt/rt.rs:142:9
[INFO] [stdout]    5:     0x558a54acebe0 - core::fmt::write::hc9b6faf4ac2aeff7
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/fmt/mod.rs:1120:17
[INFO] [stdout]    6:     0x558a54aa29df - std::io::Write::write_fmt::he04625a3a989fec3
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/io/mod.rs:1810:15
[INFO] [stdout]    7:     0x558a54aa4d54 - std::sys_common::backtrace::_print::hd5d66399c7df88a2
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x558a54aa4d54 - std::sys_common::backtrace::print::he81ed2da642d37e5
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x558a54aa6ac7 - std::panicking::default_hook::{{closure}}::h85773f4fa117163d
[INFO] [stdout]   10:     0x558a54aa67ad - std::panicking::default_hook::h6a1694a91d09b278
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x558a54a76987 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h616ac37fa3cd6c8f
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2029:9
[INFO] [stdout]   12:     0x558a54a76987 - test::test_main::{{closure}}::h00d84697cefdcbb6
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:138:21
[INFO] [stdout]   13:     0x558a54aa70e6 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hcb3fe3b9bb537ba8
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2029:9
[INFO] [stdout]   14:     0x558a54aa70e6 - std::panicking::rust_panic_with_hook::h0a7ad96e90f7145b
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:783:13
[INFO] [stdout]   15:     0x558a54aa6e32 - std::panicking::begin_panic_handler::{{closure}}::h7919090525c6485e
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:657:13
[INFO] [stdout]   16:     0x558a54aa5476 - std::sys_common::backtrace::__rust_end_short_backtrace::hf3289479464f7dfe
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:171:18
[INFO] [stdout]   17:     0x558a54aa6b90 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:645:5
[INFO] [stdout]   18:     0x558a54a1bcd5 - core::panicking::panic_fmt::hcc9f77c5c132af55
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x558a54a1c10b - core::panicking::assert_failed_inner::h9f13e27dd63c3a08
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:342:17
[INFO] [stdout]   20:     0x558a54a2a3fe - core::panicking::assert_failed::hdc8cb2fe223149d6
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:297:5
[INFO] [stdout]   21:     0x558a54a303a7 - ngamahi_raft::tests::log_replicates::h96c8f742dedbec4b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:240:9
[INFO] [stdout]   22:     0x558a54a2f617 - ngamahi_raft::tests::log_replicates::{{closure}}::h5d80ca0d0b759915
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:194:24
[INFO] [stdout]   23:     0x558a54a31cc6 - core::ops::function::FnOnce::call_once::hc6082831673bbeba
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x558a54a7c25f - core::ops::function::FnOnce::call_once::hd64d26f405258157
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x558a54a7c25f - test::__rust_begin_short_backtrace::he21b0b7a6d731bf9
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:627:18
[INFO] [stdout]   26:     0x558a54a7afe1 - test::run_test_in_process::{{closure}}::hf5c73986d7bdfde2
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:650:60
[INFO] [stdout]   27:     0x558a54a7afe1 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h330011ad032aadc0
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   28:     0x558a54a7afe1 - std::panicking::try::do_call::he61b0a958b795a41
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:552:40
[INFO] [stdout]   29:     0x558a54a7afe1 - std::panicking::try::h7309da130f906eb7
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:516:19
[INFO] [stdout]   30:     0x558a54a7afe1 - std::panic::catch_unwind::hc5c3a06fdaf0a92a
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x558a54a7afe1 - test::run_test_in_process::h7e7b7c71c3324e0f
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:650:27
[INFO] [stdout]   32:     0x558a54a7afe1 - test::run_test::{{closure}}::h1f509f28f5cf20b1
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:573:43
[INFO] [stdout]   33:     0x558a54a42316 - test::run_test::{{closure}}::h1754218abf443f6d
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/test/src/lib.rs:601:41
[INFO] [stdout]   34:     0x558a54a42316 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2ee174b9d5954948
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys_common/backtrace.rs:155:18
[INFO] [stdout]   35:     0x558a54a47377 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hf60bee9c1a17ef09
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x558a54a47377 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h33d0dddec5216160
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   37:     0x558a54a47377 - std::panicking::try::do_call::h144b3048b546f835
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:552:40
[INFO] [stdout]   38:     0x558a54a47377 - std::panicking::try::h978244d04646189f
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:516:19
[INFO] [stdout]   39:     0x558a54a47377 - std::panic::catch_unwind::hdf436369d188fe86
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x558a54a47377 - std::thread::Builder::spawn_unchecked_::{{closure}}::h87329cbdd33c79ec
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x558a54a47377 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h401abbe67897d450
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x558a54aabb95 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5d7c8f150ab9c84c
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2015:9
[INFO] [stdout]   43:     0x558a54aabb95 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h570d5b005c242c15
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/alloc/src/boxed.rs:2015:9
[INFO] [stdout]   44:     0x558a54aabb95 - std::sys::unix::thread::Thread::new::thread_start::h36b0a20c0b2361ad
[INFO] [stdout]                                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7f709e9f5ac3 - <unknown>
[INFO] [stdout]   46:     0x7f709ea86bf4 - __clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::election_succeeds
[INFO] [stdout]     tests::log_replicates
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "3b224e562261777c850008b0147184e82bf176aac561c6e04adfdb001361aad9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3b224e562261777c850008b0147184e82bf176aac561c6e04adfdb001361aad9", kill_on_drop: false }`
[INFO] [stdout] 3b224e562261777c850008b0147184e82bf176aac561c6e04adfdb001361aad9
