[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 master#562dee4820c458d823175268e41601d4c060588a 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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucas-montes/raft on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded capnp-futures v0.20.1 [INFO] [stderr] Downloaded uuid v1.17.0 [INFO] [stderr] Downloaded axum-core v0.5.2 [INFO] [stderr] Downloaded signal-hook-registry v1.4.5 [INFO] [stderr] Downloaded clap_derive v4.5.32 [INFO] [stderr] Downloaded capnpc v0.20.1 [INFO] [stderr] Downloaded bytes v1.10.0 [INFO] [stderr] Downloaded hyper-util v0.1.14 [INFO] [stderr] Downloaded capnp-rpc v0.20.3 [INFO] [stderr] Downloaded cc v1.2.27 [INFO] [stderr] Downloaded async-compression v0.4.25 [INFO] [stderr] Downloaded capnp v0.20.3 [INFO] [stderr] Downloaded axum v0.8.4 [INFO] [stderr] Downloaded clap_builder v4.5.37 [INFO] [stderr] Downloaded bumpalo v3.18.1 [INFO] [stderr] Downloaded clap v4.5.37 [INFO] [stderr] Downloaded quote v1.0.39 [INFO] [stderr] Downloaded smallvec v1.15.0 [INFO] [stderr] Downloaded syn v2.0.99 [INFO] [stderr] Downloaded zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Downloaded brotli v8.0.1 [INFO] [stderr] Downloaded tokio v1.45.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 544b29a96e972aa9279a57849475bc15168f6d021632c9a01cdda44849635c4c [INFO] running `Command { std: "docker" "start" "-a" "544b29a96e972aa9279a57849475bc15168f6d021632c9a01cdda44849635c4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "544b29a96e972aa9279a57849475bc15168f6d021632c9a01cdda44849635c4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "544b29a96e972aa9279a57849475bc15168f6d021632c9a01cdda44849635c4c", kill_on_drop: false }` [INFO] [stdout] 544b29a96e972aa9279a57849475bc15168f6d021632c9a01cdda44849635c4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ae9a554a1095850491a60041bd96b4f067b041cb88d77660621c2ab970abdf8 [INFO] running `Command { std: "docker" "start" "-a" "1ae9a554a1095850491a60041bd96b4f067b041cb88d77660621c2ab970abdf8", 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 thread_local v1.1.8 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling clap_builder v4.5.37 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [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 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 futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.45.1 [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 34.40s [INFO] running `Command { std: "docker" "inspect" "1ae9a554a1095850491a60041bd96b4f067b041cb88d77660621c2ab970abdf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ae9a554a1095850491a60041bd96b4f067b041cb88d77660621c2ab970abdf8", kill_on_drop: false }` [INFO] [stdout] 1ae9a554a1095850491a60041bd96b4f067b041cb88d77660621c2ab970abdf8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4eca45714086484110f6551ed0f9245ec54ea552233f55b39d29c2e626b72276 [INFO] running `Command { std: "docker" "start" "-a" "4eca45714086484110f6551ed0f9245ec54ea552233f55b39d29c2e626b72276", 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 4.78s [INFO] running `Command { std: "docker" "inspect" "4eca45714086484110f6551ed0f9245ec54ea552233f55b39d29c2e626b72276", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eca45714086484110f6551ed0f9245ec54ea552233f55b39d29c2e626b72276", kill_on_drop: false }` [INFO] [stdout] 4eca45714086484110f6551ed0f9245ec54ea552233f55b39d29c2e626b72276 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f683b22eb53f045f876b11f396021c5c2865e9cef5549d135004fa3b3d1bd241 [INFO] running `Command { std: "docker" "start" "-a" "f683b22eb53f045f876b11f396021c5c2865e9cef5549d135004fa3b3d1bd241", 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.22s [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_updates_commit_index ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_rejects_lower_term ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_becomes_follower ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_grants_vote_when_valid ... ok [INFO] [stdout] test consensus::tests::test_handle_append_entries_same_term_updates_leader ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_rejects_already_voted ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_rejects_lower_term ... 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_handle_request_vote_allows_revote_for_same_candidate ... ok [INFO] [stdout] test consensus::tests::test_is_majority_even_nodes ... ok [INFO] [stdout] test consensus::tests::test_handle_request_vote_updates_term_when_higher ... ok [INFO] [stdout] test consensus::tests::test_is_majority_three_nodes ... 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' (21) panicked at src/consensus.rs:420:35: [INFO] [stdout] called `Option::unwrap()` on a `None` value [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x585576bbedca - std[31e582c13f4e914f]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x585576bbedca - std[31e582c13f4e914f]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x585576bbedca - std[31e582c13f4e914f]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x585576bbedca - <::print::DisplayBacktrace as core[fa0eadad68403074]::fmt::Display>::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x585576bd35aa - ::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x585576bd35aa - core[fa0eadad68403074]::fmt::write [INFO] [stdout] 6: 0x585576bc3652 - std[31e582c13f4e914f]::io::default_write_fmt::> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x585576bc3652 - as std[31e582c13f4e914f]::io::Write>::write_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x585576b9de6f - ::print [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x585576b9de6f - std[31e582c13f4e914f]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x585576bb71b9 - std[31e582c13f4e914f]::panicking::default_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x585576b49fdc - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x585576b49fdc - test[7530e63dc052480e]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x585576bb7372 - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x585576bb7372 - std[31e582c13f4e914f]::panicking::panic_with_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x585576b9df5a - std[31e582c13f4e914f]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:691:13 [INFO] [stdout] 16: 0x585576b93139 - std[31e582c13f4e914f]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x585576b9ec3d - __rustc[fc8e3a9f23f26cb]::rust_begin_unwind [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x585576bd3d2c - core[fa0eadad68403074]::panicking::panic_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x585576bd3cf2 - core[fa0eadad68403074]::panicking::panic [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:150:5 [INFO] [stdout] 20: 0x585576bd3a49 - core[fa0eadad68403074]::option::unwrap_failed [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/option.rs:2251:5 [INFO] [stdout] 21: 0x585576b3a782 - >::unwrap [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/option.rs:1016:21 [INFO] [stdout] 22: 0x585576b3a782 - raft[abe397f4d7ed4b0f]::consensus::tests::test_handle_append_entries_success_case [INFO] [stdout] at /opt/rustwide/workdir/src/consensus.rs:420:35 [INFO] [stdout] 23: 0x585576b39657 - raft[abe397f4d7ed4b0f]::consensus::tests::test_handle_append_entries_success_case::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/consensus.rs:407:49 [INFO] [stdout] 24: 0x585576b38306 - >::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x585576b3e0bb - core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x585576b3e0bb - test[7530e63dc052480e]::__rust_begin_short_backtrace::, fn() -> core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x585576b4aaab - test[7530e63dc052480e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x585576b4aaab - as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 29: 0x585576b4aaab - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 30: 0x585576b4aaab - std[31e582c13f4e914f]::panicking::catch_unwind::, core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 31: 0x585576b4aaab - std[31e582c13f4e914f]::panic::catch_unwind::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x585576b4aaab - test[7530e63dc052480e]::run_test_in_process [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x585576b4aaab - test[7530e63dc052480e]::run_test::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x585576b44f04 - test[7530e63dc052480e]::run_test::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x585576b44f04 - std[31e582c13f4e914f]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 36: 0x585576b4d6b2 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 37: 0x585576b4d6b2 - ::{closure#1}::{closure#0}> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 38: 0x585576b4d6b2 - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 39: 0x585576b4d6b2 - std[31e582c13f4e914f]::panicking::catch_unwind::<(), core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 40: 0x585576b4d6b2 - std[31e582c13f4e914f]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x585576b4d6b2 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 42: 0x585576b4d6b2 - ::{closure#1} as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x585576bbe6af - + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 44: 0x585576bbe6af - ::new::thread_start [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 45: 0x7ab5f9b36aa4 - [INFO] [stdout] 46: 0x7ab5f9bc3a64 - 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.10s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin raft` [INFO] running `Command { std: "docker" "inspect" "f683b22eb53f045f876b11f396021c5c2865e9cef5549d135004fa3b3d1bd241", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f683b22eb53f045f876b11f396021c5c2865e9cef5549d135004fa3b3d1bd241", kill_on_drop: false }` [INFO] [stdout] f683b22eb53f045f876b11f396021c5c2865e9cef5549d135004fa3b3d1bd241