[INFO] cloning repository https://github.com/danielwaterworth/raft-logic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/danielwaterworth/raft-logic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielwaterworth%2Fraft-logic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielwaterworth%2Fraft-logic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 335b4fadd367577c11b1012a7327a10d00e706f2 [INFO] checking danielwaterworth/raft-logic against master#36b21637e93b038453924d3c66821089e71d8baa for pr-143164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielwaterworth%2Fraft-logic" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/danielwaterworth/raft-logic [INFO] finished tweaking git repo https://github.com/danielwaterworth/raft-logic [INFO] tweaked toml for git repo https://github.com/danielwaterworth/raft-logic written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/danielwaterworth/raft-logic on toolchain 36b21637e93b038453924d3c66821089e71d8baa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/danielwaterworth/raft-logic 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" "+36b21637e93b038453924d3c66821089e71d8baa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5eaa09036d89ead09cac76383da2ab7c3681169a61549d71d1649c023c8b40b4 [INFO] running `Command { std: "docker" "start" "-a" "5eaa09036d89ead09cac76383da2ab7c3681169a61549d71d1649c023c8b40b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5eaa09036d89ead09cac76383da2ab7c3681169a61549d71d1649c023c8b40b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5eaa09036d89ead09cac76383da2ab7c3681169a61549d71d1649c023c8b40b4", kill_on_drop: false }` [INFO] [stdout] 5eaa09036d89ead09cac76383da2ab7c3681169a61549d71d1649c023c8b40b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d384918d5c3184f5b842438e558a97235333261cbebce6344ecc9b068d7c4530 [INFO] running `Command { std: "docker" "start" "-a" "d384918d5c3184f5b842438e558a97235333261cbebce6344ecc9b068d7c4530", kill_on_drop: false }` [INFO] [stderr] Checking raft-logic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `LogIndex` [INFO] [stdout] --> src/raft.rs:2:56 [INFO] [stdout] | [INFO] [stdout] 2 | compare_log_versions, GetResult, InsertError, Log, LogIndex, LogStatus, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogIndex` [INFO] [stdout] --> src/raft.rs:2:56 [INFO] [stdout] | [INFO] [stdout] 2 | compare_log_versions, GetResult, InsertError, Log, LogIndex, LogStatus, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:415:32 [INFO] [stdout] | [INFO] [stdout] 415 | State::Candidate { votes_received } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:418:29 [INFO] [stdout] | [INFO] [stdout] 418 | State::Leader { follower_infos } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_id` [INFO] [stdout] --> src/raft.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 427 | server_id: ServerID, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:461:32 [INFO] [stdout] | [INFO] [stdout] 461 | State::Candidate { votes_received } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:476:29 [INFO] [stdout] | [INFO] [stdout] 476 | State::Leader { follower_infos } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_state` [INFO] [stdout] --> src/raft.rs:488:29 [INFO] [stdout] | [INFO] [stdout] 488 | State::Follower(follower_state) => do_nothing(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:520:29 [INFO] [stdout] | [INFO] [stdout] 520 | State::Leader { follower_infos } => do_nothing(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:484:9 [INFO] [stdout] | [INFO] [stdout] 484 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_state` [INFO] [stdout] --> src/raft.rs:549:29 [INFO] [stdout] | [INFO] [stdout] 549 | State::Follower(follower_state) => unreachable!( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:552:32 [INFO] [stdout] | [INFO] [stdout] 552 | State::Candidate { votes_received } => unreachable!( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_state` [INFO] [stdout] --> src/raft.rs:647:29 [INFO] [stdout] | [INFO] [stdout] 647 | State::Follower(follower_state) => self.transition_to_candidate(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:648:32 [INFO] [stdout] | [INFO] [stdout] 648 | State::Candidate { votes_received } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:651:29 [INFO] [stdout] | [INFO] [stdout] 651 | State::Leader { follower_infos } => do_nothing(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:350:32 [INFO] [stdout] | [INFO] [stdout] 350 | fn transition_to_candidate(&mut self) -> Operation { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 350 | fn transition_to_candidate(&mut self) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] 367 | entry: L::Entry, [INFO] [stdout] 368 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 368 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 402 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 402 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 425 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 428 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 428 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 439 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 439 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 486 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 486 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 528 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 528 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 547 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 547 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:645:23 [INFO] [stdout] | [INFO] [stdout] 645 | fn handle_timeout(&mut self) -> Operation { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 645 | fn handle_timeout(&mut self) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:415:32 [INFO] [stdout] | [INFO] [stdout] 415 | State::Candidate { votes_received } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:418:29 [INFO] [stdout] | [INFO] [stdout] 418 | State::Leader { follower_infos } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_id` [INFO] [stdout] --> src/raft.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 427 | server_id: ServerID, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:461:32 [INFO] [stdout] | [INFO] [stdout] 461 | State::Candidate { votes_received } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:476:29 [INFO] [stdout] | [INFO] [stdout] 476 | State::Leader { follower_infos } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_state` [INFO] [stdout] --> src/raft.rs:488:29 [INFO] [stdout] | [INFO] [stdout] 488 | State::Follower(follower_state) => do_nothing(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:520:29 [INFO] [stdout] | [INFO] [stdout] 520 | State::Leader { follower_infos } => do_nothing(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:484:9 [INFO] [stdout] | [INFO] [stdout] 484 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_state` [INFO] [stdout] --> src/raft.rs:549:29 [INFO] [stdout] | [INFO] [stdout] 549 | State::Follower(follower_state) => unreachable!( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:552:32 [INFO] [stdout] | [INFO] [stdout] 552 | State::Candidate { votes_received } => unreachable!( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/raft.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | term: Term, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_state` [INFO] [stdout] --> src/raft.rs:647:29 [INFO] [stdout] | [INFO] [stdout] 647 | State::Follower(follower_state) => self.transition_to_candidate(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_follower_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes_received` [INFO] [stdout] --> src/raft.rs:648:32 [INFO] [stdout] | [INFO] [stdout] 648 | State::Candidate { votes_received } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `votes_received: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `follower_infos` [INFO] [stdout] --> src/raft.rs:651:29 [INFO] [stdout] | [INFO] [stdout] 651 | State::Leader { follower_infos } => do_nothing(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `follower_infos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:350:32 [INFO] [stdout] | [INFO] [stdout] 350 | fn transition_to_candidate(&mut self) -> Operation { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 350 | fn transition_to_candidate(&mut self) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] 367 | entry: L::Entry, [INFO] [stdout] 368 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 368 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 402 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 402 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 425 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 428 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 428 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 439 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 439 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 486 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 486 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 528 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 528 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 547 | ) -> Operation { [INFO] [stdout] | ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 547 | ) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/raft.rs:645:23 [INFO] [stdout] | [INFO] [stdout] 645 | fn handle_timeout(&mut self) -> Operation { [INFO] [stdout] | ^^^^^^^^^ ----------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 645 | fn handle_timeout(&mut self) -> Operation<'_, ServerID, L::Entry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "d384918d5c3184f5b842438e558a97235333261cbebce6344ecc9b068d7c4530", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d384918d5c3184f5b842438e558a97235333261cbebce6344ecc9b068d7c4530", kill_on_drop: false }` [INFO] [stdout] d384918d5c3184f5b842438e558a97235333261cbebce6344ecc9b068d7c4530