[INFO] cloning repository https://github.com/a1lu/battleship_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/a1lu/battleship_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa1lu%2Fbattleship_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa1lu%2Fbattleship_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ede34ddb022fca2988df73d78673b90b10e6bc01 [INFO] testing a1lu/battleship_rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa1lu%2Fbattleship_rs" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/a1lu/battleship_rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/a1lu/battleship_rs [INFO] finished tweaking git repo https://github.com/a1lu/battleship_rs [INFO] tweaked toml for git repo https://github.com/a1lu/battleship_rs written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/a1lu/battleship_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 80d9d4f931794e32a838bc984091a1cf48d478a6139cae5432bcc4d451ac3924 [INFO] running `Command { std: "docker" "start" "-a" "80d9d4f931794e32a838bc984091a1cf48d478a6139cae5432bcc4d451ac3924", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80d9d4f931794e32a838bc984091a1cf48d478a6139cae5432bcc4d451ac3924", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80d9d4f931794e32a838bc984091a1cf48d478a6139cae5432bcc4d451ac3924", kill_on_drop: false }` [INFO] [stdout] 80d9d4f931794e32a838bc984091a1cf48d478a6139cae5432bcc4d451ac3924 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 44a6172ac0180788578337e8b8c9a1ac8388a656ef7bed58769a6a4f52d879d8 [INFO] running `Command { std: "docker" "start" "-a" "44a6172ac0180788578337e8b8c9a1ac8388a656ef7bed58769a6a4f52d879d8", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling battleship v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/board.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn board(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 46 | &self.board() [INFO] [stdout] | ------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `config` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | config: Config, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Miss` [INFO] [stdout] --> src/board.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Hit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Hit, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Destroyed` [INFO] [stdout] --> src/board.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Destroyed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ship` [INFO] [stdout] --> src/board.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Ship [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Board` [INFO] [stdout] --> src/board.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Board{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/board.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(size:u8) -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/board.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn insert(&mut self, point: &turn::Point, c: &Cell) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit` [INFO] [stdout] --> src/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn hit(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `miss` [INFO] [stdout] --> src/board.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn miss(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destroyed` [INFO] [stdout] --> src/board.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn destroyed(&mut self, points: &[turn::Point]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `place_ship` [INFO] [stdout] --> src/board.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn place_ship(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `board` [INFO] [stdout] --> src/board.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn board(&self) -> &Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.34s [INFO] running `Command { std: "docker" "inspect" "44a6172ac0180788578337e8b8c9a1ac8388a656ef7bed58769a6a4f52d879d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44a6172ac0180788578337e8b8c9a1ac8388a656ef7bed58769a6a4f52d879d8", kill_on_drop: false }` [INFO] [stdout] 44a6172ac0180788578337e8b8c9a1ac8388a656ef7bed58769a6a4f52d879d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9b3586461a7e2a8a481e89b7ab1c256fd7de47ea8308af52f8220421e6f15952 [INFO] running `Command { std: "docker" "start" "-a" "9b3586461a7e2a8a481e89b7ab1c256fd7de47ea8308af52f8220421e6f15952", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/board.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn board(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 46 | &self.board() [INFO] [stdout] | ------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stdout] warning: field is never read: `config` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | config: Config, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling battleship v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant is never constructed: `Miss` [INFO] [stdout] --> src/board.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Hit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Hit, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Destroyed` [INFO] [stdout] --> src/board.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Destroyed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ship` [INFO] [stdout] --> src/board.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Ship [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Board` [INFO] [stdout] --> src/board.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Board{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/board.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(size:u8) -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/board.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn insert(&mut self, point: &turn::Point, c: &Cell) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit` [INFO] [stdout] --> src/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn hit(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `miss` [INFO] [stdout] --> src/board.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn miss(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destroyed` [INFO] [stdout] --> src/board.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn destroyed(&mut self, points: &[turn::Point]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `place_ship` [INFO] [stdout] --> src/board.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn place_ship(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `board` [INFO] [stdout] --> src/board.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn board(&self) -> &Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/board.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn board(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 46 | &self.board() [INFO] [stdout] | ------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `config` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | config: Config, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Miss` [INFO] [stdout] --> src/board.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Miss, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Hit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Hit, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Destroyed` [INFO] [stdout] --> src/board.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Destroyed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ship` [INFO] [stdout] --> src/board.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Ship [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/board.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Board` [INFO] [stdout] --> src/board.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Board{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/board.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(size:u8) -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/board.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn insert(&mut self, point: &turn::Point, c: &Cell) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit` [INFO] [stdout] --> src/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn hit(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `miss` [INFO] [stdout] --> src/board.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn miss(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destroyed` [INFO] [stdout] --> src/board.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn destroyed(&mut self, points: &[turn::Point]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `place_ship` [INFO] [stdout] --> src/board.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn place_ship(&mut self, point: &turn::Point) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `board` [INFO] [stdout] --> src/board.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn board(&self) -> &Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.38s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/battleship-a3fbcdd06c65cb30) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/battleship-7346a0d0119eb4f0) [INFO] running `Command { std: "docker" "inspect" "9b3586461a7e2a8a481e89b7ab1c256fd7de47ea8308af52f8220421e6f15952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b3586461a7e2a8a481e89b7ab1c256fd7de47ea8308af52f8220421e6f15952", kill_on_drop: false }` [INFO] [stdout] 9b3586461a7e2a8a481e89b7ab1c256fd7de47ea8308af52f8220421e6f15952 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 304562976efb622f4bd74df0fb682bcb68e4833082f749226f8b01ea1c696b0d [INFO] running `Command { std: "docker" "start" "-a" "304562976efb622f4bd74df0fb682bcb68e4833082f749226f8b01ea1c696b0d", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] warning: function cannot return without recursing [INFO] [stderr] --> src/board.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn board(&self) -> &Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stderr] 46 | &self.board() [INFO] [stderr] | ------------ recursive call site [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stderr] = help: a `loop` may express intention better if this is on purpose [INFO] [stderr] [INFO] [stderr] warning: field is never read: `config` [INFO] [stderr] --> src/lib.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | config: Config, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Empty` [INFO] [stderr] --> src/board.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | Empty, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/board.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Miss` [INFO] [stderr] --> src/board.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | Miss, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/board.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Hit` [INFO] [stderr] --> src/board.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Hit, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/board.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Destroyed` [INFO] [stderr] --> src/board.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | Destroyed, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/board.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Ship` [INFO] [stderr] --> src/board.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Ship [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/board.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone, Copy)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Board` [INFO] [stderr] --> src/board.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | struct Board{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/board.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn new(size:u8) -> Board { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `insert` [INFO] [stderr] --> src/board.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | fn insert(&mut self, point: &turn::Point, c: &Cell) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `hit` [INFO] [stderr] --> src/board.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn hit(&mut self, point: &turn::Point) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `miss` [INFO] [stderr] --> src/board.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn miss(&mut self, point: &turn::Point) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `destroyed` [INFO] [stderr] --> src/board.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn destroyed(&mut self, points: &[turn::Point]) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `place_ship` [INFO] [stderr] --> src/board.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn place_ship(&mut self, point: &turn::Point) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `board` [INFO] [stderr] --> src/board.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn board(&self) -> &Vec> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `battleship` (lib) generated 15 warnings [INFO] [stderr] warning: `battleship` (lib test) generated 15 warnings (15 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/battleship-a3fbcdd06c65cb30) [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/battleship-7346a0d0119eb4f0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests battleship [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "304562976efb622f4bd74df0fb682bcb68e4833082f749226f8b01ea1c696b0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "304562976efb622f4bd74df0fb682bcb68e4833082f749226f8b01ea1c696b0d", kill_on_drop: false }` [INFO] [stdout] 304562976efb622f4bd74df0fb682bcb68e4833082f749226f8b01ea1c696b0d