[INFO] cloning repository https://github.com/shelbyd/snake_ai
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shelbyd/snake_ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelbyd%2Fsnake_ai", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelbyd%2Fsnake_ai'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c1371f776fbafbef5f6555d44981da3e0caa53da
[INFO] checking shelbyd/snake_ai against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelbyd%2Fsnake_ai" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/shelbyd/snake_ai
[INFO] finished tweaking git repo https://github.com/shelbyd/snake_ai
[INFO] tweaked toml for git repo https://github.com/shelbyd/snake_ai written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/shelbyd/snake_ai on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/shelbyd/snake_ai 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded dirs v2.0.2
[INFO] [stderr]   Downloaded siphasher v0.3.7
[INFO] [stderr]   Downloaded terminfo v0.7.3
[INFO] [stderr]   Downloaded nix v0.22.2
[INFO] [stderr]   Downloaded clearscreen v1.0.9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911
[INFO] running `Command { std: "docker" "start" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.112
[INFO] [stderr]    Compiling ppv-lite86 v0.2.15
[INFO] [stderr]    Compiling proc-macro2 v1.0.34
[INFO] [stderr]    Compiling siphasher v0.3.7
[INFO] [stderr]    Compiling syn v1.0.82
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling nom v5.1.2
[INFO] [stderr]     Checking phf_shared v0.8.0
[INFO] [stderr]     Checking phf v0.8.0
[INFO] [stderr]    Compiling quote v1.0.10
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_pcg v0.2.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]     Checking dirs-sys v0.3.6
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking which v4.2.2
[INFO] [stderr]     Checking nix v0.22.2
[INFO] [stderr]     Checking dirs v2.0.2
[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]    Compiling phf_generator v0.8.0
[INFO] [stderr]    Compiling phf_codegen v0.8.0
[INFO] [stderr]    Compiling terminfo v0.7.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]     Checking thiserror v1.0.30
[INFO] [stderr]     Checking clearscreen v1.0.9
[INFO] [stderr]     Checking snake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `simple_path::*`
[INFO] [stdout]  --> src/agents/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use simple_path::*;
[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 import: `simple_path::*`
[INFO] [stdout]  --> src/agents/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use simple_path::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Random` is never constructed
[INFO] [stdout]   --> src/agents/mod.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Random;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Greedy` is never constructed
[INFO] [stdout]  --> src/agents/greedy.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Greedy;
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TreeSearch` is never constructed
[INFO] [stdout]   --> src/agents/tree_search.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct TreeSearch {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_plan` is never used
[INFO] [stdout]   --> src/agents/tree_search.rs:25:4
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn generate_plan(game: &SnakeGame) -> VecDeque<Action> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `State` is never constructed
[INFO] [stdout]   --> src/agents/tree_search.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct State {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `distance_to_apple`, `is_closed_off`, and `can_reach_at_least` are never used
[INFO] [stdout]   --> src/agents/tree_search.rs:73:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl State {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] 73 |     fn distance_to_apple(&self) -> u8 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     fn is_closed_off(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn can_reach_at_least(&self, n: usize) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SimplePath` is never constructed
[INFO] [stdout]  --> src/agents/simple_path.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct SimplePath;
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `heading_toward` is never used
[INFO] [stdout]    --> src/gameplay.rs:145:12
[INFO] [stdout]     |
[INFO] [stdout] 144 | impl Cell {
[INFO] [stdout]     | --------- method in this implementation
[INFO] [stdout] 145 |     pub fn heading_toward(self, other: Cell) -> Option<Heading> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `turn_towards` is never used
[INFO] [stdout]    --> src/gameplay.rs:249:12
[INFO] [stdout]     |
[INFO] [stdout] 214 | impl Heading {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn turn_towards(self, other: Heading) -> Option<Action> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Random` is never constructed
[INFO] [stdout]   --> src/agents/mod.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Random;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Greedy` is never constructed
[INFO] [stdout]  --> src/agents/greedy.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Greedy;
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TreeSearch` is never constructed
[INFO] [stdout]   --> src/agents/tree_search.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct TreeSearch {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_plan` is never used
[INFO] [stdout]   --> src/agents/tree_search.rs:25:4
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn generate_plan(game: &SnakeGame) -> VecDeque<Action> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `State` is never constructed
[INFO] [stdout]   --> src/agents/tree_search.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct State {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `distance_to_apple`, `is_closed_off`, and `can_reach_at_least` are never used
[INFO] [stdout]   --> src/agents/tree_search.rs:73:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl State {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] 73 |     fn distance_to_apple(&self) -> u8 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     fn is_closed_off(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn can_reach_at_least(&self, n: usize) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SimplePath` is never constructed
[INFO] [stdout]  --> src/agents/simple_path.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct SimplePath;
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `heading_toward` is never used
[INFO] [stdout]    --> src/gameplay.rs:145:12
[INFO] [stdout]     |
[INFO] [stdout] 144 | impl Cell {
[INFO] [stdout]     | --------- method in this implementation
[INFO] [stdout] 145 |     pub fn heading_toward(self, other: Cell) -> Option<Heading> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `turn_towards` is never used
[INFO] [stdout]    --> src/gameplay.rs:249:12
[INFO] [stdout]     |
[INFO] [stdout] 214 | impl Heading {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn turn_towards(self, other: Heading) -> Option<Action> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.79s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2, terminfo v0.7.3
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911", kill_on_drop: false }`
[INFO] [stdout] 0c28a9cdbb34487b6c9206519d5c3f310809972c8c793fb062fa72f372323911
