[INFO] cloning repository https://github.com/gyscos/superc4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gyscos/superc4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyscos%2Fsuperc4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyscos%2Fsuperc4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc5e0cafa7b2b94d33d13a5bb8622d0aa735eb1a [INFO] checking gyscos/superc4 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyscos%2Fsuperc4" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gyscos/superc4 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gyscos/superc4 [INFO] finished tweaking git repo https://github.com/gyscos/superc4 [INFO] tweaked toml for git repo https://github.com/gyscos/superc4 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/gyscos/superc4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a221668fad277e492b470835a66e1778a33c54bac234f724ec59fa3b5cc41a05 [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" "a221668fad277e492b470835a66e1778a33c54bac234f724ec59fa3b5cc41a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a221668fad277e492b470835a66e1778a33c54bac234f724ec59fa3b5cc41a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a221668fad277e492b470835a66e1778a33c54bac234f724ec59fa3b5cc41a05", kill_on_drop: false }` [INFO] [stdout] a221668fad277e492b470835a66e1778a33c54bac234f724ec59fa3b5cc41a05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c25fac8505c8347545c50a863be3d5365d0fb90e4d4d40f83db7f5231620d066 [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" "c25fac8505c8347545c50a863be3d5365d0fb90e4d4d40f83db7f5231620d066", kill_on_drop: false }` [INFO] [stderr] Checking superc4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/game/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/game/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut game = Game::new(Configuration::clean_8()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut game = Game::new(Configuration::clean_8()); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Full` [INFO] [stdout] --> src/game/board.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Full(Player), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/game/board.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | x: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/game/board.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | y: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `UP` [INFO] [stdout] --> src/game/board.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub const UP: Direction = Direction{x: 0, y: 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DOWN` [INFO] [stdout] --> src/game/board.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const DOWN: Direction = Direction{x: 0, y: -1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `LEFT` [INFO] [stdout] --> src/game/board.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub const LEFT: Direction = Direction{x: -1, y: 0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `RIGHT` [INFO] [stdout] --> src/game/board.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub const RIGHT: Direction = Direction{x: 1, y: 0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `UP_RIGHT` [INFO] [stdout] --> src/game/board.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub const UP_RIGHT: Direction = Direction{x: 1, y: 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `UP_LEFT` [INFO] [stdout] --> src/game/board.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub const UP_LEFT: Direction = Direction{x:-1, y: 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DOWN_LEFT` [INFO] [stdout] --> src/game/board.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const DOWN_LEFT: Direction = Direction{x:-1,y:-1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DOWN_RIGHT` [INFO] [stdout] --> src/game/board.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub const DOWN_RIGHT: Direction = Direction{x:1,y:-1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `CARDINAL` [INFO] [stdout] --> src/game/board.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub const CARDINAL: &'static [Direction] = &[Direction::UP,Direction::LEFT,Direction::DOWN,Direction::RIGHT]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `AXIS` [INFO] [stdout] --> src/game/board.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub const AXIS: &'static [Direction] = &[Direction::UP,Direction::RIGHT,Direction::UP_RIGHT,Direction::DOWN_RIGHT]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flip` [INFO] [stdout] --> src/game/board.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn flip(self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/game/board.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn from(self, (x,y): Pos) -> Pos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_go` [INFO] [stdout] --> src/game/board.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn can_go(&self, (x,y): Pos, dir: Direction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/game/board.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn is_valid(&self, (x,y): Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_empty` [INFO] [stdout] --> src/game/board.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn is_empty(&self, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/game/board.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get(&self, pos: Pos) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play` [INFO] [stdout] --> src/game/board.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn play(&mut self, pos: Pos, player: Player) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `board` [INFO] [stdout] --> src/game/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | board: Board, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `next_player` [INFO] [stdout] --> src/game/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | next_player: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidTurn` [INFO] [stdout] --> src/game/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | InvalidTurn, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonEmptyCell` [INFO] [stdout] --> src/game/game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | NonEmptyCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FloatingCell` [INFO] [stdout] --> src/game/game.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | FloatingCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_blocked` [INFO] [stdout] --> src/game/game.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_blocked(mut self, pos: Pos) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clean_10` [INFO] [stdout] --> src/game/game.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn clean_10() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `corner_8` [INFO] [stdout] --> src/game/game.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn corner_8() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `corner_10` [INFO] [stdout] --> src/game/game.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn corner_10() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `corner_n` [INFO] [stdout] --> src/game/game.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn corner_n(size: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_winning` [INFO] [stdout] --> src/game/game.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn is_winning(board: &Board, player: Player, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_cells` [INFO] [stdout] --> src/game/game.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn count_cells(board: &Board, mut pos: Pos, dir: Direction, player: Player) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_floating` [INFO] [stdout] --> src/game/game.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn is_floating(board: &Board, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_full_line` [INFO] [stdout] --> src/game/game.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn is_full_line(board: &Board, mut pos: Pos, d: Direction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_player` [INFO] [stdout] --> src/game/game.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn get_next_player(&self) -> Player { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play` [INFO] [stdout] --> src/game/game.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn play(&mut self, player: Player, pos: Pos) -> Result<(),Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `associated_consts` has been stable since 1.20.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(associated_consts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut game = Game::new(Configuration::clean_8()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut game = Game::new(Configuration::clean_8()); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Full` [INFO] [stdout] --> src/game/board.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Full(Player), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/game/board.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | x: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/game/board.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | y: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `UP` [INFO] [stdout] --> src/game/board.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub const UP: Direction = Direction{x: 0, y: 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DOWN` [INFO] [stdout] --> src/game/board.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const DOWN: Direction = Direction{x: 0, y: -1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `LEFT` [INFO] [stdout] --> src/game/board.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub const LEFT: Direction = Direction{x: -1, y: 0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `RIGHT` [INFO] [stdout] --> src/game/board.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub const RIGHT: Direction = Direction{x: 1, y: 0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `UP_RIGHT` [INFO] [stdout] --> src/game/board.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub const UP_RIGHT: Direction = Direction{x: 1, y: 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `UP_LEFT` [INFO] [stdout] --> src/game/board.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub const UP_LEFT: Direction = Direction{x:-1, y: 1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DOWN_LEFT` [INFO] [stdout] --> src/game/board.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const DOWN_LEFT: Direction = Direction{x:-1,y:-1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DOWN_RIGHT` [INFO] [stdout] --> src/game/board.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub const DOWN_RIGHT: Direction = Direction{x:1,y:-1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `CARDINAL` [INFO] [stdout] --> src/game/board.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub const CARDINAL: &'static [Direction] = &[Direction::UP,Direction::LEFT,Direction::DOWN,Direction::RIGHT]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `AXIS` [INFO] [stdout] --> src/game/board.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub const AXIS: &'static [Direction] = &[Direction::UP,Direction::RIGHT,Direction::UP_RIGHT,Direction::DOWN_RIGHT]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flip` [INFO] [stdout] --> src/game/board.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn flip(self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/game/board.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn from(self, (x,y): Pos) -> Pos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_go` [INFO] [stdout] --> src/game/board.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn can_go(&self, (x,y): Pos, dir: Direction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/game/board.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn is_valid(&self, (x,y): Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_empty` [INFO] [stdout] --> src/game/board.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn is_empty(&self, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/game/board.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get(&self, pos: Pos) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play` [INFO] [stdout] --> src/game/board.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn play(&mut self, pos: Pos, player: Player) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `board` [INFO] [stdout] --> src/game/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | board: Board, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `next_player` [INFO] [stdout] --> src/game/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | next_player: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidTurn` [INFO] [stdout] --> src/game/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | InvalidTurn, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonEmptyCell` [INFO] [stdout] --> src/game/game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | NonEmptyCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FloatingCell` [INFO] [stdout] --> src/game/game.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | FloatingCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_blocked` [INFO] [stdout] --> src/game/game.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_blocked(mut self, pos: Pos) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stdout] warning: associated function is never used: `clean_10` [INFO] [stdout] --> src/game/game.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn clean_10() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `corner_8` [INFO] [stdout] --> src/game/game.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn corner_8() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `corner_10` [INFO] [stdout] --> src/game/game.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn corner_10() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `corner_n` [INFO] [stdout] --> src/game/game.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn corner_n(size: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_winning` [INFO] [stdout] --> src/game/game.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn is_winning(board: &Board, player: Player, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_cells` [INFO] [stdout] --> src/game/game.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn count_cells(board: &Board, mut pos: Pos, dir: Direction, player: Player) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_floating` [INFO] [stdout] --> src/game/game.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn is_floating(board: &Board, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_full_line` [INFO] [stdout] --> src/game/game.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn is_full_line(board: &Board, mut pos: Pos, d: Direction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next_player` [INFO] [stdout] --> src/game/game.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn get_next_player(&self) -> Player { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play` [INFO] [stdout] --> src/game/game.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn play(&mut self, player: Player, pos: Pos) -> Result<(),Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `associated_consts` has been stable since 1.20.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(associated_consts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c25fac8505c8347545c50a863be3d5365d0fb90e4d4d40f83db7f5231620d066", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c25fac8505c8347545c50a863be3d5365d0fb90e4d4d40f83db7f5231620d066", kill_on_drop: false }` [INFO] [stdout] c25fac8505c8347545c50a863be3d5365d0fb90e4d4d40f83db7f5231620d066