[INFO] cloning repository https://github.com/HGHimself/tictactoe [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HGHimself/tictactoe" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHGHimself%2Ftictactoe", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHGHimself%2Ftictactoe'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d8db819b2ceb29d905b786aa52fe242268daa9e [INFO] checking HGHimself/tictactoe against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHGHimself%2Ftictactoe" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HGHimself/tictactoe on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HGHimself/tictactoe [INFO] finished tweaking git repo https://github.com/HGHimself/tictactoe [INFO] tweaked toml for git repo https://github.com/HGHimself/tictactoe written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HGHimself/tictactoe 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.45 [INFO] [stderr] Downloaded aho-corasick v0.7.14 [INFO] [stderr] Downloaded regex-syntax v0.6.20 [INFO] [stderr] Downloaded regex v1.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfb25ff22f02989bc10ea71ba509bb4d622c756ab45e55b9ac6a3e2162a089d4 [INFO] running `Command { std: "docker" "start" "-a" "cfb25ff22f02989bc10ea71ba509bb4d622c756ab45e55b9ac6a3e2162a089d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfb25ff22f02989bc10ea71ba509bb4d622c756ab45e55b9ac6a3e2162a089d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfb25ff22f02989bc10ea71ba509bb4d622c756ab45e55b9ac6a3e2162a089d4", kill_on_drop: false }` [INFO] [stdout] cfb25ff22f02989bc10ea71ba509bb4d622c756ab45e55b9ac6a3e2162a089d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e25a9b4f5682656d211a90c8fd6160bf6562a31809af8fc2b31505d37ec4be4 [INFO] running `Command { std: "docker" "start" "-a" "2e25a9b4f5682656d211a90c8fd6160bf6562a31809af8fc2b31505d37ec4be4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.68 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling wasm-bindgen v0.2.68 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.68 [INFO] [stderr] Checking tictactoe v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 161 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 164 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 164 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 172 + count += x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 173 - count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 173 + count -= o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 179 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 182 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 190 + count += o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 191 + count -= x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 82 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 107 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 107 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 161 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 164 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 164 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 172 + count += x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 173 - count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 173 + count -= o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 179 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 182 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 190 + count += o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 191 + count -= x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:543:18 [INFO] [stdout] | [INFO] [stdout] 543 | count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 543 - count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 543 + count += x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:545:18 [INFO] [stdout] | [INFO] [stdout] 545 | count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 545 - count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 545 + count -= o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 82 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 107 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 107 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:247:22 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:247:25 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player`, `opponent`, and `winner` are never read [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TicTacToe { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | player: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | opponent: Symbol, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | turn: Symbol, [INFO] [stdout] 28 | winner: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_board` is never used [INFO] [stdout] --> src/lib.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 324 | impl TicTacToe { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 325 | fn get_board(&self) -> &Board { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:247:22 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:247:25 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player`, `opponent`, and `winner` are never read [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TicTacToe { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | player: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | opponent: Symbol, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | turn: Symbol, [INFO] [stdout] 28 | winner: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.85s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.68 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2e25a9b4f5682656d211a90c8fd6160bf6562a31809af8fc2b31505d37ec4be4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e25a9b4f5682656d211a90c8fd6160bf6562a31809af8fc2b31505d37ec4be4", kill_on_drop: false }` [INFO] [stdout] 2e25a9b4f5682656d211a90c8fd6160bf6562a31809af8fc2b31505d37ec4be4 [INFO] checking HGHimself/tictactoe against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHGHimself%2Ftictactoe" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HGHimself/tictactoe on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HGHimself/tictactoe [INFO] finished tweaking git repo https://github.com/HGHimself/tictactoe [INFO] tweaked toml for git repo https://github.com/HGHimself/tictactoe written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HGHimself/tictactoe 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8bd5d56659e3c4c54073392d2a070c5ec73dfefd80e00b546b3e036741ff34df [INFO] running `Command { std: "docker" "start" "-a" "8bd5d56659e3c4c54073392d2a070c5ec73dfefd80e00b546b3e036741ff34df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8bd5d56659e3c4c54073392d2a070c5ec73dfefd80e00b546b3e036741ff34df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bd5d56659e3c4c54073392d2a070c5ec73dfefd80e00b546b3e036741ff34df", kill_on_drop: false }` [INFO] [stdout] 8bd5d56659e3c4c54073392d2a070c5ec73dfefd80e00b546b3e036741ff34df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a6553c819a3074e9892d6da2bf102cc84d788192364999aa9aea36a48afbccd [INFO] running `Command { std: "docker" "start" "-a" "1a6553c819a3074e9892d6da2bf102cc84d788192364999aa9aea36a48afbccd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.68 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling wasm-bindgen v0.2.68 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.68 [INFO] [stderr] Checking tictactoe v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 161 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 164 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 164 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 172 + count += x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 173 - count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 173 + count -= o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 179 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 182 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 190 + count += o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 191 + count -= x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:543:18 [INFO] [stdout] | [INFO] [stdout] 543 | count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 543 - count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 543 + count += x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:545:18 [INFO] [stdout] | [INFO] [stdout] 545 | count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 545 - count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 545 + count -= o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 82 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 107 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 107 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 161 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 164 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 164 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 172 | count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - count += (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 172 + count += x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 173 - count -= (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 173 + count -= o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | if (o_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - if (o_4_in_row(input) != 0) { [INFO] [stdout] 179 + if o_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/heuristic_counter.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if (x_4_in_row(input) != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - if (x_4_in_row(input) != 0) { [INFO] [stdout] 182 + if x_4_in_row(input) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - count += (o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input)); //[# of open-2-in-a-row for me] [INFO] [stdout] 190 + count += o_2_empty_2_in_row(input) + o_1_empty_2_in_row(input); //[# of open-2-in-a-row for me] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/heuristic_counter.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - count -= (x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input)); //[# of open-2-in-a-row for opponent] [INFO] [stdout] 191 + count -= x_2_empty_2_in_row(input) + x_1_empty_2_in_row(input); //[# of open-2-in-a-row for opponent] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 82 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 107 | heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - heuristic_total += (v_heuristic + h_heuristic); [INFO] [stdout] 107 + heuristic_total += v_heuristic + h_heuristic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:247:22 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:247:25 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player`, `opponent`, and `winner` are never read [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TicTacToe { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | player: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | opponent: Symbol, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | turn: Symbol, [INFO] [stdout] 28 | winner: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_board` is never used [INFO] [stdout] --> src/lib.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 324 | impl TicTacToe { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 325 | fn get_board(&self) -> &Board { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:247:22 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:247:25 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = gen_random(self.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player`, `opponent`, and `winner` are never read [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TicTacToe { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | player: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | opponent: Symbol, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | turn: Symbol, [INFO] [stdout] 28 | winner: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.68 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "1a6553c819a3074e9892d6da2bf102cc84d788192364999aa9aea36a48afbccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a6553c819a3074e9892d6da2bf102cc84d788192364999aa9aea36a48afbccd", kill_on_drop: false }` [INFO] [stdout] 1a6553c819a3074e9892d6da2bf102cc84d788192364999aa9aea36a48afbccd