[INFO] cloning repository https://github.com/moratorium08/reversi-ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/moratorium08/reversi-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 152e93a6f9e170378dca6f9ef0b878a155ba35aa [INFO] testing moratorium08/reversi-ai against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai" "/workspace/builds/worker-43/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-43/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/moratorium08/reversi-ai on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/moratorium08/reversi-ai [INFO] finished tweaking git repo https://github.com/moratorium08/reversi-ai [INFO] tweaked toml for git repo https://github.com/moratorium08/reversi-ai written to /workspace/builds/worker-43/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" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded colored v1.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a0b84538a73c47f92990d0869851e8f8c61055a978612ea526eca46c97902bf [INFO] running `Command { std: "docker" "start" "-a" "9a0b84538a73c47f92990d0869851e8f8c61055a978612ea526eca46c97902bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a0b84538a73c47f92990d0869851e8f8c61055a978612ea526eca46c97902bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a0b84538a73c47f92990d0869851e8f8c61055a978612ea526eca46c97902bf", kill_on_drop: false }` [INFO] [stdout] 9a0b84538a73c47f92990d0869851e8f8c61055a978612ea526eca46c97902bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b047be2a520014bbef25f75ff0842b56c7c25b93f4e5087656196febd9408f92 [INFO] running `Command { std: "docker" "start" "-a" "b047be2a520014bbef25f75ff0842b56c7c25b93f4e5087656196febd9408f92", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling rand_core v0.2.1 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling rand v0.5.4 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling nom v4.0.0 [INFO] [stderr] Compiling colored v1.6.1 [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `filename` should have an upper case name [INFO] [stdout] --> src/analysis.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const filename: &str = "data/data"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `output_dir` should have an upper case name [INFO] [stdout] --> src/analysis.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const output_dir: &str = "output/"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 49.13s [INFO] running `Command { std: "docker" "inspect" "b047be2a520014bbef25f75ff0842b56c7c25b93f4e5087656196febd9408f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b047be2a520014bbef25f75ff0842b56c7c25b93f4e5087656196febd9408f92", kill_on_drop: false }` [INFO] [stdout] b047be2a520014bbef25f75ff0842b56c7c25b93f4e5087656196febd9408f92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d06300e9cfbc410461d8d51d819a3defebad96aff086221d408620366d3331c6 [INFO] running `Command { std: "docker" "start" "-a" "d06300e9cfbc410461d8d51d819a3defebad96aff086221d408620366d3331c6", kill_on_drop: false }` [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `filename` should have an upper case name [INFO] [stdout] --> src/analysis.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const filename: &str = "data/data"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `output_dir` should have an upper case name [INFO] [stdout] --> src/analysis.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const output_dir: &str = "output/"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> tests/board.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `filename` should have an upper case name [INFO] [stdout] --> src/analysis.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const filename: &str = "data/data"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `output_dir` should have an upper case name [INFO] [stdout] --> src/analysis.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const output_dir: &str = "output/"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.57s [INFO] running `Command { std: "docker" "inspect" "d06300e9cfbc410461d8d51d819a3defebad96aff086221d408620366d3331c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d06300e9cfbc410461d8d51d819a3defebad96aff086221d408620366d3331c6", kill_on_drop: false }` [INFO] [stdout] d06300e9cfbc410461d8d51d819a3defebad96aff086221d408620366d3331c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 01e1f7bc881c2096544d9e2f0f8bedcbe4d1daf23a6ff6d5e61116fcaa94f1dd [INFO] running `Command { std: "docker" "start" "-a" "01e1f7bc881c2096544d9e2f0f8bedcbe4d1daf23a6ff6d5e61116fcaa94f1dd", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/board.rs:246:28 [INFO] [stderr] | [INFO] [stderr] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stderr] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/board.rs:401:30 [INFO] [stderr] | [INFO] [stderr] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scores` [INFO] [stderr] --> src/interface/game.rs:48:42 [INFO] [stderr] | [INFO] [stderr] 48 | client::Command::Bye(scores) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/interface/game.rs:52:58 [INFO] [stderr] | [INFO] [stderr] 52 | client::Command::Start(color, oname, t) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:67:21 [INFO] [stderr] | [INFO] [stderr] 67 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:133:42 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:133:50 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:133:53 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/interface/game.rs:133:56 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:136:21 [INFO] [stderr] | [INFO] [stderr] 136 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:153:42 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:153:50 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:153:53 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/interface/game.rs:153:56 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:156:21 [INFO] [stderr] | [INFO] [stderr] 156 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:163:24 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:163:53 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:163:60 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reason` [INFO] [stderr] --> src/interface/game.rs:163:67 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stderr] [INFO] [stderr] warning: variable `epoch` is assigned to, but never used [INFO] [stderr] --> src/player/learning/analysis.rs:78:21 [INFO] [stderr] | [INFO] [stderr] 78 | let mut epoch = 0u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_epoch` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/player/learning/analysis.rs:159:17 [INFO] [stderr] | [INFO] [stderr] 159 | let x = 0..1; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: variable `epoch` is assigned to, but never used [INFO] [stderr] --> src/player/learning/analysis.rs:195:21 [INFO] [stderr] | [INFO] [stderr] 195 | let mut epoch = 0u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_epoch` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stderr] | ----------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/interface/tcp_client.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | let mut ret: Result; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/player/learning/analysis.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_valid` [INFO] [stderr] --> src/board.rs:401:8 [INFO] [stderr] | [INFO] [stderr] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `proc_end` [INFO] [stderr] --> src/interface/game.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `map1` [INFO] [stderr] --> src/player/linear_evaluator.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stderr] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stderr] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stderr] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stderr] ... | [INFO] [stderr] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stderr] 25 | | ]; [INFO] [stderr] | |__^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interface/tcp_client.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | self.writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `feature_functions` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:83:11 [INFO] [stderr] | [INFO] [stderr] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stderr] [INFO] [stderr] warning: constant `feature_names` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:87:11 [INFO] [stderr] | [INFO] [stderr] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | create_dir(path); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:170:25 [INFO] [stderr] | [INFO] [stderr] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:173:29 [INFO] [stderr] | [INFO] [stderr] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:175:25 [INFO] [stderr] | [INFO] [stderr] 175 | write!(&mut writer, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `client` (lib) generated 47 warnings [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/interface/parser.rs:184:34 [INFO] [stderr] | [INFO] [stderr] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scores` [INFO] [stderr] --> src/interface/game.rs:48:42 [INFO] [stderr] | [INFO] [stderr] 48 | client::Command::Bye(scores) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stderr] [INFO] [stderr] warning: constant `filename` should have an upper case name [INFO] [stderr] --> src/analysis.rs:19:7 [INFO] [stderr] | [INFO] [stderr] 19 | const filename: &str = "data/data"; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `output_dir` should have an upper case name [INFO] [stderr] --> src/analysis.rs:20:7 [INFO] [stderr] | [INFO] [stderr] 20 | const output_dir: &str = "output/"; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> tests/board.rs:113:13 [INFO] [stderr] | [INFO] [stderr] 113 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | Ok(mut g) => g.main_loop(), [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stderr] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stderr] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stderr] 38 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interface/tcp_client.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | self.writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `client` (lib test) generated 48 warnings (46 duplicates) [INFO] [stderr] warning: `client` (bin "analysis") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (test "board") generated 1 warning [INFO] [stderr] warning: `client` (bin "main" test) generated 50 warnings (47 duplicates) [INFO] [stderr] warning: `client` (bin "analysis" test) generated 50 warnings (50 duplicates) [INFO] [stderr] warning: `client` (bin "main") generated 49 warnings (49 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/client-8dd7054a46f22e7d) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test interface::parser::test_ack_command ... ok [INFO] [stdout] test interface::parser::test_bye_command ... ok [INFO] [stdout] test interface::parser::test_command_parser ... ok [INFO] [stdout] test interface::parser::test_end_command ... ok [INFO] [stdout] test interface::parser::test_open_command ... ok [INFO] [stdout] test interface::parser::test_move_command ... ok [INFO] [stdout] test interface::parser::test_start_command ... ok [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] test player::learning::parser::tests::test_parse_csv_line ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- player::learning::parser::tests::test_parse_csv_line stdout ---- [INFO] [stdout] thread 'player::learning::parser::tests::test_parse_csv_line' panicked at 'attempt to add with overflow', src/board.rs:293:35 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5647fd4db77d - std::backtrace_rs::backtrace::libunwind::trace::hee598835bc88d35b [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5647fd4db77d - std::backtrace_rs::backtrace::trace_unsynchronized::h9cdc730ba5cf5d72 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5647fd4db77d - std::sys_common::backtrace::_print_fmt::h75aeaf7ed30e43fa [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5647fd4db77d - ::fmt::h606862f787600875 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5647fd500b3c - core::fmt::write::he803f0f418caf762 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x5647fd4d7078 - std::io::Write::write_fmt::hbe7c1a63616291e2 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x5647fd4dda57 - std::sys_common::backtrace::_print::h64d038cf8ac3e13e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5647fd4dda57 - std::sys_common::backtrace::print::h359300b4a7fccf65 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5647fd4dda57 - std::panicking::default_hook::{{closure}}::hf51be35e2f510149 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5647fd4dd78c - std::panicking::default_hook::h03ca0f22e1d2d25e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5647fd4de1a9 - std::panicking::rust_panic_with_hook::h3b7380e99b825b63 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5647fd4dde59 - std::panicking::begin_panic_handler::{{closure}}::h8e849d0710154ce0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:586:13 [INFO] [stdout] 12: 0x5647fd4dbc44 - std::sys_common::backtrace::__rust_end_short_backtrace::hedcdaddbd4c46cc5 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5647fd4ddba9 - rust_begin_unwind [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5647fd453133 - core::panicking::panic_fmt::he1bbc7336d49a357 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5647fd452ffd - core::panicking::panic::h4241c5ccea17faca [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:48:5 [INFO] [stdout] 16: 0x5647fd4743ad - client::board::Board::gen_flip::hfe3d0f697978e343 [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:293:35 [INFO] [stdout] 17: 0x5647fd473867 - client::board::Board::flip::h8a0a6f045bc58570 [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:255:23 [INFO] [stdout] 18: 0x5647fd47c5ba - client::player::learning::parser::tests::test_parse_csv_line::hd09afa2c8fbd334e [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:149:37 [INFO] [stdout] 19: 0x5647fd47bf5a - client::player::learning::parser::tests::test_parse_csv_line::{{closure}}::ha9d78ecee4cf66f4 [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:128:5 [INFO] [stdout] 20: 0x5647fd471d0e - core::ops::function::FnOnce::call_once::h3f67abb37f3592ea [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5647fd4a91e3 - core::ops::function::FnOnce::call_once::h2a47b4b927cb6ca5 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x5647fd4a91e3 - test::__rust_begin_short_backtrace::h594ef8055a183b9b [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:575:5 [INFO] [stdout] 23: 0x5647fd4a7ec4 - as core::ops::function::FnOnce>::call_once::hb40cbb8bc3e1be15 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9 [INFO] [stdout] 24: 0x5647fd4a7ec4 - as core::ops::function::FnOnce<()>>::call_once::ha4f2bd3b806745a0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x5647fd4a7ec4 - std::panicking::try::do_call::h92af9f8bc77a5987 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x5647fd4a7ec4 - std::panicking::try::h9df49eeae42572b7 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x5647fd4a7ec4 - std::panic::catch_unwind::h101dbadc82bbe0fd [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x5647fd4a7ec4 - test::run_test_in_process::h2ad7bffb068e750a [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:598:18 [INFO] [stdout] 29: 0x5647fd4a7ec4 - test::run_test::run_test_inner::{{closure}}::h384faf46554c5acb [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x5647fd4b17e1 - test::run_test::run_test_inner::{{closure}}::h17cfe94835a46685 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x5647fd4b17e1 - std::sys_common::backtrace::__rust_begin_short_backtrace::h82709e5086312627 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x5647fd47de5f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hdfea66a201b39571 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x5647fd47de5f - as core::ops::function::FnOnce<()>>::call_once::h4912df03598e67fa [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x5647fd47de5f - std::panicking::try::do_call::h6d5dc1045d0eade8 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x5647fd47de5f - std::panicking::try::hbc897fc717ec6571 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x5647fd47de5f - std::panic::catch_unwind::h27f1e958c91391ad [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x5647fd47de5f - std::thread::Builder::spawn_unchecked_::{{closure}}::h1b42e48537edc3c0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x5647fd47de5f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h9137b3d6d2a88354 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x5647fd4e3e93 - as core::ops::function::FnOnce>::call_once::hf70ac038171e3e1a [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9 [INFO] [stdout] 40: 0x5647fd4e3e93 - as core::ops::function::FnOnce>::call_once::he6690128792365ad [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9 [INFO] [stdout] 41: 0x5647fd4e3e93 - std::sys::unix::thread::Thread::new::thread_start::ha07928d93d5a5ec9 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f194d154609 - start_thread [INFO] [stdout] 43: 0x7f194cf24163 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] player::learning::parser::tests::test_parse_csv_line [INFO] [stdout] [INFO] [stdout] test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "01e1f7bc881c2096544d9e2f0f8bedcbe4d1daf23a6ff6d5e61116fcaa94f1dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01e1f7bc881c2096544d9e2f0f8bedcbe4d1daf23a6ff6d5e61116fcaa94f1dd", kill_on_drop: false }` [INFO] [stdout] 01e1f7bc881c2096544d9e2f0f8bedcbe4d1daf23a6ff6d5e61116fcaa94f1dd