[INFO] cloning repository https://github.com/ukaushik-98/toy-raft [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ukaushik-98/toy-raft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e46ad18cc2cf42ff542b7201128ee82cae9a20aa [INFO] building ukaushik-98/toy-raft against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ukaushik-98/toy-raft on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ukaushik-98/toy-raft [INFO] finished tweaking git repo https://github.com/ukaushik-98/toy-raft [INFO] tweaked toml for git repo https://github.com/ukaushik-98/toy-raft written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ukaushik-98/toy-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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-targets v0.52.6 [INFO] [stderr] Downloaded autocfg v1.4.0 [INFO] [stderr] Downloaded byteorder v1.5.0 [INFO] [stderr] Downloaded rand_core v0.6.4 [INFO] [stderr] Downloaded getrandom v0.2.15 [INFO] [stderr] Downloaded miniz_oxide v0.8.2 [INFO] [stderr] Downloaded rand v0.8.5 [INFO] [stderr] Downloaded memchr v2.7.4 [INFO] [stderr] Downloaded mio v1.0.3 [INFO] [stderr] Downloaded backtrace v0.3.74 [INFO] [stderr] Downloaded zerocopy v0.7.35 [INFO] [stderr] Downloaded bytes v1.9.0 [INFO] [stderr] Downloaded bitflags v2.6.0 [INFO] [stderr] Downloaded redox_syscall v0.5.8 [INFO] [stderr] Downloaded socket2 v0.5.8 [INFO] [stderr] Downloaded proc-macro2 v1.0.92 [INFO] [stderr] Downloaded gimli v0.31.1 [INFO] [stderr] Downloaded syn v2.0.94 [INFO] [stderr] Downloaded quote v1.0.38 [INFO] [stderr] Downloaded object v0.36.7 [INFO] [stderr] Downloaded addr2line v0.24.2 [INFO] [stderr] Downloaded unicode-ident v1.0.14 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.52.6 [INFO] [stderr] Downloaded tokio-macros v2.4.0 [INFO] [stderr] Downloaded zerocopy-derive v0.7.35 [INFO] [stderr] Downloaded windows_i686_gnullvm v0.52.6 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.52.6 [INFO] [stderr] Downloaded ppv-lite86 v0.2.20 [INFO] [stderr] Downloaded rand_chacha v0.3.1 [INFO] [stderr] Downloaded adler2 v2.0.0 [INFO] [stderr] Downloaded pin-project-lite v0.2.15 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.52.6 [INFO] [stderr] Downloaded libc v0.2.169 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.52.6 [INFO] [stderr] Downloaded tokio v1.42.0 [INFO] [stderr] Downloaded windows_i686_gnu v0.52.6 [INFO] [stderr] Downloaded windows_i686_msvc v0.52.6 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.52.6 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d307f4e8d633c1a4005c754590b5f3e84b87f28307358f3e9e12b091731e280f [INFO] running `Command { std: "docker" "start" "-a" "d307f4e8d633c1a4005c754590b5f3e84b87f28307358f3e9e12b091731e280f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d307f4e8d633c1a4005c754590b5f3e84b87f28307358f3e9e12b091731e280f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d307f4e8d633c1a4005c754590b5f3e84b87f28307358f3e9e12b091731e280f", kill_on_drop: false }` [INFO] [stdout] d307f4e8d633c1a4005c754590b5f3e84b87f28307358f3e9e12b091731e280f [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49b02b05a31651ca598ccfb3d8e8efba74e09c2be1f066ce0724ec20d63175f4 [INFO] running `Command { std: "docker" "start" "-a" "49b02b05a31651ca598ccfb3d8e8efba74e09c2be1f066ce0724ec20d63175f4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.94 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling city-raft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `HeartBeatRPC` is more private than the item `RPC::HeartBeatRPC::0` [INFO] [stdout] --> src/rpc/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | HeartBeatRPC(HeartBeatRPC), [INFO] [stdout] | ^^^^^^^^^^^^ field `RPC::HeartBeatRPC::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `HeartBeatRPC` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | struct HeartBeatRPC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HeartBeatRPCResponse` is more private than the item `RPC::HeartBeatRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | HeartBeatRPCResponse(HeartBeatRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `RPC::HeartBeatRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `HeartBeatRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | struct HeartBeatRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppendRPCResponse` is more private than the item `RPC::AppendRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | AppendRPCResponse(AppendRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ field `RPC::AppendRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppendRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | struct AppendRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestVoteRPC` is more private than the item `RPC::RequestVote::0` [INFO] [stdout] --> src/rpc/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | RequestVote(RequestVoteRPC), [INFO] [stdout] | ^^^^^^^^^^^^^^ field `RPC::RequestVote::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RequestVoteRPC` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct RequestVoteRPC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestVoteRPCResponse` is more private than the item `RPC::RequestVoteRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | RequestVoteRPCResponse(RequestVoteRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ field `RPC::RequestVoteRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RequestVoteRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct RequestVoteRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/rpc/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct HeartBeatRPC { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 17 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | candidate_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | last_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | last_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeartBeatRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `success` are never read [INFO] [stdout] --> src/rpc/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct HeartBeatRPCResponse { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 27 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeartBeatRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/rpc/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct RequestVoteRPC { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 35 | /// candidate's term [INFO] [stdout] 36 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | /// candidate requesting vote [INFO] [stdout] 38 | candidate_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 39 | /// index of candidate's last log entry [INFO] [stdout] 40 | last_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 41 | /// term of cnadidate's last log entry [INFO] [stdout] 42 | last_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestVoteRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `vote_granted` are never read [INFO] [stdout] --> src/rpc/mod.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | struct RequestVoteRPCResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 49 | /// currentTerm, for candidate to update itself [INFO] [stdout] 50 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | /// true means candidate received vote [INFO] [stdout] 52 | vote_granted: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestVoteRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `leader_id`, `prev_log_index`, `prev_log_term`, `entries`, and `leader_commit` are never read [INFO] [stdout] --> src/rpc/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AppendRPC { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 59 | /// leader's term [INFO] [stdout] 60 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 61 | /// so follower can redirect clients [INFO] [stdout] 62 | leader_id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | prev_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 66 | /// term of prevLogIndex entry [INFO] [stdout] 67 | prev_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 71 | /// leader's commitIndex [INFO] [stdout] 72 | leader_commit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppendRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `success` are never read [INFO] [stdout] --> src/rpc/mod.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 78 | struct AppendRPCResponse { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 79 | /// currentTerm, for leader to update itsel [INFO] [stdout] 80 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppendRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `persistent_server_state` and `volatile_server_state` are never read [INFO] [stdout] --> src/server/node.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FollowerServer { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 8 | persistent_server_state: PersistentServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | volatile_server_state: VolatileServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FollowerServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `vote` is never used [INFO] [stdout] --> src/server/node.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl FollowerServer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn vote() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `server_state` and `leader_server_state` are never read [INFO] [stdout] --> src/server/node.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LeaderServer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 47 | server_state: FollowerServer, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | leader_server_state: VolatileLeaderServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeaderServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_follower` is never used [INFO] [stdout] --> src/server/node.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl LeaderServer { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 52 | fn into_follower(self) -> FollowerServer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term`, `voted_for`, and `log` are never read [INFO] [stdout] --> src/server/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PersistentServerState { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | current_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | voted_for: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | log: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `commit_index` and `last_applied` are never read [INFO] [stdout] --> src/server/state.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct VolatileServerState { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | commit_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | last_applied: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolatileServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_index` and `match_index` are never read [INFO] [stdout] --> src/server/state.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct VolatileLeaderServerState { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | next_index: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | match_index: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolatileLeaderServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.83s [INFO] running `Command { std: "docker" "inspect" "49b02b05a31651ca598ccfb3d8e8efba74e09c2be1f066ce0724ec20d63175f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49b02b05a31651ca598ccfb3d8e8efba74e09c2be1f066ce0724ec20d63175f4", kill_on_drop: false }` [INFO] [stdout] 49b02b05a31651ca598ccfb3d8e8efba74e09c2be1f066ce0724ec20d63175f4 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba6aeac767e888531701e951dab3a56e975c75ac16b9f24437eaf0d563cd8974 [INFO] running `Command { std: "docker" "start" "-a" "ba6aeac767e888531701e951dab3a56e975c75ac16b9f24437eaf0d563cd8974", kill_on_drop: false }` [INFO] [stdout] warning: type `HeartBeatRPC` is more private than the item `RPC::HeartBeatRPC::0` [INFO] [stdout] --> src/rpc/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | HeartBeatRPC(HeartBeatRPC), [INFO] [stdout] | ^^^^^^^^^^^^ field `RPC::HeartBeatRPC::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `HeartBeatRPC` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | struct HeartBeatRPC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HeartBeatRPCResponse` is more private than the item `RPC::HeartBeatRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | HeartBeatRPCResponse(HeartBeatRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `RPC::HeartBeatRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `HeartBeatRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | struct HeartBeatRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppendRPCResponse` is more private than the item `RPC::AppendRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | AppendRPCResponse(AppendRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ field `RPC::AppendRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppendRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | struct AppendRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestVoteRPC` is more private than the item `RPC::RequestVote::0` [INFO] [stdout] --> src/rpc/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | RequestVote(RequestVoteRPC), [INFO] [stdout] | ^^^^^^^^^^^^^^ field `RPC::RequestVote::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RequestVoteRPC` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct RequestVoteRPC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestVoteRPCResponse` is more private than the item `RPC::RequestVoteRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | RequestVoteRPCResponse(RequestVoteRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ field `RPC::RequestVoteRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RequestVoteRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct RequestVoteRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/rpc/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct HeartBeatRPC { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 17 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | candidate_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | last_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | last_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeartBeatRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `success` are never read [INFO] [stdout] --> src/rpc/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct HeartBeatRPCResponse { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 27 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeartBeatRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/rpc/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct RequestVoteRPC { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 35 | /// candidate's term [INFO] [stdout] 36 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | /// candidate requesting vote [INFO] [stdout] 38 | candidate_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 39 | /// index of candidate's last log entry [INFO] [stdout] 40 | last_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 41 | /// term of cnadidate's last log entry [INFO] [stdout] 42 | last_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestVoteRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `vote_granted` are never read [INFO] [stdout] --> src/rpc/mod.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | struct RequestVoteRPCResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 49 | /// currentTerm, for candidate to update itself [INFO] [stdout] 50 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | /// true means candidate received vote [INFO] [stdout] 52 | vote_granted: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestVoteRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `leader_id`, `prev_log_index`, `prev_log_term`, `entries`, and `leader_commit` are never read [INFO] [stdout] --> src/rpc/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AppendRPC { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 59 | /// leader's term [INFO] [stdout] 60 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 61 | /// so follower can redirect clients [INFO] [stdout] 62 | leader_id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | prev_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 66 | /// term of prevLogIndex entry [INFO] [stdout] 67 | prev_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 71 | /// leader's commitIndex [INFO] [stdout] 72 | leader_commit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppendRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `success` are never read [INFO] [stdout] --> src/rpc/mod.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 78 | struct AppendRPCResponse { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 79 | /// currentTerm, for leader to update itsel [INFO] [stdout] 80 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppendRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `persistent_server_state` and `volatile_server_state` are never read [INFO] [stdout] --> src/server/node.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FollowerServer { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 8 | persistent_server_state: PersistentServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | volatile_server_state: VolatileServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FollowerServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `vote` is never used [INFO] [stdout] --> src/server/node.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl FollowerServer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn vote() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling city-raft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `server_state` and `leader_server_state` are never read [INFO] [stdout] --> src/server/node.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LeaderServer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 47 | server_state: FollowerServer, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | leader_server_state: VolatileLeaderServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeaderServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_follower` is never used [INFO] [stdout] --> src/server/node.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl LeaderServer { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 52 | fn into_follower(self) -> FollowerServer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term`, `voted_for`, and `log` are never read [INFO] [stdout] --> src/server/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PersistentServerState { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | current_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | voted_for: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | log: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `commit_index` and `last_applied` are never read [INFO] [stdout] --> src/server/state.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct VolatileServerState { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | commit_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | last_applied: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolatileServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_index` and `match_index` are never read [INFO] [stdout] --> src/server/state.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct VolatileLeaderServerState { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | next_index: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | match_index: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolatileLeaderServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HeartBeatRPC` is more private than the item `RPC::HeartBeatRPC::0` [INFO] [stdout] --> src/rpc/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | HeartBeatRPC(HeartBeatRPC), [INFO] [stdout] | ^^^^^^^^^^^^ field `RPC::HeartBeatRPC::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `HeartBeatRPC` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | struct HeartBeatRPC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HeartBeatRPCResponse` is more private than the item `RPC::HeartBeatRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | HeartBeatRPCResponse(HeartBeatRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `RPC::HeartBeatRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `HeartBeatRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | struct HeartBeatRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppendRPCResponse` is more private than the item `RPC::AppendRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | AppendRPCResponse(AppendRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ field `RPC::AppendRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppendRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | struct AppendRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestVoteRPC` is more private than the item `RPC::RequestVote::0` [INFO] [stdout] --> src/rpc/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | RequestVote(RequestVoteRPC), [INFO] [stdout] | ^^^^^^^^^^^^^^ field `RPC::RequestVote::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RequestVoteRPC` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct RequestVoteRPC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestVoteRPCResponse` is more private than the item `RPC::RequestVoteRPCResponse::0` [INFO] [stdout] --> src/rpc/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | RequestVoteRPCResponse(RequestVoteRPCResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ field `RPC::RequestVoteRPCResponse::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `RequestVoteRPCResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/rpc/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct RequestVoteRPCResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/rpc/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct HeartBeatRPC { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 17 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | candidate_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | last_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | last_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeartBeatRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `success` are never read [INFO] [stdout] --> src/rpc/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct HeartBeatRPCResponse { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 27 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeartBeatRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `candidate_id`, `last_log_index`, and `last_log_term` are never read [INFO] [stdout] --> src/rpc/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct RequestVoteRPC { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 35 | /// candidate's term [INFO] [stdout] 36 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | /// candidate requesting vote [INFO] [stdout] 38 | candidate_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 39 | /// index of candidate's last log entry [INFO] [stdout] 40 | last_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 41 | /// term of cnadidate's last log entry [INFO] [stdout] 42 | last_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestVoteRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `vote_granted` are never read [INFO] [stdout] --> src/rpc/mod.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | struct RequestVoteRPCResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 49 | /// currentTerm, for candidate to update itself [INFO] [stdout] 50 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | /// true means candidate received vote [INFO] [stdout] 52 | vote_granted: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestVoteRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `leader_id`, `prev_log_index`, `prev_log_term`, `entries`, and `leader_commit` are never read [INFO] [stdout] --> src/rpc/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AppendRPC { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 59 | /// leader's term [INFO] [stdout] 60 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 61 | /// so follower can redirect clients [INFO] [stdout] 62 | leader_id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | prev_log_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 66 | /// term of prevLogIndex entry [INFO] [stdout] 67 | prev_log_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 71 | /// leader's commitIndex [INFO] [stdout] 72 | leader_commit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppendRPC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `success` are never read [INFO] [stdout] --> src/rpc/mod.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 78 | struct AppendRPCResponse { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 79 | /// currentTerm, for leader to update itsel [INFO] [stdout] 80 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppendRPCResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `persistent_server_state` and `volatile_server_state` are never read [INFO] [stdout] --> src/server/node.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FollowerServer { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 8 | persistent_server_state: PersistentServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | volatile_server_state: VolatileServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FollowerServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `vote` is never used [INFO] [stdout] --> src/server/node.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl FollowerServer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn vote() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `server_state` and `leader_server_state` are never read [INFO] [stdout] --> src/server/node.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LeaderServer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 47 | server_state: FollowerServer, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 48 | leader_server_state: VolatileLeaderServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeaderServer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_follower` is never used [INFO] [stdout] --> src/server/node.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl LeaderServer { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 52 | fn into_follower(self) -> FollowerServer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_term`, `voted_for`, and `log` are never read [INFO] [stdout] --> src/server/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PersistentServerState { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | current_term: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | voted_for: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | log: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PersistentServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `commit_index` and `last_applied` are never read [INFO] [stdout] --> src/server/state.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct VolatileServerState { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | commit_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | last_applied: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolatileServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_index` and `match_index` are never read [INFO] [stdout] --> src/server/state.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct VolatileLeaderServerState { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | next_index: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | match_index: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolatileLeaderServerState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "ba6aeac767e888531701e951dab3a56e975c75ac16b9f24437eaf0d563cd8974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba6aeac767e888531701e951dab3a56e975c75ac16b9f24437eaf0d563cd8974", kill_on_drop: false }` [INFO] [stdout] ba6aeac767e888531701e951dab3a56e975c75ac16b9f24437eaf0d563cd8974