[INFO] cloning repository https://github.com/andysalerno/reversi_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andysalerno/reversi_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandysalerno%2Freversi_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandysalerno%2Freversi_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a2b8241ec63ce1269e50052094f6ad6af4bd305f [INFO] checking andysalerno/reversi_rust/a2b8241ec63ce1269e50052094f6ad6af4bd305f against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandysalerno%2Freversi_rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andysalerno/reversi_rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andysalerno/reversi_rust [INFO] finished tweaking git repo https://github.com/andysalerno/reversi_rust [INFO] tweaked toml for git repo https://github.com/andysalerno/reversi_rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/andysalerno/reversi_rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65b64fdaad91ff9e3301258e31ddf03750aefbc27a636927306875dbbceab1ac [INFO] running `Command { std: "docker" "start" "-a" "65b64fdaad91ff9e3301258e31ddf03750aefbc27a636927306875dbbceab1ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65b64fdaad91ff9e3301258e31ddf03750aefbc27a636927306875dbbceab1ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65b64fdaad91ff9e3301258e31ddf03750aefbc27a636927306875dbbceab1ac", kill_on_drop: false }` [INFO] [stdout] 65b64fdaad91ff9e3301258e31ddf03750aefbc27a636927306875dbbceab1ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b25ce4a9f4a8f48f7f9138bf261733c57ad46e602c763ceee0818587f58f057 [INFO] running `Command { std: "docker" "start" "-a" "6b25ce4a9f4a8f48f7f9138bf261733c57ad46e602c763ceee0818587f58f057", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking reversi_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GameMove` [INFO] [stdout] --> src/game/boardgame.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use game::game_rules::{GameMove, GameResult, GameRules, PlayerColor}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::Piece` [INFO] [stdout] --> src/game/runner.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use game::board::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agents::random_agent::RandomAgent` [INFO] [stdout] --> src/game/runner.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use agents::random_agent::RandomAgent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::boardgame::BoardGame` [INFO] [stdout] --> src/game/runner.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use game::boardgame::BoardGame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::PlayerColor` [INFO] [stdout] --> src/game/runner.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | use game::game_rules::PlayerColor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tictactoe::tictactoe::TicTacToe` [INFO] [stdout] --> src/game/runner.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | use tictactoe::tictactoe::TicTacToe; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::Piece` [INFO] [stdout] --> src/game/game_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use game::board::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::GameRules` [INFO] [stdout] --> src/game/game_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use game::game_rules::GameRules; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::BoardState` [INFO] [stdout] --> src/game/game_rules.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | use game::board::BoardState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TicTacToePiece` and `TicTacToe` [INFO] [stdout] --> src/game/game_rules.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | use tictactoe::tictactoe::{TicTacToe, TicTacToePiece}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::PlayerColor` [INFO] [stdout] --> src/game/game_rules.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use game::game_rules::PlayerColor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::GameRules` [INFO] [stdout] --> src/agents/random_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use game::game_rules::GameRules; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::Piece` [INFO] [stdout] --> src/agents/random_agent.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use game::board::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tictactoe::tictactoe::TicTacToe` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tictactoe::tictactoe::TicTacToe; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agents::random_agent::RandomAgent` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use agents::random_agent::RandomAgent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RandomAgent` [INFO] [stdout] --> src/game/runner.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let white = RandomAgent::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RandomAgent` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 30 + use RandomAgent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RandomAgent` [INFO] [stdout] --> src/game/runner.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let black = RandomAgent::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RandomAgent` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 30 + use RandomAgent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GameMove` in this scope [INFO] [stdout] --> src/game/game_rules.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let game_move = GameMove {}; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 36 + use game::game_rules::GameMove; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameMove` [INFO] [stdout] --> src/game/boardgame.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use game::game_rules::{GameMove, GameResult, GameRules, PlayerColor}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::Piece` [INFO] [stdout] --> src/game/runner.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use game::board::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agents::random_agent::RandomAgent` [INFO] [stdout] --> src/game/runner.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use agents::random_agent::RandomAgent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::PlayerColor` [INFO] [stdout] --> src/game/runner.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | use game::game_rules::PlayerColor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::Piece` [INFO] [stdout] --> src/game/game_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use game::board::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::GameRules` [INFO] [stdout] --> src/game/game_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use game::game_rules::GameRules; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::game_rules::GameRules` [INFO] [stdout] --> src/agents/random_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use game::game_rules::GameRules; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::board::Piece` [INFO] [stdout] --> src/agents/random_agent.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use game::board::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tictactoe::tictactoe::TicTacToe` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tictactoe::tictactoe::TicTacToe; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agents::random_agent::RandomAgent` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use agents::random_agent::RandomAgent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game/boardgame.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | fn legal_moves(&self, player: PlayerColor) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/game/boardgame.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | fn apply_move(&self, pos: BoardPos, piece: Piece) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game/boardgame.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | fn apply_move(&self, pos: BoardPos, piece: Piece) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/game/runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | game: BoardGame, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_game_over(board: &BoardState) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn winner(board: &BoardState) -> GameResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | board: &BoardState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_color` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | player_color: PlayerColor, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoardGame` is never constructed [INFO] [stdout] --> src/game/boardgame.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BoardGame { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/game/boardgame.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl BoardGame { [INFO] [stdout] | ----------------------------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 16 | fn new(black_player: B, white_player: W) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn whose_turn(&self) -> PlayerColor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn reset(&self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | [INFO] [stdout] 32 | fn legal_moves(&self, player: PlayerColor) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn boardstate(&self) -> &BoardState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn apply_move(&self, pos: BoardPos, piece: Piece) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 41 | [INFO] [stdout] 42 | fn winner(&self) -> GameResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_game` is never used [INFO] [stdout] --> src/game/runner.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn run_game( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body` is never read [INFO] [stdout] --> src/game/board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Piece { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 3 | body: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoardPos` is never constructed [INFO] [stdout] --> src/game/board.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BoardPos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/board.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl BoardState { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GameAgent` is never used [INFO] [stdout] --> src/game/game_agent.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait GameAgent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `White` is never constructed [INFO] [stdout] --> src/game/game_rules.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PlayerColor { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 5 | Black, [INFO] [stdout] 6 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerColor` 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 `piece` and `pos` are never read [INFO] [stdout] --> src/game/game_rules.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GameMove { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pos: (usize, usize), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/game/game_rules.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Win(PlayerColor), [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GameResult` has a derived impl for the trait `Clone`, 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] 16 | Win(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tie` is never constructed [INFO] [stdout] --> src/game/game_rules.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum GameResult { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 16 | Win(PlayerColor), [INFO] [stdout] 17 | Tie, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameResult` 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 functions `is_game_over`, `winner`, `legal_moves`, and `next_state` are never used [INFO] [stdout] --> src/game/game_rules.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait GameRules { [INFO] [stdout] | --------- associated functions in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | fn is_game_over(board: &BoardState) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | fn winner(board: &BoardState) -> GameResult; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | [INFO] [stdout] 27 | fn legal_moves( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn next_state(board: &BoardState) -> BoardState; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RandomAgent` is never constructed [INFO] [stdout] --> src/agents/random_agent.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RandomAgent; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/agents/random_agent.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl RandomAgent { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 3 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/game/runner.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | let game = BoardGame::::new(black, white); [INFO] [stdout] | ^^^^^^^^^ --------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 3 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 3 generic parameters: `T`, `B`, `W` [INFO] [stdout] --> src/game/boardgame.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BoardGame { [INFO] [stdout] | ^^^^^^^^^ - - - [INFO] [stdout] help: add missing generic arguments [INFO] [stdout] | [INFO] [stdout] 38 | let game = BoardGame::::new(black, white); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TicTacToe: Default` is not satisfied [INFO] [stdout] --> src/game/runner.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | let game = BoardGame::::new(black, white); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `TicTacToe` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `BoardGame` [INFO] [stdout] --> src/game/boardgame.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BoardGame { [INFO] [stdout] | ^^^^^^^ required by this bound in `BoardGame` [INFO] [stdout] help: consider annotating `TicTacToe` with `#[derive(Default)]` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Default)] [INFO] [stdout] 6 | pub struct TicTacToe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/game/runner.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | BoardGame::PlayerColor::Black => &black, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `PlayerColor` implemented for `BoardGame<_, _, _>`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 47 | as Example>::PlayerColor::Black => &black, [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/game/runner.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | BoardGame::PlayerColor::White => &white, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `PlayerColor` implemented for `BoardGame<_, _, _>`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 48 | as Example>::PlayerColor::White => &white, [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_game_over` found for struct `TicTacToe` in the current scope [INFO] [stdout] --> src/game/game_rules.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | let is_game_over = rules.is_game_over(&board); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `TicTacToe` [INFO] [stdout] | [INFO] [stdout] ::: src/tictactoe/tictactoe.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TicTacToe; [INFO] [stdout] | -------------------- method `is_game_over` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] help: trait `GameRules` which provides `is_game_over` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 36 + use game::game_rules::GameRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `winner` found for struct `TicTacToe` in the current scope [INFO] [stdout] --> src/game/game_rules.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let winner = rules.winner(&board); [INFO] [stdout] | ^^^^^^ method not found in `TicTacToe` [INFO] [stdout] | [INFO] [stdout] ::: src/tictactoe/tictactoe.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TicTacToe; [INFO] [stdout] | -------------------- method `winner` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] help: trait `GameRules` which provides `winner` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 36 + use game::game_rules::GameRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `legal_moves` found for struct `TicTacToe` in the current scope [INFO] [stdout] --> src/game/game_rules.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | let legal_moves = rules.legal_moves(&board, PlayerColor::Black); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `TicTacToe` [INFO] [stdout] | [INFO] [stdout] ::: src/tictactoe/tictactoe.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TicTacToe; [INFO] [stdout] | -------------------- method `legal_moves` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] help: trait `GameRules` which provides `legal_moves` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 36 + use game::game_rules::GameRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next_state` found for struct `TicTacToe` in the current scope [INFO] [stdout] --> src/game/game_rules.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | let next_state = rules.next_state(&board, game_move); [INFO] [stdout] | ^^^^^^^^^^ method not found in `TicTacToe` [INFO] [stdout] | [INFO] [stdout] ::: src/tictactoe/tictactoe.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TicTacToe; [INFO] [stdout] | -------------------- method `next_state` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] help: trait `GameRules` which provides `next_state` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 36 + use game::game_rules::GameRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/game/boardgame.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | fn legal_moves(&self, player: PlayerColor) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/game/boardgame.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | fn apply_move(&self, pos: BoardPos, piece: Piece) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game/boardgame.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | fn apply_move(&self, pos: BoardPos, piece: Piece) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/game/runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | game: BoardGame, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_game_over(board: &BoardState) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn winner(board: &BoardState) -> GameResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | board: &BoardState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_color` [INFO] [stdout] --> src/tictactoe/tictactoe.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | player_color: PlayerColor, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0223, E0277, E0422, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `reversi_rust` (bin "reversi_rust" test) due to 12 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6b25ce4a9f4a8f48f7f9138bf261733c57ad46e602c763ceee0818587f58f057", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b25ce4a9f4a8f48f7f9138bf261733c57ad46e602c763ceee0818587f58f057", kill_on_drop: false }` [INFO] [stdout] 6b25ce4a9f4a8f48f7f9138bf261733c57ad46e602c763ceee0818587f58f057