[INFO] cloning repository https://github.com/lucas-montes/raft [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucas-montes/raft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucas-montes%2Fraft", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucas-montes%2Fraft'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a422c9b5fef16d69d90f4a0b8b41766b16c1624c [INFO] testing lucas-montes/raft against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucas-montes%2Fraft" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lucas-montes/raft [INFO] finished tweaking git repo https://github.com/lucas-montes/raft [INFO] tweaked toml for git repo https://github.com/lucas-montes/raft written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucas-montes/raft on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lucas-montes/raft already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ecbda47e3a4bc78e6d81f7e8c8492f21630d89105de0d47510d95486260e6e99 [INFO] running `Command { std: "docker" "start" "-a" "ecbda47e3a4bc78e6d81f7e8c8492f21630d89105de0d47510d95486260e6e99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecbda47e3a4bc78e6d81f7e8c8492f21630d89105de0d47510d95486260e6e99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecbda47e3a4bc78e6d81f7e8c8492f21630d89105de0d47510d95486260e6e99", kill_on_drop: false }` [INFO] [stdout] ecbda47e3a4bc78e6d81f7e8c8492f21630d89105de0d47510d95486260e6e99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1609a201152b28159f40c1765a6dd83808c32a6faecd05edce48736844b2637 [INFO] running `Command { std: "docker" "start" "-a" "a1609a201152b28159f40c1765a6dd83808c32a6faecd05edce48736844b2637", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling capnp v0.20.3 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling clap_builder v4.5.37 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling capnpc v0.20.1 [INFO] [stderr] Compiling raft v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling clap v4.5.37 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling capnp-futures v0.20.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling capnp-rpc v0.20.3 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stdout] warning: unused import: `raft_capnp::raft` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use raft_capnp::raft; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - fn new(hook: Box) -> Self { [INFO] [stdout] 22 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - fn into_client_hook(self) -> Box { [INFO] [stdout] 25 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 28 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1896:26 [INFO] [stdout] | [INFO] [stdout] 1896 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1896 - fn new(hook: Box) -> Self { [INFO] [stdout] 1896 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1899:42 [INFO] [stdout] | [INFO] [stdout] 1899 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1899 - fn into_client_hook(self) -> Box { [INFO] [stdout] 1899 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1902:38 [INFO] [stdout] | [INFO] [stdout] 1902 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1902 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 1902 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - fn new(hook: Box) -> Self { [INFO] [stdout] 268 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:271:42 [INFO] [stdout] | [INFO] [stdout] 271 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 271 - fn into_client_hook(self) -> Box { [INFO] [stdout] 271 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:274:38 [INFO] [stdout] | [INFO] [stdout] 274 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 274 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:384:28 [INFO] [stdout] | [INFO] [stdout] 384 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 384 - fn new(hook: Box) -> Self { [INFO] [stdout] 384 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:387:44 [INFO] [stdout] | [INFO] [stdout] 387 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - fn into_client_hook(self) -> Box { [INFO] [stdout] 387 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:390:40 [INFO] [stdout] | [INFO] [stdout] 390 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 390 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 390 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1646:28 [INFO] [stdout] | [INFO] [stdout] 1646 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1646 - fn new(hook: Box) -> Self { [INFO] [stdout] 1646 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1649:44 [INFO] [stdout] | [INFO] [stdout] 1649 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1649 - fn into_client_hook(self) -> Box { [INFO] [stdout] 1649 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1652:40 [INFO] [stdout] | [INFO] [stdout] 1652 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1652 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 1652 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2986:28 [INFO] [stdout] | [INFO] [stdout] 2986 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2986 - fn new(hook: Box) -> Self { [INFO] [stdout] 2986 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2989:44 [INFO] [stdout] | [INFO] [stdout] 2989 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2989 - fn into_client_hook(self) -> Box { [INFO] [stdout] 2989 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2992:40 [INFO] [stdout] | [INFO] [stdout] 2992 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2992 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 2992 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/node.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/peers.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error` is never read [INFO] [stdout] --> src/client.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct RequestError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 16 | index: usize, [INFO] [stdout] 17 | error: capnp::Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_index` and `last_term` are never read [INFO] [stdout] --> src/consensus.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | LogEntriesMismatch { last_index: u64, last_term: u64 }, [INFO] [stdout] | ------------------ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AppendEntriesResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> src/dto.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Query { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 112 | id: String, [INFO] [stdout] 113 | filter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Query` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `filter` is never used [INFO] [stdout] --> src/dto.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Query { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn filter(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Read` is never constructed [INFO] [stdout] --> src/dto.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub enum CommandMsg { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 133 | GetLeader(Msg<(), Option>), [INFO] [stdout] 134 | Read(Msg), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_applied` is never read [INFO] [stdout] --> src/state.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 210 | pub struct SoftState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 211 | commit_index: u64, [INFO] [stdout] 212 | last_applied: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SoftState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `match_index` and `next_index` are never read [INFO] [stdout] --> src/state.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 216 | pub struct LeaderState { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 217 | match_index: Vec<(NodeId, u64)>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 218 | next_index: Vec<(NodeId, u64)>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeaderState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `leader_state` is never read [INFO] [stdout] --> src/state.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct State { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 226 | leader_state: LeaderState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete` is never used [INFO] [stdout] --> src/storage.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 66 | impl LogEntries { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub async fn delete(&mut self, id: &str, table_name: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/storage.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct IndexEntry { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 183 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete`, `list_ids`, and `get_metadata` are never used [INFO] [stdout] --> src/storage.rs:400:18 [INFO] [stdout] | [INFO] [stdout] 198 | impl TableStorage { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 400 | pub async fn delete(&mut self, id: &str) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn list_ids(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub fn get_metadata(&self, id: &str) -> Option<&IndexEntry> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.14s [INFO] running `Command { std: "docker" "inspect" "a1609a201152b28159f40c1765a6dd83808c32a6faecd05edce48736844b2637", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1609a201152b28159f40c1765a6dd83808c32a6faecd05edce48736844b2637", kill_on_drop: false }` [INFO] [stdout] a1609a201152b28159f40c1765a6dd83808c32a6faecd05edce48736844b2637 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac64d082019a3d705b5826f23aa3c7e4d4d3a8e15bd12131eac2ab40be72ab04 [INFO] running `Command { std: "docker" "start" "-a" "ac64d082019a3d705b5826f23aa3c7e4d4d3a8e15bd12131eac2ab40be72ab04", kill_on_drop: false }` [INFO] [stderr] Compiling raft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `raft_capnp::raft` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use raft_capnp::raft; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - fn new(hook: Box) -> Self { [INFO] [stdout] 22 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - fn into_client_hook(self) -> Box { [INFO] [stdout] 25 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 28 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1896:26 [INFO] [stdout] | [INFO] [stdout] 1896 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1896 - fn new(hook: Box) -> Self { [INFO] [stdout] 1896 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1899:42 [INFO] [stdout] | [INFO] [stdout] 1899 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1899 - fn into_client_hook(self) -> Box { [INFO] [stdout] 1899 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1902:38 [INFO] [stdout] | [INFO] [stdout] 1902 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1902 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 1902 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - fn new(hook: Box) -> Self { [INFO] [stdout] 268 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:271:42 [INFO] [stdout] | [INFO] [stdout] 271 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 271 - fn into_client_hook(self) -> Box { [INFO] [stdout] 271 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:274:38 [INFO] [stdout] | [INFO] [stdout] 274 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 274 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:384:28 [INFO] [stdout] | [INFO] [stdout] 384 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 384 - fn new(hook: Box) -> Self { [INFO] [stdout] 384 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:387:44 [INFO] [stdout] | [INFO] [stdout] 387 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - fn into_client_hook(self) -> Box { [INFO] [stdout] 387 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:390:40 [INFO] [stdout] | [INFO] [stdout] 390 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 390 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 390 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1646:28 [INFO] [stdout] | [INFO] [stdout] 1646 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1646 - fn new(hook: Box) -> Self { [INFO] [stdout] 1646 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1649:44 [INFO] [stdout] | [INFO] [stdout] 1649 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1649 - fn into_client_hook(self) -> Box { [INFO] [stdout] 1649 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1652:40 [INFO] [stdout] | [INFO] [stdout] 1652 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1652 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 1652 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2986:28 [INFO] [stdout] | [INFO] [stdout] 2986 | fn new(hook: Box) -> Self { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2986 - fn new(hook: Box) -> Self { [INFO] [stdout] 2986 + fn new(hook: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2989:44 [INFO] [stdout] | [INFO] [stdout] 2989 | fn into_client_hook(self) -> Box { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2989 - fn into_client_hook(self) -> Box { [INFO] [stdout] 2989 + fn into_client_hook(self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2992:40 [INFO] [stdout] | [INFO] [stdout] 2992 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2992 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stdout] 2992 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/node.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/peers.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error` is never read [INFO] [stdout] --> src/client.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct RequestError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 16 | index: usize, [INFO] [stdout] 17 | error: capnp::Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_index` and `last_term` are never read [INFO] [stdout] --> src/consensus.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | LogEntriesMismatch { last_index: u64, last_term: u64 }, [INFO] [stdout] | ------------------ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AppendEntriesResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> src/dto.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Query { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 112 | id: String, [INFO] [stdout] 113 | filter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Query` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `filter` is never used [INFO] [stdout] --> src/dto.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Query { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn filter(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Read` is never constructed [INFO] [stdout] --> src/dto.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub enum CommandMsg { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 133 | GetLeader(Msg<(), Option>), [INFO] [stdout] 134 | Read(Msg), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_applied` is never read [INFO] [stdout] --> src/state.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 210 | pub struct SoftState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 211 | commit_index: u64, [INFO] [stdout] 212 | last_applied: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SoftState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `match_index` and `next_index` are never read [INFO] [stdout] --> src/state.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 216 | pub struct LeaderState { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 217 | match_index: Vec<(NodeId, u64)>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 218 | next_index: Vec<(NodeId, u64)>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LeaderState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `leader_state` is never read [INFO] [stdout] --> src/state.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct State { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 226 | leader_state: LeaderState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete` is never used [INFO] [stdout] --> src/storage.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 66 | impl LogEntries { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub async fn delete(&mut self, id: &str, table_name: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/storage.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct IndexEntry { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 183 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete`, `list_ids`, and `get_metadata` are never used [INFO] [stdout] --> src/storage.rs:400:18 [INFO] [stdout] | [INFO] [stdout] 198 | impl TableStorage { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 400 | pub async fn delete(&mut self, id: &str) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn list_ids(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub fn get_metadata(&self, id: &str) -> Option<&IndexEntry> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.10s [INFO] running `Command { std: "docker" "inspect" "ac64d082019a3d705b5826f23aa3c7e4d4d3a8e15bd12131eac2ab40be72ab04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac64d082019a3d705b5826f23aa3c7e4d4d3a8e15bd12131eac2ab40be72ab04", kill_on_drop: false }` [INFO] [stdout] ac64d082019a3d705b5826f23aa3c7e4d4d3a8e15bd12131eac2ab40be72ab04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0077304785f9e843cc36adf2a41bc46f7ec12e78b87ec110887150cf0e322927 [INFO] running `Command { std: "docker" "start" "-a" "0077304785f9e843cc36adf2a41bc46f7ec12e78b87ec110887150cf0e322927", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `raft_capnp::raft` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use raft_capnp::raft; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:22:26 [INFO] [stderr] | [INFO] [stderr] 22 | fn new(hook: Box) -> Self { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 22 - fn new(hook: Box) -> Self { [INFO] [stderr] 22 + fn new(hook: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:25:42 [INFO] [stderr] | [INFO] [stderr] 25 | fn into_client_hook(self) -> Box { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 25 - fn into_client_hook(self) -> Box { [INFO] [stderr] 25 + fn into_client_hook(self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:28:38 [INFO] [stderr] | [INFO] [stderr] 28 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 28 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] 28 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1896:26 [INFO] [stderr] | [INFO] [stderr] 1896 | fn new(hook: Box) -> Self { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1896 - fn new(hook: Box) -> Self { [INFO] [stderr] 1896 + fn new(hook: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1899:42 [INFO] [stderr] | [INFO] [stderr] 1899 | fn into_client_hook(self) -> Box { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1899 - fn into_client_hook(self) -> Box { [INFO] [stderr] 1899 + fn into_client_hook(self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/raft_capnp.rs:1902:38 [INFO] [stderr] | [INFO] [stderr] 1902 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1902 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] 1902 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:268:26 [INFO] [stderr] | [INFO] [stderr] 268 | fn new(hook: Box) -> Self { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 268 - fn new(hook: Box) -> Self { [INFO] [stderr] 268 + fn new(hook: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:271:42 [INFO] [stderr] | [INFO] [stderr] 271 | fn into_client_hook(self) -> Box { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 271 - fn into_client_hook(self) -> Box { [INFO] [stderr] 271 + fn into_client_hook(self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:274:38 [INFO] [stderr] | [INFO] [stderr] 274 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 274 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] 274 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:384:28 [INFO] [stderr] | [INFO] [stderr] 384 | fn new(hook: Box) -> Self { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 384 - fn new(hook: Box) -> Self { [INFO] [stderr] 384 + fn new(hook: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:387:44 [INFO] [stderr] | [INFO] [stderr] 387 | fn into_client_hook(self) -> Box { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 387 - fn into_client_hook(self) -> Box { [INFO] [stderr] 387 + fn into_client_hook(self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:390:40 [INFO] [stderr] | [INFO] [stderr] 390 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 390 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] 390 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1646:28 [INFO] [stderr] | [INFO] [stderr] 1646 | fn new(hook: Box) -> Self { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1646 - fn new(hook: Box) -> Self { [INFO] [stderr] 1646 + fn new(hook: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1649:44 [INFO] [stderr] | [INFO] [stderr] 1649 | fn into_client_hook(self) -> Box { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1649 - fn into_client_hook(self) -> Box { [INFO] [stderr] 1649 + fn into_client_hook(self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:1652:40 [INFO] [stderr] | [INFO] [stderr] 1652 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1652 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] 1652 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2986:28 [INFO] [stderr] | [INFO] [stderr] 2986 | fn new(hook: Box) -> Self { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 2986 - fn new(hook: Box) -> Self { [INFO] [stderr] 2986 + fn new(hook: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2989:44 [INFO] [stderr] | [INFO] [stderr] 2989 | fn into_client_hook(self) -> Box { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 2989 - fn into_client_hook(self) -> Box { [INFO] [stderr] 2989 + fn into_client_hook(self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/target/debug/build/raft-a2926f63cde9e38f/out/storage_capnp.rs:2992:40 [INFO] [stderr] | [INFO] [stderr] 2992 | fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 2992 - fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) { [INFO] [stderr] 2992 + fn as_client_hook(&self) -> &dyn ::capnp::private::capability::ClientHook { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/node.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/peers.rs:188:21 [INFO] [stderr] | [INFO] [stderr] 188 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `error` is never read [INFO] [stderr] --> src/client.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 15 | struct RequestError { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 16 | index: usize, [INFO] [stderr] 17 | error: capnp::Error, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `last_index` and `last_term` are never read [INFO] [stderr] --> src/consensus.rs:13:26 [INFO] [stderr] | [INFO] [stderr] 13 | LogEntriesMismatch { last_index: u64, last_term: u64 }, [INFO] [stderr] | ------------------ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `AppendEntriesResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `filter` is never read [INFO] [stderr] --> src/dto.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 111 | pub struct Query { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 112 | id: String, [INFO] [stderr] 113 | filter: Option, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Query` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `filter` is never used [INFO] [stderr] --> src/dto.rs:119:12 [INFO] [stderr] | [INFO] [stderr] 115 | impl Query { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 119 | pub fn filter(&self) -> Option<&str> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Read` is never constructed [INFO] [stderr] --> src/dto.rs:134:5 [INFO] [stderr] | [INFO] [stderr] 132 | pub enum CommandMsg { [INFO] [stderr] | ---------- variant in this enum [INFO] [stderr] 133 | GetLeader(Msg<(), Option>), [INFO] [stderr] 134 | Read(Msg), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CommandMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `last_applied` is never read [INFO] [stderr] --> src/state.rs:212:5 [INFO] [stderr] | [INFO] [stderr] 210 | pub struct SoftState { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 211 | commit_index: u64, [INFO] [stderr] 212 | last_applied: u64, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SoftState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `match_index` and `next_index` are never read [INFO] [stderr] --> src/state.rs:217:5 [INFO] [stderr] | [INFO] [stderr] 216 | pub struct LeaderState { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 217 | match_index: Vec<(NodeId, u64)>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 218 | next_index: Vec<(NodeId, u64)>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LeaderState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `leader_state` is never read [INFO] [stderr] --> src/state.rs:226:5 [INFO] [stderr] | [INFO] [stderr] 222 | pub struct State { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] ... [INFO] [stderr] 226 | leader_state: LeaderState, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `delete` is never used [INFO] [stderr] --> src/storage.rs:157:18 [INFO] [stderr] | [INFO] [stderr] 66 | impl LogEntries { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 157 | pub async fn delete(&mut self, id: &str, table_name: &str) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/storage.rs:183:9 [INFO] [stderr] | [INFO] [stderr] 182 | pub struct IndexEntry { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 183 | pub id: String, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `IndexEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `delete`, `list_ids`, and `get_metadata` are never used [INFO] [stderr] --> src/storage.rs:400:18 [INFO] [stderr] | [INFO] [stderr] 198 | impl TableStorage { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 400 | pub async fn delete(&mut self, id: &str) -> Result> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 411 | pub fn list_ids(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 415 | pub fn get_metadata(&self, id: &str) -> Option<&IndexEntry> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `raft` (bin "raft" test) generated 32 warnings (run `cargo fix --bin "raft" -p raft --tests` to apply 21 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/raft-ca2d20e2c1c76ec5) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test consensus::tests::test_handle_append_entries_same_term_updates_leader ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_updates_commit_index ... ok [INFO] [stdout] test consensus::tests::test_is_majority_even_nodes ... ok [INFO] [stdout] test consensus::tests::test_is_majority_five_nodes ... ok [INFO] [stdout] test consensus::tests::test_is_majority_single_node ... ok [INFO] [stdout] test consensus::tests::test_is_majority_three_nodes ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_becomes_follower ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_allows_revote_for_same_candidate ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_rejects_lower_term ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_updates_term_when_higher ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_rejects_already_voted ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_grants_vote_when_valid ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_rejects_lower_term ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_success_case ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- consensus::tests::test_handle_append_entries_success_case stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'consensus::tests::test_handle_append_entries_success_case' (20) panicked at src/consensus.rs:420:35: [INFO] [stdout] called `Option::unwrap()` on a `None` value [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x59939b5945ba - std[e72de78501789eb0]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x59939b5945ba - std[e72de78501789eb0]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x59939b5945ba - std[e72de78501789eb0]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x59939b5945ba - <::print::DisplayBacktrace as core[6aaeda2c7ad07a48]::fmt::Display>::fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x59939b5a8d9a - ::fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x59939b5a8d9a - core[6aaeda2c7ad07a48]::fmt::write [INFO] [stdout] 6: 0x59939b598e42 - std[e72de78501789eb0]::io::default_write_fmt::> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x59939b598e42 - as std[e72de78501789eb0]::io::Write>::write_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x59939b57365f - ::print [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x59939b57365f - std[e72de78501789eb0]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x59939b58c9f9 - std[e72de78501789eb0]::panicking::default_hook [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x59939b51f2ec - core[6aaeda2c7ad07a48]::ops::function::Fn<(&'a std[e72de78501789eb0]::panic::PanicHookInfo<'b>,), Output = ()> + core[6aaeda2c7ad07a48]::marker::Sync + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::Fn<(&std[e72de78501789eb0]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x59939b51f2ec - test[4f12b380f1fb68c5]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x59939b58cbb2 - core[6aaeda2c7ad07a48]::ops::function::Fn<(&'a std[e72de78501789eb0]::panic::PanicHookInfo<'b>,), Output = ()> + core[6aaeda2c7ad07a48]::marker::Sync + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::Fn<(&std[e72de78501789eb0]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x59939b58cbb2 - std[e72de78501789eb0]::panicking::panic_with_hook [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x59939b57374a - std[e72de78501789eb0]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:691:13 [INFO] [stdout] 16: 0x59939b56b0b9 - std[e72de78501789eb0]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x59939b57442d - __rustc[78a4cf188af856fc]::rust_begin_unwind [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x59939b5a951c - core[6aaeda2c7ad07a48]::panicking::panic_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x59939b5a94e2 - core[6aaeda2c7ad07a48]::panicking::panic [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panicking.rs:150:5 [INFO] [stdout] 20: 0x59939b5a9239 - core[6aaeda2c7ad07a48]::option::unwrap_failed [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:2251:5 [INFO] [stdout] 21: 0x59939b510032 - >::unwrap [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:1016:21 [INFO] [stdout] 22: 0x59939b510032 - raft[50aedd35bb46c566]::consensus::tests::test_handle_append_entries_success_case [INFO] [stdout] at /opt/rustwide/workdir/src/consensus.rs:420:35 [INFO] [stdout] 23: 0x59939b50eeb7 - raft[50aedd35bb46c566]::consensus::tests::test_handle_append_entries_success_case::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/consensus.rs:407:49 [INFO] [stdout] 24: 0x59939b50d626 - >::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x59939b5133cb - core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x59939b5133cb - test[4f12b380f1fb68c5]::__rust_begin_short_backtrace::, fn() -> core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x59939b51fdbb - test[4f12b380f1fb68c5]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x59939b51fdbb - as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 29: 0x59939b51fdbb - std[e72de78501789eb0]::panicking::catch_unwind::do_call::, core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 30: 0x59939b51fdbb - std[e72de78501789eb0]::panicking::catch_unwind::, core[6aaeda2c7ad07a48]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 31: 0x59939b51fdbb - std[e72de78501789eb0]::panic::catch_unwind::, core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x59939b51fdbb - test[4f12b380f1fb68c5]::run_test_in_process [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x59939b51fdbb - test[4f12b380f1fb68c5]::run_test::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x59939b51b4d4 - test[4f12b380f1fb68c5]::run_test::{closure#1} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x59939b51b4d4 - std[e72de78501789eb0]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 36: 0x59939b5229c2 - std[e72de78501789eb0]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 37: 0x59939b5229c2 - ::{closure#1}::{closure#0}> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 38: 0x59939b5229c2 - std[e72de78501789eb0]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 39: 0x59939b5229c2 - std[e72de78501789eb0]::panicking::catch_unwind::<(), core[6aaeda2c7ad07a48]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 40: 0x59939b5229c2 - std[e72de78501789eb0]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x59939b5229c2 - std[e72de78501789eb0]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 42: 0x59939b5229c2 - ::{closure#1} as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x59939b593e9f - + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 44: 0x59939b593e9f - ::new::thread_start [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 45: 0x7b5dbb48faa4 - [INFO] [stdout] 46: 0x7b5dbb51ca64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] consensus::tests::test_handle_append_entries_success_case [INFO] [stdout] [INFO] [stdout] test result: FAILED. 13 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin raft` [INFO] running `Command { std: "docker" "inspect" "0077304785f9e843cc36adf2a41bc46f7ec12e78b87ec110887150cf0e322927", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0077304785f9e843cc36adf2a41bc46f7ec12e78b87ec110887150cf0e322927", kill_on_drop: false }` [INFO] [stdout] 0077304785f9e843cc36adf2a41bc46f7ec12e78b87ec110887150cf0e322927