[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#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fmlsnakes" "/workspace/builds/worker-81/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-81/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Demindiro/mlsnakes on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-81/source/Cargo.toml [INFO] crate git repo https://github.com/Demindiro/mlsnakes already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "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-81/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-81/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" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0895e99d3638fa1043f41271ed142c1fe837b344a68663ee670189e554809efa [INFO] running `Command { std: "docker" "start" "-a" "0895e99d3638fa1043f41271ed142c1fe837b344a68663ee670189e554809efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0895e99d3638fa1043f41271ed142c1fe837b344a68663ee670189e554809efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0895e99d3638fa1043f41271ed142c1fe837b344a68663ee670189e554809efa", kill_on_drop: false }` [INFO] [stdout] 0895e99d3638fa1043f41271ed142c1fe837b344a68663ee670189e554809efa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-81/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-81/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" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e4a844c5a17bb17ff61ddec665871ccaef21254ada394ee3a24be3ae1ee026d [INFO] running `Command { std: "docker" "start" "-a" "9e4a844c5a17bb17ff61ddec665871ccaef21254ada394ee3a24be3ae1ee026d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 either v1.6.1 [INFO] [stderr] Compiling libc v0.2.106 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [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: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #76560 for more information [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `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 `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: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #76560 for more information [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `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: 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] warning: 5 warnings emitted [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 `game::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 `game::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 `game::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 `game::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 `game::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 `game::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 `game::Snake::mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 4 warnings emitted [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` due to 8 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9e4a844c5a17bb17ff61ddec665871ccaef21254ada394ee3a24be3ae1ee026d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e4a844c5a17bb17ff61ddec665871ccaef21254ada394ee3a24be3ae1ee026d", kill_on_drop: false }` [INFO] [stdout] 9e4a844c5a17bb17ff61ddec665871ccaef21254ada394ee3a24be3ae1ee026d