[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] building gwint/mystorers against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgwint%2Fmystorers" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gwint/mystorers on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-2-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded integer-encoding v1.1.5 [INFO] [stderr] Downloaded thrift v0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75f739f6095b18a6b6c6d166a102677bef0a12f4e01ec9e63ce314c0cd0c441a [INFO] running `Command { std: "docker" "start" "-a" "75f739f6095b18a6b6c6d166a102677bef0a12f4e01ec9e63ce314c0cd0c441a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75f739f6095b18a6b6c6d166a102677bef0a12f4e01ec9e63ce314c0cd0c441a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75f739f6095b18a6b6c6d166a102677bef0a12f4e01ec9e63ce314c0cd0c441a", kill_on_drop: false }` [INFO] [stdout] 75f739f6095b18a6b6c6d166a102677bef0a12f4e01ec9e63ce314c0cd0c441a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e36c3fe65c7f795d2c83771e7174ca3c9dec80bff15072d5885e4384f1b00a84 [INFO] running `Command { std: "docker" "start" "-a" "e36c3fe65c7f795d2c83771e7174ca3c9dec80bff15072d5885e4384f1b00a84", 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] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling integer-encoding v1.1.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling thrift v0.13.0 [INFO] [stderr] Compiling mystorers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Arc` and `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: 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: `#[warn(unexpected_cfgs)]` on by default [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: 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: multiple methods are never used [INFO] [stdout] --> src/replicaservice.rs:724:6 [INFO] [stdout] | [INFO] [stdout] 723 | pub trait TReplicaServiceSyncClient { [INFO] [stdout] | ------------------------- methods in this trait [INFO] [stdout] 724 | fn request_vote(&mut self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 725 | fn append_entry(&mut self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> thr... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 726 | fn get(&mut self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result; [INFO] [stdout] | ^^^ [INFO] [stdout] 727 | fn put(&mut self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result; [INFO] [stdout] | ^^^ [INFO] [stdout] 728 | fn kill(&mut self) -> thrift::Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 729 | fn get_information(&mut self) -> thrift::Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 730 | fn start(&mut self) -> thrift::Result<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 731 | fn install_snapshot(&mut self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 732 | fn add_new_configuration(&mut self, endpoints: Vec) -> thrift::Result; [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.94s [INFO] running `Command { std: "docker" "inspect" "e36c3fe65c7f795d2c83771e7174ca3c9dec80bff15072d5885e4384f1b00a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e36c3fe65c7f795d2c83771e7174ca3c9dec80bff15072d5885e4384f1b00a84", kill_on_drop: false }` [INFO] [stdout] e36c3fe65c7f795d2c83771e7174ca3c9dec80bff15072d5885e4384f1b00a84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15a1a8ede6e5926ddd08b09d7d0aa3ef92e176334cbf0adb3b3487fd358b266d [INFO] running `Command { std: "docker" "start" "-a" "15a1a8ede6e5926ddd08b09d7d0aa3ef92e176334cbf0adb3b3487fd358b266d", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Arc` and `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] [stderr] Compiling mystorers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 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: `#[warn(unexpected_cfgs)]` on by default [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 imports: `Arc` and `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: 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: multiple methods are never used [INFO] [stdout] --> src/replicaservice.rs:724:6 [INFO] [stdout] | [INFO] [stdout] 723 | pub trait TReplicaServiceSyncClient { [INFO] [stdout] | ------------------------- methods in this trait [INFO] [stdout] 724 | fn request_vote(&mut self, term: i32, candidate_i_d: ID, last_log_index: i32, last_log_term: i32) -> thrift::Result; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 725 | fn append_entry(&mut self, term: i32, leader_i_d: ID, prev_log_index: i32, prev_log_term: i32, entry: Entry, leader_commit: i32) -> thr... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 726 | fn get(&mut self, key: String, client_identifier: String, request_identifier: i32) -> thrift::Result; [INFO] [stdout] | ^^^ [INFO] [stdout] 727 | fn put(&mut self, key: String, value: String, client_identifier: String, request_identifier: i32) -> thrift::Result; [INFO] [stdout] | ^^^ [INFO] [stdout] 728 | fn kill(&mut self) -> thrift::Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 729 | fn get_information(&mut self) -> thrift::Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 730 | fn start(&mut self) -> thrift::Result<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 731 | fn install_snapshot(&mut self, leader_term: i32, leader_i_d: ID, last_included_index: i32, last_included_term: i32, offset: i32, data: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 732 | fn add_new_configuration(&mut self, endpoints: Vec) -> thrift::Result; [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "15a1a8ede6e5926ddd08b09d7d0aa3ef92e176334cbf0adb3b3487fd358b266d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15a1a8ede6e5926ddd08b09d7d0aa3ef92e176334cbf0adb3b3487fd358b266d", kill_on_drop: false }` [INFO] [stdout] 15a1a8ede6e5926ddd08b09d7d0aa3ef92e176334cbf0adb3b3487fd358b266d