[INFO] cloning repository https://github.com/jospradlin/snake_game
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jospradlin/snake_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fsnake_game", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fsnake_game'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 65f4e8ef43b6c650a2102ebfd75effbc1819a7fb
[INFO] checking jospradlin/snake_game against 49a6044d37d694890450f52ceaceb66277a36b1e for pr-161154
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjospradlin%2Fsnake_game" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jospradlin/snake_game
[INFO] finished tweaking git repo https://github.com/jospradlin/snake_game
[INFO] tweaked toml for git repo https://github.com/jospradlin/snake_game written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jospradlin/snake_game on toolchain 49a6044d37d694890450f52ceaceb66277a36b1e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jospradlin/snake_game 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" "+49a6044d37d694890450f52ceaceb66277a36b1e" "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 syn v2.0.41
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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] 71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267
[INFO] running `Command { std: "docker" "start" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267", 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" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267", 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" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.89
[INFO] [stderr]    Compiling bumpalo v3.14.0
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling wasm-bindgen v0.2.89
[INFO] [stderr]    Compiling wee_alloc v0.4.5
[INFO] [stderr]    Compiling syn v2.0.41
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.89
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.89
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.89
[INFO] [stderr]     Checking snake_game v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: fields `body` and `direction` are never read
[INFO] [stdout]   --> src/lib.rs:43:5
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct Snake {
[INFO] [stdout]    |        ----- fields in this struct
[INFO] [stdout] 43 |     body: Vec<SnakeCell>,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 44 |     direction: Direction,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `body` and `direction` are never read
[INFO] [stdout]   --> src/lib.rs:43:5
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct Snake {
[INFO] [stdout]    |        ----- fields in this struct
[INFO] [stdout] 43 |     body: Vec<SnakeCell>,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 44 |     direction: Direction,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/lib.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | impl Snake {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 49 |     pub fn new(spawn_index: usize, size: usize) -> Snake {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/lib.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | impl Snake {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 49 |     pub fn new(spawn_index: usize, size: usize) -> Snake {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/lib.rs:68:5
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct World {
[INFO] [stdout]    |        ----- fields in this struct
[INFO] [stdout] 68 |     width: usize,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 69 |     size: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 70 |     snake: Snake,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 71 |     next_cell: Option<SnakeCell>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 72 |     reward_cell: Option<usize>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 73 |     status: Option<GameStatus>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 74 |     points: usize,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/lib.rs:68:5
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct World {
[INFO] [stdout]    |        ----- fields in this struct
[INFO] [stdout] 68 |     width: usize,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 69 |     size: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 70 |     snake: Snake,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 71 |     next_cell: Option<SnakeCell>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 72 |     reward_cell: Option<usize>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 73 |     status: Option<GameStatus>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 74 |     points: usize,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/lib.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl World {
[INFO] [stdout]     | ---------- associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(width: usize, snake_index: usize, starting_size: usize) -> World {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  95 |     pub fn start_game(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  99 |     pub fn status(&self) -> Option<GameStatus> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn points(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 107 |     pub fn game_status_text(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn width(&self) -> usize {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub fn reward_cell(&self) -> Option<usize> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn snake_head_index(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub fn snake_cells(&self) -> *const SnakeCell {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn snake_length(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 150 |     fn set_random_reward_cell(max_size: usize, snake_body: &Vec<SnakeCell>) -> Option<usize> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     pub fn step(&mut self) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 204 |     fn gen_next_snake_cell(&self, direction: &Direction) -> SnakeCell {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn handle_input(&mut self, new_direction: Direction) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/lib.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl World {
[INFO] [stdout]     | ---------- associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(width: usize, snake_index: usize, starting_size: usize) -> World {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  95 |     pub fn start_game(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  99 |     pub fn status(&self) -> Option<GameStatus> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn points(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 107 |     pub fn game_status_text(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn width(&self) -> usize {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub fn reward_cell(&self) -> Option<usize> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn snake_head_index(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub fn snake_cells(&self) -> *const SnakeCell {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn snake_length(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 150 |     fn set_random_reward_cell(max_size: usize, snake_body: &Vec<SnakeCell>) -> Option<usize> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     pub fn step(&mut self) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 204 |     fn gen_next_snake_cell(&self, direction: &Direction) -> SnakeCell {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn handle_input(&mut self, new_direction: Direction) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.15s
[INFO] running `Command { std: "docker" "inspect" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267", kill_on_drop: false }`
[INFO] [stdout] 71e513d6f3e79497456121c720fa6f366d2d5fe1f9faedb49536f817e2343267
