[INFO] cloning repository https://github.com/pajh/tron [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pajh/tron" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpajh%2Ftron", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpajh%2Ftron'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 881e0d67f74904a539d04da6841d05824e8da7f5 [INFO] checking pajh/tron/881e0d67f74904a539d04da6841d05824e8da7f5 against master#8b6b15b877fbceb1ee5d9a5a4746e7515901574a for pr-147294 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpajh%2Ftron" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pajh/tron [INFO] finished tweaking git repo https://github.com/pajh/tron [INFO] tweaked toml for git repo https://github.com/pajh/tron written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pajh/tron on toolchain 8b6b15b877fbceb1ee5d9a5a4746e7515901574a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pajh/tron 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" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "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] Downloading crates ... [INFO] [stderr] Downloaded rand_core v0.2.0 [INFO] [stderr] Downloaded rand v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e03790e28185168330bfd6e0b1408326b409a282c6162dd0a6a6a458d341d014 [INFO] running `Command { std: "docker" "start" "-a" "e03790e28185168330bfd6e0b1408326b409a282c6162dd0a6a6a458d341d014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e03790e28185168330bfd6e0b1408326b409a282c6162dd0a6a6a458d341d014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e03790e28185168330bfd6e0b1408326b409a282c6162dd0a6a6a458d341d014", kill_on_drop: false }` [INFO] [stdout] e03790e28185168330bfd6e0b1408326b409a282c6162dd0a6a6a458d341d014 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd1a40927b4dac1bacc8e0ae76d10634c73ced711678abecbecef0a5a8652e13 [INFO] running `Command { std: "docker" "start" "-a" "fd1a40927b4dac1bacc8e0ae76d10634c73ced711678abecbecef0a5a8652e13", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking rand_core v0.2.0 [INFO] [stderr] Checking rand v0.5.0 [INFO] [stderr] Checking codingame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/support.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/support.rs:156:63 [INFO] [stdout] | [INFO] [stdout] 156 | file.write_all(data.as_bytes()).expect("Unable to write");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/aiminmax.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aiminmax::MinMaxAI` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use aiminmax::MinMaxAI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/ailong.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/aimonte.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `support::PlayerData` [INFO] [stdout] --> src/simgame.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use support::PlayerData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/simgame.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/aiflood.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/ai.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/floodfill.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aiminmax::scan_move` [INFO] [stdout] --> src/neural.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use aiminmax::scan_move; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aiminmax::score_for_player` [INFO] [stdout] --> src/neural.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use aiminmax::score_for_player;//(scores, player) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/neural.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/simgame.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | playai: [Option<&'a mut AI>;4], [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 | playai: [Option<&'a mut dyn AI>;4], [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ai.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl AI { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | impl dyn AI { [INFO] [stdout] | +++ [INFO] [stdout] help: you might have intended to implement this trait for a given type [INFO] [stdout] | [INFO] [stdout] 13 | impl AI for /* Type */ { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aiminmax.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ailong.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/support.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/support.rs:156:63 [INFO] [stdout] | [INFO] [stdout] 156 | file.write_all(data.as_bytes()).expect("Unable to write");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/aiminmax.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aiminmax::MinMaxAI` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use aiminmax::MinMaxAI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/ailong.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/aimonte.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `support::PlayerData` [INFO] [stdout] --> src/simgame.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use support::PlayerData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/simgame.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/aiflood.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/ai.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/floodfill.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aiminmax::scan_move` [INFO] [stdout] --> src/neural.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use aiminmax::scan_move; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aiminmax::score_for_player` [INFO] [stdout] --> src/neural.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use aiminmax::score_for_player;//(scores, player) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/neural.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aimonte.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 473 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/simgame.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | playai: [Option<&'a mut AI>;4], [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 | playai: [Option<&'a mut dyn AI>;4], [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aiflood.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aiflood.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | avail_moves.score[i] = AI::score_for_player(l_score, 0) as i16; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | avail_moves.score[i] = ::score_for_player(l_score, 0) as i16; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ai.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl AI { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | impl dyn AI { [INFO] [stdout] | +++ [INFO] [stdout] help: you might have intended to implement this trait for a given type [INFO] [stdout] | [INFO] [stdout] 13 | impl AI for /* Type */ { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 258 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aiminmax.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ailong.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aimonte.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 473 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aiflood.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aiflood.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | avail_moves.score[i] = AI::score_for_player(l_score, 0) as i16; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | avail_moves.score[i] = ::score_for_player(l_score, 0) as i16; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turn` is assigned to, but never used [INFO] [stdout] --> src/simgame.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let mut turn = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_turn` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/aiflood.rs:30:47 [INFO] [stdout] | [INFO] [stdout] 30 | fn next_move(&mut self, p_pos: &[PPos; 4],start:Instant) -> Move { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | AI::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 258 | ::handle_others(&mut self.pdata, p_pos, self.pmap, &mut self.board); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/floodfill.rs:216:22 [INFO] [stdout] | [INFO] [stdout] 216 | let (v,p) = self.get((x,y)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `this_move` is assigned to, but never used [INFO] [stdout] --> src/neural.rs:306:29 [INFO] [stdout] | [INFO] [stdout] 306 | let mut this_move = avail_moves.moves[best_option].get_point(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_this_move` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `this_move` is never read [INFO] [stdout] --> src/neural.rs:312:21 [INFO] [stdout] | [INFO] [stdout] 312 | this_move = avail_moves.moves[second_option].get_point(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/neural.rs:257:48 [INFO] [stdout] | [INFO] [stdout] 257 | fn next_move(&mut self, p_pos: &[PPos; 4], start_time:Instant) -> Move { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/neural.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut avail_moves = AvailMoves::calc_board(&self.board, self.pdata.me().pos); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let len = file.read_line(&mut line); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_tree` [INFO] [stdout] --> src/main.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let empty_tree = MoveTree::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ai3` [INFO] [stdout] --> src/main.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ai3 = LongAI::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ai3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ai_to_dump` [INFO] [stdout] --> src/main.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut ai_to_dump:Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ai_to_dump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ai3 = LongAI::new(); [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:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut improves = 0; [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:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let mut ai_to_dump:Option = None; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/main.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let me = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 250 | let _me = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `NUM_ROUNDS` [INFO] [stdout] | [INFO] [stdout] 250 - let me = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] 250 + let play_game::NUM_ROUNDS = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_def` is never used [INFO] [stdout] --> src/main.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const c_def:&str = "\x1b[m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_red` is never used [INFO] [stdout] --> src/main.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const c_red:&str = "\x1b[31m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_grn` is never used [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const c_grn:&str = "\x1b[32m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `board_load` is never used [INFO] [stdout] --> src/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn board_load(b: &mut Board, pdata: &mut PlayerData) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `time_floodfill` is never used [INFO] [stdout] --> src/main.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn time_floodfill() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_nn` is never used [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn test_nn() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cpy` and `to_string` are never used [INFO] [stdout] --> src/board.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 16 | [INFO] [stdout] 17 | pub fn cpy(&self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn to_string(&self, pmap: [usize; 4]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `print`, `is_empty`, `calc_board_tree_dead`, `tree_check`, `contains`, and `getxy` are never used [INFO] [stdout] --> src/board.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl AvailMoves { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn is_empty(b: &Board, tree: &MoveTree, node: usize, p: PPos, pdata: &PlayerData) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn calc_board_tree_dead( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn tree_check(self, tree: &MoveTree, node: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn contains(&self, m: &Move) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn getxy(&self, index: usize) -> PPos { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `prev`, and `play` are never read [INFO] [stdout] --> src/board.rs:297:5 [INFO] [stdout] | [INFO] [stdout] 296 | struct MoveTreeData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 297 | pos: PPos, [INFO] [stdout] | ^^^ [INFO] [stdout] 298 | prev: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 299 | play: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `to_str`, `add`, `is_point_in`, and `is_point_in_notdead` are never used [INFO] [stdout] --> src/board.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 306 | impl MoveTree { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn get(&self, node: usize) -> (PPos, u8, usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn to_str(&self, node: usize) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn add(&mut self, point: PPos, parent: usize, player: u8) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn is_point_in(&self, node: usize, point: PPos) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn is_point_in_notdead(&self, node: usize, point: PPos, pdata: &PlayerData) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ZEROSCORE` is never used [INFO] [stdout] --> src/support.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ZEROSCORE: PScore = [0; MAXPLAYERS]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/support.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Fill { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 22 | pub fn new()->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fill2` is never constructed [INFO] [stdout] --> src/support.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Fill2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/support.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Fill2 { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 36 | pub fn new()->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/support.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Move { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter_live`, `next_live_player`, `live_count`, and `is_dead` are never used [INFO] [stdout] --> src/support.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl PlayerData { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn iter_live(&self) -> ::std::iter::Filter<::std::slice::Iter, fn(&&Player) -> bool> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn next_live_player(&self, player: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn live_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn is_dead(&self, pno: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_str_to_file` is never used [INFO] [stdout] --> src/support.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn append_str_to_file(filename: &str, data:&str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DEPTH` is never used [INFO] [stdout] --> src/aiminmax.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const MAX_DEPTH: usize = 10; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinMaxAI` is never constructed [INFO] [stdout] --> src/aiminmax.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct MinMaxAI { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `dump_move` are never used [INFO] [stdout] --> src/aiminmax.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl MinMaxAI { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn dump_move(&self, moves: &AvailMoves) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan_move` is never used [INFO] [stdout] --> src/aiminmax.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn scan_move( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_for_player` is never used [INFO] [stdout] --> src/aiminmax.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn score_for_player(scores: PScore, player: usize) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanity_check_move` is never used [INFO] [stdout] --> src/aiminmax.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn sanity_check_move( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_players` and `get_board` are never used [INFO] [stdout] --> src/aimonte.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl MonteNode { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | fn print_players(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn get_board(&self, pp: PP) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOVES` is never used [INFO] [stdout] --> src/aimonte.rs:391:7 [INFO] [stdout] | [INFO] [stdout] 391 | const MOVES: [u8; 4] = [MSK_N, MSK_S, MSK_W, MSK_E]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_turn` is never used [INFO] [stdout] --> src/aimonte.rs:441:8 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn print_turn(pdata: &PlayerData, b: &Board) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `replay` is never used [INFO] [stdout] --> src/simgame.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> Game<'a> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn replay(&mut self, random_player:usize)->([usize;4],usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_turn` is never used [INFO] [stdout] --> src/simgame.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn print_turn(pos:[PPos;4], b: &Board) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `blank_tree` and `to_string` are never used [INFO] [stdout] --> src/floodfill.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl FloodBoard { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn blank_tree(mut self, tree: &MoveTree, node: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn to_string(&self, perspect: u8) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCORE_NORMAL` is never used [INFO] [stdout] --> src/neural.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const SCORE_NORMAL: f32 = 500.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INPUT_SIZE` is never used [INFO] [stdout] --> src/neural.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const INPUT_SIZE: usize = 600; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_board` is never used [INFO] [stdout] --> src/neural.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn encode_board(board: &FloodBoard, player: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/neural.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn sigmoid(y: f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loadvec_from_str` is never used [INFO] [stdout] --> src/neural.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn loadvec_from_str(v: &mut Vec, data: &str, delimiter: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_data` is never used [INFO] [stdout] --> src/neural.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn process_data(nn: NeuralNet) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tree` is never read [INFO] [stdout] --> src/neural.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct NeuralAI { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 224 | tree: MoveTree, // Only used for evaluating random positions [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dump_moves` is never used [INFO] [stdout] --> src/neural.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 228 | impl NeuralAI { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn dump_moves(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_def` should have an upper case name [INFO] [stdout] --> src/main.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const c_def:&str = "\x1b[m"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `C_DEF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_red` should have an upper case name [INFO] [stdout] --> src/main.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const c_red:&str = "\x1b[31m"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `C_RED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_grn` should have an upper case name [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const c_grn:&str = "\x1b[32m"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `C_GRN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/board.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn iter(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 173 | pub fn iter(&self) -> std::slice::Iter<'_, Move> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/support.rs:110:22 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn iter_live(&self) -> ::std::iter::Filter<::std::slice::Iter, fn(&&Player) -> bool> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 110 | pub fn iter_live(&self) -> ::std::iter::Filter<::std::slice::Iter<'_, Player>, fn(&&Player) -> bool> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/aiminmax.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | panic!("Width exceeded {}"); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 247 | panic!("Width exceeded {}", ...); [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 247 | panic!("{}", "Width exceeded {}"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turn` is assigned to, but never used [INFO] [stdout] --> src/simgame.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let mut turn = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_turn` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/aiflood.rs:30:47 [INFO] [stdout] | [INFO] [stdout] 30 | fn next_move(&mut self, p_pos: &[PPos; 4],start:Instant) -> Move { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/floodfill.rs:216:22 [INFO] [stdout] | [INFO] [stdout] 216 | let (v,p) = self.get((x,y)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `this_move` is assigned to, but never used [INFO] [stdout] --> src/neural.rs:306:29 [INFO] [stdout] | [INFO] [stdout] 306 | let mut this_move = avail_moves.moves[best_option].get_point(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_this_move` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `this_move` is never read [INFO] [stdout] --> src/neural.rs:312:21 [INFO] [stdout] | [INFO] [stdout] 312 | this_move = avail_moves.moves[second_option].get_point(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/neural.rs:257:48 [INFO] [stdout] | [INFO] [stdout] 257 | fn next_move(&mut self, p_pos: &[PPos; 4], start_time:Instant) -> Move { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/neural.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut avail_moves = AvailMoves::calc_board(&self.board, self.pdata.me().pos); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let len = file.read_line(&mut line); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_tree` [INFO] [stdout] --> src/main.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let empty_tree = MoveTree::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ai3` [INFO] [stdout] --> src/main.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ai3 = LongAI::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ai3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ai_to_dump` [INFO] [stdout] --> src/main.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut ai_to_dump:Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ai_to_dump` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let mut ai3 = LongAI::new(); [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:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut improves = 0; [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:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let mut ai_to_dump:Option = None; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/main.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let me = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 250 | let _me = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `NUM_ROUNDS` [INFO] [stdout] | [INFO] [stdout] 250 - let me = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] 250 + let play_game::NUM_ROUNDS = parse_input!(inputs[1], usize); // your player number (0 to 3). [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_def` is never used [INFO] [stdout] --> src/main.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const c_def:&str = "\x1b[m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_red` is never used [INFO] [stdout] --> src/main.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const c_red:&str = "\x1b[31m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_grn` is never used [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const c_grn:&str = "\x1b[32m"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `board_load` is never used [INFO] [stdout] --> src/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn board_load(b: &mut Board, pdata: &mut PlayerData) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `time_floodfill` is never used [INFO] [stdout] --> src/main.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn time_floodfill() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_nn` is never used [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn test_nn() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cpy` and `to_string` are never used [INFO] [stdout] --> src/board.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 16 | [INFO] [stdout] 17 | pub fn cpy(&self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn to_string(&self, pmap: [usize; 4]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `print`, `is_empty`, `calc_board_tree_dead`, `tree_check`, `contains`, and `getxy` are never used [INFO] [stdout] --> src/board.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl AvailMoves { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn is_empty(b: &Board, tree: &MoveTree, node: usize, p: PPos, pdata: &PlayerData) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn calc_board_tree_dead( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn tree_check(self, tree: &MoveTree, node: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn contains(&self, m: &Move) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn getxy(&self, index: usize) -> PPos { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `prev`, and `play` are never read [INFO] [stdout] --> src/board.rs:297:5 [INFO] [stdout] | [INFO] [stdout] 296 | struct MoveTreeData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 297 | pos: PPos, [INFO] [stdout] | ^^^ [INFO] [stdout] 298 | prev: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 299 | play: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `to_str`, `add`, `is_point_in`, and `is_point_in_notdead` are never used [INFO] [stdout] --> src/board.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 306 | impl MoveTree { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn get(&self, node: usize) -> (PPos, u8, usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn to_str(&self, node: usize) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn add(&mut self, point: PPos, parent: usize, player: u8) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn is_point_in(&self, node: usize, point: PPos) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn is_point_in_notdead(&self, node: usize, point: PPos, pdata: &PlayerData) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ZEROSCORE` is never used [INFO] [stdout] --> src/support.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ZEROSCORE: PScore = [0; MAXPLAYERS]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/support.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Fill { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 22 | pub fn new()->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fill2` is never constructed [INFO] [stdout] --> src/support.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Fill2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/support.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Fill2 { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 36 | pub fn new()->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/support.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Move { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter_live`, `next_live_player`, `live_count`, and `is_dead` are never used [INFO] [stdout] --> src/support.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl PlayerData { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn iter_live(&self) -> ::std::iter::Filter<::std::slice::Iter, fn(&&Player) -> bool> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn next_live_player(&self, player: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn live_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn is_dead(&self, pno: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_str_to_file` is never used [INFO] [stdout] --> src/support.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn append_str_to_file(filename: &str, data:&str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DEPTH` is never used [INFO] [stdout] --> src/aiminmax.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const MAX_DEPTH: usize = 10; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinMaxAI` is never constructed [INFO] [stdout] --> src/aiminmax.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct MinMaxAI { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `dump_move` are never used [INFO] [stdout] --> src/aiminmax.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl MinMaxAI { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn dump_move(&self, moves: &AvailMoves) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scan_move` is never used [INFO] [stdout] --> src/aiminmax.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn scan_move( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_for_player` is never used [INFO] [stdout] --> src/aiminmax.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn score_for_player(scores: PScore, player: usize) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanity_check_move` is never used [INFO] [stdout] --> src/aiminmax.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn sanity_check_move( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_players` and `get_board` are never used [INFO] [stdout] --> src/aimonte.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl MonteNode { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | fn print_players(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn get_board(&self, pp: PP) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOVES` is never used [INFO] [stdout] --> src/aimonte.rs:391:7 [INFO] [stdout] | [INFO] [stdout] 391 | const MOVES: [u8; 4] = [MSK_N, MSK_S, MSK_W, MSK_E]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_turn` is never used [INFO] [stdout] --> src/aimonte.rs:441:8 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn print_turn(pdata: &PlayerData, b: &Board) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `replay` is never used [INFO] [stdout] --> src/simgame.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> Game<'a> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn replay(&mut self, random_player:usize)->([usize;4],usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_turn` is never used [INFO] [stdout] --> src/simgame.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn print_turn(pos:[PPos;4], b: &Board) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `blank_tree` and `to_string` are never used [INFO] [stdout] --> src/floodfill.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl FloodBoard { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn blank_tree(mut self, tree: &MoveTree, node: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn to_string(&self, perspect: u8) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCORE_NORMAL` is never used [INFO] [stdout] --> src/neural.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const SCORE_NORMAL: f32 = 500.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INPUT_SIZE` is never used [INFO] [stdout] --> src/neural.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const INPUT_SIZE: usize = 600; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_board` is never used [INFO] [stdout] --> src/neural.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn encode_board(board: &FloodBoard, player: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/neural.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn sigmoid(y: f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loadvec_from_str` is never used [INFO] [stdout] --> src/neural.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn loadvec_from_str(v: &mut Vec, data: &str, delimiter: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_data` is never used [INFO] [stdout] --> src/neural.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn process_data(nn: NeuralNet) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tree` is never read [INFO] [stdout] --> src/neural.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct NeuralAI { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 224 | tree: MoveTree, // Only used for evaluating random positions [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dump_moves` is never used [INFO] [stdout] --> src/neural.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 228 | impl NeuralAI { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn dump_moves(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_def` should have an upper case name [INFO] [stdout] --> src/main.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const c_def:&str = "\x1b[m"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `C_DEF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_red` should have an upper case name [INFO] [stdout] --> src/main.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const c_red:&str = "\x1b[31m"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `C_RED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `c_grn` should have an upper case name [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const c_grn:&str = "\x1b[32m"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `C_GRN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/board.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn iter(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 173 | pub fn iter(&self) -> std::slice::Iter<'_, Move> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/support.rs:110:22 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn iter_live(&self) -> ::std::iter::Filter<::std::slice::Iter, fn(&&Player) -> bool> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 110 | pub fn iter_live(&self) -> ::std::iter::Filter<::std::slice::Iter<'_, Player>, fn(&&Player) -> bool> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/aiminmax.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | panic!("Width exceeded {}"); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 247 | panic!("Width exceeded {}", ...); [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 247 | panic!("{}", "Width exceeded {}"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.52s [INFO] running `Command { std: "docker" "inspect" "fd1a40927b4dac1bacc8e0ae76d10634c73ced711678abecbecef0a5a8652e13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd1a40927b4dac1bacc8e0ae76d10634c73ced711678abecbecef0a5a8652e13", kill_on_drop: false }` [INFO] [stdout] fd1a40927b4dac1bacc8e0ae76d10634c73ced711678abecbecef0a5a8652e13