[INFO] cloning repository https://github.com/benracine/basic-battleship-program
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benracine/basic-battleship-program" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenracine%2Fbasic-battleship-program", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenracine%2Fbasic-battleship-program'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dd15a6b7b45803451f88b76d1341aada42abdbf6
[INFO] checking benracine/basic-battleship-program against e977a0b5ab976a591981e7263bd67a71a4f79308 for pr-158914
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenracine%2Fbasic-battleship-program" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/benracine/basic-battleship-program
[INFO] finished tweaking git repo https://github.com/benracine/basic-battleship-program
[INFO] tweaked toml for git repo https://github.com/benracine/basic-battleship-program written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/benracine/basic-battleship-program on toolchain e977a0b5ab976a591981e7263bd67a71a4f79308
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/benracine/basic-battleship-program 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" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "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-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00
[INFO] running `Command { std: "docker" "start" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00", 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" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00" "/opt/rustwide/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00", 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" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00" "/opt/rustwide/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]     Checking cfg-if v1.0.1
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]     Checking strum v0.27.2
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking uuid v1.17.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling strum_macros v0.27.2
[INFO] [stderr]     Checking battleship v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/app/game.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::thread;
[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: `std::time::Duration`
[INFO] [stdout]  --> src/app/game.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/app/grid.rs:38:16
[INFO] [stdout]    |
[INFO] [stdout] 38 |             if (fits) {
[INFO] [stdout]    |                ^    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 38 -             if (fits) {
[INFO] [stdout] 38 +             if fits {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/app/game.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::thread;
[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: `std::time::Duration`
[INFO] [stdout]  --> src/app/game.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/app/grid.rs:38:16
[INFO] [stdout]    |
[INFO] [stdout] 38 |             if (fits) {
[INFO] [stdout]    |                ^    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 38 -             if (fits) {
[INFO] [stdout] 38 +             if fits {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/app/grid.rs:37:75
[INFO] [stdout]    |
[INFO] [stdout] 37 |             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout]    |                             ---------                                     ^^^^^^^^^^^^^^^ expected `Direction`, found `&Direction`
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/app/grid.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn check_fit(
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |         direction: Direction,
[INFO] [stdout]    |         --------------------
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 37 -             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout] 37 +             let fits = self.check_fit(ship, start_row, start_col, length, ship.direction);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `!=` cannot be applied to type `CellStatus`
[INFO] [stdout]   --> src/app/grid.rs:66:66
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 || self.cells[row as usize][col as usize].status != CellStatus::Empty
[INFO] [stdout]    |                    --------------------------------------------- ^^ ----------------- CellStatus
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    CellStatus
[INFO] [stdout]    |
[INFO] [stdout] note: an implementation of `PartialEq` might be missing for `CellStatus`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum CellStatus {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
[INFO] [stdout] help: consider annotating `CellStatus` with `#[derive(PartialEq)]`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 + #[derive(PartialEq)]
[INFO] [stdout] 27 | pub enum CellStatus {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0369.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `battleship` (bin "battleship") due to 2 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/app/grid.rs:37:75
[INFO] [stdout]    |
[INFO] [stdout] 37 |             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout]    |                             ---------                                     ^^^^^^^^^^^^^^^ expected `Direction`, found `&Direction`
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/app/grid.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn check_fit(
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |         direction: Direction,
[INFO] [stdout]    |         --------------------
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 37 -             let fits = self.check_fit(ship, start_row, start_col, length, &ship.direction);
[INFO] [stdout] 37 +             let fits = self.check_fit(ship, start_row, start_col, length, ship.direction);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `!=` cannot be applied to type `CellStatus`
[INFO] [stdout]   --> src/app/grid.rs:66:66
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 || self.cells[row as usize][col as usize].status != CellStatus::Empty
[INFO] [stdout]    |                    --------------------------------------------- ^^ ----------------- CellStatus
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    CellStatus
[INFO] [stdout]    |
[INFO] [stdout] note: an implementation of `PartialEq` might be missing for `CellStatus`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum CellStatus {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
[INFO] [stdout] help: consider annotating `CellStatus` with `#[derive(PartialEq)]`
[INFO] [stdout]   --> src/app/cell.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 + #[derive(PartialEq)]
[INFO] [stdout] 27 | pub enum CellStatus {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0369.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `battleship` (bin "battleship" test) due to 2 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00", kill_on_drop: false }`
[INFO] [stdout] 014c6657e921f8206b8441c6eef9f7326b66d10db8b5d2991e5759af7ee81d00
