[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] building starrtnow/mcts-connect-four against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarrtnow%2Fmcts-connect-four" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/starrtnow/mcts-connect-four on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-4-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15718cf4b740caf44b35674699d165e23615d7d577dce0daf35ce5c38f63165b [INFO] running `Command { std: "docker" "start" "-a" "15718cf4b740caf44b35674699d165e23615d7d577dce0daf35ce5c38f63165b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15718cf4b740caf44b35674699d165e23615d7d577dce0daf35ce5c38f63165b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15718cf4b740caf44b35674699d165e23615d7d577dce0daf35ce5c38f63165b", kill_on_drop: false }` [INFO] [stdout] 15718cf4b740caf44b35674699d165e23615d7d577dce0daf35ce5c38f63165b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a125d361f1bd1eca008f246d7d296f68c0c7905f0506f845bd41f85d070844c [INFO] running `Command { std: "docker" "start" "-a" "2a125d361f1bd1eca008f246d7d296f68c0c7905f0506f845bd41f85d070844c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.17 [INFO] [stderr] Compiling rand v0.3.14 [INFO] [stderr] Compiling time v0.1.35 [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - (self.x <= BOARD_WIDTH && self.x >= 0) [INFO] [stdout] 47 + self.x <= BOARD_WIDTH && self.x >= 0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - if (column[i] == Color::Empty){ [INFO] [stdout] 53 + if column[i] == Color::Empty { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.win_tie as f64 / self.num_plays as f64) [INFO] [stdout] 27 + self.win_tie as f64 / self.num_plays as f64 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - if(uct > best_uct){ [INFO] [stdout] 243 + if uct > best_uct { [INFO] [stdout] | [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 `optimal_move_highest_win` is never used [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.81s [INFO] running `Command { std: "docker" "inspect" "2a125d361f1bd1eca008f246d7d296f68c0c7905f0506f845bd41f85d070844c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a125d361f1bd1eca008f246d7d296f68c0c7905f0506f845bd41f85d070844c", kill_on_drop: false }` [INFO] [stdout] 2a125d361f1bd1eca008f246d7d296f68c0c7905f0506f845bd41f85d070844c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f46e4c4079ba28b7c1b85779e181bcd3af94b25d28076211bb7895f71bb8217b [INFO] running `Command { std: "docker" "start" "-a" "f46e4c4079ba28b7c1b85779e181bcd3af94b25d28076211bb7895f71bb8217b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - (self.x <= BOARD_WIDTH && self.x >= 0) [INFO] [stdout] 47 + self.x <= BOARD_WIDTH && self.x >= 0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - if (column[i] == Color::Empty){ [INFO] [stdout] 53 + if column[i] == Color::Empty { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.win_tie as f64 / self.num_plays as f64) [INFO] [stdout] 27 + self.win_tie as f64 / self.num_plays as f64 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - if(uct > best_uct){ [INFO] [stdout] 243 + if uct > best_uct { [INFO] [stdout] | [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 `optimal_move_highest_win` is never used [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "f46e4c4079ba28b7c1b85779e181bcd3af94b25d28076211bb7895f71bb8217b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f46e4c4079ba28b7c1b85779e181bcd3af94b25d28076211bb7895f71bb8217b", kill_on_drop: false }` [INFO] [stdout] f46e4c4079ba28b7c1b85779e181bcd3af94b25d28076211bb7895f71bb8217b