[INFO] cloning repository https://github.com/Demindiro/mlsnakes
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Demindiro/mlsnakes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fmlsnakes", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fmlsnakes'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9f7302725cd7b33cd92f25fa97425037fc2f8df6
[INFO] checking Demindiro/mlsnakes against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fmlsnakes" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Demindiro/mlsnakes
[INFO] finished tweaking git repo https://github.com/Demindiro/mlsnakes
[INFO] tweaked toml for git repo https://github.com/Demindiro/mlsnakes written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Demindiro/mlsnakes on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Demindiro/mlsnakes 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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 56105dfe56b87a1b7a6fea439b4d54aa84bfc975ba8ac6fa36889deaabcbcb3a
[INFO] running `Command { std: "docker" "start" "-a" "56105dfe56b87a1b7a6fea439b4d54aa84bfc975ba8ac6fa36889deaabcbcb3a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "56105dfe56b87a1b7a6fea439b4d54aa84bfc975ba8ac6fa36889deaabcbcb3a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "56105dfe56b87a1b7a6fea439b4d54aa84bfc975ba8ac6fa36889deaabcbcb3a", kill_on_drop: false }`
[INFO] [stdout] 56105dfe56b87a1b7a6fea439b4d54aa84bfc975ba8ac6fa36889deaabcbcb3a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c8d4ae6ecdd765869efa2341022cee71e0eb05294e08a4a6184b806273b09c17
[INFO] running `Command { std: "docker" "start" "-a" "c8d4ae6ecdd765869efa2341022cee71e0eb05294e08a4a6184b806273b09c17", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.106
[INFO] [stderr]    Compiling crossbeam-utils v0.8.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.5
[INFO] [stderr]    Compiling rayon-core v1.9.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.15
[INFO] [stderr]    Compiling memoffset v0.6.4
[INFO] [stderr]    Compiling rayon v1.5.1
[INFO] [stderr]     Checking crossbeam-channel v0.5.1
[INFO] [stderr]     Checking crossbeam-deque v0.8.1
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.4
[INFO] [stderr]     Checking mlsnake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
[INFO] [stdout]  --> src/main.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![feature(generic_const_exprs)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
[INFO] [stdout]   = note: `#[warn(incomplete_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rngs::ThreadRng`
[INFO] [stdout]  --> src/neural.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rand::{rngs::ThreadRng, thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Write` and `stdout`
[INFO] [stdout]   --> src/main.rs:13:15
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::io::{stdout, Write};
[INFO] [stdout]    |               ^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::thread;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `associated_type_bounds` has been stable since 1.79.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(associated_type_bounds)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | #![feature(destructuring_assignment)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
[INFO] [stdout]  --> src/main.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![feature(generic_const_exprs)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
[INFO] [stdout]   = note: `#[warn(incomplete_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rngs::ThreadRng`
[INFO] [stdout]  --> src/neural.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rand::{rngs::ThreadRng, thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Write` and `stdout`
[INFO] [stdout]   --> src/main.rs:13:15
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::io::{stdout, Write};
[INFO] [stdout]    |               ^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::thread;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `associated_type_bounds` has been stable since 1.79.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(associated_type_bounds)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | #![feature(destructuring_assignment)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:235:9
[INFO] [stdout]     |
[INFO] [stdout] 235 |         s.mov(false, Dir::Down).unwrap(); // head = 3
[INFO] [stdout]     |           --- ^^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:236:9
[INFO] [stdout]     |
[INFO] [stdout] 236 |         s.mov(false, Dir::Down).unwrap(); // head = 0
[INFO] [stdout]     |           --- ^^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:237:9
[INFO] [stdout]     |
[INFO] [stdout] 237 |         s.mov(false, Dir::Down).unwrap(); // head = 1
[INFO] [stdout]     |           --- ^^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:247:9
[INFO] [stdout]     |
[INFO] [stdout] 247 |         s.mov(true, Dir::Right).unwrap(); // head = 2
[INFO] [stdout]     |           --- ^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:248:9
[INFO] [stdout]     |
[INFO] [stdout] 248 |         s.mov(false, Dir::Right).unwrap(); // head = 3
[INFO] [stdout]     |           --- ^^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:249:9
[INFO] [stdout]     |
[INFO] [stdout] 249 |         s.mov(false, Dir::Right).unwrap(); // head = 0
[INFO] [stdout]     |           --- ^^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]    --> src/game.rs:259:9
[INFO] [stdout]     |
[INFO] [stdout] 259 |         s.mov(true, Dir::Up).unwrap(); // head = 1
[INFO] [stdout]     |           --- ^^^^ expected an `FnOnce(game::Pos)` closure, found `bool`
[INFO] [stdout]     |           |
[INFO] [stdout]     |           required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(game::Pos)` is not implemented for `bool`
[INFO] [stdout] note: required by a bound in `game::Snake::mov`
[INFO] [stdout]    --> src/game.rs:61:35
[INFO] [stdout]     |
[INFO] [stdout]  61 |     pub fn mov(&mut self, grow: impl FnOnce(Pos) -> bool, direction: Dir) -> Option<(Pos, Pos)> {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^ required by this bound in `Snake::mov`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:121:57
[INFO] [stdout]     |
[INFO] [stdout] 121 |         if !game.step(determine_action(pop.best(), &game)) || max_steps < 0 {
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mlsnake` (bin "mlsnake" test) due to 7 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "c8d4ae6ecdd765869efa2341022cee71e0eb05294e08a4a6184b806273b09c17", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c8d4ae6ecdd765869efa2341022cee71e0eb05294e08a4a6184b806273b09c17", kill_on_drop: false }`
[INFO] [stdout] c8d4ae6ecdd765869efa2341022cee71e0eb05294e08a4a6184b806273b09c17
