[INFO] cloning repository https://github.com/starrtnow/mcts-connect-four [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/starrtnow/mcts-connect-four" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarrtnow%2Fmcts-connect-four", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarrtnow%2Fmcts-connect-four'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 463ec5ceebff5936c0b2e77abf138dab9a80ab20 [INFO] checking starrtnow/mcts-connect-four against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarrtnow%2Fmcts-connect-four" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/starrtnow/mcts-connect-four on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/starrtnow/mcts-connect-four [INFO] finished tweaking git repo https://github.com/starrtnow/mcts-connect-four [INFO] tweaked toml for git repo https://github.com/starrtnow/mcts-connect-four written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/starrtnow/mcts-connect-four already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0ac43a05516923ed4b4f77c3e28730eba60f564b56bc6f8e86ed30bcec43d90 [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" "d0ac43a05516923ed4b4f77c3e28730eba60f564b56bc6f8e86ed30bcec43d90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0ac43a05516923ed4b4f77c3e28730eba60f564b56bc6f8e86ed30bcec43d90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0ac43a05516923ed4b4f77c3e28730eba60f564b56bc6f8e86ed30bcec43d90", kill_on_drop: false }` [INFO] [stdout] d0ac43a05516923ed4b4f77c3e28730eba60f564b56bc6f8e86ed30bcec43d90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbdf502298fc9055e8640b2410359d1f0ea828ff0406901e8fcef2f43601d425 [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" "fbdf502298fc9055e8640b2410359d1f0ea828ff0406901e8fcef2f43601d425", kill_on_drop: false }` [INFO] [stderr] Checking time v0.1.35 [INFO] [stderr] Checking connect_three v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/game_state.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | (self.x <= BOARD_WIDTH && self.x >= 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game_state.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if (column[i] == Color::Empty){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/monte_carlo.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | (self.win_tie as f64 / self.num_plays as f64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/monte_carlo.rs:243:19 [INFO] [stdout] | [INFO] [stdout] 243 | if(uct > best_uct){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/game_state.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | (self.x <= BOARD_WIDTH && self.x >= 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game_state.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if (column[i] == Color::Empty){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/game_state.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/monte_carlo.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | (self.win_tie as f64 / self.num_plays as f64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/monte_carlo.rs:243:19 [INFO] [stdout] | [INFO] [stdout] 243 | if(uct > best_uct){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/game_state.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | fn push_back(item : Color, column : &mut [Color; 6]) -> usize{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/monte_carlo.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn run_simulation(state : game_state::GameState, player : game_state::Color) -> game_state::End{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/game_state.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | fn push_back(item : Color, column : &mut [Color; 6]) -> usize{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/monte_carlo.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn run_simulation(state : game_state::GameState, player : game_state::Color) -> game_state::End{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimal_move_highest_win` [INFO] [stdout] --> src/monte_carlo.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn optimal_move_highest_win(possible_moves : &Vec<(game_state::Move, &UCTData)>) -> game_state::Move{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_state.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | (self.x <= BOARD_WIDTH && self.x >= 0) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepX` should have a snake case name [INFO] [stdout] --> src/game_state.rs:109:62 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn linear_match(&self, start_x : i32, start_y : i32, stepX : i32, stepY : i32, color : Color) -> bool{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepY` should have a snake case name [INFO] [stdout] --> src/game_state.rs:109:75 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn linear_match(&self, start_x : i32, start_y : i32, stepX : i32, stepY : i32, color : Color) -> bool{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_state.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | if x < 0 || x >= BOARD_HEIGHT || y < 0 || y >= BOARD_WIDTH{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_state.rs:114:46 [INFO] [stdout] | [INFO] [stdout] 114 | if x < 0 || x >= BOARD_HEIGHT || y < 0 || y >= BOARD_WIDTH{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimal_move_highest_win` [INFO] [stdout] --> src/monte_carlo.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn optimal_move_highest_win(possible_moves : &Vec<(game_state::Move, &UCTData)>) -> game_state::Move{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_state.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | (self.x <= BOARD_WIDTH && self.x >= 0) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepX` should have a snake case name [INFO] [stdout] --> src/game_state.rs:109:62 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn linear_match(&self, start_x : i32, start_y : i32, stepX : i32, stepY : i32, color : Color) -> bool{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepY` should have a snake case name [INFO] [stdout] --> src/game_state.rs:109:75 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn linear_match(&self, start_x : i32, start_y : i32, stepX : i32, stepY : i32, color : Color) -> bool{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_state.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | if x < 0 || x >= BOARD_HEIGHT || y < 0 || y >= BOARD_WIDTH{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/game_state.rs:114:46 [INFO] [stdout] | [INFO] [stdout] 114 | if x < 0 || x >= BOARD_HEIGHT || y < 0 || y >= BOARD_WIDTH{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.37s [INFO] running `Command { std: "docker" "inspect" "fbdf502298fc9055e8640b2410359d1f0ea828ff0406901e8fcef2f43601d425", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbdf502298fc9055e8640b2410359d1f0ea828ff0406901e8fcef2f43601d425", kill_on_drop: false }` [INFO] [stdout] fbdf502298fc9055e8640b2410359d1f0ea828ff0406901e8fcef2f43601d425