[INFO] cloning repository https://github.com/davidwatts117/battleship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davidwatts117/battleship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidwatts117%2Fbattleship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidwatts117%2Fbattleship'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 393984c0673f4d4bda52404e6d5f6f1f086ba027 [INFO] checking davidwatts117/battleship against try#4c525d43052e921548191f82f6ed9e2f9e98dcb1 for pr-136988 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidwatts117%2Fbattleship" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/davidwatts117/battleship on toolchain 4c525d43052e921548191f82f6ed9e2f9e98dcb1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/davidwatts117/battleship [INFO] finished tweaking git repo https://github.com/davidwatts117/battleship [INFO] tweaked toml for git repo https://github.com/davidwatts117/battleship written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/davidwatts117/battleship 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" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2185e3a7873c97ccc5928826f5afe0c6491ee2ed47903de8e9e8728c88e7552 [INFO] running `Command { std: "docker" "start" "-a" "f2185e3a7873c97ccc5928826f5afe0c6491ee2ed47903de8e9e8728c88e7552", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2185e3a7873c97ccc5928826f5afe0c6491ee2ed47903de8e9e8728c88e7552", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2185e3a7873c97ccc5928826f5afe0c6491ee2ed47903de8e9e8728c88e7552", kill_on_drop: false }` [INFO] [stdout] f2185e3a7873c97ccc5928826f5afe0c6491ee2ed47903de8e9e8728c88e7552 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+4c525d43052e921548191f82f6ed9e2f9e98dcb1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b758681dff4e52b9d23bec841a8aaf45fff0d649b045b185052574a64f73e56 [INFO] running `Command { std: "docker" "start" "-a" "8b758681dff4e52b9d23bec841a8aaf45fff0d649b045b185052574a64f73e56", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking battleship v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `=>`, `if`, or `|`, found `=` [INFO] [stdout] --> src/main.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | _ = continue, [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `=>`, `if`, or `|` [INFO] [stdout] | help: use a fat arrow to start a match arm: `=>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `=>`, `if`, or `|`, found `=` [INFO] [stdout] --> src/main.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | _ = continue, [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `=>`, `if`, or `|` [INFO] [stdout] | help: use a fat arrow to start a match arm: `=>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/main.rs:81:72 [INFO] [stdout] | [INFO] [stdout] 81 | let to_right = board.get(i + 1).map(|r| r.get(j)).flatten() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 82 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/main.rs:81:72 [INFO] [stdout] | [INFO] [stdout] 81 | let to_right = board.get(i + 1).map(|r| r.get(j)).flatten() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 82 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | for _ in (0..10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - for _ in (0..10) { [INFO] [stdout] 52 + for _ in 0..10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | for _ in (0..10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - for _ in (0..10) { [INFO] [stdout] 52 + for _ in 0..10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | fn new() -> Result { [INFO] [stdout] | --- ^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | fn new() -> Result { [INFO] [stdout] | --- ^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:62:59 [INFO] [stdout] | [INFO] [stdout] 62 | n if n.is_numeric() => Status::Intact(n.to_digit(10).unwrap()), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Intact(u8), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 62 | n if n.is_numeric() => Status::Intact(n.to_digit(10).unwrap().try_into().unwrap()), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:62:59 [INFO] [stdout] | [INFO] [stdout] 62 | n if n.is_numeric() => Status::Intact(n.to_digit(10).unwrap()), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Intact(u8), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 62 | n if n.is_numeric() => Status::Intact(n.to_digit(10).unwrap().try_into().unwrap()), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `battleship` (bin "battleship" test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `battleship` (bin "battleship") due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8b758681dff4e52b9d23bec841a8aaf45fff0d649b045b185052574a64f73e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b758681dff4e52b9d23bec841a8aaf45fff0d649b045b185052574a64f73e56", kill_on_drop: false }` [INFO] [stdout] 8b758681dff4e52b9d23bec841a8aaf45fff0d649b045b185052574a64f73e56