[INFO] cloning repository https://github.com/moratorium08/reversi-ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/moratorium08/reversi-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 152e93a6f9e170378dca6f9ef0b878a155ba35aa [INFO] testing moratorium08/reversi-ai against beta-2022-04-10 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 beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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" "+beta-2022-04-10" "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] 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" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 599b3822d5218f43a2dd9157bdbef4ab1932bf23c1c2c730868eda09eab2c8bf [INFO] running `Command { std: "docker" "start" "-a" "599b3822d5218f43a2dd9157bdbef4ab1932bf23c1c2c730868eda09eab2c8bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "599b3822d5218f43a2dd9157bdbef4ab1932bf23c1c2c730868eda09eab2c8bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "599b3822d5218f43a2dd9157bdbef4ab1932bf23c1c2c730868eda09eab2c8bf", kill_on_drop: false }` [INFO] [stdout] 599b3822d5218f43a2dd9157bdbef4ab1932bf23c1c2c730868eda09eab2c8bf [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" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bdae6e9dc7d514dd454579fbbc553d1982c249b8e0df6b9721f286fe9606097 [INFO] running `Command { std: "docker" "start" "-a" "8bdae6e9dc7d514dd454579fbbc553d1982c249b8e0df6b9721f286fe9606097", 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 lazy_static v1.1.0 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling rand v0.5.4 [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: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/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: 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: 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: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.06s [INFO] running `Command { std: "docker" "inspect" "8bdae6e9dc7d514dd454579fbbc553d1982c249b8e0df6b9721f286fe9606097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bdae6e9dc7d514dd454579fbbc553d1982c249b8e0df6b9721f286fe9606097", kill_on_drop: false }` [INFO] [stdout] 8bdae6e9dc7d514dd454579fbbc553d1982c249b8e0df6b9721f286fe9606097 [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" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38b41096a5e00a43f1be785510f1ee79d42e9ba1406ae40eca4354ecac6696eb [INFO] running `Command { std: "docker" "start" "-a" "38b41096a5e00a43f1be785510f1ee79d42e9ba1406ae40eca4354ecac6696eb", 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] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stdout] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board.rs:401:30 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: 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: unnecessary trailing semicolon [INFO] [stdout] --> tests/board.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: 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: 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 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 `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/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/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/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: 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: 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] [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 `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.61s [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/client-16561feb744dc2f2) [INFO] [stderr] Executable unittests src/analysis.rs (/opt/rustwide/target/debug/deps/analysis-71414662d5e516f5) [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/main-6dc25cad60b5c777) [INFO] [stderr] Executable tests/ai.rs (/opt/rustwide/target/debug/deps/ai-7e193631a03a4fda) [INFO] [stderr] Executable tests/board.rs (/opt/rustwide/target/debug/deps/board-32100e2e0d88a78e) [INFO] [stderr] Executable tests/parser.rs (/opt/rustwide/target/debug/deps/parser-26d6746c47d5ddde) [INFO] [stderr] Executable tests/player.rs (/opt/rustwide/target/debug/deps/player-4dab88c9ce081216) [INFO] [stderr] Executable tests/util.rs (/opt/rustwide/target/debug/deps/util-2d70b760496d728f) [INFO] running `Command { std: "docker" "inspect" "38b41096a5e00a43f1be785510f1ee79d42e9ba1406ae40eca4354ecac6696eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38b41096a5e00a43f1be785510f1ee79d42e9ba1406ae40eca4354ecac6696eb", kill_on_drop: false }` [INFO] [stdout] 38b41096a5e00a43f1be785510f1ee79d42e9ba1406ae40eca4354ecac6696eb [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" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 70903ce7d69cba65b4795562eed8c29ede5f2fcbf7a57f9477b3baf5dc9d3764 [INFO] running `Command { std: "docker" "start" "-a" "70903ce7d69cba65b4795562eed8c29ede5f2fcbf7a57f9477b3baf5dc9d3764", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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: 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: constant `filename` should have an upper case name [INFO] [stderr] --> src/analysis.rs:19:7 [INFO] [stderr] | [INFO] [stderr] 19 | const filename: &str = "data/data"; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `output_dir` should have an upper case name [INFO] [stderr] --> src/analysis.rs:20:7 [INFO] [stderr] | [INFO] [stderr] 20 | const output_dir: &str = "output/"; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] [INFO] [stderr] warning: `client` (lib test) generated 48 warnings (46 duplicates) [INFO] [stderr] warning: `client` (test "board") generated 1 warning [INFO] [stderr] warning: `client` (bin "main") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (bin "analysis") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (bin "analysis" test) generated 50 warnings (50 duplicates) [INFO] [stderr] warning: `client` (bin "main" test) generated 50 warnings (50 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/client-16561feb744dc2f2) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test interface::parser::test_ack_command ... ok [INFO] [stdout] test interface::parser::test_end_command ... ok [INFO] [stdout] test interface::parser::test_command_parser ... ok [INFO] [stdout] test interface::parser::test_open_command ... ok [INFO] [stdout] test interface::parser::test_bye_command ... ok [INFO] [stdout] test interface::parser::test_start_command ... ok [INFO] [stdout] test interface::parser::test_move_command ... ok [INFO] [stdout] test player::learning::parser::tests::test_parse_csv_line ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- player::learning::parser::tests::test_parse_csv_line stdout ---- [INFO] [stdout] thread 'player::learning::parser::tests::test_parse_csv_line' panicked at 'attempt to add with overflow', src/board.rs:293:35 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x562202b2086d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x562202b2086d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x562202b2086d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x562202b2086d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x562202b4317c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x562202b1d231 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x562202b225b5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x562202b225b5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x562202b225b5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x562202b222a4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x562202b22b02 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x562202b229a9 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:586:13 [INFO] [stdout] 12: 0x562202b20d24 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x562202b22719 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x562202a943e3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x562202a942ad - core::panicking::panic::h19a70c01bbabd538 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:48:5 [INFO] [stdout] 16: 0x562202ab53fd - client::board::Board::gen_flip::h21fb852871cff8b3 [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:293:35 [INFO] [stdout] 17: 0x562202ab48b7 - client::board::Board::flip::h35825ccde856892e [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:255:23 [INFO] [stdout] 18: 0x562202abd8ed - client::player::learning::parser::tests::test_parse_csv_line::he13309708c5d053f [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:149:37 [INFO] [stdout] 19: 0x562202abd2ca - client::player::learning::parser::tests::test_parse_csv_line::{{closure}}::hdc0943d65c90c4c0 [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:128:5 [INFO] [stdout] 20: 0x562202ab348e - core::ops::function::FnOnce::call_once::h3526885b92b763e7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x562202af3e23 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x562202af3e23 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x562202af2bd9 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x562202af2bd9 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x562202af2bd9 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x562202af2bd9 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x562202af2bd9 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x562202af2bd9 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x562202af2bd9 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x562202abed8e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x562202abed8e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x562202ac42f8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x562202ac42f8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x562202ac42f8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x562202ac42f8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x562202ac42f8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x562202ac42f8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x562202ac42f8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x562202b27313 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x562202b27313 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x562202b27313 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7ff823e9f609 - start_thread [INFO] [stdout] 43: 0x7ff823c6f163 - 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] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "70903ce7d69cba65b4795562eed8c29ede5f2fcbf7a57f9477b3baf5dc9d3764", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70903ce7d69cba65b4795562eed8c29ede5f2fcbf7a57f9477b3baf5dc9d3764", kill_on_drop: false }` [INFO] [stdout] 70903ce7d69cba65b4795562eed8c29ede5f2fcbf7a57f9477b3baf5dc9d3764