[INFO] cloning repository https://github.com/fsasieta/mutlthreaded_raft_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fsasieta/mutlthreaded_raft_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsasieta%2Fmutlthreaded_raft_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsasieta%2Fmutlthreaded_raft_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b8d275f933b981fa2b619c897f94b471e5b5f7b [INFO] checking fsasieta/mutlthreaded_raft_example against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsasieta%2Fmutlthreaded_raft_example" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fsasieta/mutlthreaded_raft_example on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fsasieta/mutlthreaded_raft_example [INFO] finished tweaking git repo https://github.com/fsasieta/mutlthreaded_raft_example [INFO] tweaked toml for git repo https://github.com/fsasieta/mutlthreaded_raft_example written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/fsasieta/mutlthreaded_raft_example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4277b8a5d0dec02310c1002ebbb1d2054ddc833e935d1b0a7bb4fdee0b14e71 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c4277b8a5d0dec02310c1002ebbb1d2054ddc833e935d1b0a7bb4fdee0b14e71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4277b8a5d0dec02310c1002ebbb1d2054ddc833e935d1b0a7bb4fdee0b14e71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4277b8a5d0dec02310c1002ebbb1d2054ddc833e935d1b0a7bb4fdee0b14e71", kill_on_drop: false }` [INFO] [stdout] c4277b8a5d0dec02310c1002ebbb1d2054ddc833e935d1b0a7bb4fdee0b14e71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e59e46c139092cb9a46913557200ef881f67f1929758dadeeaa5a622e4d258f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8e59e46c139092cb9a46913557200ef881f67f1929758dadeeaa5a622e4d258f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Checking spin v0.5.0 [INFO] [stderr] Compiling protobuf v2.0.6 [INFO] [stderr] Compiling slog v2.5.2 [INFO] [stderr] Compiling ucd-util v0.1.5 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling log v0.4.7 [INFO] [stderr] Compiling utf8-ranges v1.0.3 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking arc-swap v0.3.11 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Compiling syn v0.15.42 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.10 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling aho-corasick v0.7.4 [INFO] [stderr] Checking slog-scope v4.1.2 [INFO] [stderr] Checking slog-async v2.3.0 [INFO] [stderr] Checking slog-stdlog v3.0.5 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking getrandom v0.1.6 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking term v0.5.2 [INFO] [stderr] Checking rand_core v0.5.0 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking rand v0.7.0 [INFO] [stderr] Checking chrono v0.4.7 [INFO] [stderr] Checking slog-term v2.4.1 [INFO] [stderr] Checking slog-envlogger v2.1.0 [INFO] [stderr] Compiling regex v1.2.0 [INFO] [stderr] Compiling protobuf-codegen v2.0.6 [INFO] [stderr] Compiling protobuf-build v0.8.0 [INFO] [stderr] Compiling getset v0.0.7 [INFO] [stderr] Compiling raft-proto v0.6.0-alpha [INFO] [stderr] Checking raft v0.6.0-alpha [INFO] [stderr] Checking token_interview_hw v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `rx_stop` in this scope [INFO] [stdout] --> src/main.rs:161:45 [INFO] [stdout] | [INFO] [stdout] 161 | let recv_stop = Arc::new(Mutex::new(rx_stop)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logger` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let logger = initialize_and_return_logger(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_logger` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut node = if i == random_leader.try_into().unwrap() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low` [INFO] [stdout] --> src/simulated_storage.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | fn entries(&self, low: u64, high: u64, max_size: u64) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_low` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/simulated_storage.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | fn entries(&self, low: u64, high: u64, max_size: u64) -> Result, Error> { [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/simulated_storage.rs:28:44 [INFO] [stdout] | [INFO] [stdout] 28 | fn entries(&self, low: u64, high: u64, max_size: u64) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/simulated_storage.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn new_with_conf(config: Config) -> SimulatedStorage { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut number_of_nodes = args[1] [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | let (mut sender_mailboxes, mut receiver_mailboxes) = create_x_number_of_mailboxes(number_of_nodes); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | let (mut sender_mailboxes, mut receiver_mailboxes) = create_x_number_of_mailboxes(number_of_nodes); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut node = if i == random_leader.try_into().unwrap() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simulated_storage.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 104 | let mut result: raft::RaftState = raft::RaftState ::new ( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `raft_group` [INFO] [stdout] --> src/node.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | raft_group: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mailbox` [INFO] [stdout] --> src/node.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | mailbox: Receiver, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mailboxes` [INFO] [stdout] --> src/node.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | mailboxes: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entries` [INFO] [stdout] --> src/simulated_storage.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn entries(&self, low: u64, high: u64, max_size: u64) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_conf` [INFO] [stdout] --> src/simulated_storage.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn new_with_conf(config: Config) -> SimulatedStorage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Vec: From>` is not satisfied [INFO] [stdout] --> src/main.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | assert_eq!(parse_arguments(negative_number.into()), -negative_number); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `From>` is not implemented for `&Vec` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] as From>> [INFO] [stdout] as From<&[T]>> [INFO] [stdout] as From<&mut [T]>> [INFO] [stdout] as From>> [INFO] [stdout] and 6 others [INFO] [stdout] = note: required because of the requirements on the impl of `Into<&Vec>` for `Vec<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `Vec<{integer}>` [INFO] [stdout] --> src/main.rs:153:61 [INFO] [stdout] | [INFO] [stdout] 153 | assert_eq!(parse_arguments(negative_number.into()), -negative_number); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot apply unary operator `-` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Vec: From>` is not satisfied [INFO] [stdout] --> src/main.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | assert_eq!(parse_arguments(zero.into()), 1); [INFO] [stdout] | ^^^^^^^^^^^ the trait `From>` is not implemented for `&Vec` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] as From>> [INFO] [stdout] as From<&[T]>> [INFO] [stdout] as From<&mut [T]>> [INFO] [stdout] as From>> [INFO] [stdout] and 6 others [INFO] [stdout] = note: required because of the requirements on the impl of `Into<&Vec>` for `Vec<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Vec: From>` is not satisfied [INFO] [stdout] --> src/main.rs:155:36 [INFO] [stdout] | [INFO] [stdout] 155 | assert_eq!(parse_arguments(positive.into()), positive); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `From>` is not implemented for `&Vec` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] as From>> [INFO] [stdout] as From<&[T]>> [INFO] [stdout] as From<&mut [T]>> [INFO] [stdout] as From>> [INFO] [stdout] and 6 others [INFO] [stdout] = note: required because of the requirements on the impl of `Into<&Vec>` for `Vec<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | assert_eq!(parse_arguments(positive.into()), positive); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found struct `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:164:30 [INFO] [stdout] | [INFO] [stdout] 164 | assert_eq!(terminate(recv_stop), true); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found struct `std::sync::Arc` [INFO] [stdout] | help: consider borrowing here: `&recv_stop` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::sync::Arc>>` [INFO] [stdout] found struct `std::sync::Arc>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0600. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `token_interview_hw` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "8e59e46c139092cb9a46913557200ef881f67f1929758dadeeaa5a622e4d258f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e59e46c139092cb9a46913557200ef881f67f1929758dadeeaa5a622e4d258f", kill_on_drop: false }` [INFO] [stdout] 8e59e46c139092cb9a46913557200ef881f67f1929758dadeeaa5a622e4d258f