[INFO] cloning repository https://github.com/mtwtkman/nc2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mtwtkman/nc2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtwtkman%2Fnc2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtwtkman%2Fnc2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d90b043af2208913d0ab24e50a3b5c7ca509ab5a [INFO] checking mtwtkman/nc2 against master#a5f164faad4a2fed606b8160fd7ecd2d5cbba381 for pr-84920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtwtkman%2Fnc2" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mtwtkman/nc2 on toolchain a5f164faad4a2fed606b8160fd7ecd2d5cbba381 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mtwtkman/nc2 [INFO] finished tweaking git repo https://github.com/mtwtkman/nc2 [INFO] tweaked toml for git repo https://github.com/mtwtkman/nc2 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/mtwtkman/nc2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 088881d2bbcd4c2a95276f1a7d6d4f84afe4a1b5f17760926c09b46161d6db72 [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" "088881d2bbcd4c2a95276f1a7d6d4f84afe4a1b5f17760926c09b46161d6db72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "088881d2bbcd4c2a95276f1a7d6d4f84afe4a1b5f17760926c09b46161d6db72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "088881d2bbcd4c2a95276f1a7d6d4f84afe4a1b5f17760926c09b46161d6db72", kill_on_drop: false }` [INFO] [stdout] 088881d2bbcd4c2a95276f1a7d6d4f84afe4a1b5f17760926c09b46161d6db72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f97f8fc16f7c53e4e45e5392fa80f3c8245df541b94535e759d7abf019ff0d40 [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" "f97f8fc16f7c53e4e45e5392fa80f3c8245df541b94535e759d7abf019ff0d40", kill_on_drop: false }` [INFO] [stderr] Checking runtime v0.1.0 (/opt/rustwide/workdir/runtime) [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> runtime/src/position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> runtime/src/position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> runtime/src/lib.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let destination = moving_range.indicate(&action.to_direction)?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Field` [INFO] [stdout] --> runtime/src/board.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | type Field = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/board.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) fn new(player_a: &Player, player_b: &Player) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_initial_field` [INFO] [stdout] --> runtime/src/board.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn build_initial_field(player_a: &Player, player_b: &Player) -> Field { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setup_cell_map` [INFO] [stdout] --> runtime/src/board.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn setup_cell_map(player_a: &Player, player_b: &Player) -> CellMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_initial_occupied_cells` [INFO] [stdout] --> runtime/src/board.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn generate_initial_occupied_cells( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_initial_empty_cells` [INFO] [stdout] --> runtime/src/board.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn generate_initial_empty_cells(row: Row) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `territory` [INFO] [stdout] --> runtime/src/board.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) fn territory(&self, player: &Player) -> CellMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Direction` [INFO] [stdout] --> runtime/src/board.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | pub(crate) enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/board.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | fn new(cell: &Cell, field: &Field) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destination` [INFO] [stdout] --> runtime/src/board.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn destination(pivot: &Cell, moved: Result, field: &Field) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_not_owned` [INFO] [stdout] --> runtime/src/board.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn is_not_owned(from_cell: &Cell, to_cell: &Cell) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_reached_stacking_limit` [INFO] [stdout] --> runtime/src/board.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | fn is_reached_stacking_limit(to_cell: &Cell) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `indicate` [INFO] [stdout] --> runtime/src/board.rs:180:19 [INFO] [stdout] | [INFO] [stdout] 180 | pub(crate) fn indicate(&self, direction: &Direction) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `height` [INFO] [stdout] --> runtime/src/cell.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn height(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `owner` [INFO] [stdout] --> runtime/src/cell.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) fn owner(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_empty` [INFO] [stdout] --> runtime/src/cell.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_fullfilled` [INFO] [stdout] --> runtime/src/cell.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) fn is_fullfilled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_empty` [INFO] [stdout] --> runtime/src/cell.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) fn new_empty(position: Position) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_occupied` [INFO] [stdout] --> runtime/src/cell.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) fn new_occupied(position: Position, player: Player) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack` [INFO] [stdout] --> runtime/src/cell.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) fn stack(&self, player: &Player) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unstack` [INFO] [stdout] --> runtime/src/cell.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) fn unstack(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `migrate` [INFO] [stdout] --> runtime/src/cell.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | pub(crate) fn migrate(&self, other: &Cell) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/player.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/player.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Top` [INFO] [stdout] --> runtime/src/position.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Top, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleFirst` [INFO] [stdout] --> runtime/src/position.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | MiddleFirst, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleSecond` [INFO] [stdout] --> runtime/src/position.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | MiddleSecond, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleThird` [INFO] [stdout] --> runtime/src/position.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | MiddleThird, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleFourth` [INFO] [stdout] --> runtime/src/position.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | MiddleFourth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bottom` [INFO] [stdout] --> runtime/src/position.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Bottom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_top` [INFO] [stdout] --> runtime/src/position.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn is_top(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_bottom` [INFO] [stdout] --> runtime/src/position.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn is_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_middle` [INFO] [stdout] --> runtime/src/position.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_middle(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_up` [INFO] [stdout] --> runtime/src/position.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn move_up(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_down` [INFO] [stdout] --> runtime/src/position.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn move_down(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LeftEdge` [INFO] [stdout] --> runtime/src/position.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | LeftEdge, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleFirst` [INFO] [stdout] --> runtime/src/position.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | MiddleFirst, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleSecond` [INFO] [stdout] --> runtime/src/position.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | MiddleSecond, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MiddleThird` [INFO] [stdout] --> runtime/src/position.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | MiddleThird, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RightEdge` [INFO] [stdout] --> runtime/src/position.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | RightEdge, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_left_edge` [INFO] [stdout] --> runtime/src/position.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn is_left_edge(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_right_edge` [INFO] [stdout] --> runtime/src/position.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn is_right_edge(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_middle` [INFO] [stdout] --> runtime/src/position.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn is_middle(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_right` [INFO] [stdout] --> runtime/src/position.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn move_right(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_left` [INFO] [stdout] --> runtime/src/position.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn move_left(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/position.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) fn new(x: Column, y: Row) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_vertical` [INFO] [stdout] --> runtime/src/position.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | pub(self) fn move_vertical(&self, y: Result) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_up` [INFO] [stdout] --> runtime/src/position.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | pub(crate) fn move_up(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_down` [INFO] [stdout] --> runtime/src/position.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | pub(crate) fn move_down(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_horizon` [INFO] [stdout] --> runtime/src/position.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | pub(self) fn move_horizon(&self, x: Result) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_right` [INFO] [stdout] --> runtime/src/position.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | pub(crate) fn move_right(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_left` [INFO] [stdout] --> runtime/src/position.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 136 | pub(crate) fn move_left(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_up_right` [INFO] [stdout] --> runtime/src/position.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 140 | pub(crate) fn move_up_right(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_up_left` [INFO] [stdout] --> runtime/src/position.rs:144:19 [INFO] [stdout] | [INFO] [stdout] 144 | pub(crate) fn move_up_left(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_down_right` [INFO] [stdout] --> runtime/src/position.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | pub(crate) fn move_down_right(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_down_left` [INFO] [stdout] --> runtime/src/position.rs:152:19 [INFO] [stdout] | [INFO] [stdout] 152 | pub(crate) fn move_down_left(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_top` [INFO] [stdout] --> runtime/src/position.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn is_top(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_bottom` [INFO] [stdout] --> runtime/src/position.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | pub(crate) fn is_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_left_edge_top` [INFO] [stdout] --> runtime/src/position.rs:164:19 [INFO] [stdout] | [INFO] [stdout] 164 | pub(crate) fn is_left_edge_top(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_left_edge_bottom` [INFO] [stdout] --> runtime/src/position.rs:168:19 [INFO] [stdout] | [INFO] [stdout] 168 | pub(crate) fn is_left_edge_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_right_edge_top` [INFO] [stdout] --> runtime/src/position.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 172 | pub(crate) fn is_right_edge_top(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_right_edge_bottom` [INFO] [stdout] --> runtime/src/position.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | pub(crate) fn is_right_edge_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_right_edge_middle_row` [INFO] [stdout] --> runtime/src/position.rs:180:19 [INFO] [stdout] | [INFO] [stdout] 180 | pub(crate) fn is_right_edge_middle_row(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_left_edge_middle_row` [INFO] [stdout] --> runtime/src/position.rs:184:19 [INFO] [stdout] | [INFO] [stdout] 184 | pub(crate) fn is_left_edge_middle_row(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_middle_column_top` [INFO] [stdout] --> runtime/src/position.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub(crate) fn is_middle_column_top(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_middle_column_bottom` [INFO] [stdout] --> runtime/src/position.rs:192:19 [INFO] [stdout] | [INFO] [stdout] 192 | pub(crate) fn is_middle_column_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ReachedTop` [INFO] [stdout] --> runtime/src/result.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ReachedTop, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ReachedBottom` [INFO] [stdout] --> runtime/src/result.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ReachedBottom, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ReachedRightEdge` [INFO] [stdout] --> runtime/src/result.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ReachedRightEdge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ReachedLeftEdge` [INFO] [stdout] --> runtime/src/result.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ReachedLeftEdge, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ReachedPalletHeightLimit` [INFO] [stdout] --> runtime/src/result.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ReachedPalletHeightLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CellIsEmpty` [INFO] [stdout] --> runtime/src/result.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | CellIsEmpty, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CellIsFullfilled` [INFO] [stdout] --> runtime/src/result.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | CellIsFullfilled, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AlreadyOccupied` [INFO] [stdout] --> runtime/src/result.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | AlreadyOccupied(Player), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidDirection` [INFO] [stdout] --> runtime/src/result.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | InvalidDirection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IllegalDestination` [INFO] [stdout] --> runtime/src/result.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | IllegalDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Result` [INFO] [stdout] --> runtime/src/result.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) type Result = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `player` [INFO] [stdout] --> runtime/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | player: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `cell_map` [INFO] [stdout] --> runtime/src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | cell_map: CellMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `won` [INFO] [stdout] --> runtime/src/lib.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn won(&self, goal_side: &Row) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Action` [INFO] [stdout] --> runtime/src/lib.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Action { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn new(from: Cell, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `player_a` [INFO] [stdout] --> runtime/src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | player_a: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `player_b` [INFO] [stdout] --> runtime/src/lib.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | player_b: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `board` [INFO] [stdout] --> runtime/src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | board: Board, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current_phase` [INFO] [stdout] --> runtime/src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | current_phase: Phase, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `winner` [INFO] [stdout] --> runtime/src/lib.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | winner: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/lib.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `goal_side` [INFO] [stdout] --> runtime/src/lib.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn goal_side(&self) -> Row { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_over` [INFO] [stdout] --> runtime/src/lib.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn is_over(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spawn_players` [INFO] [stdout] --> runtime/src/lib.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn spawn_players() -> (Player, Player) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `act` [INFO] [stdout] --> runtime/src/lib.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn act(&self, action: Action) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_player` [INFO] [stdout] --> runtime/src/lib.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_player(&self) -> Player { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_turn` [INFO] [stdout] --> runtime/src/lib.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn next_turn(&self, action: Action) -> Result<(Board, Phase)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> runtime/src/lib.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let destination = moving_range.indicate(&action.to_direction)?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cell` [INFO] [stdout] --> runtime/src/board.rs:341:13 [INFO] [stdout] | [INFO] [stdout] 341 | let cell = Cell::new_empty(Position::new(Column::LeftEdge, Row::Top)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/board.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) fn new(player_a: &Player, player_b: &Player) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_initial_field` [INFO] [stdout] --> runtime/src/board.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn build_initial_field(player_a: &Player, player_b: &Player) -> Field { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setup_cell_map` [INFO] [stdout] --> runtime/src/board.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn setup_cell_map(player_a: &Player, player_b: &Player) -> CellMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `territory` [INFO] [stdout] --> runtime/src/board.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) fn territory(&self, player: &Player) -> CellMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_no` [INFO] [stdout] --> runtime/src/board.rs:340:8 [INFO] [stdout] | [INFO] [stdout] 340 | fn has_no() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidDirection` [INFO] [stdout] --> runtime/src/result.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | InvalidDirection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `player` [INFO] [stdout] --> runtime/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | player: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Action` [INFO] [stdout] --> runtime/src/lib.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Action { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn new(from: Cell, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `player_a` [INFO] [stdout] --> runtime/src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | player_a: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `player_b` [INFO] [stdout] --> runtime/src/lib.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | player_b: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `board` [INFO] [stdout] --> runtime/src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | board: Board, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current_phase` [INFO] [stdout] --> runtime/src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | current_phase: Phase, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `winner` [INFO] [stdout] --> runtime/src/lib.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | winner: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> runtime/src/lib.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `goal_side` [INFO] [stdout] --> runtime/src/lib.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn goal_side(&self) -> Row { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_over` [INFO] [stdout] --> runtime/src/lib.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn is_over(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spawn_players` [INFO] [stdout] --> runtime/src/lib.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn spawn_players() -> (Player, Player) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `act` [INFO] [stdout] --> runtime/src/lib.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn act(&self, action: Action) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_player` [INFO] [stdout] --> runtime/src/lib.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_player(&self) -> Player { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_turn` [INFO] [stdout] --> runtime/src/lib.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn next_turn(&self, action: Action) -> Result<(Board, Phase)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.15s [INFO] running `Command { std: "docker" "inspect" "f97f8fc16f7c53e4e45e5392fa80f3c8245df541b94535e759d7abf019ff0d40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f97f8fc16f7c53e4e45e5392fa80f3c8245df541b94535e759d7abf019ff0d40", kill_on_drop: false }` [INFO] [stdout] f97f8fc16f7c53e4e45e5392fa80f3c8245df541b94535e759d7abf019ff0d40