[INFO] cloning repository https://github.com/dougli1sqrd/rustship [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dougli1sqrd/rustship" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdougli1sqrd%2Frustship", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdougli1sqrd%2Frustship'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a05705123fb3459213ee90de466d8b4867a031d9 [INFO] checking dougli1sqrd/rustship against master#32cd9114712a24010b0583624dc52ac302194128 for pr-143717 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdougli1sqrd%2Frustship" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dougli1sqrd/rustship [INFO] finished tweaking git repo https://github.com/dougli1sqrd/rustship [INFO] tweaked toml for git repo https://github.com/dougli1sqrd/rustship written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dougli1sqrd/rustship on toolchain 32cd9114712a24010b0583624dc52ac302194128 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dougli1sqrd/rustship 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" "+32cd9114712a24010b0583624dc52ac302194128" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd79484d2b0cdfb94d241d569fc324c5c82b0b1ff17e551b4ce98d256f5593e4 [INFO] running `Command { std: "docker" "start" "-a" "dd79484d2b0cdfb94d241d569fc324c5c82b0b1ff17e551b4ce98d256f5593e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd79484d2b0cdfb94d241d569fc324c5c82b0b1ff17e551b4ce98d256f5593e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd79484d2b0cdfb94d241d569fc324c5c82b0b1ff17e551b4ce98d256f5593e4", kill_on_drop: false }` [INFO] [stdout] dd79484d2b0cdfb94d241d569fc324c5c82b0b1ff17e551b4ce98d256f5593e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1dfa53c24a33ff865a606a1656e8f7991c6eb4a32d28457485714b8e227caf87 [INFO] running `Command { std: "docker" "start" "-a" "1dfa53c24a33ff865a606a1656e8f7991c6eb4a32d28457485714b8e227caf87", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking rustship v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/board/board.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | fn resolve_hit(& mut self, coordinate: Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `place` is never used [INFO] [stdout] --> src/grid/grid.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait GridType { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn place(& mut self, column: usize, row: usize, item: T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Inside` is never used [INFO] [stdout] --> src/grid/grid.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Inside { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Horizontal` and `Vertical` are never constructed [INFO] [stdout] --> src/board/orientation.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Orientation { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 9 | Horizontal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | Vertical [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orientation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate` is never used [INFO] [stdout] --> src/board/orientation.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Orientation { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 20 | pub fn rotate(self) -> Orientation { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ships` is never read [INFO] [stdout] --> src/board/board.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Board<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 14 | pub grid: Grid, [INFO] [stdout] 15 | ships: Vec> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `place`, `place_ship`, `receive_shot`, and `update_grid` are never used [INFO] [stdout] --> src/board/board.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> Board<'a> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn place(& mut self, ship_type: ShipType, position: Coordinate, direction: Orientation) -> Result<(), Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn place_ship(& mut self, ship: Ship<'a>) -> Result<(), Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn receive_shot(& mut self, coordinate: Coordinate) -> HitStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn update_grid(& mut self, coordinates: &[Coordinate], ship: Ship<'a>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HitStatus` is never used [INFO] [stdout] --> src/board/shot.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum HitStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hit` is never used [INFO] [stdout] --> src/board/shot.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait Hit { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShipType` is never used [INFO] [stdout] --> src/pieces/ship.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ShipType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hits` is never read [INFO] [stdout] --> src/pieces/ship.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Ship<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | hits: usize [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ship` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol` and `name` are never read [INFO] [stdout] --> src/pieces/ship.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct ShipTypeData<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 26 | symbol: char, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | name: & 'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShipTypeData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pieces/ship.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> ShipTypeData<'a> { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 32 | pub fn new(ship_type: ShipType) -> ShipTypeData<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `symbol`, `rotate`, `change_pos`, and `get_position` are never used [INFO] [stdout] --> src/pieces/ship.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl<'a> Ship<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 64 | pub fn new(ship_type: ShipType) -> Ship<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn symbol(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn rotate(& mut self) -> & Ship { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn change_pos(& mut self, position: Coordinate) -> & Ship { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn get_position(&self) -> Coordinate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/pieces/ship.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn rotate(& mut self) -> & Ship { [INFO] [stdout] | ^^^^^^^^^^ ------ [INFO] [stdout] | | | | [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 87 | pub fn rotate(& mut self) -> & Ship<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/pieces/ship.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn change_pos(& mut self, position: Coordinate) -> & Ship { [INFO] [stdout] | ^^^^^^^^^^ ------ [INFO] [stdout] | | | | [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 92 | pub fn change_pos(& mut self, position: Coordinate) -> & Ship<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coordinate` [INFO] [stdout] --> src/board/board.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | fn resolve_hit(& mut self, coordinate: Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coordinate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `resolve_hit`, `resolve_miss`, and `receive_shot` are never used [INFO] [stdout] --> src/board/shot.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait Hit { [INFO] [stdout] | --- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | fn resolve_hit(& mut self, coordinate: Coordinate); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn resolve_miss(& mut self, coordinate: Coordinate) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn receive_shot(& mut self, coordinate: Coordinate) -> HitStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hits` is never read [INFO] [stdout] --> src/pieces/ship.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Ship<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | hits: usize [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ship` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/pieces/ship.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct ShipTypeData<'a> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 26 | symbol: char, [INFO] [stdout] 27 | name: & 'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShipTypeData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/pieces/ship.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn rotate(& mut self) -> & Ship { [INFO] [stdout] | ^^^^^^^^^^ ------ [INFO] [stdout] | | | | [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 87 | pub fn rotate(& mut self) -> & Ship<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/pieces/ship.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn change_pos(& mut self, position: Coordinate) -> & Ship { [INFO] [stdout] | ^^^^^^^^^^ ------ [INFO] [stdout] | | | | [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 92 | pub fn change_pos(& mut self, position: Coordinate) -> & Ship<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "1dfa53c24a33ff865a606a1656e8f7991c6eb4a32d28457485714b8e227caf87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dfa53c24a33ff865a606a1656e8f7991c6eb4a32d28457485714b8e227caf87", kill_on_drop: false }` [INFO] [stdout] 1dfa53c24a33ff865a606a1656e8f7991c6eb4a32d28457485714b8e227caf87