[INFO] cloning repository https://github.com/dat2/rust-raft
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dat2/rust-raft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdat2%2Frust-raft"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdat2%2Frust-raft'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 8881ddba811664ddb4f67e143b876fc7f06a5c9d
[INFO] testing dat2/rust-raft against 1.100.0-beta.13+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdat2%2Frust-raft" "/workspace/builds/worker-4-tc1/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dat2/rust-raft
[INFO] finished tweaking git repo https://github.com/dat2/rust-raft
[INFO] tweaked toml for git repo https://github.com/dat2/rust-raft written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dat2/rust-raft on toolchain 1.100.0-beta.13
[INFO] running `"cargo" "+1.100.0-beta.13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/dat2/rust-raft already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.100.0-beta.13" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `raft` (manifest) generated 1 warning
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-service v0.1.0
[INFO] [stderr]   Downloaded bytes v0.4.3
[INFO] [stderr]   Downloaded tokio-io v0.1.1
[INFO] [stderr]   Downloaded tokio-proto v0.1.1
[INFO] [stderr]   Downloaded futures v0.1.13
[INFO] [stderr]   Downloaded memchr v1.0.1
[INFO] [stderr]   Downloaded thread-id v3.0.0
[INFO] [stderr]   Downloaded serde_derive_internals v0.15.0
[INFO] [stderr]   Downloaded utf8-ranges v1.0.0
[INFO] [stderr]   Downloaded thread_local v0.3.3
[INFO] [stderr]   Downloaded vec_map v0.6.0
[INFO] [stderr]   Downloaded term_size v0.2.3
[INFO] [stderr]   Downloaded ansi_term v0.9.0
[INFO] [stderr]   Downloaded smallvec v0.2.1
[INFO] [stderr]   Downloaded rustc-demangle v0.1.4
[INFO] [stderr]   Downloaded env_logger v0.4.1
[INFO] [stderr]   Downloaded cfg-if v0.1.0
[INFO] [stderr]   Downloaded take v0.1.0
[INFO] [stderr]   Downloaded error-chain v0.7.2
[INFO] [stderr]   Downloaded backtrace v0.3.0
[INFO] [stderr]   Downloaded gcc v0.3.43
[INFO] [stderr]   Downloaded dbghelp-sys v0.2.0
[INFO] [stderr]   Downloaded aho-corasick v0.6.2
[INFO] [stderr]   Downloaded serde_derive v1.0.4
[INFO] [stderr]   Downloaded tokio-core v0.1.7
[INFO] [stderr]   Downloaded unicode-segmentation v1.1.0
[INFO] [stderr]   Downloaded bincode v0.8.0
[INFO] [stderr]   Downloaded mio v0.6.7
[INFO] [stderr]   Downloaded regex-syntax v0.4.0
[INFO] [stderr]   Downloaded libc v0.2.21
[INFO] [stderr]   Downloaded clap v2.20.5
[INFO] [stderr]   Downloaded regex v0.2.1
[INFO] [stderr]   Downloaded backtrace-sys v0.1.10
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] 204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2
[INFO] running `"docker" "start" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] running `"docker" "inspect" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `raft` (manifest) generated 1 warning
[INFO] [stderr]    Compiling libc v0.2.21
[INFO] [stderr]    Compiling winapi-build v0.1.1
[INFO] [stderr]    Compiling cfg-if v0.1.0
[INFO] [stderr]    Compiling byteorder v1.0.0
[INFO] [stderr]    Compiling gcc v0.3.43
[INFO] [stderr]    Compiling log v0.3.6
[INFO] [stderr]    Compiling futures v0.1.13
[INFO] [stderr]    Compiling winapi v0.2.8
[INFO] [stderr]    Compiling backtrace v0.3.0
[INFO] [stderr]    Compiling lazycell v0.4.0
[INFO] [stderr]    Compiling slab v0.3.0
[INFO] [stderr]    Compiling utf8-ranges v1.0.0
[INFO] [stderr]    Compiling scoped-tls v0.1.0
[INFO] [stderr]    Compiling regex-syntax v0.4.0
[INFO] [stderr]    Compiling syn v0.11.11
[INFO] [stderr]    Compiling rustc-demangle v0.1.4
[INFO] [stderr]    Compiling smallvec v0.2.1
[INFO] [stderr]    Compiling bitflags v0.7.0
[INFO] [stderr]    Compiling serde v1.0.4
[INFO] [stderr]    Compiling dbghelp-sys v0.2.0
[INFO] [stderr]    Compiling kernel32-sys v0.2.2
[INFO] [stderr]    Compiling take v0.1.0
[INFO] [stderr]    Compiling ansi_term v0.9.0
[INFO] [stderr]    Compiling unicode-segmentation v1.1.0
[INFO] [stderr]    Compiling num-traits v0.1.37
[INFO] [stderr]    Compiling vec_map v0.6.0
[INFO] [stderr]    Compiling iovec v0.1.0
[INFO] [stderr]    Compiling net2 v0.2.29
[INFO] [stderr]    Compiling thread-id v3.0.0
[INFO] [stderr]    Compiling memchr v1.0.1
[INFO] [stderr]    Compiling term_size v0.2.3
[INFO] [stderr]    Compiling rand v0.3.15
[INFO] [stderr]    Compiling bytes v0.4.3
[INFO] [stderr]    Compiling thread_local v0.3.3
[INFO] [stderr]    Compiling aho-corasick v0.6.2
[INFO] [stderr]    Compiling backtrace-sys v0.1.10
[INFO] [stderr]    Compiling clap v2.20.5
[INFO] [stderr]    Compiling mio v0.6.7
[INFO] [stderr]    Compiling serde_derive_internals v0.15.0
[INFO] [stderr]    Compiling tokio-io v0.1.1
[INFO] [stderr]    Compiling tokio-service v0.1.0
[INFO] [stderr]    Compiling regex v0.2.1
[INFO] [stderr]    Compiling serde_derive v1.0.4
[INFO] [stderr]    Compiling tokio-core v0.1.7
[INFO] [stderr]    Compiling tokio-proto v0.1.1
[INFO] [stderr]    Compiling env_logger v0.4.1
[INFO] [stderr]    Compiling bincode v0.8.0
[INFO] [stderr]    Compiling error-chain v0.7.2
[INFO] [stderr]    Compiling raft v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]  --> src/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::str;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UnboundedReceiver`
[INFO] [stdout]   --> src/server.rs:13:55
[INFO] [stdout]    |
[INFO] [stdout] 13 | use futures::sync::mpsc::{unbounded, UnboundedSender, UnboundedReceiver};
[INFO] [stdout]    |                                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]  --> src/client.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::str;
[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/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |
[INFO] [stdout]  3 | |   types {
[INFO] [stdout]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 13 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |
[INFO] [stdout]  3 | |   types {
[INFO] [stdout]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 13 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[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/server.rs:34:62
[INFO] [stdout]    |
[INFO] [stdout] 34 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/server.rs:53:60
[INFO] [stdout]    |
[INFO] [stdout] 53 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/server.rs:87:85
[INFO] [stdout]    |
[INFO] [stdout] 87 |         self.tx.send(oneshot_tx).map_err(|e| io::Error::new(io::ErrorKind::Other, 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/server.rs:89:87
[INFO] [stdout]    |
[INFO] [stdout] 89 |           .and_then(|_| oneshot_rx.map_err(|e| io::Error::new(io::ErrorKind::Other, 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/client.rs:33:62
[INFO] [stdout]    |
[INFO] [stdout] 33 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/client.rs:52:60
[INFO] [stdout]    |
[INFO] [stdout] 52 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description())),
[INFO] [stdout]    |                                                            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RaftState` is never constructed
[INFO] [stdout]  --> src/state.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct RaftState {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `vote` are never used
[INFO] [stdout]   --> src/state.rs:7:10
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl RaftState {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout]  7 |   pub fn new() -> RaftState {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |   pub fn vote(&mut self, candidate: String) {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `StateEnum` is never used
[INFO] [stdout]   --> src/state.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum StateEnum {
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StateMachine` is never constructed
[INFO] [stdout]   --> src/state.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct StateMachine<S> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:32:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl<S> StateMachine<S> {
[INFO] [stdout]    | ----------------------- associated function in this implementation
[INFO] [stdout] 32 |   fn new(state: S, term: usize) -> StateMachine<S> {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init`, `vote`, `complete_vote`, and `election_timeout` are never used
[INFO] [stdout]   --> src/state.rs:42:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl StateMachine<Follower> {
[INFO] [stdout]    | --------------------------- associated items in this implementation
[INFO] [stdout] 41 |   // everyone starts off as a follower
[INFO] [stdout] 42 |   pub fn init() -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |   pub fn vote(self, candidate: String) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |   pub fn complete_vote(self) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |   pub fn election_timeout(self) -> StateMachine<Candidate> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `failed_majority_timeout`, `other_leader_elected`, and `elected` are never used
[INFO] [stdout]   --> src/state.rs:64:10
[INFO] [stdout]    |
[INFO] [stdout] 62 | impl StateMachine<Candidate> {
[INFO] [stdout]    | ---------------------------- methods in this implementation
[INFO] [stdout] 63 |   // if no majority was reached, then we just need to increment term and try again
[INFO] [stdout] 64 |   pub fn failed_majority_timeout(self) -> StateMachine<Candidate> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |   pub fn other_leader_elected(self) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |   pub fn elected(self) -> StateMachine<Leader> {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Follower` is never constructed
[INFO] [stdout]   --> src/state.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct Follower {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:85:6
[INFO] [stdout]    |
[INFO] [stdout] 84 | impl Follower {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 85 |   fn new(voted_for: Option<String>) -> Follower {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Candidate` is never constructed
[INFO] [stdout]   --> src/state.rs:91:12
[INFO] [stdout]    |
[INFO] [stdout] 91 | pub struct Candidate;
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Leader` is never constructed
[INFO] [stdout]   --> src/state.rs:94:12
[INFO] [stdout]    |
[INFO] [stdout] 94 | pub struct Leader;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `std::result::Result` that must be used
[INFO] [stdout]    --> src/server.rs:107:7
[INFO] [stdout]     |
[INFO] [stdout] 107 |       v.send(rng.gen());
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 107 |       let _ = v.send(rng.gen());
[INFO] [stdout]     |       +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:1:10
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `RaftRequest` is not local
[INFO] [stdout]   |          `Serialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftRequest`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:1:21
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |                     -^^^^^^^^^^
[INFO] [stdout]   |                     |
[INFO] [stdout]   |                     `RaftRequest` is not local
[INFO] [stdout]   |                     `Deserialize` is not local
[INFO] [stdout]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftRequest`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:7:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `RaftResponse` is not local
[INFO] [stdout]   |          `Serialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftResponse`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |                     -^^^^^^^^^^
[INFO] [stdout]   |                     |
[INFO] [stdout]   |                     `RaftResponse` is not local
[INFO] [stdout]   |                     `Deserialize` is not local
[INFO] [stdout]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftResponse`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[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/main.rs:35:21
[INFO] [stdout]    |
[INFO] [stdout] 35 |     Err(e) => Err(e.description().to_string())
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 39.86s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `"docker" "inspect" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "test" "--frozen" "--no-run" "--message-format=json" "--release"`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `raft` (manifest) generated 1 warning
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]  --> src/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::str;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UnboundedReceiver`
[INFO] [stdout]   --> src/server.rs:13:55
[INFO] [stdout]    |
[INFO] [stdout] 13 | use futures::sync::mpsc::{unbounded, UnboundedSender, UnboundedReceiver};
[INFO] [stdout]    |                                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]  --> src/client.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::str;
[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/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |
[INFO] [stdout]  3 | |   types {
[INFO] [stdout]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 13 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |
[INFO] [stdout]  3 | |   types {
[INFO] [stdout]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 13 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[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/server.rs:34:62
[INFO] [stdout]    |
[INFO] [stdout] 34 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/server.rs:53:60
[INFO] [stdout]    |
[INFO] [stdout] 53 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/server.rs:87:85
[INFO] [stdout]    |
[INFO] [stdout] 87 |         self.tx.send(oneshot_tx).map_err(|e| io::Error::new(io::ErrorKind::Other, 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/server.rs:89:87
[INFO] [stdout]    |
[INFO] [stdout] 89 |           .and_then(|_| oneshot_rx.map_err(|e| io::Error::new(io::ErrorKind::Other, 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/client.rs:33:62
[INFO] [stdout]    |
[INFO] [stdout] 33 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/client.rs:52:60
[INFO] [stdout]    |
[INFO] [stdout] 52 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description())),
[INFO] [stdout]    |                                                            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RaftState` is never constructed
[INFO] [stdout]  --> src/state.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct RaftState {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `vote` are never used
[INFO] [stdout]   --> src/state.rs:7:10
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl RaftState {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout]  7 |   pub fn new() -> RaftState {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |   pub fn vote(&mut self, candidate: String) {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `StateEnum` is never used
[INFO] [stdout]   --> src/state.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum StateEnum {
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StateMachine` is never constructed
[INFO] [stdout]   --> src/state.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct StateMachine<S> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:32:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl<S> StateMachine<S> {
[INFO] [stdout]    | ----------------------- associated function in this implementation
[INFO] [stdout] 32 |   fn new(state: S, term: usize) -> StateMachine<S> {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init`, `vote`, `complete_vote`, and `election_timeout` are never used
[INFO] [stdout]   --> src/state.rs:42:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl StateMachine<Follower> {
[INFO] [stdout]    | --------------------------- associated items in this implementation
[INFO] [stdout] 41 |   // everyone starts off as a follower
[INFO] [stdout] 42 |   pub fn init() -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |   pub fn vote(self, candidate: String) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |   pub fn complete_vote(self) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |   pub fn election_timeout(self) -> StateMachine<Candidate> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `failed_majority_timeout`, `other_leader_elected`, and `elected` are never used
[INFO] [stdout]   --> src/state.rs:64:10
[INFO] [stdout]    |
[INFO] [stdout] 62 | impl StateMachine<Candidate> {
[INFO] [stdout]    | ---------------------------- methods in this implementation
[INFO] [stdout] 63 |   // if no majority was reached, then we just need to increment term and try again
[INFO] [stdout] 64 |   pub fn failed_majority_timeout(self) -> StateMachine<Candidate> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |   pub fn other_leader_elected(self) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |   pub fn elected(self) -> StateMachine<Leader> {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Follower` is never constructed
[INFO] [stdout]   --> src/state.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct Follower {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:85:6
[INFO] [stdout]    |
[INFO] [stdout] 84 | impl Follower {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 85 |   fn new(voted_for: Option<String>) -> Follower {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Candidate` is never constructed
[INFO] [stdout]   --> src/state.rs:91:12
[INFO] [stdout]    |
[INFO] [stdout] 91 | pub struct Candidate;
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Leader` is never constructed
[INFO] [stdout]   --> src/state.rs:94:12
[INFO] [stdout]    |
[INFO] [stdout] 94 | pub struct Leader;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `std::result::Result` that must be used
[INFO] [stdout]    --> src/server.rs:107:7
[INFO] [stdout]     |
[INFO] [stdout] 107 |       v.send(rng.gen());
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 107 |       let _ = v.send(rng.gen());
[INFO] [stdout]     |       +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:1:10
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `RaftRequest` is not local
[INFO] [stdout]   |          `Serialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftRequest`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:1:21
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |                     -^^^^^^^^^^
[INFO] [stdout]   |                     |
[INFO] [stdout]   |                     `RaftRequest` is not local
[INFO] [stdout]   |                     `Deserialize` is not local
[INFO] [stdout]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftRequest`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling raft v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:7:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `RaftResponse` is not local
[INFO] [stdout]   |          `Serialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftResponse`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |                     -^^^^^^^^^^
[INFO] [stdout]   |                     |
[INFO] [stdout]   |                     `RaftResponse` is not local
[INFO] [stdout]   |                     `Deserialize` is not local
[INFO] [stdout]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftResponse`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[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/main.rs:35:21
[INFO] [stdout]    |
[INFO] [stdout] 35 |     Err(e) => Err(e.description().to_string())
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]  --> src/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::str;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UnboundedReceiver`
[INFO] [stdout]   --> src/server.rs:13:55
[INFO] [stdout]    |
[INFO] [stdout] 13 | use futures::sync::mpsc::{unbounded, UnboundedSender, UnboundedReceiver};
[INFO] [stdout]    |                                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]  --> src/client.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::str;
[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/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |
[INFO] [stdout]  3 | |   types {
[INFO] [stdout]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 13 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | / error_chain! {
[INFO] [stdout]  2 | |
[INFO] [stdout]  3 | |   types {
[INFO] [stdout]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stdout] ...  |
[INFO] [stdout] 13 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[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/server.rs:34:62
[INFO] [stdout]    |
[INFO] [stdout] 34 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/server.rs:53:60
[INFO] [stdout]    |
[INFO] [stdout] 53 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/server.rs:87:85
[INFO] [stdout]    |
[INFO] [stdout] 87 |         self.tx.send(oneshot_tx).map_err(|e| io::Error::new(io::ErrorKind::Other, 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/server.rs:89:87
[INFO] [stdout]    |
[INFO] [stdout] 89 |           .and_then(|_| oneshot_rx.map_err(|e| io::Error::new(io::ErrorKind::Other, 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/client.rs:33:62
[INFO] [stdout]    |
[INFO] [stdout] 33 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, 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/client.rs:52:60
[INFO] [stdout]    |
[INFO] [stdout] 52 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description())),
[INFO] [stdout]    |                                                            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RaftState` is never constructed
[INFO] [stdout]  --> src/state.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct RaftState {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `vote` are never used
[INFO] [stdout]   --> src/state.rs:7:10
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl RaftState {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout]  7 |   pub fn new() -> RaftState {
[INFO] [stdout]    |          ^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |   pub fn vote(&mut self, candidate: String) {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `StateEnum` is never used
[INFO] [stdout]   --> src/state.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum StateEnum {
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StateMachine` is never constructed
[INFO] [stdout]   --> src/state.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct StateMachine<S> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:32:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl<S> StateMachine<S> {
[INFO] [stdout]    | ----------------------- associated function in this implementation
[INFO] [stdout] 32 |   fn new(state: S, term: usize) -> StateMachine<S> {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init`, `vote`, `complete_vote`, and `election_timeout` are never used
[INFO] [stdout]   --> src/state.rs:42:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl StateMachine<Follower> {
[INFO] [stdout]    | --------------------------- associated items in this implementation
[INFO] [stdout] 41 |   // everyone starts off as a follower
[INFO] [stdout] 42 |   pub fn init() -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |   pub fn vote(self, candidate: String) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |   pub fn complete_vote(self) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |   pub fn election_timeout(self) -> StateMachine<Candidate> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `failed_majority_timeout`, `other_leader_elected`, and `elected` are never used
[INFO] [stdout]   --> src/state.rs:64:10
[INFO] [stdout]    |
[INFO] [stdout] 62 | impl StateMachine<Candidate> {
[INFO] [stdout]    | ---------------------------- methods in this implementation
[INFO] [stdout] 63 |   // if no majority was reached, then we just need to increment term and try again
[INFO] [stdout] 64 |   pub fn failed_majority_timeout(self) -> StateMachine<Candidate> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |   pub fn other_leader_elected(self) -> StateMachine<Follower> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |   pub fn elected(self) -> StateMachine<Leader> {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Follower` is never constructed
[INFO] [stdout]   --> src/state.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct Follower {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/state.rs:85:6
[INFO] [stdout]    |
[INFO] [stdout] 84 | impl Follower {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 85 |   fn new(voted_for: Option<String>) -> Follower {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Candidate` is never constructed
[INFO] [stdout]   --> src/state.rs:91:12
[INFO] [stdout]    |
[INFO] [stdout] 91 | pub struct Candidate;
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Leader` is never constructed
[INFO] [stdout]   --> src/state.rs:94:12
[INFO] [stdout]    |
[INFO] [stdout] 94 | pub struct Leader;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `std::result::Result` that must be used
[INFO] [stdout]    --> src/server.rs:107:7
[INFO] [stdout]     |
[INFO] [stdout] 107 |       v.send(rng.gen());
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 107 |       let _ = v.send(rng.gen());
[INFO] [stdout]     |       +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:1:10
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `RaftRequest` is not local
[INFO] [stdout]   |          `Serialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftRequest`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:1:21
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |                     -^^^^^^^^^^
[INFO] [stdout]   |                     |
[INFO] [stdout]   |                     `RaftRequest` is not local
[INFO] [stdout]   |                     `Deserialize` is not local
[INFO] [stdout]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftRequest`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:7:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `RaftResponse` is not local
[INFO] [stdout]   |          `Serialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftResponse`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/messages.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stdout]   |                     -^^^^^^^^^^
[INFO] [stdout]   |                     |
[INFO] [stdout]   |                     `RaftResponse` is not local
[INFO] [stdout]   |                     `Deserialize` is not local
[INFO] [stdout]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftResponse`
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.69s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `"docker" "inspect" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "test" "--frozen" "--release"`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `raft` (manifest) generated 1 warning
[INFO] [stderr] warning: unused import: `std::str`
[INFO] [stderr]  --> src/server.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::str;
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `UnboundedReceiver`
[INFO] [stderr]   --> src/server.rs:13:55
[INFO] [stderr]    |
[INFO] [stderr] 13 | use futures::sync::mpsc::{unbounded, UnboundedSender, UnboundedReceiver};
[INFO] [stderr]    |                                                       ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::str`
[INFO] [stderr]  --> src/client.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::str;
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/errors.rs:1:1
[INFO] [stderr]    |
[INFO] [stderr]  1 | / error_chain! {
[INFO] [stderr]  2 | |
[INFO] [stderr]  3 | |   types {
[INFO] [stderr]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stderr] ...  |
[INFO] [stderr] 13 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stderr]   --> src/errors.rs:1:1
[INFO] [stderr]    |
[INFO] [stderr]  1 | / error_chain! {
[INFO] [stderr]  2 | |
[INFO] [stderr]  3 | |   types {
[INFO] [stderr]  4 | |     Error, ErrorKind, ResultExt, Result;
[INFO] [stderr] ...  |
[INFO] [stderr] 13 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/server.rs:34:62
[INFO] [stderr]    |
[INFO] [stderr] 34 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description()))
[INFO] [stderr]    |                                                              ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/server.rs:53:60
[INFO] [stderr]    |
[INFO] [stderr] 53 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description()))
[INFO] [stderr]    |                                                            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/server.rs:87:85
[INFO] [stderr]    |
[INFO] [stderr] 87 |         self.tx.send(oneshot_tx).map_err(|e| io::Error::new(io::ErrorKind::Other, e.description()))
[INFO] [stderr]    |                                                                                     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/server.rs:89:87
[INFO] [stderr]    |
[INFO] [stderr] 89 |           .and_then(|_| oneshot_rx.map_err(|e| io::Error::new(io::ErrorKind::Other, e.description())))
[INFO] [stderr]    |                                                                                       ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/client.rs:33:62
[INFO] [stderr]    |
[INFO] [stderr] 33 |         Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description())),
[INFO] [stderr]    |                                                              ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/client.rs:52:60
[INFO] [stderr]    |
[INFO] [stderr] 52 |       Err(e) => Err(io::Error::new(io::ErrorKind::Other, e.description())),
[INFO] [stderr]    |                                                            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `RaftState` is never constructed
[INFO] [stderr]  --> src/state.rs:2:12
[INFO] [stderr]   |
[INFO] [stderr] 2 | pub struct RaftState {
[INFO] [stderr]   |            ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `vote` are never used
[INFO] [stderr]   --> src/state.rs:7:10
[INFO] [stderr]    |
[INFO] [stderr]  6 | impl RaftState {
[INFO] [stderr]    | -------------- associated items in this implementation
[INFO] [stderr]  7 |   pub fn new() -> RaftState {
[INFO] [stderr]    |          ^^^
[INFO] [stderr] ...
[INFO] [stderr] 11 |   pub fn vote(&mut self, candidate: String) {
[INFO] [stderr]    |          ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `StateEnum` is never used
[INFO] [stderr]   --> src/state.rs:19:10
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub enum StateEnum {
[INFO] [stderr]    |          ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `StateMachine` is never constructed
[INFO] [stderr]   --> src/state.rs:26:12
[INFO] [stderr]    |
[INFO] [stderr] 26 | pub struct StateMachine<S> {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/state.rs:32:6
[INFO] [stderr]    |
[INFO] [stderr] 31 | impl<S> StateMachine<S> {
[INFO] [stderr]    | ----------------------- associated function in this implementation
[INFO] [stderr] 32 |   fn new(state: S, term: usize) -> StateMachine<S> {
[INFO] [stderr]    |      ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `init`, `vote`, `complete_vote`, and `election_timeout` are never used
[INFO] [stderr]   --> src/state.rs:42:10
[INFO] [stderr]    |
[INFO] [stderr] 40 | impl StateMachine<Follower> {
[INFO] [stderr]    | --------------------------- associated items in this implementation
[INFO] [stderr] 41 |   // everyone starts off as a follower
[INFO] [stderr] 42 |   pub fn init() -> StateMachine<Follower> {
[INFO] [stderr]    |          ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 47 |   pub fn vote(self, candidate: String) -> StateMachine<Follower> {
[INFO] [stderr]    |          ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 52 |   pub fn complete_vote(self) -> StateMachine<Follower> {
[INFO] [stderr]    |          ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 |   pub fn election_timeout(self) -> StateMachine<Candidate> {
[INFO] [stderr]    |          ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `failed_majority_timeout`, `other_leader_elected`, and `elected` are never used
[INFO] [stderr]   --> src/state.rs:64:10
[INFO] [stderr]    |
[INFO] [stderr] 62 | impl StateMachine<Candidate> {
[INFO] [stderr]    | ---------------------------- methods in this implementation
[INFO] [stderr] 63 |   // if no majority was reached, then we just need to increment term and try again
[INFO] [stderr] 64 |   pub fn failed_majority_timeout(self) -> StateMachine<Candidate> {
[INFO] [stderr]    |          ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 69 |   pub fn other_leader_elected(self) -> StateMachine<Follower> {
[INFO] [stderr]    |          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 74 |   pub fn elected(self) -> StateMachine<Leader> {
[INFO] [stderr]    |          ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Follower` is never constructed
[INFO] [stderr]   --> src/state.rs:80:12
[INFO] [stderr]    |
[INFO] [stderr] 80 | pub struct Follower {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/state.rs:85:6
[INFO] [stderr]    |
[INFO] [stderr] 84 | impl Follower {
[INFO] [stderr]    | ------------- associated function in this implementation
[INFO] [stderr] 85 |   fn new(voted_for: Option<String>) -> Follower {
[INFO] [stderr]    |      ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Candidate` is never constructed
[INFO] [stderr]   --> src/state.rs:91:12
[INFO] [stderr]    |
[INFO] [stderr] 91 | pub struct Candidate;
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Leader` is never constructed
[INFO] [stderr]   --> src/state.rs:94:12
[INFO] [stderr]    |
[INFO] [stderr] 94 | pub struct Leader;
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused `std::result::Result` that must be used
[INFO] [stderr]    --> src/server.rs:107:7
[INFO] [stderr]     |
[INFO] [stderr] 107 |       v.send(rng.gen());
[INFO] [stderr]     |       ^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 107 |       let _ = v.send(rng.gen());
[INFO] [stderr]     |       +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/messages.rs:1:10
[INFO] [stderr]   |
[INFO] [stderr] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stderr]   |          ^^^^^^^^^
[INFO] [stderr]   |          |
[INFO] [stderr]   |          `RaftRequest` is not local
[INFO] [stderr]   |          `Serialize` is not local
[INFO] [stderr]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftRequest`
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stderr]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/messages.rs:1:21
[INFO] [stderr]   |
[INFO] [stderr] 1 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stderr]   |                     -^^^^^^^^^^
[INFO] [stderr]   |                     |
[INFO] [stderr]   |                     `RaftRequest` is not local
[INFO] [stderr]   |                     `Deserialize` is not local
[INFO] [stderr]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftRequest`
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/messages.rs:7:10
[INFO] [stderr]   |
[INFO] [stderr] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stderr]   |          ^^^^^^^^^
[INFO] [stderr]   |          |
[INFO] [stderr]   |          `RaftResponse` is not local
[INFO] [stderr]   |          `Serialize` is not local
[INFO] [stderr]   |          move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RaftResponse`
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/messages.rs:7:21
[INFO] [stderr]   |
[INFO] [stderr] 7 | #[derive(Serialize, Deserialize, PartialEq,Debug)]
[INFO] [stderr]   |                     -^^^^^^^^^^
[INFO] [stderr]   |                     |
[INFO] [stderr]   |                     `RaftResponse` is not local
[INFO] [stderr]   |                     `Deserialize` is not local
[INFO] [stderr]   |                     move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RaftResponse`
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: `raft` (lib) generated 27 warnings (run `cargo fix --lib -p raft` to apply 3 suggestions)
[INFO] [stderr] warning: `raft` (lib test) generated 27 warnings (27 duplicates)
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/main.rs:35:21
[INFO] [stderr]    |
[INFO] [stderr] 35 |     Err(e) => Err(e.description().to_string())
[INFO] [stderr]    |                     ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `raft` (bin "raftd" test) generated 1 warning
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.11s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/build/raft/5cc0eb6b2c7a2a02/out/raft-5cc0eb6b2c7a2a02)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/release/build/raft/9c98dd92a79c0f9e/out/raftd-9c98dd92a79c0f9e)
[INFO] [stderr]    Doc-tests raft
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `"docker" "inspect" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] running `"docker" "rm" "-f" "204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2"`
[INFO] [stdout] 204acc93c8a6ced904f932e861c86ca6e308401dfb918fa12ad9a95a1a6e2ec2
