[INFO] cloning repository https://github.com/miguelraz/kessels [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/miguelraz/kessels" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiguelraz%2Fkessels", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiguelraz%2Fkessels'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 32b7ae72ce6836e8061923d18b716e849f25ff00 [INFO] checking miguelraz/kessels against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiguelraz%2Fkessels" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miguelraz/kessels on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miguelraz/kessels [INFO] finished tweaking git repo https://github.com/miguelraz/kessels [INFO] tweaked toml for git repo https://github.com/miguelraz/kessels written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/miguelraz/kessels already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clippy v0.0.302 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4faa2c0a0e13523f9c85a0668a3efe6f30a23d3dc4611dbb6dfeace83ea8cc0f [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" "4faa2c0a0e13523f9c85a0668a3efe6f30a23d3dc4611dbb6dfeace83ea8cc0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4faa2c0a0e13523f9c85a0668a3efe6f30a23d3dc4611dbb6dfeace83ea8cc0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4faa2c0a0e13523f9c85a0668a3efe6f30a23d3dc4611dbb6dfeace83ea8cc0f", kill_on_drop: false }` [INFO] [stdout] 4faa2c0a0e13523f9c85a0668a3efe6f30a23d3dc4611dbb6dfeace83ea8cc0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0dcd6d92a4f9499165ab34ddd5d0d47ec4ba3a8131699671ab2abb5c63f47657 [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" "0dcd6d92a4f9499165ab34ddd5d0d47ec4ba3a8131699671ab2abb5c63f47657", kill_on_drop: false }` [INFO] [stderr] Checking kessels v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `work` in this scope [INFO] [stdout] --> src/lib.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(work::(), 55); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `work` in this scope [INFO] [stdout] --> src/lib.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(work::(), 55); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kessels` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `work` in crate `kessels` [INFO] [stdout] --> tests/integration_test.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(500500,kessels::work(1)); [INFO] [stdout] | ^^^^ not found in `kessels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | id = node % 2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `local` is never read [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | local = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/main.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | sum += kessels::work1(1); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `idThread` is never read [INFO] [stdout] --> src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | idThread = i; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `node` is never read [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | node = idThread + n; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `id` is never read [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | id = node % 2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | local = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/main.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | sum += kessels::work1(1); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arc_edge` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let arc_edge = Arc::new(edge); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arc_edge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arc_competing` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let arc_competing = Arc::new(competing); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arc_competing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arc_turn` [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let arc_turn = Arc::new(turn); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arc_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `joinhandles` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut joinhandles: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_joinhandles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/main.rs:99:20 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(nThreads * 55, sum) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/main.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(nThreads * 55, sum) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0434`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut joinhandles: Vec = Vec::new(); [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] error[E0382]: use of moved value: `competing` [INFO] [stdout] --> src/main.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 35 | let mut competing = vec![vec![0 as i64; once]; 2]; // should be a 2 x v size array [INFO] [stdout] | ------------- move occurs because `competing` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] 36 | let arc_competing = Arc::new(competing); [INFO] [stdout] | --------- value moved here [INFO] [stdout] ... [INFO] [stdout] 49 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value moved into closure here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 66 | competing[node][id] = 1; [INFO] [stdout] | --------- use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `turn` [INFO] [stdout] --> src/main.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 37 | let mut turn = vec![vec![0 as i64; once]; 2]; // should be a 2 x v size array : [INFO] [stdout] | -------- move occurs because `turn` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] 38 | let arc_turn = Arc::new(turn); [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 49 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value moved into closure here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 69 | let temp: i64 = turn[node][1 - id] as i64; [INFO] [stdout] | ---- use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `edge` [INFO] [stdout] --> src/main.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 33 | let mut edge = vec![0 as usize; once]; // Should be a 1 x v size vec [INFO] [stdout] | -------- move occurs because `edge` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 34 | let arc_edge = Arc::new(edge); [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 49 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value moved into closure here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 79 | edge[node] = id; [INFO] [stdout] | ---- use occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0dcd6d92a4f9499165ab34ddd5d0d47ec4ba3a8131699671ab2abb5c63f47657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dcd6d92a4f9499165ab34ddd5d0d47ec4ba3a8131699671ab2abb5c63f47657", kill_on_drop: false }` [INFO] [stdout] 0dcd6d92a4f9499165ab34ddd5d0d47ec4ba3a8131699671ab2abb5c63f47657