[INFO] cloning repository https://github.com/gwint/mystorers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gwint/mystorers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgwint%2Fmystorers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgwint%2Fmystorers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 060250f56c84c75f2395a723923abf4e517094e0 [INFO] checking gwint/mystorers against nightly-2024-02-05 for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgwint%2Fmystorers" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gwint/mystorers on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gwint/mystorers [INFO] finished tweaking git repo https://github.com/gwint/mystorers [INFO] tweaked toml for git repo https://github.com/gwint/mystorers written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gwint/mystorers already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hermit-abi v0.1.13 [INFO] [stderr] Downloaded integer-encoding v1.1.5 [INFO] [stderr] Downloaded ordered-float v1.0.2 [INFO] [stderr] Downloaded num-traits v0.2.11 [INFO] [stderr] Downloaded libc v0.2.71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 394d2c007303b2c6c0c9dba0f1d0cbb8438e34207625583013c398f9b69693f2 [INFO] running `Command { std: "docker" "start" "-a" "394d2c007303b2c6c0c9dba0f1d0cbb8438e34207625583013c398f9b69693f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "394d2c007303b2c6c0c9dba0f1d0cbb8438e34207625583013c398f9b69693f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "394d2c007303b2c6c0c9dba0f1d0cbb8438e34207625583013c398f9b69693f2", kill_on_drop: false }` [INFO] [stdout] 394d2c007303b2c6c0c9dba0f1d0cbb8438e34207625583013c398f9b69693f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0e1a7d9b8a428df3db960ab1fd9e5d1815ff2cce343d79f4a9aec3d7be67a71 [INFO] running `Command { std: "docker" "start" "-a" "a0e1a7d9b8a428df3db960ab1fd9e5d1815ff2cce343d79f4a9aec3d7be67a71", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking integer-encoding v1.1.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking thrift v0.13.0 [INFO] [stderr] Checking mystorers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `entry_position`, `target_host`, and `target_port` are never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | entry_position : u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | target_host : String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | target_port : u32 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockHandler` is never constructed [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LockHandler { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `entry_position`, `target_host`, and `target_port` are never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | entry_position : u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | target_host : String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | target_port : u32 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockHandler` is never constructed [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LockHandler { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rc` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::{Rc}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntryType` [INFO] [stdout] --> src/main.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use replicaservice::{Entry, EntryType, ID, ReplicaServiceSyncProcessor, ReplicaServiceSyncHandler, PutResponse, GetResponse, AppendEntryR... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rc` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::{Rc}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntryType` [INFO] [stdout] --> src/main.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use replicaservice::{Entry, EntryType, ID, ReplicaServiceSyncProcessor, ReplicaServiceSyncHandler, PutResponse, GetResponse, AppendEntryR... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1060:19 [INFO] [stdout] | [INFO] [stdout] 1060 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1134:19 [INFO] [stdout] | [INFO] [stdout] 1134 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1171:19 [INFO] [stdout] | [INFO] [stdout] 1171 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1199:19 [INFO] [stdout] | [INFO] [stdout] 1199 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1232:19 [INFO] [stdout] | [INFO] [stdout] 1232 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1260:19 [INFO] [stdout] | [INFO] [stdout] 1260 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1293:19 [INFO] [stdout] | [INFO] [stdout] 1293 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1060:19 [INFO] [stdout] | [INFO] [stdout] 1060 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1330:19 [INFO] [stdout] | [INFO] [stdout] 1330 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1134:19 [INFO] [stdout] | [INFO] [stdout] 1134 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1171:19 [INFO] [stdout] | [INFO] [stdout] 1171 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1199:19 [INFO] [stdout] | [INFO] [stdout] 1199 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1232:19 [INFO] [stdout] | [INFO] [stdout] 1232 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1260:19 [INFO] [stdout] | [INFO] [stdout] 1260 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1293:19 [INFO] [stdout] | [INFO] [stdout] 1293 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1330:19 [INFO] [stdout] | [INFO] [stdout] 1330 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | fn new(port : u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_i_d` [INFO] [stdout] --> src/main.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_index` [INFO] [stdout] --> src/main.rs:84:65 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_term` [INFO] [stdout] --> src/main.rs:84:86 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:88:46 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_index` [INFO] [stdout] --> src/main.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_term` [INFO] [stdout] --> src/main.rs:88:83 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/main.rs:88:103 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_commit` [INFO] [stdout] --> src/main.rs:88:117 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_commit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:93:66 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:97:81 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_term` [INFO] [stdout] --> src/main.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | fn handle_install_snapshot(&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, d... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:132:57 [INFO] [stdout] | [INFO] [stdout] 132 | ...&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) ->... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_index` [INFO] [stdout] --> src/main.rs:132:73 [INFO] [stdout] | [INFO] [stdout] 132 | ...leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_term` [INFO] [stdout] --> src/main.rs:132:99 [INFO] [stdout] | [INFO] [stdout] 132 | ...uded_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/main.rs:132:124 [INFO] [stdout] | [INFO] [stdout] 132 | ...32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:132:137 [INFO] [stdout] | [INFO] [stdout] 132 | ...cluded_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/main.rs:132:152 [INFO] [stdout] | [INFO] [stdout] 132 | ...2, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_done` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoints` [INFO] [stdout] --> src/main.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | fn handle_add_new_configuration(&self, endpoints: Vec) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | fn new(port : u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CANDIDATE` and `LEADER` are never constructed [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum ReplicaState { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 17 | FOLLOWER, [INFO] [stdout] 18 | CANDIDATE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | LEADER [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct Replica { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 23 | state : Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | current_term : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 25 | log : Arc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | commit_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | last_applied : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 28 | next_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | match_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | time_left : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | timeout : Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 32 | voted_for : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | leader : Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | state_machine : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | current_request_being_serviced : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | noop_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | jobs_to_retry : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | cluster_membership : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | has_operation_started : bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | my_id : ID [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_i_d` [INFO] [stdout] --> src/main.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_index` [INFO] [stdout] --> src/main.rs:84:65 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_term` [INFO] [stdout] --> src/main.rs:84:86 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:88:46 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_index` [INFO] [stdout] --> src/main.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_term` [INFO] [stdout] --> src/main.rs:88:83 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/main.rs:88:103 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_commit` [INFO] [stdout] --> src/main.rs:88:117 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_commit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:93:66 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:97:81 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_term` [INFO] [stdout] --> src/main.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | fn handle_install_snapshot(&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, d... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:132:57 [INFO] [stdout] | [INFO] [stdout] 132 | ...&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) ->... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_index` [INFO] [stdout] --> src/main.rs:132:73 [INFO] [stdout] | [INFO] [stdout] 132 | ...leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_term` [INFO] [stdout] --> src/main.rs:132:99 [INFO] [stdout] | [INFO] [stdout] 132 | ...uded_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/main.rs:132:124 [INFO] [stdout] | [INFO] [stdout] 132 | ...32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:132:137 [INFO] [stdout] | [INFO] [stdout] 132 | ...cluded_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/main.rs:132:152 [INFO] [stdout] | [INFO] [stdout] 132 | ...2, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_done` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoints` [INFO] [stdout] --> src/main.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | fn handle_add_new_configuration(&self, endpoints: Vec) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `replica` is never read [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct Container { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | replica : Arc> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `timer` is never used [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Container { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | fn timer() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 96 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 97 | pub fn new(type_: F1, key: F2, value: F3, term: F4, client_identifier: F5, request_identifier: F6, new_conf... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 270 | impl AppendEntryResponse { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 271 | pub fn new(success: F1, term: F2, prev_log_index: F3, number_of_entries_added: F4) -> AppendEntryResponse where F1: Int... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 384 | impl Ballot { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 385 | pub fn new(vote_granted: F1, term: F2) -> Ballot where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 548 | impl PutResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 549 | pub fn new(success: F1, leader_i_d: F2) -> PutResponse where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CANDIDATE` and `LEADER` are never constructed [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum ReplicaState { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 17 | FOLLOWER, [INFO] [stdout] 18 | CANDIDATE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | LEADER [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct Replica { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 23 | state : Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | current_term : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 25 | log : Arc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | commit_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | last_applied : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 28 | next_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | match_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | time_left : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | timeout : Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 32 | voted_for : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | leader : Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | state_machine : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | current_request_being_serviced : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | noop_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | jobs_to_retry : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | cluster_membership : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | has_operation_started : bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | my_id : ID [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:632:10 [INFO] [stdout] | [INFO] [stdout] 631 | impl GetResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 632 | pub fn new(success: F1, value: F2, leader_i_d: F3) -> GetResponse where F1: Into>, F2: Into>, F... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `replica` is never read [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct Container { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | replica : Arc> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `timer` is never used [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Container { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | fn timer() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 96 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 97 | pub fn new(type_: F1, key: F2, value: F3, term: F4, client_identifier: F5, request_identifier: F6, new_conf... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 270 | impl AppendEntryResponse { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 271 | pub fn new(success: F1, term: F2, prev_log_index: F3, number_of_entries_added: F4) -> AppendEntryResponse where F1: Int... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 384 | impl Ballot { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 385 | pub fn new(vote_granted: F1, term: F2) -> Ballot where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 548 | impl PutResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 549 | pub fn new(success: F1, leader_i_d: F2) -> PutResponse where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:632:10 [INFO] [stdout] | [INFO] [stdout] 631 | impl GetResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 632 | pub fn new(success: F1, value: F2, leader_i_d: F3) -> GetResponse where F1: Into>, F2: Into>, F... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:744:10 [INFO] [stdout] | [INFO] [stdout] 743 | impl ReplicaServiceSyncClient where IP: TInputProtocol, OP: TOutputProtocol { [INFO] [stdout] | -------------------------------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 744 | pub fn new(input_protocol: IP, output_protocol: OP) -> ReplicaServiceSyncClient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:744:10 [INFO] [stdout] | [INFO] [stdout] 743 | impl ReplicaServiceSyncClient where IP: TInputProtocol, OP: TOutputProtocol { [INFO] [stdout] | -------------------------------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 744 | pub fn new(input_protocol: IP, output_protocol: OP) -> ReplicaServiceSyncClient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.78s [INFO] running `Command { std: "docker" "inspect" "a0e1a7d9b8a428df3db960ab1fd9e5d1815ff2cce343d79f4a9aec3d7be67a71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0e1a7d9b8a428df3db960ab1fd9e5d1815ff2cce343d79f4a9aec3d7be67a71", kill_on_drop: false }` [INFO] [stdout] a0e1a7d9b8a428df3db960ab1fd9e5d1815ff2cce343d79f4a9aec3d7be67a71 [INFO] checking gwint/mystorers against nightly-2024-02-05+rustflags=-Dunexpected_cfgs+cargoflags=-Zcheck-cfg for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgwint%2Fmystorers" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gwint/mystorers on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gwint/mystorers [INFO] finished tweaking git repo https://github.com/gwint/mystorers [INFO] tweaked toml for git repo https://github.com/gwint/mystorers written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/gwint/mystorers already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1aaeadb37f6d9ceed876a9d5790ff6153b0e49fc065fd1f8e9902b5ccaf430b [INFO] running `Command { std: "docker" "start" "-a" "e1aaeadb37f6d9ceed876a9d5790ff6153b0e49fc065fd1f8e9902b5ccaf430b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1aaeadb37f6d9ceed876a9d5790ff6153b0e49fc065fd1f8e9902b5ccaf430b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1aaeadb37f6d9ceed876a9d5790ff6153b0e49fc065fd1f8e9902b5ccaf430b", kill_on_drop: false }` [INFO] [stdout] e1aaeadb37f6d9ceed876a9d5790ff6153b0e49fc065fd1f8e9902b5ccaf430b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunexpected_cfgs" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zcheck-cfg", kill_on_drop: false }` [INFO] [stdout] 0db10f2a119f86e0b183699c7f5784a42be0c94ad9dc418836abd1fba2edbf6c [INFO] running `Command { std: "docker" "start" "-a" "0db10f2a119f86e0b183699c7f5784a42be0c94ad9dc418836abd1fba2edbf6c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking integer-encoding v1.1.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking thrift v0.13.0 [INFO] [stderr] Checking mystorers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `entry_position`, `target_host`, and `target_port` are never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | entry_position : u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | target_host : String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | target_port : u32 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockHandler` is never constructed [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LockHandler { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `entry_position`, `target_host`, and `target_port` are never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | entry_position : u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | target_host : String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | target_port : u32 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockHandler` is never constructed [INFO] [stdout] --> src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LockHandler { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/replicaservice.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | #![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, type_complexity))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> src/replicaservice.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | #![cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rc` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::{Rc}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntryType` [INFO] [stdout] --> src/main.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use replicaservice::{Entry, EntryType, ID, ReplicaServiceSyncProcessor, ReplicaServiceSyncHandler, PutResponse, GetResponse, AppendEntryR... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/replicaservice.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | #![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, type_complexity))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> src/replicaservice.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | #![cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rc` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::{Rc}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntryType` [INFO] [stdout] --> src/main.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use replicaservice::{Entry, EntryType, ID, ReplicaServiceSyncProcessor, ReplicaServiceSyncHandler, PutResponse, GetResponse, AppendEntryR... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1060:19 [INFO] [stdout] | [INFO] [stdout] 1060 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1134:19 [INFO] [stdout] | [INFO] [stdout] 1134 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1171:19 [INFO] [stdout] | [INFO] [stdout] 1171 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1199:19 [INFO] [stdout] | [INFO] [stdout] 1199 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1232:19 [INFO] [stdout] | [INFO] [stdout] 1232 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1260:19 [INFO] [stdout] | [INFO] [stdout] 1260 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1293:19 [INFO] [stdout] | [INFO] [stdout] 1293 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1330:19 [INFO] [stdout] | [INFO] [stdout] 1330 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1060:19 [INFO] [stdout] | [INFO] [stdout] 1060 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1134:19 [INFO] [stdout] | [INFO] [stdout] 1134 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1171:19 [INFO] [stdout] | [INFO] [stdout] 1171 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1199:19 [INFO] [stdout] | [INFO] [stdout] 1199 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1232:19 [INFO] [stdout] | [INFO] [stdout] 1232 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1260:19 [INFO] [stdout] | [INFO] [stdout] 1260 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1293:19 [INFO] [stdout] | [INFO] [stdout] 1293 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/replicaservice.rs:1330:19 [INFO] [stdout] | [INFO] [stdout] 1330 | e.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | fn new(port : u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_i_d` [INFO] [stdout] --> src/main.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_index` [INFO] [stdout] --> src/main.rs:84:65 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_term` [INFO] [stdout] --> src/main.rs:84:86 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:88:46 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_index` [INFO] [stdout] --> src/main.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_term` [INFO] [stdout] --> src/main.rs:88:83 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/main.rs:88:103 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_commit` [INFO] [stdout] --> src/main.rs:88:117 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_commit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:93:66 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:97:81 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_term` [INFO] [stdout] --> src/main.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | fn handle_install_snapshot(&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, d... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:132:57 [INFO] [stdout] | [INFO] [stdout] 132 | ...&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) ->... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_index` [INFO] [stdout] --> src/main.rs:132:73 [INFO] [stdout] | [INFO] [stdout] 132 | ...leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_term` [INFO] [stdout] --> src/main.rs:132:99 [INFO] [stdout] | [INFO] [stdout] 132 | ...uded_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/main.rs:132:124 [INFO] [stdout] | [INFO] [stdout] 132 | ...32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:132:137 [INFO] [stdout] | [INFO] [stdout] 132 | ...cluded_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/main.rs:132:152 [INFO] [stdout] | [INFO] [stdout] 132 | ...2, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_done` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoints` [INFO] [stdout] --> src/main.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | fn handle_add_new_configuration(&self, endpoints: Vec) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CANDIDATE` and `LEADER` are never constructed [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum ReplicaState { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 17 | FOLLOWER, [INFO] [stdout] 18 | CANDIDATE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | LEADER [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct Replica { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 23 | state : Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | current_term : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 25 | log : Arc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | commit_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | last_applied : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 28 | next_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | match_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | time_left : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | timeout : Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 32 | voted_for : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | leader : Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | state_machine : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | current_request_being_serviced : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | noop_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | jobs_to_retry : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | cluster_membership : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | has_operation_started : bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | my_id : ID [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `replica` is never read [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct Container { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | replica : Arc> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `timer` is never used [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Container { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | fn timer() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 96 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 97 | pub fn new(type_: F1, key: F2, value: F3, term: F4, client_identifier: F5, request_identifier: F6, new_conf... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 270 | impl AppendEntryResponse { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 271 | pub fn new(success: F1, term: F2, prev_log_index: F3, number_of_entries_added: F4) -> AppendEntryResponse where F1: Int... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 384 | impl Ballot { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 385 | pub fn new(vote_granted: F1, term: F2) -> Ballot where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 548 | impl PutResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 549 | pub fn new(success: F1, leader_i_d: F2) -> PutResponse where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:632:10 [INFO] [stdout] | [INFO] [stdout] 631 | impl GetResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 632 | pub fn new(success: F1, value: F2, leader_i_d: F3) -> GetResponse where F1: Into>, F2: Into>, F... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:744:10 [INFO] [stdout] | [INFO] [stdout] 743 | impl ReplicaServiceSyncClient where IP: TInputProtocol, OP: TOutputProtocol { [INFO] [stdout] | -------------------------------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 744 | pub fn new(input_protocol: IP, output_protocol: OP) -> ReplicaServiceSyncClient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mystorers` (bin "mystorers") due to 3 previous errors; 48 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | fn new(port : u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_i_d` [INFO] [stdout] --> src/main.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_index` [INFO] [stdout] --> src/main.rs:84:65 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_log_term` [INFO] [stdout] --> src/main.rs:84:86 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_request_vote(&self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `term` [INFO] [stdout] --> src/main.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:88:46 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_index` [INFO] [stdout] --> src/main.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_log_term` [INFO] [stdout] --> src/main.rs:88:83 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_log_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/main.rs:88:103 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_commit` [INFO] [stdout] --> src/main.rs:88:117 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_append_entry(&self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_commit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:93:39 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:93:66 [INFO] [stdout] | [INFO] [stdout] 93 | fn handle_get(&self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_identifier` [INFO] [stdout] --> src/main.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_identifier` [INFO] [stdout] --> src/main.rs:97:81 [INFO] [stdout] | [INFO] [stdout] 97 | fn handle_put(&self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_term` [INFO] [stdout] --> src/main.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | fn handle_install_snapshot(&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, d... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_i_d` [INFO] [stdout] --> src/main.rs:132:57 [INFO] [stdout] | [INFO] [stdout] 132 | ...&self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) ->... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_i_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_index` [INFO] [stdout] --> src/main.rs:132:73 [INFO] [stdout] | [INFO] [stdout] 132 | ...leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_included_term` [INFO] [stdout] --> src/main.rs:132:99 [INFO] [stdout] | [INFO] [stdout] 132 | ...uded_index: i32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_included_term` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/main.rs:132:124 [INFO] [stdout] | [INFO] [stdout] 132 | ...32, last_included_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:132:137 [INFO] [stdout] | [INFO] [stdout] 132 | ...cluded_term: i32, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/main.rs:132:152 [INFO] [stdout] | [INFO] [stdout] 132 | ...2, offset: i32, data: Vec, done: bool) -> thrift::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_done` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoints` [INFO] [stdout] --> src/main.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | fn handle_add_new_configuration(&self, endpoints: Vec) -> thrift::Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CANDIDATE` and `LEADER` are never constructed [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum ReplicaState { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 17 | FOLLOWER, [INFO] [stdout] 18 | CANDIDATE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | LEADER [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct Replica { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 23 | state : Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | current_term : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 25 | log : Arc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | commit_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | last_applied : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 28 | next_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | match_index : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | time_left : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | timeout : Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 32 | voted_for : Arc>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | leader : Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | state_machine : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | current_request_being_serviced : Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | noop_index : Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | jobs_to_retry : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | cluster_membership : Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | has_operation_started : bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | my_id : ID [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `replica` is never read [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct Container { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 69 | replica : Arc> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `timer` is never used [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Container { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | fn timer() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 96 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 97 | pub fn new(type_: F1, key: F2, value: F3, term: F4, client_identifier: F5, request_identifier: F6, new_conf... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 270 | impl AppendEntryResponse { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 271 | pub fn new(success: F1, term: F2, prev_log_index: F3, number_of_entries_added: F4) -> AppendEntryResponse where F1: Int... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 384 | impl Ballot { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 385 | pub fn new(vote_granted: F1, term: F2) -> Ballot where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 548 | impl PutResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 549 | pub fn new(success: F1, leader_i_d: F2) -> PutResponse where F1: Into>, F2: Into> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:632:10 [INFO] [stdout] | [INFO] [stdout] 631 | impl GetResponse { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 632 | pub fn new(success: F1, value: F2, leader_i_d: F3) -> GetResponse where F1: Into>, F2: Into>, F... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/replicaservice.rs:744:10 [INFO] [stdout] | [INFO] [stdout] 743 | impl ReplicaServiceSyncClient where IP: TInputProtocol, OP: TOutputProtocol { [INFO] [stdout] | -------------------------------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 744 | pub fn new(input_protocol: IP, output_protocol: OP) -> ReplicaServiceSyncClient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mystorers` (bin "mystorers" test) due to 3 previous errors; 48 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0db10f2a119f86e0b183699c7f5784a42be0c94ad9dc418836abd1fba2edbf6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0db10f2a119f86e0b183699c7f5784a42be0c94ad9dc418836abd1fba2edbf6c", kill_on_drop: false }` [INFO] [stdout] 0db10f2a119f86e0b183699c7f5784a42be0c94ad9dc418836abd1fba2edbf6c