[INFO] cloning repository https://github.com/jborkowski/raft [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jborkowski/raft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjborkowski%2Fraft", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjborkowski%2Fraft'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0243f8bfd3a1711e1c071f7653f0ff4c4f63b0e2 [INFO] checking jborkowski/raft against master#ecb170afc878648c3ae355dbd596c8e4b6f7ebdc for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjborkowski%2Fraft" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jborkowski/raft on toolchain ecb170afc878648c3ae355dbd596c8e4b6f7ebdc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jborkowski/raft [INFO] finished tweaking git repo https://github.com/jborkowski/raft [INFO] tweaked toml for git repo https://github.com/jborkowski/raft written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jborkowski/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" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 39cea5e9061df90b05a95fd84c2f072929aef665345753c6ecbd84a04bc6de64 [INFO] running `Command { std: "docker" "start" "-a" "39cea5e9061df90b05a95fd84c2f072929aef665345753c6ecbd84a04bc6de64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39cea5e9061df90b05a95fd84c2f072929aef665345753c6ecbd84a04bc6de64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39cea5e9061df90b05a95fd84c2f072929aef665345753c6ecbd84a04bc6de64", kill_on_drop: false }` [INFO] [stdout] 39cea5e9061df90b05a95fd84c2f072929aef665345753c6ecbd84a04bc6de64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ffad1f960d35d84857ecba8315d8623298c6e27bd2b82d3543e89c7848c9435 [INFO] running `Command { std: "docker" "start" "-a" "2ffad1f960d35d84857ecba8315d8623298c6e27bd2b82d3543e89c7848c9435", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling prettyplease v0.2.29 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling tempfile v3.15.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling prost-derive v0.13.4 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking pin-project v1.1.8 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling prost v0.13.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling prost-types v0.13.4 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Compiling prost-build v0.13.4 [INFO] [stderr] Compiling tonic-build v0.12.3 [INFO] [stderr] Compiling raft v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking h2 v0.4.7 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking hyper v1.5.2 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking tonic v0.12.3 [INFO] [stdout] warning: fields `command` and `term` are never read [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct LogEntry { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 35 | command: Command, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | term: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `log`, `commit_index`, `last_applied`, `next_index`, `match_index`, and `peers` are never read [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct ConsensusModule { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | log: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | commit_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 47 | last_applied: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | next_index: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | // for each server, index of highest log entry known to be replicated [INFO] [stdout] 53 | match_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | peers: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_leader` and `receive_heartbeat` are never used [INFO] [stdout] --> src/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 63 | impl ConsensusModule { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn is_leader(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub async fn receive_heartbeat(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/main.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | struct Server {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl Server { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 149 | pub fn new() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogEntry` is never constructed [INFO] [stdout] --> src/main.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct LogEntry { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConsensusModule` is never constructed [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct ConsensusModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/main.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl ConsensusModule { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 64 | pub fn new(id: usize, peers: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn is_leader(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub async fn update_heartbeat(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub async fn inc_term(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn update_state(&self, new_state: CMState) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub async fn run_election_timer(&mut self, mut shutdown_rx: watch::Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub async fn receive_heartbeat(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/main.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | struct Server {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl Server { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 149 | pub fn new() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.68s [INFO] running `Command { std: "docker" "inspect" "2ffad1f960d35d84857ecba8315d8623298c6e27bd2b82d3543e89c7848c9435", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ffad1f960d35d84857ecba8315d8623298c6e27bd2b82d3543e89c7848c9435", kill_on_drop: false }` [INFO] [stdout] 2ffad1f960d35d84857ecba8315d8623298c6e27bd2b82d3543e89c7848c9435