[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/ae70f7825e2cdbfcb5cb5fa242af2e7adcb70309 against nightly-2024-10-28+rustflags=-Zrandomize-layout for randomize-layout
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKonstmarNSK%2Fngamahi-raft" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/KonstmarNSK/ngamahi-raft on toolchain nightly-2024-10-28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "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-1-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/KonstmarNSK/ngamahi-raft already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3edeb4c24e724af576a790d577f69a7f649372620ee0bf4dcf9946ff6076461a
[INFO] running `Command { std: "docker" "start" "-a" "3edeb4c24e724af576a790d577f69a7f649372620ee0bf4dcf9946ff6076461a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3edeb4c24e724af576a790d577f69a7f649372620ee0bf4dcf9946ff6076461a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3edeb4c24e724af576a790d577f69a7f649372620ee0bf4dcf9946ff6076461a", kill_on_drop: false }`
[INFO] [stdout] 3edeb4c24e724af576a790d577f69a7f649372620ee0bf4dcf9946ff6076461a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d3d496e15c961e312a1b461a3d8f085173d038709068a2bf00ff75d764963ff5
[INFO] running `Command { std: "docker" "start" "-a" "d3d496e15c961e312a1b461a3d8f085173d038709068a2bf00ff75d764963ff5", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.11
[INFO] [stderr]    Compiling once_cell v1.14.0
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling crossbeam-queue v0.3.6
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.10
[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` and `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` and `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` and `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: fields `cmd` and `term` are never read
[INFO] [stdout]   --> src/state.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct LogEntry<TCmd: Command> {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 25 |     pub cmd: TCmd,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 26 |     pub term: RaftTerm,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LogEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `current_term`, `voted_for`, `last_msg_term`, and `state_machine` are never read
[INFO] [stdout]   --> src/state.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub struct PersistentCommonState<TTypes: Types> {
[INFO] [stdout]    |            --------------------- fields in this struct
[INFO] [stdout] 40 |     pub this_node_id: NodeId,
[INFO] [stdout] 41 |     pub current_term: RaftTerm,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 42 |     pub voted_for: Option<NodeId>,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     pub last_msg_term: RaftTerm,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 47 |     pub state_machine: TTypes::TStateMachine,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[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: fields `committed_idx`, `last_applied`, and `known_leader` are never read
[INFO] [stdout]   --> src/state.rs:76:9
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub struct VolatileCommonState {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] 76 |     pub committed_idx: usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 77 |     pub last_applied: usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 78 |     pub known_leader: Option<NodeId>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `common_volatile` is never read
[INFO] [stdout]   --> src/state.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 81 | pub struct CommonState<TTypes: Types> {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 82 |     pub common_persistent: PersistentCommonState<TTypes>,
[INFO] [stdout] 83 |     pub common_volatile: VolatileCommonState,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `State` is never used
[INFO] [stdout]   --> src/state.rs:86:10
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub enum State<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `StateMachine` is never used
[INFO] [stdout]   --> src/state.rs:93:11
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub trait StateMachine<TTypes: Types> {
[INFO] [stdout]    |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `common_state` and `trigger_election_next_time` are never read
[INFO] [stdout]    --> src/state.rs:98:9
[INFO] [stdout]     |
[INFO] [stdout] 97  | pub struct Follower<TTypes: Types> {
[INFO] [stdout]     |            -------- fields in this struct
[INFO] [stdout] 98  |     pub common_state: CommonState<TTypes>,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub trigger_election_next_time: bool,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `followers_voted` is never read
[INFO] [stdout]    --> src/state.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct Candidate<TTypes: Types> {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub followers_voted: HashSet<NodeId>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `next_idx` and `match_idx` are never read
[INFO] [stdout]    --> src/state.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 111 | pub struct Leader<TTypes: Types> {
[INFO] [stdout]     |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub next_idx: HashMap<NodeId, usize>,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 116 |     pub match_idx: HashMap<NodeId, usize>,
[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: enum `Message` is never used
[INFO] [stdout]  --> src/message.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `InputMessage` is never used
[INFO] [stdout]   --> src/message.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `InputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OutputMessage` is never used
[INFO] [stdout]   --> src/message.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OutputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMessageReq` is never constructed
[INFO] [stdout]   --> src/message.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct ClientMessageReq<TTypes: Types>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMessageResp` is never constructed
[INFO] [stdout]   --> src/message.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct ClientMessageResp{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TimerMessage` is never used
[INFO] [stdout]   --> src/message.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RaftRpcReq` is never used
[INFO] [stdout]   --> src/message.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RaftRpcReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RaftRpcResp` is never used
[INFO] [stdout]   --> src/message.rs:52:10
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RaftRpcResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AppendEntriesResp` is never constructed
[INFO] [stdout]   --> src/message.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct AppendEntriesResp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendEntriesResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ReqVoteResp` is never constructed
[INFO] [stdout]   --> src/message.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct ReqVoteResp {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReqVoteResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AppendEntriesReq` is never constructed
[INFO] [stdout]   --> src/message.rs:73:12
[INFO] [stdout]    |
[INFO] [stdout] 73 | pub struct AppendEntriesReq<TTypes: Types> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendEntriesReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequestVoteReq` is never constructed
[INFO] [stdout]   --> src/message.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub struct RequestVoteReq {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: bounds on generic parameters in type aliases are not enforced
[INFO] [stdout]   --> src/state.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                          ^^^^^ will not be checked at usage sites of the type alias
[INFO] [stdout]    |
[INFO] [stdout]    = note: this is a known limitation of the type checker that may be lifted in a future edition.
[INFO] [stdout]            see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information
[INFO] [stdout]    = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics
[INFO] [stdout]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: remove this bound
[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] help: fully qualify this associated type
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<<TTypes as /* Trait */>::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 `dev` profile [unoptimized + debuginfo] target(s) in 0.67s
[INFO] running `Command { std: "docker" "inspect" "d3d496e15c961e312a1b461a3d8f085173d038709068a2bf00ff75d764963ff5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d3d496e15c961e312a1b461a3d8f085173d038709068a2bf00ff75d764963ff5", kill_on_drop: false }`
[INFO] [stdout] d3d496e15c961e312a1b461a3d8f085173d038709068a2bf00ff75d764963ff5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2fd6197f9f315a0fe05519f35a05de96822cbaacf14d7a4d705dc04ab7bdaae0
[INFO] running `Command { std: "docker" "start" "-a" "2fd6197f9f315a0fe05519f35a05de96822cbaacf14d7a4d705dc04ab7bdaae0", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `Debug` and `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` and `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` and `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: fields `cmd` and `term` are never read
[INFO] [stdout]   --> src/state.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct LogEntry<TCmd: Command> {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 25 |     pub cmd: TCmd,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 26 |     pub term: RaftTerm,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LogEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `current_term`, `voted_for`, `last_msg_term`, and `state_machine` are never read
[INFO] [stdout]   --> src/state.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub struct PersistentCommonState<TTypes: Types> {
[INFO] [stdout]    |            --------------------- fields in this struct
[INFO] [stdout] 40 |     pub this_node_id: NodeId,
[INFO] [stdout] 41 |     pub current_term: RaftTerm,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 42 |     pub voted_for: Option<NodeId>,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     pub last_msg_term: RaftTerm,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 47 |     pub state_machine: TTypes::TStateMachine,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[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: fields `committed_idx`, `last_applied`, and `known_leader` are never read
[INFO] [stdout]   --> src/state.rs:76:9
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub struct VolatileCommonState {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] 76 |     pub committed_idx: usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 77 |     pub last_applied: usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 78 |     pub known_leader: Option<NodeId>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `common_volatile` is never read
[INFO] [stdout]   --> src/state.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 81 | pub struct CommonState<TTypes: Types> {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 82 |     pub common_persistent: PersistentCommonState<TTypes>,
[INFO] [stdout] 83 |     pub common_volatile: VolatileCommonState,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `State` is never used
[INFO] [stdout]   --> src/state.rs:86:10
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub enum State<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `StateMachine` is never used
[INFO] [stdout]   --> src/state.rs:93:11
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub trait StateMachine<TTypes: Types> {
[INFO] [stdout]    |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `common_state` and `trigger_election_next_time` are never read
[INFO] [stdout]    --> src/state.rs:98:9
[INFO] [stdout]     |
[INFO] [stdout] 97  | pub struct Follower<TTypes: Types> {
[INFO] [stdout]     |            -------- fields in this struct
[INFO] [stdout] 98  |     pub common_state: CommonState<TTypes>,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub trigger_election_next_time: bool,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `followers_voted` is never read
[INFO] [stdout]    --> src/state.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct Candidate<TTypes: Types> {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub followers_voted: HashSet<NodeId>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `next_idx` and `match_idx` are never read
[INFO] [stdout]    --> src/state.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 111 | pub struct Leader<TTypes: Types> {
[INFO] [stdout]     |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub next_idx: HashMap<NodeId, usize>,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 116 |     pub match_idx: HashMap<NodeId, usize>,
[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: enum `Message` is never used
[INFO] [stdout]  --> src/message.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `InputMessage` is never used
[INFO] [stdout]   --> src/message.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum InputMessage<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `InputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OutputMessage` is never used
[INFO] [stdout]   --> src/message.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OutputMessage<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OutputMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMessageReq` is never constructed
[INFO] [stdout]   --> src/message.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct ClientMessageReq<TTypes: Types>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMessageResp` is never constructed
[INFO] [stdout]   --> src/message.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct ClientMessageResp{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TimerMessage` is never used
[INFO] [stdout]   --> src/message.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum TimerMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TimerMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RaftRpcReq` is never used
[INFO] [stdout]   --> src/message.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub enum RaftRpcReq<TTypes: Types> {
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RaftRpcReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RaftRpcResp` is never used
[INFO] [stdout]   --> src/message.rs:52:10
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub enum RaftRpcResp {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RaftRpcResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AppendEntriesResp` is never constructed
[INFO] [stdout]   --> src/message.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct AppendEntriesResp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendEntriesResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ReqVoteResp` is never constructed
[INFO] [stdout]   --> src/message.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct ReqVoteResp {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReqVoteResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AppendEntriesReq` is never constructed
[INFO] [stdout]   --> src/message.rs:73:12
[INFO] [stdout]    |
[INFO] [stdout] 73 | pub struct AppendEntriesReq<TTypes: Types> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppendEntriesReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequestVoteReq` is never constructed
[INFO] [stdout]   --> src/message.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub struct RequestVoteReq {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RequestVoteReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: bounds on generic parameters in type aliases are not enforced
[INFO] [stdout]   --> src/state.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                          ^^^^^ will not be checked at usage sites of the type alias
[INFO] [stdout]    |
[INFO] [stdout]    = note: this is a known limitation of the type checker that may be lifted in a future edition.
[INFO] [stdout]            see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information
[INFO] [stdout]    = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics
[INFO] [stdout]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: remove this bound
[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] help: fully qualify this associated type
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<<TTypes as /* Trait */>::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] [stderr]    Compiling ngamahi-raft v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]    --> src/msg_process/mod.rs: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: unused imports: `Debug` and `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` and `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` and `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: enum `Message` is never used
[INFO] [stdout]  --> src/message.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum Message<TTypes: Types> {
[INFO] [stdout]   |          ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/message.rs:22:15
[INFO] [stdout]    |
[INFO] [stdout] 22 |     ClientMsg(ClientMessageResp),
[INFO] [stdout]    |     --------- ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 22 |     ClientMsg(()),
[INFO] [stdout]    |               ~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `success`, `leader_address`, and `unique_request_id` are never read
[INFO] [stdout]   --> src/message.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct ClientMessageResp{
[INFO] [stdout]    |            ----------------- fields in this struct
[INFO] [stdout] 34 |     pub success: bool,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 35 |     pub leader_address: Option<NodeId>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 36 |     pub unique_request_id: u128,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientMessageResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 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 in type aliases are not enforced
[INFO] [stdout]   --> src/state.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stdout]    |                          ^^^^^ will not be checked at usage sites of the type alias
[INFO] [stdout]    |
[INFO] [stdout]    = note: this is a known limitation of the type checker that may be lifted in a future edition.
[INFO] [stdout]            see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information
[INFO] [stdout]    = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics
[INFO] [stdout]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: remove this bound
[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] help: fully qualify this associated type
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<<TTypes as /* Trait */>::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` profile [unoptimized + debuginfo] target(s) in 0.27s
[INFO] running `Command { std: "docker" "inspect" "2fd6197f9f315a0fe05519f35a05de96822cbaacf14d7a4d705dc04ab7bdaae0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2fd6197f9f315a0fe05519f35a05de96822cbaacf14d7a4d705dc04ab7bdaae0", kill_on_drop: false }`
[INFO] [stdout] 2fd6197f9f315a0fe05519f35a05de96822cbaacf14d7a4d705dc04ab7bdaae0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 78c2628fbe2950fa8524553d812247872fe5f3b9864a10a44696a960e187330c
[INFO] running `Command { std: "docker" "start" "-a" "78c2628fbe2950fa8524553d812247872fe5f3b9864a10a44696a960e187330c", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `Debug` and `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` and `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` and `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: fields `cmd` and `term` are never read
[INFO] [stderr]   --> src/state.rs:25:9
[INFO] [stderr]    |
[INFO] [stderr] 24 | pub struct LogEntry<TCmd: Command> {
[INFO] [stderr]    |            -------- fields in this struct
[INFO] [stderr] 25 |     pub cmd: TCmd,
[INFO] [stderr]    |         ^^^
[INFO] [stderr] 26 |     pub term: RaftTerm,
[INFO] [stderr]    |         ^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `LogEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: fields `current_term`, `voted_for`, `last_msg_term`, and `state_machine` are never read
[INFO] [stderr]   --> src/state.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub struct PersistentCommonState<TTypes: Types> {
[INFO] [stderr]    |            --------------------- fields in this struct
[INFO] [stderr] 40 |     pub this_node_id: NodeId,
[INFO] [stderr] 41 |     pub current_term: RaftTerm,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr] 42 |     pub voted_for: Option<NodeId>,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 46 |     pub last_msg_term: RaftTerm,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[INFO] [stderr] 47 |     pub state_machine: TTypes::TStateMachine,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[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: fields `committed_idx`, `last_applied`, and `known_leader` are never read
[INFO] [stderr]   --> src/state.rs:76:9
[INFO] [stderr]    |
[INFO] [stderr] 75 | pub struct VolatileCommonState {
[INFO] [stderr]    |            ------------------- fields in this struct
[INFO] [stderr] 76 |     pub committed_idx: usize,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[INFO] [stderr] 77 |     pub last_applied: usize,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr] 78 |     pub known_leader: Option<NodeId>,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `common_volatile` is never read
[INFO] [stderr]   --> src/state.rs:83:9
[INFO] [stderr]    |
[INFO] [stderr] 81 | pub struct CommonState<TTypes: Types> {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] 82 |     pub common_persistent: PersistentCommonState<TTypes>,
[INFO] [stderr] 83 |     pub common_volatile: VolatileCommonState,
[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: trait `StateMachine` is never used
[INFO] [stderr]   --> src/state.rs:93:11
[INFO] [stderr]    |
[INFO] [stderr] 93 | pub trait StateMachine<TTypes: Types> {
[INFO] [stderr]    |           ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `common_state` and `trigger_election_next_time` are never read
[INFO] [stderr]    --> src/state.rs:98:9
[INFO] [stderr]     |
[INFO] [stderr] 97  | pub struct Follower<TTypes: Types> {
[INFO] [stderr]     |            -------- fields in this struct
[INFO] [stderr] 98  |     pub common_state: CommonState<TTypes>,
[INFO] [stderr]     |         ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 101 |     pub trigger_election_next_time: bool,
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `followers_voted` is never read
[INFO] [stderr]    --> src/state.rs:108:9
[INFO] [stderr]     |
[INFO] [stderr] 104 | pub struct Candidate<TTypes: Types> {
[INFO] [stderr]     |            --------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 108 |     pub followers_voted: HashSet<NodeId>,
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `next_idx` and `match_idx` are never read
[INFO] [stderr]    --> src/state.rs:115:9
[INFO] [stderr]     |
[INFO] [stderr] 111 | pub struct Leader<TTypes: Types> {
[INFO] [stderr]     |            ------ fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 115 |     pub next_idx: HashMap<NodeId, usize>,
[INFO] [stderr]     |         ^^^^^^^^
[INFO] [stderr] 116 |     pub match_idx: HashMap<NodeId, usize>,
[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: enum `Message` is never used
[INFO] [stderr]  --> src/message.rs:4:10
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub enum Message<TTypes: Types> {
[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: enum `InputMessage` is never used
[INFO] [stderr]   --> src/message.rs:10:10
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub enum InputMessage<TTypes: Types> {
[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: enum `OutputMessage` is never used
[INFO] [stderr]   --> src/message.rs:19:10
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub enum OutputMessage<TTypes: Types> {
[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: struct `ClientMessageReq` is never constructed
[INFO] [stderr]   --> src/message.rs:26:12
[INFO] [stderr]    |
[INFO] [stderr] 26 | pub struct ClientMessageReq<TTypes: Types>{
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ClientMessageReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ClientMessageResp` is never constructed
[INFO] [stderr]   --> src/message.rs:33:12
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub struct ClientMessageResp{
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ClientMessageResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: enum `TimerMessage` is never used
[INFO] [stderr]   --> src/message.rs:40:10
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub enum TimerMessage {
[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: enum `RaftRpcReq` is never used
[INFO] [stderr]   --> src/message.rs:46:10
[INFO] [stderr]    |
[INFO] [stderr] 46 | pub enum RaftRpcReq<TTypes: Types> {
[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: enum `RaftRpcResp` is never used
[INFO] [stderr]   --> src/message.rs:52:10
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub enum RaftRpcResp {
[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: struct `AppendEntriesResp` is never constructed
[INFO] [stderr]   --> src/message.rs:58:12
[INFO] [stderr]    |
[INFO] [stderr] 58 | pub struct AppendEntriesResp {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AppendEntriesResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ReqVoteResp` is never constructed
[INFO] [stderr]   --> src/message.rs:66:12
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub struct ReqVoteResp {
[INFO] [stderr]    |            ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ReqVoteResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `AppendEntriesReq` is never constructed
[INFO] [stderr]   --> src/message.rs:73:12
[INFO] [stderr]    |
[INFO] [stderr] 73 | pub struct AppendEntriesReq<TTypes: Types> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AppendEntriesReq` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `RequestVoteReq` is never constructed
[INFO] [stderr]   --> src/message.rs:85:12
[INFO] [stderr]    |
[INFO] [stderr] 85 | pub struct RequestVoteReq {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RequestVoteReq` 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 in type aliases are not enforced
[INFO] [stderr]   --> src/state.rs:37:26
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<TTypes::TCmd>>;
[INFO] [stderr]    |                          ^^^^^ will not be checked at usage sites of the type alias
[INFO] [stderr]    |
[INFO] [stderr]    = note: this is a known limitation of the type checker that may be lifted in a future edition.
[INFO] [stderr]            see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information
[INFO] [stderr]    = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics
[INFO] [stderr]    = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stderr] help: remove this bound
[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] help: fully qualify this associated type
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub type RaftLog<TTypes: Types> = Vec<LogEntry<<TTypes as /* Trait */>::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: field `0` is never read
[INFO] [stderr]   --> src/message.rs:22:15
[INFO] [stderr]    |
[INFO] [stderr] 22 |     ClientMsg(ClientMessageResp),
[INFO] [stderr]    |     --------- ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 22 |     ClientMsg(()),
[INFO] [stderr]    |               ~~
[INFO] [stderr] 
[INFO] [stderr] warning: fields `success`, `leader_address`, and `unique_request_id` are never read
[INFO] [stderr]   --> src/message.rs:34:9
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub struct ClientMessageResp{
[INFO] [stderr]    |            ----------------- fields in this struct
[INFO] [stderr] 34 |     pub success: bool,
[INFO] [stderr]    |         ^^^^^^^
[INFO] [stderr] 35 |     pub leader_address: Option<NodeId>,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^
[INFO] [stderr] 36 |     pub unique_request_id: u128,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ClientMessageResp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[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 77 warnings (run `cargo fix --lib -p ngamahi-raft` to apply 17 suggestions)
[INFO] [stderr] warning: `ngamahi-raft` (lib test) generated 38 warnings (27 duplicates) (run `cargo fix --lib -p ngamahi-raft --tests` to apply 3 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ngamahi_raft-a28ede8eef41dbd0)
[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:     0x5e226ff0946a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x5e226ff0946a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x5e226ff0946a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x5e226ff0946a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x5e226ff30773 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x5e226ff30773 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x5e226ff060d3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x5e226ff092b2 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x5e226ff0a8fa - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x5e226ff0a704 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x5e226fed44f9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x5e226fed44f9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x5e226ff0aff8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x5e226ff0aff8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x5e226ff0adba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x5e226ff09949 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x5e226ff0aa4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x5e226ff2ef50 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x5e226ff2f31b - core::panicking::assert_failed_inner::h04f38944d74a80a8
[INFO] [stdout]   19:     0x5e226fe86857 - core::panicking::assert_failed::h93b62ac788a80f09
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:377:5
[INFO] [stdout]   20:     0x5e226fe93b1d - ngamahi_raft::tests::election_succeeds::hf2435bf2f14042d8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:149:17
[INFO] [stdout]   21:     0x5e226fe932f7 - ngamahi_raft::tests::election_succeeds::{{closure}}::hffd8d9031987a4f8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:120:27
[INFO] [stdout]   22:     0x5e226fe809f6 - core::ops::function::FnOnce::call_once::ha024ef366be52829
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x5e226fed8dcb - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x5e226fed8dcb - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x5e226fed8747 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x5e226fed8747 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x5e226fed8747 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x5e226fed8747 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x5e226fed8747 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x5e226fed8747 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x5e226fed8747 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x5e226fe9be64 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x5e226fe9be64 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x5e226fe9f60e - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x5e226fe9f60e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x5e226fe9f60e - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x5e226fe9f60e - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x5e226fe9f60e - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x5e226fe9f60e - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x5e226fe9f60e - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x5e226ff0edeb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x5e226ff0edeb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x5e226ff0edeb - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7045c6077ac3 - <unknown>
[INFO] [stdout]   45:     0x7045c6108a04 - clone
[INFO] [stdout]   46:                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:     0x5e226ff0946a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x5e226ff0946a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x5e226ff0946a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x5e226ff0946a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x5e226ff30773 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x5e226ff30773 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x5e226ff060d3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x5e226ff092b2 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x5e226ff0a8fa - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x5e226ff0a704 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x5e226fed44f9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x5e226fed44f9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x5e226ff0aff8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x5e226ff0aff8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x5e226ff0adba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x5e226ff09949 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x5e226ff0aa4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x5e226ff2ef50 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x5e226ff2f31b - core::panicking::assert_failed_inner::h04f38944d74a80a8
[INFO] [stdout]   19:     0x5e226fe86819 - core::panicking::assert_failed::h1af37edca868bf88
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:377:5
[INFO] [stdout]   20:     0x5e226fe954f6 - ngamahi_raft::tests::log_replicates::h6833a2d839ae2b2c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:240:9
[INFO] [stdout]   21:     0x5e226fe947f7 - ngamahi_raft::tests::log_replicates::{{closure}}::he36918f6c06afdff
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:194:24
[INFO] [stdout]   22:     0x5e226fe80866 - core::ops::function::FnOnce::call_once::h65e8dbef99d0436d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x5e226fed8dcb - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x5e226fed8dcb - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x5e226fed8747 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x5e226fed8747 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x5e226fed8747 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x5e226fed8747 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x5e226fed8747 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x5e226fed8747 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x5e226fed8747 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x5e226fe9be64 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x5e226fe9be64 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x5e226fe9f60e - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x5e226fe9f60e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x5e226fe9f60e - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x5e226fe9f60e - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x5e226fe9f60e - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x5e226fe9f60e - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x5e226fe9f60e - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x5e226ff0edeb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x5e226ff0edeb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x5e226ff0edeb - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7045c6077ac3 - <unknown>
[INFO] [stdout]   45:     0x7045c6108a04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::election_succeeds
[INFO] [stdout]     tests::log_replicates
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "78c2628fbe2950fa8524553d812247872fe5f3b9864a10a44696a960e187330c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78c2628fbe2950fa8524553d812247872fe5f3b9864a10a44696a960e187330c", kill_on_drop: false }`
[INFO] [stdout] 78c2628fbe2950fa8524553d812247872fe5f3b9864a10a44696a960e187330c
