[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#f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 for pr-137044-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fukaushik-98%2Ftoy-raft" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ukaushik-98/toy-raft on toolchain f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "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-4-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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e90d4138a1034ff58b03487f3add5eaf2912870b48c69881d790aa6778b880ad [INFO] running `Command { std: "docker" "start" "-a" "e90d4138a1034ff58b03487f3add5eaf2912870b48c69881d790aa6778b880ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e90d4138a1034ff58b03487f3add5eaf2912870b48c69881d790aa6778b880ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e90d4138a1034ff58b03487f3add5eaf2912870b48c69881d790aa6778b880ad", kill_on_drop: false }` [INFO] [stdout] e90d4138a1034ff58b03487f3add5eaf2912870b48c69881d790aa6778b880ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 444898c7ed1d235c5778159d28847e50575622557f6b8d60264a965ce5f5937d [INFO] running `Command { std: "docker" "start" "-a" "444898c7ed1d235c5778159d28847e50575622557f6b8d60264a965ce5f5937d", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.94 [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 15.78s [INFO] running `Command { std: "docker" "inspect" "444898c7ed1d235c5778159d28847e50575622557f6b8d60264a965ce5f5937d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "444898c7ed1d235c5778159d28847e50575622557f6b8d60264a965ce5f5937d", kill_on_drop: false }` [INFO] [stdout] 444898c7ed1d235c5778159d28847e50575622557f6b8d60264a965ce5f5937d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1db27ff1a196906f12a8500e6dcfa5cc4a66100d9cf64628162bb893e397e921 [INFO] running `Command { std: "docker" "start" "-a" "1db27ff1a196906f12a8500e6dcfa5cc4a66100d9cf64628162bb893e397e921", 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] [stderr] Compiling city-raft v0.1.0 (/opt/rustwide/workdir) [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] [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.63s [INFO] running `Command { std: "docker" "inspect" "1db27ff1a196906f12a8500e6dcfa5cc4a66100d9cf64628162bb893e397e921", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1db27ff1a196906f12a8500e6dcfa5cc4a66100d9cf64628162bb893e397e921", kill_on_drop: false }` [INFO] [stdout] 1db27ff1a196906f12a8500e6dcfa5cc4a66100d9cf64628162bb893e397e921