[INFO] cloning repository https://github.com/guoxiangCN/raft-test-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guoxiangCN/raft-test-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FguoxiangCN%2Fraft-test-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FguoxiangCN%2Fraft-test-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9867354550c9ba92deeb859a8d6b4a5beaf986fa [INFO] checking guoxiangCN/raft-test-demo against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FguoxiangCN%2Fraft-test-demo" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/guoxiangCN/raft-test-demo on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/guoxiangCN/raft-test-demo [INFO] finished tweaking git repo https://github.com/guoxiangCN/raft-test-demo [INFO] tweaked toml for git repo https://github.com/guoxiangCN/raft-test-demo written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/guoxiangCN/raft-test-demo 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b48f4795e401ec95b300198fb060361f9542e98823166185337f369170741939 [INFO] running `Command { std: "docker" "start" "-a" "b48f4795e401ec95b300198fb060361f9542e98823166185337f369170741939", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b48f4795e401ec95b300198fb060361f9542e98823166185337f369170741939", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b48f4795e401ec95b300198fb060361f9542e98823166185337f369170741939", kill_on_drop: false }` [INFO] [stdout] b48f4795e401ec95b300198fb060361f9542e98823166185337f369170741939 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f66c7edebd3677270aff7e88683a5f4e4b56d80226f6e2969f4f5e8aa92c2751 [INFO] running `Command { std: "docker" "start" "-a" "f66c7edebd3677270aff7e88683a5f4e4b56d80226f6e2969f4f5e8aa92c2751", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Compiling crossbeam-skiplist v0.1.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking raft v0.4.3 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Checking rafttest v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/server.rs (4 fixes) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: unused variable: `low` [INFO] [stdout] --> src/store.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | low: u64, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_low` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/store.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | high: u64, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_size` [INFO] [stdout] --> src/store.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/store.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn term(&self, idx: u64) -> raft::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/server.rs (3 fixes) [INFO] [stdout] warning: unused variable: `low` [INFO] [stdout] --> src/store.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | low: u64, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_low` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/store.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | high: u64, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_size` [INFO] [stdout] --> src/store.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/store.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn term(&self, idx: u64) -> raft::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.43s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rafttest v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `utils` [INFO] [stdout] --> src/server.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | utils::assert_send::(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `utils` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 313 + use crate::utils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KvServer` in this scope [INFO] [stdout] --> src/server.rs:315:30 [INFO] [stdout] | [INFO] [stdout] 315 | utils::assert_send::(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 313 + use crate::KvServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ServerConfig` in this scope [INFO] [stdout] --> src/server.rs:321:29 [INFO] [stdout] | [INFO] [stdout] 321 | let server_config = ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 313 + use crate::ServerConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KvServer` [INFO] [stdout] --> src/server.rs:326:38 [INFO] [stdout] | [INFO] [stdout] 326 | let (mut kvserver, router) = KvServer::new(server_config); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `KvServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 313 + use crate::KvServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/server.rs:332:28 [INFO] [stdout] | [INFO] [stdout] 332 | std::thread::sleep(Duration::from_millis(500)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 313 + use crate::Duration; [INFO] [stdout] | [INFO] [stdout] 313 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 313 + use protobuf::well_known_types::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/server.rs:337:28 [INFO] [stdout] | [INFO] [stdout] 337 | std::thread::sleep(Duration::from_millis(500)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 313 + use crate::Duration; [INFO] [stdout] | [INFO] [stdout] 313 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 313 + use protobuf::well_known_types::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low` [INFO] [stdout] --> src/store.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | low: u64, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_low` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/store.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | high: u64, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_size` [INFO] [stdout] --> src/store.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/store.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn term(&self, idx: u64) -> raft::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low` [INFO] [stdout] --> src/store.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | low: u64, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_low` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/store.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | high: u64, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_size` [INFO] [stdout] --> src/store.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/store.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | fn term(&self, idx: u64) -> raft::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rafttest` (bin "rafttest" test) due to 7 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f66c7edebd3677270aff7e88683a5f4e4b56d80226f6e2969f4f5e8aa92c2751", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f66c7edebd3677270aff7e88683a5f4e4b56d80226f6e2969f4f5e8aa92c2751", kill_on_drop: false }` [INFO] [stdout] f66c7edebd3677270aff7e88683a5f4e4b56d80226f6e2969f4f5e8aa92c2751