[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 master#cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd for pr-145463 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelbyd%2Fsnake_ai" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shelbyd/snake_ai on toolchain cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "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" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "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 terminfo v0.7.3 [INFO] [stderr] Downloaded clearscreen v1.0.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53c9b13c5d43f6ee76fb2fd428cfa1f2be6e7978edaa1abe7477556e865c0a98 [INFO] running `Command { std: "docker" "start" "-a" "53c9b13c5d43f6ee76fb2fd428cfa1f2be6e7978edaa1abe7477556e865c0a98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53c9b13c5d43f6ee76fb2fd428cfa1f2be6e7978edaa1abe7477556e865c0a98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53c9b13c5d43f6ee76fb2fd428cfa1f2be6e7978edaa1abe7477556e865c0a98", kill_on_drop: false }` [INFO] [stdout] 53c9b13c5d43f6ee76fb2fd428cfa1f2be6e7978edaa1abe7477556e865c0a98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6239836084d037934244467b978464e9fdd6297218396ca2d585e4932c3448d [INFO] running `Command { std: "docker" "start" "-a" "b6239836084d037934244467b978464e9fdd6297218396ca2d585e4932c3448d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking float-ord v0.3.2 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling memoffset v0.6.5 [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_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Checking nix v0.22.2 [INFO] [stderr] Checking which v4.2.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)]` 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)]` 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)]` 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 { [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: 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)]` on by default [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 `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: 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: 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 { [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 { [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: 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 { [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 { [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 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.45s [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 1` [INFO] running `Command { std: "docker" "inspect" "b6239836084d037934244467b978464e9fdd6297218396ca2d585e4932c3448d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6239836084d037934244467b978464e9fdd6297218396ca2d585e4932c3448d", kill_on_drop: false }` [INFO] [stdout] b6239836084d037934244467b978464e9fdd6297218396ca2d585e4932c3448d