[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] cede6a5e56dbbc8aaae48e35f8426a1aebcf7340 [INFO] testing miguelraz/kessels against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiguelraz%2Fkessels" "/workspace/builds/worker-72/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-72/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miguelraz/kessels on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-72/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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dirs v1.0.5 [INFO] [stderr] Downloaded term v0.5.2 [INFO] [stderr] Downloaded clippy v0.0.302 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e7244642d6b758ef8e5a90c35dbe9a887448dd43d6874c57f68b15af6a18dad9 [INFO] running `Command { std: "docker" "start" "-a" "e7244642d6b758ef8e5a90c35dbe9a887448dd43d6874c57f68b15af6a18dad9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e7244642d6b758ef8e5a90c35dbe9a887448dd43d6874c57f68b15af6a18dad9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7244642d6b758ef8e5a90c35dbe9a887448dd43d6874c57f68b15af6a18dad9", kill_on_drop: false }` [INFO] [stdout] e7244642d6b758ef8e5a90c35dbe9a887448dd43d6874c57f68b15af6a18dad9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d5d765ce0fb8a6224c23aa6261544b766f7f07dfbcb1c5303f9ea14a7d508d2 [INFO] running `Command { std: "docker" "start" "-a" "4d5d765ce0fb8a6224c23aa6261544b766f7f07dfbcb1c5303f9ea14a7d508d2", kill_on_drop: false }` [INFO] [stderr] warning: kessels v1.0.0 (/opt/rustwide/workdir) ignoring invalid dependency `clippy` which is missing a lib target [INFO] [stderr] Compiling kessels v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `competing` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | - ^^ `competing` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 47 | | competing[node][id] = 1; [INFO] [stdout] | | --------- borrows occur due to use of `competing` in closure [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________- argument requires that `competing` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `turn` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | - ^^ `turn` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 52 | | turn[node][id] = local; [INFO] [stdout] | | ---- borrows occur due to use of `turn` in closure [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________- argument requires that `turn` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `edge` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | - ^^ `edge` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 60 | | edge[node] = id; [INFO] [stdout] | | ---- borrows occur due to use of `edge` in closure [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________- argument requires that `edge` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `totalsum` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | - ^^ `totalsum` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 64 | | totalsum += work(4); [INFO] [stdout] | | -------- borrows occur due to use of `totalsum` in closure [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________- argument requires that `totalsum` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `i`, which is owned by the current function [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `i` [INFO] [stdout] ... [INFO] [stdout] 35 | let idThread = i; [INFO] [stdout] | - `i` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `i` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `turn`, which is owned by the current function [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `turn` [INFO] [stdout] ... [INFO] [stdout] 52 | turn[node][id] = local; [INFO] [stdout] | ---- `turn` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `turn` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `competing`, which is owned by the current function [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `competing` [INFO] [stdout] ... [INFO] [stdout] 47 | competing[node][id] = 1; [INFO] [stdout] | --------- `competing` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `competing` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `edge`, which is owned by the current function [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `edge` [INFO] [stdout] ... [INFO] [stdout] 60 | edge[node] = id; [INFO] [stdout] | ---- `edge` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `edge` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `n`, which is owned by the current function [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `n` [INFO] [stdout] ... [INFO] [stdout] 36 | let mut node = idThread + n; [INFO] [stdout] | - `n` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `n` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `totalsum`, which is owned by the current function [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `totalsum` [INFO] [stdout] ... [INFO] [stdout] 64 | totalsum += work(4); [INFO] [stdout] | -------- `totalsum` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `totalsum` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `totalsum` because it was mutably borrowed [INFO] [stdout] --> src/main.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 32 | threads.push(thread::spawn(|| { [INFO] [stdout] | - -- borrow of `totalsum` occurs here [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 33 | | // Begin downpass through the tournament tree [INFO] [stdout] 34 | | // Initialize variables local to each threads [INFO] [stdout] 35 | | let idThread = i; [INFO] [stdout] ... | [INFO] [stdout] 64 | | totalsum += work(4); [INFO] [stdout] | | -------- borrow occurs due to use of `totalsum` in closure [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | })); [INFO] [stdout] | |__________- argument requires that `totalsum` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 80 | totalsum [INFO] [stdout] | ^^^^^^^^ use of borrowed `totalsum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0499, E0503. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kessels` due to 12 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "4d5d765ce0fb8a6224c23aa6261544b766f7f07dfbcb1c5303f9ea14a7d508d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d5d765ce0fb8a6224c23aa6261544b766f7f07dfbcb1c5303f9ea14a7d508d2", kill_on_drop: false }` [INFO] [stdout] 4d5d765ce0fb8a6224c23aa6261544b766f7f07dfbcb1c5303f9ea14a7d508d2