[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtthwcmpbll%2Frust-battleship" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mtthwcmpbll/rust-battleship on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-12/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: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e3b3ab719d1ceef02d84a78cd1b18e8343556711afc6ab6523dfe15c1b7fe204 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e3b3ab719d1ceef02d84a78cd1b18e8343556711afc6ab6523dfe15c1b7fe204", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e3b3ab719d1ceef02d84a78cd1b18e8343556711afc6ab6523dfe15c1b7fe204", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3b3ab719d1ceef02d84a78cd1b18e8343556711afc6ab6523dfe15c1b7fe204", kill_on_drop: false }` [INFO] [stdout] e3b3ab719d1ceef02d84a78cd1b18e8343556711afc6ab6523dfe15c1b7fe204 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ef4888a0da71ba44f622d75df51dd2cc57373e8180996eea1f4ec32e60266da [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5ef4888a0da71ba44f622d75df51dd2cc57373e8180996eea1f4ec32e60266da", 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `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: variant is never constructed: `Horizontal` [INFO] [stdout] --> game/src/ship.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Horizontal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Vertical` [INFO] [stdout] --> game/src/ship.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> game/src/ship.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(x: u8, y: u8, size: u8, orientation: ShipOrientation) -> Ship { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `damage` [INFO] [stdout] --> game/src/ship.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn damage(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overlaps` [INFO] [stdout] --> game/src/ship.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn overlaps(&self, other_ship: &Ship) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `COMPLETE` [INFO] [stdout] --> game/src/board.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | COMPLETE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_ship` [INFO] [stdout] --> game/src/board.rs:50:12 [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 is never constructed: `Miss` [INFO] [stdout] --> game/src/board.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `COMPLETE` [INFO] [stdout] --> game/src/board.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | COMPLETE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Miss` [INFO] [stdout] --> game/src/board.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking battleship v0.1.0 (/opt/rustwide/workdir/battleship) [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.15s [INFO] running `Command { std: "docker" "inspect" "5ef4888a0da71ba44f622d75df51dd2cc57373e8180996eea1f4ec32e60266da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ef4888a0da71ba44f622d75df51dd2cc57373e8180996eea1f4ec32e60266da", kill_on_drop: false }` [INFO] [stdout] 5ef4888a0da71ba44f622d75df51dd2cc57373e8180996eea1f4ec32e60266da