[INFO] cloning repository https://github.com/mtthwcmpbll/rust-battleship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mtthwcmpbll/rust-battleship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/mtthwcmpbll/rust-battleship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mtthwcmpbll/rust-battleship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/mtthwcmpbll/rust-battleship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mtthwcmpbll/rust-battleship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/mtthwcmpbll/rust-battleship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mtthwcmpbll/rust-battleship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/mtthwcmpbll/rust-battleship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mtthwcmpbll/rust-battleship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e3e5941b9164abb58860785d0dc37d3140be47f0 [INFO] checking mtthwcmpbll/rust-battleship against master#69fd5e4059f8840f09f60269bcda23dcdcb77151 for pr-135733 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mtthwcmpbll/rust-battleship on toolchain 69fd5e4059f8840f09f60269bcda23dcdcb77151 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+69fd5e4059f8840f09f60269bcda23dcdcb77151" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mtthwcmpbll/rust-battleship [INFO] finished tweaking git repo https://github.com/mtthwcmpbll/rust-battleship [INFO] tweaked toml for git repo https://github.com/mtthwcmpbll/rust-battleship written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mtthwcmpbll/rust-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" "+69fd5e4059f8840f09f60269bcda23dcdcb77151" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+69fd5e4059f8840f09f60269bcda23dcdcb77151" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb19806b8aade94fc1e5457882c0566b193c18220af8ae6a0591768ea2c9d471 [INFO] running `Command { std: "docker" "start" "-a" "bb19806b8aade94fc1e5457882c0566b193c18220af8ae6a0591768ea2c9d471", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb19806b8aade94fc1e5457882c0566b193c18220af8ae6a0591768ea2c9d471", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb19806b8aade94fc1e5457882c0566b193c18220af8ae6a0591768ea2c9d471", kill_on_drop: false }` [INFO] [stdout] bb19806b8aade94fc1e5457882c0566b193c18220af8ae6a0591768ea2c9d471 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+69fd5e4059f8840f09f60269bcda23dcdcb77151" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2417c1005142705144e6474dd00f7c5d76729e1b5709019735ebb2b2b7a24ceb [INFO] running `Command { std: "docker" "start" "-a" "2417c1005142705144e6474dd00f7c5d76729e1b5709019735ebb2b2b7a24ceb", kill_on_drop: false }` [INFO] [stderr] Checking game v0.1.0 (/opt/rustwide/workdir/game) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> game/src/ship.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | if (self.damage[(x-self.x) as usize]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - if (self.damage[(x-self.x) as usize]) { [INFO] [stdout] 77 + if self.damage[(x-self.x) as usize] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> game/src/ship.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | if (self.damage[(y-self.y) as usize]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if (self.damage[(y-self.y) as usize]) { [INFO] [stdout] 89 + if self.damage[(y-self.y) as usize] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> game/src/board.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UndamagedShip` [INFO] [stdout] --> game/src/board.rs:4:48 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::board::CoordinateState::{OpenWater, UndamagedShip}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::ShipState::Undamaged` [INFO] [stdout] --> game/src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::board::ShipState::Undamaged; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ShipOrientation` [INFO] [stdout] --> game/src/board.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ShipOrientation, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> game/src/ship.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | if (self.damage[(x-self.x) as usize]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - if (self.damage[(x-self.x) as usize]) { [INFO] [stdout] 77 + if self.damage[(x-self.x) as usize] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> game/src/ship.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | if (self.damage[(y-self.y) as usize]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if (self.damage[(y-self.y) as usize]) { [INFO] [stdout] 89 + if self.damage[(y-self.y) as usize] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> game/src/board.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UndamagedShip` [INFO] [stdout] --> game/src/board.rs:4:48 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::board::CoordinateState::{OpenWater, UndamagedShip}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::ShipState::Undamaged` [INFO] [stdout] --> game/src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::board::ShipState::Undamaged; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Horizontal` and `Vertical` are never constructed [INFO] [stdout] --> game/src/ship.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ShipOrientation { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 10 | Horizontal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | Vertical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `damage`, and `overlaps` are never used [INFO] [stdout] --> game/src/ship.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Ship { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 21 | pub fn new(x: u8, y: u8, size: u8, orientation: ShipOrientation) -> Ship { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn damage(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn overlaps(&self, other_ship: &Ship) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> game/src/board.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub state: BoardState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `COMPLETE` is never constructed [INFO] [stdout] --> game/src/board.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum BoardState { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 21 | INCOMPLETE, [INFO] [stdout] 22 | COMPLETE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BoardState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_ship` is never used [INFO] [stdout] --> game/src/board.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn with_ship(&mut self, new_ship: Ship) -> &mut Board { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Miss` is never constructed [INFO] [stdout] --> game/src/board.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 87 | pub enum CoordinateState { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 91 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `board` is never read [INFO] [stdout] --> game/src/game.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub board: Board, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking battleship v0.1.0 (/opt/rustwide/workdir/battleship) [INFO] [stdout] warning: variant `COMPLETE` is never constructed [INFO] [stdout] --> game/src/board.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum BoardState { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 21 | INCOMPLETE, [INFO] [stdout] 22 | COMPLETE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BoardState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Miss` is never constructed [INFO] [stdout] --> game/src/board.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 87 | pub enum CoordinateState { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 91 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `board` is never read [INFO] [stdout] --> game/src/game.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub board: Board, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "2417c1005142705144e6474dd00f7c5d76729e1b5709019735ebb2b2b7a24ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2417c1005142705144e6474dd00f7c5d76729e1b5709019735ebb2b2b7a24ceb", kill_on_drop: false }` [INFO] [stdout] 2417c1005142705144e6474dd00f7c5d76729e1b5709019735ebb2b2b7a24ceb