[INFO] cloning repository https://github.com/jayaram-karthik/reversi-minimax [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jayaram-karthik/reversi-minimax" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjayaram-karthik%2Freversi-minimax", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjayaram-karthik%2Freversi-minimax'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f663abb751abf49bc145d0c1aa56826e311ea65 [INFO] checking jayaram-karthik/reversi-minimax against try#f17e3a389e192f83fe27a581774a9d1dbb8e565b for pr-137394 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjayaram-karthik%2Freversi-minimax" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jayaram-karthik/reversi-minimax on toolchain f17e3a389e192f83fe27a581774a9d1dbb8e565b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f17e3a389e192f83fe27a581774a9d1dbb8e565b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jayaram-karthik/reversi-minimax [INFO] finished tweaking git repo https://github.com/jayaram-karthik/reversi-minimax [INFO] tweaked toml for git repo https://github.com/jayaram-karthik/reversi-minimax written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jayaram-karthik/reversi-minimax 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" "+f17e3a389e192f83fe27a581774a9d1dbb8e565b" "fetch" "--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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f17e3a389e192f83fe27a581774a9d1dbb8e565b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc0902c132941f6b4d70db41e4c8744ca3ced8aaae8c05f776e139a1aa2d646b [INFO] running `Command { std: "docker" "start" "-a" "cc0902c132941f6b4d70db41e4c8744ca3ced8aaae8c05f776e139a1aa2d646b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc0902c132941f6b4d70db41e4c8744ca3ced8aaae8c05f776e139a1aa2d646b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc0902c132941f6b4d70db41e4c8744ca3ced8aaae8c05f776e139a1aa2d646b", kill_on_drop: false }` [INFO] [stdout] cc0902c132941f6b4d70db41e4c8744ca3ced8aaae8c05f776e139a1aa2d646b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f17e3a389e192f83fe27a581774a9d1dbb8e565b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] caa6f341cb79ece1bfb9c86c6c4592f20c652a2f878f26713f4301bd49de898f [INFO] running `Command { std: "docker" "start" "-a" "caa6f341cb79ece1bfb9c86c6c4592f20c652a2f878f26713f4301bd49de898f", kill_on_drop: false }` [INFO] [stderr] Checking reversi-minimax v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `CellState` [INFO] [stdout] --> src/ai.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::reversi::{ReversiBoard, CellState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/ai.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/reversi.rs:178:23 [INFO] [stdout] | [INFO] [stdout] 178 | while (i <= 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 178 - while (i <= 7) { [INFO] [stdout] 178 + while i <= 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/reversi.rs:179:24 [INFO] [stdout] | [INFO] [stdout] 179 | if (tmp_x + i * dx < 0 || tmp_x + i * dx > 7 || tmp_y + i * dy < 0 || tmp_y + i * dy > 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - if (tmp_x + i * dx < 0 || tmp_x + i * dx > 7 || tmp_y + i * dy < 0 || tmp_y + i * dy > 7) { [INFO] [stdout] 179 + if tmp_x + i * dx < 0 || tmp_x + i * dx > 7 || tmp_y + i * dy < 0 || tmp_y + i * dy > 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellState` [INFO] [stdout] --> src/ai.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::reversi::{ReversiBoard, CellState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/ai.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/reversi.rs:178:23 [INFO] [stdout] | [INFO] [stdout] 178 | while (i <= 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 178 - while (i <= 7) { [INFO] [stdout] 178 + while i <= 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/reversi.rs:179:24 [INFO] [stdout] | [INFO] [stdout] 179 | if (tmp_x + i * dx < 0 || tmp_x + i * dx > 7 || tmp_y + i * dy < 0 || tmp_y + i * dy > 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - if (tmp_x + i * dx < 0 || tmp_x + i * dx > 7 || tmp_y + i * dy < 0 || tmp_y + i * dy > 7) { [INFO] [stdout] 179 + if tmp_x + i * dx < 0 || tmp_x + i * dx > 7 || tmp_y + i * dy < 0 || tmp_y + i * dy > 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRECTIONS` is never used [INFO] [stdout] --> src/reversi.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const DIRECTIONS: [(i8, i8); 8] = [ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_cell` is never used [INFO] [stdout] --> src/reversi.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl ReversiBoard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_cell(&self, x: usize, y: usize) -> CellState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maximizingPlayer` should have a snake case name [INFO] [stdout] --> src/ai.rs:23:84 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn alpha_beta(node: ReversiBoard, depth: usize, mut alpha: f32, mut beta: f32, maximizingPlayer: bool) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `maximizing_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRECTIONS` is never used [INFO] [stdout] --> src/reversi.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const DIRECTIONS: [(i8, i8); 8] = [ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_cell` is never used [INFO] [stdout] --> src/reversi.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl ReversiBoard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_cell(&self, x: usize, y: usize) -> CellState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maximizingPlayer` should have a snake case name [INFO] [stdout] --> src/ai.rs:23:84 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn alpha_beta(node: ReversiBoard, depth: usize, mut alpha: f32, mut beta: f32, maximizingPlayer: bool) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `maximizing_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "caa6f341cb79ece1bfb9c86c6c4592f20c652a2f878f26713f4301bd49de898f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caa6f341cb79ece1bfb9c86c6c4592f20c652a2f878f26713f4301bd49de898f", kill_on_drop: false }` [INFO] [stdout] caa6f341cb79ece1bfb9c86c6c4592f20c652a2f878f26713f4301bd49de898f