[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.73.0 for beta-1.74-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/KonstmarNSK/ngamahi-raft on toolchain 1.73.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.73.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-4-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.73.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded crossbeam-epoch v0.9.10
[INFO] [stderr]   Downloaded crossbeam v0.8.2
[INFO] [stderr]   Downloaded crossbeam-queue v0.3.6
[INFO] [stderr]   Downloaded once_cell v1.14.0
[INFO] [stderr]   Downloaded crossbeam-utils v0.8.11
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8841df949c5ee5280608876bc6426f33eee6bb7269ed1c071a60212f4e9b42d1
[INFO] running `Command { std: "docker" "start" "-a" "8841df949c5ee5280608876bc6426f33eee6bb7269ed1c071a60212f4e9b42d1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8841df949c5ee5280608876bc6426f33eee6bb7269ed1c071a60212f4e9b42d1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8841df949c5ee5280608876bc6426f33eee6bb7269ed1c071a60212f4e9b42d1", kill_on_drop: false }`
[INFO] [stdout] 8841df949c5ee5280608876bc6426f33eee6bb7269ed1c071a60212f4e9b42d1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3106205f4a74c460fe68826f8eb68275c6b7d82679a6ef6c4a8d5bfd61e6a849
[INFO] running `Command { std: "docker" "start" "-a" "3106205f4a74c460fe68826f8eb68275c6b7d82679a6ef6c4a8d5bfd61e6a849", kill_on_drop: false }`
[INFO] [stderr]    Compiling crossbeam-utils v0.8.11
[INFO] [stderr]    Compiling once_cell v1.14.0
[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 2.30s
[INFO] running `Command { std: "docker" "inspect" "3106205f4a74c460fe68826f8eb68275c6b7d82679a6ef6c4a8d5bfd61e6a849", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3106205f4a74c460fe68826f8eb68275c6b7d82679a6ef6c4a8d5bfd61e6a849", kill_on_drop: false }`
[INFO] [stdout] 3106205f4a74c460fe68826f8eb68275c6b7d82679a6ef6c4a8d5bfd61e6a849
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e88b4cf771ca2406f91b94edd1968711ecbab3ac80e80fc66c48607235edf894
[INFO] running `Command { std: "docker" "start" "-a" "e88b4cf771ca2406f91b94edd1968711ecbab3ac80e80fc66c48607235edf894", 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] [stderr]    Compiling ngamahi-raft v0.1.0 (/opt/rustwide/workdir)
[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] [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] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 1.16s
[INFO] [stdout] warning: 36 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "e88b4cf771ca2406f91b94edd1968711ecbab3ac80e80fc66c48607235edf894", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e88b4cf771ca2406f91b94edd1968711ecbab3ac80e80fc66c48607235edf894", kill_on_drop: false }`
[INFO] [stdout] e88b4cf771ca2406f91b94edd1968711ecbab3ac80e80fc66c48607235edf894
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 0368b44fd996bb880f3de9849ecc5a3712eb7642a752f6291daa60dd5b625eaf
[INFO] running `Command { std: "docker" "start" "-a" "0368b44fd996bb880f3de9849ecc5a3712eb7642a752f6291daa60dd5b625eaf", 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.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ngamahi_raft-314eed2f8e8a00b6)
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test tests::election_triggers ... ok
[INFO] [stdout] test tests::it_works ... 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:     0x56285ef8db7c - std::backtrace_rs::backtrace::libunwind::trace::he43a6a3949163f8c
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x56285ef8db7c - std::backtrace_rs::backtrace::trace_unsynchronized::h50db52ca99f692e7
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x56285ef8db7c - std::sys_common::backtrace::_print_fmt::hd37d595f2ceb2d3c
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x56285ef8db7c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h678bbcf9da6d7d75
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x56285efb869c - core::fmt::rt::Argument::fmt::h3a159adc080a6fc9
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x56285efb869c - core::fmt::write::hb8eaf5a8e45a738e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/fmt/mod.rs:1094:21
[INFO] [stdout]    6:     0x56285ef8ae1e - std::io::Write::write_fmt::hd8d55fcb462ed7e9
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/io/mod.rs:1714:15
[INFO] [stdout]    7:     0x56285ef8d964 - std::sys_common::backtrace::_print::hcd4834796ee88ad2
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x56285ef8d964 - std::sys_common::backtrace::print::h1360e9450e4f922a
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x56285ef8f763 - std::panicking::default_hook::{{closure}}::h2609fa95cd5ab1f4
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:270:22
[INFO] [stdout]   10:     0x56285ef8f3ff - std::panicking::default_hook::h6d75f5747cab6e8d
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:287:9
[INFO] [stdout]   11:     0x56285ef5eadc - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h22dfbb3222a0c5d6
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x56285ef5eadc - test::test_main::{{closure}}::hf2fa6099cd421171
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x56285ef8fe5e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h05249de742e1768e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x56285ef8fe5e - std::panicking::rust_panic_with_hook::h57e78470c47c84de
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:711:13
[INFO] [stdout]   15:     0x56285ef8fbe7 - std::panicking::begin_panic_handler::{{closure}}::h3dfd2453cf356ecb
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:599:13
[INFO] [stdout]   16:     0x56285ef8e0a6 - std::sys_common::backtrace::__rust_end_short_backtrace::hdb177d43678e4d7e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x56285ef8f932 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:595:5
[INFO] [stdout]   18:     0x56285ef05453 - core::panicking::panic_fmt::hd1e971d8d7c78e0e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:67:14
[INFO] [stdout]   19:     0x56285ef05885 - core::panicking::assert_failed_inner::h7e09b6414eab0f29
[INFO] [stdout]   20:     0x56285ef178be - core::panicking::assert_failed::h242505e0b7e5a1c7
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:229:5
[INFO] [stdout]   21:     0x56285ef25a19 - ngamahi_raft::tests::election_succeeds::he74c286e93b6bb07
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:149:17
[INFO] [stdout]   22:     0x56285ef250d7 - ngamahi_raft::tests::election_succeeds::{{closure}}::h4640f00fb86e2afe
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:120:28
[INFO] [stdout]   23:     0x56285ef21d36 - core::ops::function::FnOnce::call_once::hb17fe9d1bc73b28a
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x56285ef63b6f - core::ops::function::FnOnce::call_once::he2e7294d6e0366fc
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x56285ef63b6f - test::__rust_begin_short_backtrace::h13549e99f98e3254
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:626:18
[INFO] [stdout]   26:     0x56285ef62bfe - test::run_test_in_process::{{closure}}::h9c2c3d1665ffe092
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:649:60
[INFO] [stdout]   27:     0x56285ef62bfe - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hec1896877d3d50ca
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   28:     0x56285ef62bfe - std::panicking::try::do_call::hc7aed7412be3e0dc
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:502:40
[INFO] [stdout]   29:     0x56285ef62bfe - std::panicking::try::h011fbc524cd7e3ba
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:466:19
[INFO] [stdout]   30:     0x56285ef62bfe - std::panic::catch_unwind::hff05d0891bc5bb82
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x56285ef62bfe - test::run_test_in_process::h87f0657a1c0aaab4
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:649:27
[INFO] [stdout]   32:     0x56285ef62bfe - test::run_test::{{closure}}::hc4dd34f501797e16
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:572:43
[INFO] [stdout]   33:     0x56285ef2a553 - test::run_test::{{closure}}::h1201d47565297bcc
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:600:41
[INFO] [stdout]   34:     0x56285ef2a553 - std::sys_common::backtrace::__rust_begin_short_backtrace::h6de9d5784bb58c62
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x56285ef3016b - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h0a3dd4432bd9a04d
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x56285ef3016b - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h05af39418a9230d5
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   37:     0x56285ef3016b - std::panicking::try::do_call::h6f430b03009d827b
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:502:40
[INFO] [stdout]   38:     0x56285ef3016b - std::panicking::try::h3275ae04389ad69a
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:466:19
[INFO] [stdout]   39:     0x56285ef3016b - std::panic::catch_unwind::h77f388467ce5722e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x56285ef3016b - std::thread::Builder::spawn_unchecked_::{{closure}}::h308964f897d35a6e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x56285ef3016b - core::ops::function::FnOnce::call_once{{vtable.shim}}::h98d901cf00b6c865
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x56285ef94535 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::haadd4e5af2ab0d62
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x56285ef94535 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he4ba1fb09c16d807
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x56285ef94535 - std::sys::unix::thread::Thread::new::thread_start::he524ecf4b47bee95
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fed29497ac3 - <unknown>
[INFO] [stdout]   46:     0x7fed29528bf4 - __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:     0x56285ef8db7c - std::backtrace_rs::backtrace::libunwind::trace::he43a6a3949163f8c
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x56285ef8db7c - std::backtrace_rs::backtrace::trace_unsynchronized::h50db52ca99f692e7
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x56285ef8db7c - std::sys_common::backtrace::_print_fmt::hd37d595f2ceb2d3c
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x56285ef8db7c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h678bbcf9da6d7d75
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x56285efb869c - core::fmt::rt::Argument::fmt::h3a159adc080a6fc9
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x56285efb869c - core::fmt::write::hb8eaf5a8e45a738e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/fmt/mod.rs:1094:21
[INFO] [stdout]    6:     0x56285ef8ae1e - std::io::Write::write_fmt::hd8d55fcb462ed7e9
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/io/mod.rs:1714:15
[INFO] [stdout]    7:     0x56285ef8d964 - std::sys_common::backtrace::_print::hcd4834796ee88ad2
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x56285ef8d964 - std::sys_common::backtrace::print::h1360e9450e4f922a
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x56285ef8f763 - std::panicking::default_hook::{{closure}}::h2609fa95cd5ab1f4
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:270:22
[INFO] [stdout]   10:     0x56285ef8f3ff - std::panicking::default_hook::h6d75f5747cab6e8d
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:287:9
[INFO] [stdout]   11:     0x56285ef5eadc - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h22dfbb3222a0c5d6
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x56285ef5eadc - test::test_main::{{closure}}::hf2fa6099cd421171
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x56285ef8fe5e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h05249de742e1768e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x56285ef8fe5e - std::panicking::rust_panic_with_hook::h57e78470c47c84de
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:711:13
[INFO] [stdout]   15:     0x56285ef8fbe7 - std::panicking::begin_panic_handler::{{closure}}::h3dfd2453cf356ecb
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:599:13
[INFO] [stdout]   16:     0x56285ef8e0a6 - std::sys_common::backtrace::__rust_end_short_backtrace::hdb177d43678e4d7e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x56285ef8f932 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:595:5
[INFO] [stdout]   18:     0x56285ef05453 - core::panicking::panic_fmt::hd1e971d8d7c78e0e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:67:14
[INFO] [stdout]   19:     0x56285ef05885 - core::panicking::assert_failed_inner::h7e09b6414eab0f29
[INFO] [stdout]   20:     0x56285ef1787e - core::panicking::assert_failed::h0989509e59d29691
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:229:5
[INFO] [stdout]   21:     0x56285ef2739f - ngamahi_raft::tests::log_replicates::hab02d2ae1806a57a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:240:9
[INFO] [stdout]   22:     0x56285ef26787 - ngamahi_raft::tests::log_replicates::{{closure}}::h2c44c238e470818b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:194:25
[INFO] [stdout]   23:     0x56285ef21bc6 - core::ops::function::FnOnce::call_once::h5bb2ddaf5b64187e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x56285ef63b6f - core::ops::function::FnOnce::call_once::he2e7294d6e0366fc
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x56285ef63b6f - test::__rust_begin_short_backtrace::h13549e99f98e3254
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:626:18
[INFO] [stdout]   26:     0x56285ef62bfe - test::run_test_in_process::{{closure}}::h9c2c3d1665ffe092
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:649:60
[INFO] [stdout]   27:     0x56285ef62bfe - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hec1896877d3d50ca
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   28:     0x56285ef62bfe - std::panicking::try::do_call::hc7aed7412be3e0dc
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:502:40
[INFO] [stdout]   29:     0x56285ef62bfe - std::panicking::try::h011fbc524cd7e3ba
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:466:19
[INFO] [stdout]   30:     0x56285ef62bfe - std::panic::catch_unwind::hff05d0891bc5bb82
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panic.rs:142:14
[INFO] [stdout]   31:     0x56285ef62bfe - test::run_test_in_process::h87f0657a1c0aaab4
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:649:27
[INFO] [stdout]   32:     0x56285ef62bfe - test::run_test::{{closure}}::hc4dd34f501797e16
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:572:43
[INFO] [stdout]   33:     0x56285ef2a553 - test::run_test::{{closure}}::h1201d47565297bcc
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/test/src/lib.rs:600:41
[INFO] [stdout]   34:     0x56285ef2a553 - std::sys_common::backtrace::__rust_begin_short_backtrace::h6de9d5784bb58c62
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   35:     0x56285ef3016b - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h0a3dd4432bd9a04d
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   36:     0x56285ef3016b - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h05af39418a9230d5
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   37:     0x56285ef3016b - std::panicking::try::do_call::h6f430b03009d827b
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:502:40
[INFO] [stdout]   38:     0x56285ef3016b - std::panicking::try::h3275ae04389ad69a
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:466:19
[INFO] [stdout]   39:     0x56285ef3016b - std::panic::catch_unwind::h77f388467ce5722e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panic.rs:142:14
[INFO] [stdout]   40:     0x56285ef3016b - std::thread::Builder::spawn_unchecked_::{{closure}}::h308964f897d35a6e
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   41:     0x56285ef3016b - core::ops::function::FnOnce::call_once{{vtable.shim}}::h98d901cf00b6c865
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x56285ef94535 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::haadd4e5af2ab0d62
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   43:     0x56285ef94535 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he4ba1fb09c16d807
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x56285ef94535 - std::sys::unix::thread::Thread::new::thread_start::he524ecf4b47bee95
[INFO] [stdout]                                at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   45:     0x7fed29497ac3 - <unknown>
[INFO] [stdout]   46:     0x7fed29528bf4 - __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.03s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "0368b44fd996bb880f3de9849ecc5a3712eb7642a752f6291daa60dd5b625eaf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0368b44fd996bb880f3de9849ecc5a3712eb7642a752f6291daa60dd5b625eaf", kill_on_drop: false }`
[INFO] [stdout] 0368b44fd996bb880f3de9849ecc5a3712eb7642a752f6291daa60dd5b625eaf
