[INFO] cloning repository https://github.com/marony/raft-on-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marony/raft-on-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Fraft-on-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Fraft-on-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e069a7b41fbe41289bea86c7b62b10b2a3761e58 [INFO] testing marony/raft-on-rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Fraft-on-rust" "/workspace/builds/worker-27/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-27/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marony/raft-on-rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marony/raft-on-rust [INFO] finished tweaking git repo https://github.com/marony/raft-on-rust [INFO] tweaked toml for git repo https://github.com/marony/raft-on-rust written to /workspace/builds/worker-27/source/Cargo.toml [INFO] crate git repo https://github.com/marony/raft-on-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83a8441a36fea80c7efc6cfe10f2e6fed35364ba1821d7a38bb5410314ca659e [INFO] running `Command { std: "docker" "start" "-a" "83a8441a36fea80c7efc6cfe10f2e6fed35364ba1821d7a38bb5410314ca659e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83a8441a36fea80c7efc6cfe10f2e6fed35364ba1821d7a38bb5410314ca659e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83a8441a36fea80c7efc6cfe10f2e6fed35364ba1821d7a38bb5410314ca659e", kill_on_drop: false }` [INFO] [stdout] 83a8441a36fea80c7efc6cfe10f2e6fed35364ba1821d7a38bb5410314ca659e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d10dbfd93f376507d614c34e53c953e97577dc6d8d0bd2fe248fa40e716094cc [INFO] running `Command { std: "docker" "start" "-a" "d10dbfd93f376507d614c34e53c953e97577dc6d8d0bd2fe248fa40e716094cc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.20 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling log v0.3.6 [INFO] [stderr] Compiling byteorder v1.0.0 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling rustc-serialize v0.3.22 [INFO] [stderr] Compiling num-traits v0.1.36 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling bincode v0.6.1 [INFO] [stderr] Compiling env_logger v0.3.5 [INFO] [stderr] Compiling raft-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0642]: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/raft/receiver.rs:26:54 [INFO] [stdout] | [INFO] [stdout] 26 | fn on_receive(&self, message: &message::Message, &address: &SocketAddr) -> (bool, Option); [INFO] [stdout] | ^^^^^^^^ pattern not allowed in function without body [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread`, `time` [INFO] [stdout] --> src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `RwLock` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/raft/message.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, RustcDecodable, RustcEncodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported [INFO] [stdout] --> src/raft/message.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, RustcDecodable, RustcEncodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustc_serialize` [INFO] [stdout] --> src/raft/message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rustc_serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/raft/receiver.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/raft/sender.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/raft/sender.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{thread, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/raft/receiver.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(conservative_impl_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/raft/receiver.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | logic: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 - logic: Option>, [INFO] [stdout] 54 + logic: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/raft/receiver.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | let logic: Box = match role { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 - let logic: Box = match role { [INFO] [stdout] 90 + let logic: Box = match role { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0642`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raft-rust` due to 2 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d10dbfd93f376507d614c34e53c953e97577dc6d8d0bd2fe248fa40e716094cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d10dbfd93f376507d614c34e53c953e97577dc6d8d0bd2fe248fa40e716094cc", kill_on_drop: false }` [INFO] [stdout] d10dbfd93f376507d614c34e53c953e97577dc6d8d0bd2fe248fa40e716094cc