[INFO] cloning repository https://github.com/kerach/wudaofang-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kerach/wudaofang-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkerach%2Fwudaofang-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkerach%2Fwudaofang-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f193ba5605d38956f055ede9870ecf7b06d637c9 [INFO] checking kerach/wudaofang-rust against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkerach%2Fwudaofang-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kerach/wudaofang-rust [INFO] finished tweaking git repo https://github.com/kerach/wudaofang-rust [INFO] tweaked toml for git repo https://github.com/kerach/wudaofang-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kerach/wudaofang-rust on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kerach/wudaofang-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c793327d38918d05f4d3b639c413fb743274fe356dcdb3fabcd5a5c46aae333e [INFO] running `Command { std: "docker" "start" "-a" "c793327d38918d05f4d3b639c413fb743274fe356dcdb3fabcd5a5c46aae333e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c793327d38918d05f4d3b639c413fb743274fe356dcdb3fabcd5a5c46aae333e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c793327d38918d05f4d3b639c413fb743274fe356dcdb3fabcd5a5c46aae333e", kill_on_drop: false }` [INFO] [stdout] c793327d38918d05f4d3b639c413fb743274fe356dcdb3fabcd5a5c46aae333e [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f971fc2312d36ed032de581f16d413c0269e9857a9fa7fe7064936e5ca76e030 [INFO] running `Command { std: "docker" "start" "-a" "f971fc2312d36ed032de581f16d413c0269e9857a9fa7fe7064936e5ca76e030", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking wudaofang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/main.rs:812:42 [INFO] [stdout] | [INFO] [stdout] 812 | fn check_rewards_movement(&mut self, row: usize, col: usize) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/main.rs:812:54 [INFO] [stdout] | [INFO] [stdout] 812 | fn check_rewards_movement(&mut self, row: usize, col: usize) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1164:33 [INFO] [stdout] | [INFO] [stdout] 1164 | GameAction::Place { player, pos } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1167:35 [INFO] [stdout] | [INFO] [stdout] 1167 | GameAction::Capture { player, pos } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1170:32 [INFO] [stdout] | [INFO] [stdout] 1170 | GameAction::Move { player, from, to } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1468:13 [INFO] [stdout] | [INFO] [stdout] 1468 | let player = board.current_player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `best_score` [INFO] [stdout] --> src/main.rs:1469:17 [INFO] [stdout] | [INFO] [stdout] 1469 | let mut best_score = i32::MIN; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_best_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1469:13 [INFO] [stdout] | [INFO] [stdout] 1469 | let mut best_score = i32::MIN; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1488:13 [INFO] [stdout] | [INFO] [stdout] 1488 | let mut best_move = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1489:13 [INFO] [stdout] | [INFO] [stdout] 1489 | let mut best_score = i32::MIN; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:1905:33 [INFO] [stdout] | [INFO] [stdout] 1905 | fn count_squares_containing(board: &Board, pos: (usize, usize)) -> i32 { [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/main.rs:1930:35 [INFO] [stdout] | [INFO] [stdout] 1930 | fn count_diagonals_containing(board: &Board, pos: (usize, usize)) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:2169:14 [INFO] [stdout] | [INFO] [stdout] 2169 | let (r, c) = pos; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:2169:17 [INFO] [stdout] | [INFO] [stdout] 2169 | let (r, c) = pos; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:2258:34 [INFO] [stdout] | [INFO] [stdout] 2258 | fn is_potential_reward_piece(board: &Board, pos: (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_potential_threat` is never used [INFO] [stdout] --> src/main.rs:2228:8 [INFO] [stdout] | [INFO] [stdout] 1369 | impl BoardAI { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 2228 | fn is_potential_threat(board: &Board, square: (usize, usize), player: Player, exclude: (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/main.rs:812:42 [INFO] [stdout] | [INFO] [stdout] 812 | fn check_rewards_movement(&mut self, row: usize, col: usize) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/main.rs:812:54 [INFO] [stdout] | [INFO] [stdout] 812 | fn check_rewards_movement(&mut self, row: usize, col: usize) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1164:33 [INFO] [stdout] | [INFO] [stdout] 1164 | GameAction::Place { player, pos } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1167:35 [INFO] [stdout] | [INFO] [stdout] 1167 | GameAction::Capture { player, pos } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1170:32 [INFO] [stdout] | [INFO] [stdout] 1170 | GameAction::Move { player, from, to } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `player: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:1468:13 [INFO] [stdout] | [INFO] [stdout] 1468 | let player = board.current_player; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `best_score` [INFO] [stdout] --> src/main.rs:1469:17 [INFO] [stdout] | [INFO] [stdout] 1469 | let mut best_score = i32::MIN; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_best_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1469:13 [INFO] [stdout] | [INFO] [stdout] 1469 | let mut best_score = i32::MIN; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1488:13 [INFO] [stdout] | [INFO] [stdout] 1488 | let mut best_move = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1489:13 [INFO] [stdout] | [INFO] [stdout] 1489 | let mut best_score = i32::MIN; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:1905:33 [INFO] [stdout] | [INFO] [stdout] 1905 | fn count_squares_containing(board: &Board, pos: (usize, usize)) -> i32 { [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/main.rs:1930:35 [INFO] [stdout] | [INFO] [stdout] 1930 | fn count_diagonals_containing(board: &Board, pos: (usize, usize)) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:2169:14 [INFO] [stdout] | [INFO] [stdout] 2169 | let (r, c) = pos; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:2169:17 [INFO] [stdout] | [INFO] [stdout] 2169 | let (r, c) = pos; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:2258:34 [INFO] [stdout] | [INFO] [stdout] 2258 | fn is_potential_reward_piece(board: &Board, pos: (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_potential_threat` is never used [INFO] [stdout] --> src/main.rs:2228:8 [INFO] [stdout] | [INFO] [stdout] 1369 | impl BoardAI { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 2228 | fn is_potential_threat(board: &Board, square: (usize, usize), player: Player, exclude: (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.26s [INFO] running `Command { std: "docker" "inspect" "f971fc2312d36ed032de581f16d413c0269e9857a9fa7fe7064936e5ca76e030", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f971fc2312d36ed032de581f16d413c0269e9857a9fa7fe7064936e5ca76e030", kill_on_drop: false }` [INFO] [stdout] f971fc2312d36ed032de581f16d413c0269e9857a9fa7fe7064936e5ca76e030