[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#1bd50d4315eb15970d395b6be5823f9384707693 for pr-140151 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyscos%2Fsuperc4" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gyscos/superc4 on toolchain 1bd50d4315eb15970d395b6be5823f9384707693 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86905181277ee638de798367a0904410175048cfad1fb7ef2138d84805821ff6 [INFO] running `Command { std: "docker" "start" "-a" "86905181277ee638de798367a0904410175048cfad1fb7ef2138d84805821ff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86905181277ee638de798367a0904410175048cfad1fb7ef2138d84805821ff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86905181277ee638de798367a0904410175048cfad1fb7ef2138d84805821ff6", kill_on_drop: false }` [INFO] [stdout] 86905181277ee638de798367a0904410175048cfad1fb7ef2138d84805821ff6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f90946e933eb4062c95809ea022bee24728dff69643d3bb7d7f5a55041b07056 [INFO] running `Command { std: "docker" "start" "-a" "f90946e933eb4062c95809ea022bee24728dff69643d3bb7d7f5a55041b07056", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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: 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: 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: 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: unused variable: `game` [INFO] [stdout] --> src/main.rs:10:13 [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 `Full` is never constructed [INFO] [stdout] --> src/game/board.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Cell { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 10 | Full(Player), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Direction` is never constructed [INFO] [stdout] --> src/game/board.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/game/board.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 27 | impl Direction { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 28 | pub const UP: Direction = Direction{x: 0, y: 1}; [INFO] [stdout] | ^^ [INFO] [stdout] 29 | pub const DOWN: Direction = Direction{x: 0, y: -1}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | pub const LEFT: Direction = Direction{x: -1, y: 0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | pub const RIGHT: Direction = Direction{x: 1, y: 0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | pub const UP_RIGHT: Direction = Direction{x: 1, y: 1}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub const UP_LEFT: Direction = Direction{x:-1, y: 1}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub const DOWN_LEFT: Direction = Direction{x:-1,y:-1}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 35 | pub const DOWN_RIGHT: Direction = Direction{x:1,y:-1}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | [INFO] [stdout] 37 | pub const CARDINAL: &'static [Direction] = &[Direction::UP,Direction::LEFT,Direction::DOWN,Direction::RIGHT]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub const AXIS: &'static [Direction] = &[Direction::UP,Direction::RIGHT,Direction::UP_RIGHT,Direction::DOWN_RIGHT]; [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | [INFO] [stdout] 40 | pub fn flip(self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn from(self, (x,y): Pos) -> Pos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_go`, `is_valid`, `is_empty`, `get`, and `play` are never used [INFO] [stdout] --> src/game/board.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn can_go(&self, (x,y): Pos, dir: Direction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_valid(&self, (x,y): Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn is_empty(&self, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get(&self, pos: Pos) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn play(&mut self, pos: Pos, player: Player) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `board` and `next_player` are never read [INFO] [stdout] --> src/game/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | board: Board, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | next_player: Player, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidTurn`, `NonEmptyCell`, and `FloatingCell` are never constructed [INFO] [stdout] --> src/game/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum RuleError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 29 | InvalidTurn, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | NonEmptyCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | FloatingCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuleError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `add_blocked`, `clean_10`, `corner_8`, `corner_10`, and `corner_n` are never used [INFO] [stdout] --> src/game/game.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Configuration { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn add_blocked(mut self, pos: Pos) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn clean_10() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn corner_8() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn corner_10() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn corner_n(size: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_winning` is never used [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 `count_cells` is never used [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_floating` is never used [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_full_line` is never used [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: methods `get_next_player` and `play` are never used [INFO] [stdout] --> src/game/game.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 131 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn get_next_player(&self) -> Player { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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: field `0` is never read [INFO] [stdout] --> src/game/error.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Rule(RuleError), [INFO] [stdout] | ---- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Rule(RuleError), [INFO] [stdout] 5 + Rule(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:10:13 [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 `Full` is never constructed [INFO] [stdout] --> src/game/board.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Cell { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 10 | Full(Player), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Direction` is never constructed [INFO] [stdout] --> src/game/board.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/game/board.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 27 | impl Direction { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 28 | pub const UP: Direction = Direction{x: 0, y: 1}; [INFO] [stdout] | ^^ [INFO] [stdout] 29 | pub const DOWN: Direction = Direction{x: 0, y: -1}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | pub const LEFT: Direction = Direction{x: -1, y: 0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | pub const RIGHT: Direction = Direction{x: 1, y: 0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | pub const UP_RIGHT: Direction = Direction{x: 1, y: 1}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub const UP_LEFT: Direction = Direction{x:-1, y: 1}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub const DOWN_LEFT: Direction = Direction{x:-1,y:-1}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 35 | pub const DOWN_RIGHT: Direction = Direction{x:1,y:-1}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | [INFO] [stdout] 37 | pub const CARDINAL: &'static [Direction] = &[Direction::UP,Direction::LEFT,Direction::DOWN,Direction::RIGHT]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub const AXIS: &'static [Direction] = &[Direction::UP,Direction::RIGHT,Direction::UP_RIGHT,Direction::DOWN_RIGHT]; [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | [INFO] [stdout] 40 | pub fn flip(self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn from(self, (x,y): Pos) -> Pos { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_go`, `is_valid`, `is_empty`, `get`, and `play` are never used [INFO] [stdout] --> src/game/board.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn can_go(&self, (x,y): Pos, dir: Direction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_valid(&self, (x,y): Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn is_empty(&self, pos: Pos) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get(&self, pos: Pos) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn play(&mut self, pos: Pos, player: Player) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `board` and `next_player` are never read [INFO] [stdout] --> src/game/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | board: Board, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | next_player: Player, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidTurn`, `NonEmptyCell`, and `FloatingCell` are never constructed [INFO] [stdout] --> src/game/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum RuleError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 29 | InvalidTurn, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | NonEmptyCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | FloatingCell, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuleError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `add_blocked`, `clean_10`, `corner_8`, `corner_10`, and `corner_n` are never used [INFO] [stdout] --> src/game/game.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Configuration { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn add_blocked(mut self, pos: Pos) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn clean_10() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn corner_8() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn corner_10() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn corner_n(size: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_winning` is never used [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 `count_cells` is never used [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_floating` is never used [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_full_line` is never used [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: methods `get_next_player` and `play` are never used [INFO] [stdout] --> src/game/game.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 131 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn get_next_player(&self) -> Player { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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: field `0` is never read [INFO] [stdout] --> src/game/error.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Rule(RuleError), [INFO] [stdout] | ---- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Rule(RuleError), [INFO] [stdout] 5 + Rule(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "f90946e933eb4062c95809ea022bee24728dff69643d3bb7d7f5a55041b07056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f90946e933eb4062c95809ea022bee24728dff69643d3bb7d7f5a55041b07056", kill_on_drop: false }` [INFO] [stdout] f90946e933eb4062c95809ea022bee24728dff69643d3bb7d7f5a55041b07056