[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 1.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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" "+1.60.0" "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] 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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da27b0835ba7308cc9dff20b3a6628e0691ecdc58031bf2b34c463f04441cc52 [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" "da27b0835ba7308cc9dff20b3a6628e0691ecdc58031bf2b34c463f04441cc52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da27b0835ba7308cc9dff20b3a6628e0691ecdc58031bf2b34c463f04441cc52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da27b0835ba7308cc9dff20b3a6628e0691ecdc58031bf2b34c463f04441cc52", kill_on_drop: false }` [INFO] [stdout] da27b0835ba7308cc9dff20b3a6628e0691ecdc58031bf2b34c463f04441cc52 [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" "+1.60.0" "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] f85101521e1622cbbd3c48abb6a5f3e11fc81f4059bef8029ded8d5747d170b4 [INFO] running `Command { std: "docker" "start" "-a" "f85101521e1622cbbd3c48abb6a5f3e11fc81f4059bef8029ded8d5747d170b4", 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.75s [INFO] running `Command { std: "docker" "inspect" "f85101521e1622cbbd3c48abb6a5f3e11fc81f4059bef8029ded8d5747d170b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f85101521e1622cbbd3c48abb6a5f3e11fc81f4059bef8029ded8d5747d170b4", kill_on_drop: false }` [INFO] [stdout] f85101521e1622cbbd3c48abb6a5f3e11fc81f4059bef8029ded8d5747d170b4 [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" "+1.60.0" "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] a81615dbf01587e7f1893a6b2084fe5bc5974dca8fb45159ef308c3af7ce3bfb [INFO] running `Command { std: "docker" "start" "-a" "a81615dbf01587e7f1893a6b2084fe5bc5974dca8fb45159ef308c3af7ce3bfb", 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] [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] 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: `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] [stderr] Compiling battleship v0.1.0 (/opt/rustwide/workdir) [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.31s [INFO] running `Command { std: "docker" "inspect" "a81615dbf01587e7f1893a6b2084fe5bc5974dca8fb45159ef308c3af7ce3bfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a81615dbf01587e7f1893a6b2084fe5bc5974dca8fb45159ef308c3af7ce3bfb", kill_on_drop: false }` [INFO] [stdout] a81615dbf01587e7f1893a6b2084fe5bc5974dca8fb45159ef308c3af7ce3bfb [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" "+1.60.0" "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] a513dd66ac1ecff63b4611baabd05b8b70dcd0f660e07511e11dfd1d39bb8180 [INFO] running `Command { std: "docker" "start" "-a" "a513dd66ac1ecff63b4611baabd05b8b70dcd0f660e07511e11dfd1d39bb8180", 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.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/battleship-bcad46475b50bfc8) [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] Running unittests (/opt/rustwide/target/debug/deps/battleship-c9075279d309b970) [INFO] [stdout] [INFO] [stderr] Doc-tests battleship [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] running `Command { std: "docker" "inspect" "a513dd66ac1ecff63b4611baabd05b8b70dcd0f660e07511e11dfd1d39bb8180", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a513dd66ac1ecff63b4611baabd05b8b70dcd0f660e07511e11dfd1d39bb8180", kill_on_drop: false }` [INFO] [stdout] a513dd66ac1ecff63b4611baabd05b8b70dcd0f660e07511e11dfd1d39bb8180