[INFO] cloning repository https://github.com/moratorium08/reversi-ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/moratorium08/reversi-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 152e93a6f9e170378dca6f9ef0b878a155ba35aa [INFO] testing moratorium08/reversi-ai against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/moratorium08/reversi-ai on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/moratorium08/reversi-ai [INFO] finished tweaking git repo https://github.com/moratorium08/reversi-ai [INFO] tweaked toml for git repo https://github.com/moratorium08/reversi-ai written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/moratorium08/reversi-ai already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 55c6e080055d4763ca75bfa1da318ee829fc8b2030f3c54772a39bd37696c968 [INFO] running `Command { std: "docker" "start" "-a" "55c6e080055d4763ca75bfa1da318ee829fc8b2030f3c54772a39bd37696c968", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55c6e080055d4763ca75bfa1da318ee829fc8b2030f3c54772a39bd37696c968", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55c6e080055d4763ca75bfa1da318ee829fc8b2030f3c54772a39bd37696c968", kill_on_drop: false }` [INFO] [stdout] 55c6e080055d4763ca75bfa1da318ee829fc8b2030f3c54772a39bd37696c968 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ec6b0c2953a4f713103a5ce01060e9d991a2f6698728c5e322385d5769d58994 [INFO] running `Command { std: "docker" "start" "-a" "ec6b0c2953a4f713103a5ce01060e9d991a2f6698728c5e322385d5769d58994", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling rand v0.5.4 [INFO] [stderr] Compiling nom v4.0.0 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling colored v1.6.1 [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [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:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `filename` should have an upper case name [INFO] [stdout] --> src/analysis.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const filename: &str = "data/data"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `output_dir` should have an upper case name [INFO] [stdout] --> src/analysis.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const output_dir: &str = "output/"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.38s [INFO] running `Command { std: "docker" "inspect" "ec6b0c2953a4f713103a5ce01060e9d991a2f6698728c5e322385d5769d58994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec6b0c2953a4f713103a5ce01060e9d991a2f6698728c5e322385d5769d58994", kill_on_drop: false }` [INFO] [stdout] ec6b0c2953a4f713103a5ce01060e9d991a2f6698728c5e322385d5769d58994 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af47cffa547d17d8d10360348aa014fb37ecbc4f168ebb55f8f611376392515d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "af47cffa547d17d8d10360348aa014fb37ecbc4f168ebb55f8f611376392515d", kill_on_drop: false }` [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `filename` should have an upper case name [INFO] [stdout] --> src/analysis.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const filename: &str = "data/data"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `output_dir` should have an upper case name [INFO] [stdout] --> src/analysis.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const output_dir: &str = "output/"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [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:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> tests/board.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `filename` should have an upper case name [INFO] [stdout] --> src/analysis.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const filename: &str = "data/data"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `output_dir` should have an upper case name [INFO] [stdout] --> src/analysis.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const output_dir: &str = "output/"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 12.70s [INFO] running `Command { std: "docker" "inspect" "af47cffa547d17d8d10360348aa014fb37ecbc4f168ebb55f8f611376392515d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af47cffa547d17d8d10360348aa014fb37ecbc4f168ebb55f8f611376392515d", kill_on_drop: false }` [INFO] [stdout] af47cffa547d17d8d10360348aa014fb37ecbc4f168ebb55f8f611376392515d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ef53c71d3214e6b0fd16d7f8b32eb33ae35cb3994c05bb05b1496c267edba388 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef53c71d3214e6b0fd16d7f8b32eb33ae35cb3994c05bb05b1496c267edba388", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/board.rs:246:28 [INFO] [stderr] | [INFO] [stderr] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stderr] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/board.rs:401:30 [INFO] [stderr] | [INFO] [stderr] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scores` [INFO] [stderr] --> src/interface/game.rs:48:42 [INFO] [stderr] | [INFO] [stderr] 48 | client::Command::Bye(scores) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/interface/game.rs:52:58 [INFO] [stderr] | [INFO] [stderr] 52 | client::Command::Start(color, oname, t) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:67:21 [INFO] [stderr] | [INFO] [stderr] 67 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:133:42 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:133:50 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:133:53 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/interface/game.rs:133:56 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:136:21 [INFO] [stderr] | [INFO] [stderr] 136 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:153:42 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:153:50 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:153:53 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/interface/game.rs:153:56 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:156:21 [INFO] [stderr] | [INFO] [stderr] 156 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:163:24 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:163:53 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:163:60 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reason` [INFO] [stderr] --> src/interface/game.rs:163:67 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stderr] [INFO] [stderr] warning: variable `epoch` is assigned to, but never used [INFO] [stderr] --> src/player/learning/analysis.rs:78:21 [INFO] [stderr] | [INFO] [stderr] 78 | let mut epoch = 0u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_epoch` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/player/learning/analysis.rs:159:17 [INFO] [stderr] | [INFO] [stderr] 159 | let x = 0..1; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: variable `epoch` is assigned to, but never used [INFO] [stderr] --> src/player/learning/analysis.rs:195:21 [INFO] [stderr] | [INFO] [stderr] 195 | let mut epoch = 0u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_epoch` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stderr] | ----------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/interface/tcp_client.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | let mut ret: Result; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/player/learning/analysis.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_valid` [INFO] [stderr] --> src/board.rs:401:8 [INFO] [stderr] | [INFO] [stderr] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `proc_end` [INFO] [stderr] --> src/interface/game.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `map1` [INFO] [stderr] --> src/player/linear_evaluator.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stderr] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stderr] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stderr] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stderr] ... | [INFO] [stderr] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stderr] 25 | | ]; [INFO] [stderr] | |__^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interface/tcp_client.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | self.writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `feature_functions` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:83:11 [INFO] [stderr] | [INFO] [stderr] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stderr] [INFO] [stderr] warning: constant `feature_names` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:87:11 [INFO] [stderr] | [INFO] [stderr] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | create_dir(path); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:170:25 [INFO] [stderr] | [INFO] [stderr] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:173:29 [INFO] [stderr] | [INFO] [stderr] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:175:25 [INFO] [stderr] | [INFO] [stderr] 175 | write!(&mut writer, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/interface/parser.rs:184:34 [INFO] [stderr] | [INFO] [stderr] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scores` [INFO] [stderr] --> src/interface/game.rs:48:42 [INFO] [stderr] | [INFO] [stderr] 48 | client::Command::Bye(scores) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stderr] [INFO] [stderr] warning: `client` (lib) generated 47 warnings [INFO] [stderr] warning: `client` (lib test) generated 48 warnings (46 duplicates) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | Ok(mut g) => g.main_loop(), [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stderr] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stderr] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stderr] 38 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interface/tcp_client.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | self.writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: constant `filename` should have an upper case name [INFO] [stderr] --> src/analysis.rs:19:7 [INFO] [stderr] | [INFO] [stderr] 19 | const filename: &str = "data/data"; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `output_dir` should have an upper case name [INFO] [stderr] --> src/analysis.rs:20:7 [INFO] [stderr] | [INFO] [stderr] 20 | const output_dir: &str = "output/"; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] [INFO] [stderr] warning: `client` (bin "main") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (bin "analysis") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (bin "main" test) generated 50 warnings (50 duplicates) [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> tests/board.rs:113:13 [INFO] [stderr] | [INFO] [stderr] 113 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `client` (test "board") generated 1 warning [INFO] [stderr] warning: `client` (bin "analysis" test) generated 50 warnings (50 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/client-16561feb744dc2f2) [INFO] [stdout] running 8 tests [INFO] [stdout] test interface::parser::test_ack_command ... ok [INFO] [stdout] test interface::parser::test_bye_command ... ok [INFO] [stdout] test interface::parser::test_end_command ... ok [INFO] [stdout] test interface::parser::test_move_command ... ok [INFO] [stdout] test interface::parser::test_command_parser ... ok [INFO] [stdout] test interface::parser::test_open_command ... ok [INFO] [stdout] test interface::parser::test_start_command ... ok [INFO] [stdout] test player::learning::parser::tests::test_parse_csv_line ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- player::learning::parser::tests::test_parse_csv_line stdout ---- [INFO] [stdout] thread 'player::learning::parser::tests::test_parse_csv_line' panicked at 'attempt to add with overflow', src/board.rs:293:35 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55ee09550abc - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55ee09550abc - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55ee09550abc - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x55ee09550abc - ::fmt::ha305a40dbc030444 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x55ee09575dfc - core::fmt::write::hadd15acf4d6ce273 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x55ee0954c3b8 - std::io::Write::write_fmt::h271050faa79d27d2 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x55ee09552d87 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x55ee09552d87 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x55ee09552d87 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x55ee09552abb - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x55ee095534da - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x55ee09553189 - std::panicking::begin_panic_handler::{{closure}}::h5106de2f55f1a411 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:586:13 [INFO] [stdout] 12: 0x55ee09550f84 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ad5c2a8a003ca72 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x55ee09552ed9 - rust_begin_unwind [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x55ee094c9133 - core::panicking::panic_fmt::hfb4b8460cd493e74 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x55ee094c8ffd - core::panicking::panic::h33838847634b5d2d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panicking.rs:48:5 [INFO] [stdout] 16: 0x55ee094ea2cd - client::board::Board::gen_flip::ha42d9002e1686b5a [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:293:35 [INFO] [stdout] 17: 0x55ee094e9787 - client::board::Board::flip::hc74bc70576abc3f5 [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:255:23 [INFO] [stdout] 18: 0x55ee094f24da - client::player::learning::parser::tests::test_parse_csv_line::hd8dfc9dcde1ae953 [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:149:37 [INFO] [stdout] 19: 0x55ee094f1e7a - client::player::learning::parser::tests::test_parse_csv_line::{{closure}}::h86c575fcbe4e7a3e [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:128:5 [INFO] [stdout] 20: 0x55ee094e7c7e - core::ops::function::FnOnce::call_once::h60cee96bbbd2b45b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x55ee0951f1a3 - core::ops::function::FnOnce::call_once::h43953c8a8f54893f [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x55ee0951f1a3 - test::__rust_begin_short_backtrace::h163f55298a15df9b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:575:5 [INFO] [stdout] 23: 0x55ee0951ded1 - as core::ops::function::FnOnce>::call_once::hc911782b3cbc7ed5 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 24: 0x55ee0951ded1 - as core::ops::function::FnOnce<()>>::call_once::hc5bb369afbf9cd4e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x55ee0951ded1 - std::panicking::try::do_call::he60df4e3e832faff [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x55ee0951ded1 - std::panicking::try::h2633cee89a0767f3 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x55ee0951ded1 - std::panic::catch_unwind::h6e10f7b94ce38b1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x55ee0951ded1 - test::run_test_in_process::h085ef39049c3b50b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:598:18 [INFO] [stdout] 29: 0x55ee0951ded1 - test::run_test::run_test_inner::{{closure}}::h4e58ce9f68eb43e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x55ee095277b1 - test::run_test::run_test_inner::{{closure}}::h6d18db28c5e396ee [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x55ee095277b1 - std::sys_common::backtrace::__rust_begin_short_backtrace::h32292cb2cd8be620 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x55ee094f3f0f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h71ee66b20f7b0482 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x55ee094f3f0f - as core::ops::function::FnOnce<()>>::call_once::hb6046e1d1a75a4a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x55ee094f3f0f - std::panicking::try::do_call::h5422165a88309c77 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x55ee094f3f0f - std::panicking::try::h840a12b54e2c9f5d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x55ee094f3f0f - std::panic::catch_unwind::h85910e437c8da180 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x55ee094f3f0f - std::thread::Builder::spawn_unchecked_::{{closure}}::ha3af3a297bfd51d6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x55ee094f3f0f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hff8788f58e0e06a9 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x55ee09559173 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 40: 0x55ee09559173 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 41: 0x55ee09559173 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7ff81dc53609 - start_thread [INFO] [stdout] 43: 0x7ff81da25293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] player::learning::parser::tests::test_parse_csv_line [INFO] [stdout] [INFO] [stdout] test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "ef53c71d3214e6b0fd16d7f8b32eb33ae35cb3994c05bb05b1496c267edba388", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef53c71d3214e6b0fd16d7f8b32eb33ae35cb3994c05bb05b1496c267edba388", kill_on_drop: false }` [INFO] [stdout] ef53c71d3214e6b0fd16d7f8b32eb33ae35cb3994c05bb05b1496c267edba388