[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] checking moratorium08/reversi-ai against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/moratorium08/reversi-ai on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-3/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f94c7be3a5504ad8459c83a2a0acc3d3d7d20b7ef2daade5bfc25fae5bc689f [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" "5f94c7be3a5504ad8459c83a2a0acc3d3d7d20b7ef2daade5bfc25fae5bc689f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f94c7be3a5504ad8459c83a2a0acc3d3d7d20b7ef2daade5bfc25fae5bc689f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f94c7be3a5504ad8459c83a2a0acc3d3d7d20b7ef2daade5bfc25fae5bc689f", kill_on_drop: false }` [INFO] [stdout] 5f94c7be3a5504ad8459c83a2a0acc3d3d7d20b7ef2daade5bfc25fae5bc689f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--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] 2b7c67a51d48d82c7b9fea18da7248793163205abf76f896a29c404b7ece6e50 [INFO] running `Command { std: "docker" "start" "-a" "2b7c67a51d48d82c7b9fea18da7248793163205abf76f896a29c404b7ece6e50", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Checking rand_core v0.2.1 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking rand v0.5.4 [INFO] [stderr] Checking nom v4.0.0 [INFO] [stderr] Checking colored v1.6.1 [INFO] [stderr] Checking 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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [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:17 [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:17 [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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:17 [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:17 [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 `std::result::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 `std::result::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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 `std::result::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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn BitIndexable` [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:17 [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:17 [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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:17 [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:17 [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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/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: 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:17 [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:17 [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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] = note: `#[warn(unused_mut)]` on by default [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] [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/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/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 `std::result::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 `std::result::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 `std::result::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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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 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:17 [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:17 [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [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] [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: 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: 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 `std::result::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 `std::result::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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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 `std::result::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 `std::result::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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (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: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 `std::result::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 `std::result::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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.87s [INFO] running `Command { std: "docker" "inspect" "2b7c67a51d48d82c7b9fea18da7248793163205abf76f896a29c404b7ece6e50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b7c67a51d48d82c7b9fea18da7248793163205abf76f896a29c404b7ece6e50", kill_on_drop: false }` [INFO] [stdout] 2b7c67a51d48d82c7b9fea18da7248793163205abf76f896a29c404b7ece6e50