[INFO] cloning repository https://github.com/moratorium08/reversi-ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/moratorium08/reversi-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 152e93a6f9e170378dca6f9ef0b878a155ba35aa [INFO] testing moratorium08/reversi-ai against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoratorium08%2Freversi-ai" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/moratorium08/reversi-ai on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/moratorium08/reversi-ai [INFO] finished tweaking git repo https://github.com/moratorium08/reversi-ai [INFO] tweaked toml for git repo https://github.com/moratorium08/reversi-ai written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/moratorium08/reversi-ai already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 36e04f9cb6e2aefd301885bb736e6967c81977a296f58d397156a9750fe7fb51 [INFO] running `Command { std: "docker" "start" "-a" "36e04f9cb6e2aefd301885bb736e6967c81977a296f58d397156a9750fe7fb51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36e04f9cb6e2aefd301885bb736e6967c81977a296f58d397156a9750fe7fb51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36e04f9cb6e2aefd301885bb736e6967c81977a296f58d397156a9750fe7fb51", kill_on_drop: false }` [INFO] [stdout] 36e04f9cb6e2aefd301885bb736e6967c81977a296f58d397156a9750fe7fb51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b19d940fcecdb5229d3c14333a6133cdb230d3a4f8596ea69d5ae1afb2abc4f1 [INFO] running `Command { std: "docker" "start" "-a" "b19d940fcecdb5229d3c14333a6133cdb230d3a4f8596ea69d5ae1afb2abc4f1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.42 [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 colored v1.6.1 [INFO] [stderr] Compiling nom v4.0.0 [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: 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: 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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|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: `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] 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] 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] 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] 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] 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] 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] 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] 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] 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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.87s [INFO] running `Command { std: "docker" "inspect" "b19d940fcecdb5229d3c14333a6133cdb230d3a4f8596ea69d5ae1afb2abc4f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b19d940fcecdb5229d3c14333a6133cdb230d3a4f8596ea69d5ae1afb2abc4f1", kill_on_drop: false }` [INFO] [stdout] b19d940fcecdb5229d3c14333a6133cdb230d3a4f8596ea69d5ae1afb2abc4f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d173adc5c89f7c44bbc122e794bf8a954e2e00b8bebd8030be56c892c8a7e9b0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d173adc5c89f7c44bbc122e794bf8a954e2e00b8bebd8030be56c892c8a7e9b0", 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] [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] [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: 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: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|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: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|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: `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: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|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: `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: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interface/parser.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/interface/game.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | client::Command::Bye(scores) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/interface/game.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | client::Command::Start(color, oname, t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:133:53 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:133:56 [INFO] [stdout] | [INFO] [stdout] 133 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/interface/game.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 153 | client::Command::End(result, n, m, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interface/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | x => panic!("Invalid Command") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interface/game.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interface/game.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/interface/game.rs:163:60 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/interface/game.rs:163:67 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/player/learning/analysis.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let x = 0..1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `epoch` is assigned to, but never used [INFO] [stdout] --> src/player/learning/analysis.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut epoch = 0u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_epoch` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/player/learning/analysis.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] ... [INFO] [stdout] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interface/tcp_client.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ret: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player/learning/analysis.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(mut g) => g.main_loop(), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/board.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `proc_end` [INFO] [stdout] --> src/interface/game.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `map1` [INFO] [stdout] --> src/player/linear_evaluator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stdout] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stdout] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stdout] ... | [INFO] [stdout] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stdout] 25 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stdout] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stdout] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stdout] 38 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interface/tcp_client.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | self.writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map1` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_functions` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `feature_names` should have an upper case name [INFO] [stdout] --> src/player/linear_evaluator.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | create_dir(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/player/learning/analysis.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | write!(&mut writer, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: 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: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.73s [INFO] running `Command { std: "docker" "inspect" "d173adc5c89f7c44bbc122e794bf8a954e2e00b8bebd8030be56c892c8a7e9b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d173adc5c89f7c44bbc122e794bf8a954e2e00b8bebd8030be56c892c8a7e9b0", kill_on_drop: false }` [INFO] [stdout] d173adc5c89f7c44bbc122e794bf8a954e2e00b8bebd8030be56c892c8a7e9b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e3dfce6f97dfd8814b31ab6f83313eb0744c30b7a5569fa6dac841384f1cf4ea [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e3dfce6f97dfd8814b31ab6f83313eb0744c30b7a5569fa6dac841384f1cf4ea", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/board.rs:246:28 [INFO] [stderr] | [INFO] [stderr] 246 | pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 246 - pub fn flip(&self, p: &BitIndexable, player: Color) -> Board { [INFO] [stderr] 246 + pub fn flip(&self, p: &dyn BitIndexable, player: Color) -> Board { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/board.rs:401:30 [INFO] [stderr] | [INFO] [stderr] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 401 - fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] 401 + fn is_valid(&self, pos: &dyn BitIndexable, player: Color) -> bool { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scores` [INFO] [stderr] --> src/interface/game.rs:48:42 [INFO] [stderr] | [INFO] [stderr] 48 | client::Command::Bye(scores) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/interface/game.rs:52:58 [INFO] [stderr] | [INFO] [stderr] 52 | client::Command::Start(color, oname, t) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:67:21 [INFO] [stderr] | [INFO] [stderr] 67 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:133:42 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:133:50 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:133:53 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/interface/game.rs:133:56 [INFO] [stderr] | [INFO] [stderr] 133 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:136:21 [INFO] [stderr] | [INFO] [stderr] 136 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:153:42 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:153:50 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:153:53 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/interface/game.rs:153:56 [INFO] [stderr] | [INFO] [stderr] 153 | client::Command::End(result, n, m, r) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/interface/game.rs:156:21 [INFO] [stderr] | [INFO] [stderr] 156 | x => panic!("Invalid Command") [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interface/game.rs:163:24 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/interface/game.rs:163:53 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/interface/game.rs:163:60 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reason` [INFO] [stderr] --> src/interface/game.rs:163:67 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stderr] [INFO] [stderr] warning: variable `epoch` is assigned to, but never used [INFO] [stderr] --> src/player/learning/analysis.rs:78:21 [INFO] [stderr] | [INFO] [stderr] 78 | let mut epoch = 0u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_epoch` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/player/learning/analysis.rs:159:17 [INFO] [stderr] | [INFO] [stderr] 159 | let x = 0..1; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: variable `epoch` is assigned to, but never used [INFO] [stderr] --> src/player/learning/analysis.rs:195:21 [INFO] [stderr] | [INFO] [stderr] 195 | let mut epoch = 0u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_epoch` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 233 | gen_analyzer!(diag4, 81, "DIAG4"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 234 | gen_analyzer!(diag5, 243, "DIAG5"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 235 | gen_analyzer!(diag6, 729, "DIAG6"); [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 236 | gen_analyzer!(diag7, 2187, "DIAG7"); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 237 | gen_analyzer!(diag8, 6561, "DIAG8"); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 238 | gen_analyzer!(hor_vert2, 6561, "HOR_VERT2"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 239 | gen_analyzer!(hor_vert3, 6561, "HOR_VERT3"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 240 | gen_analyzer!(hor_vert4, 6561, "HOR_VERT4"); [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 241 | gen_analyzer!(edge2x, 59049, "EDGE2X"); [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 242 | gen_analyzer!(corner2x5, 59049, "CORNER2X5"); [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 243 | gen_analyzer!(corner3x3, 19683, "CORNER3X3"); [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/player/learning/analysis.rs:25:17 [INFO] [stderr] | [INFO] [stderr] 25 | let board = self.simulate(|board: board::Board, result: MatchResult, epoch: usize| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] ... [INFO] [stderr] 244 | gen_analyzer!(corner2x2, 81, "CORNER2X2"); [INFO] [stderr] | ----------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_analyzer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/interface/tcp_client.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | let mut ret: Result; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/player/learning/analysis.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | fn new(mut reader: BufReader, output_dir: &'a str) -> Analyzer { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_valid` [INFO] [stderr] --> src/board.rs:401:8 [INFO] [stderr] | [INFO] [stderr] 401 | fn is_valid(&self, pos: &BitIndexable, player: Color) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `proc_end` [INFO] [stderr] --> src/interface/game.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 163 | fn proc_end(&self, result: client::MatchResult, n: u8, m: u8, reason: String) {} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `map1` [INFO] [stderr] --> src/player/linear_evaluator.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | / const map1: [[i64; 8]; 8] = [ [INFO] [stderr] 17 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stderr] 18 | | [-40, -40, 1, 1, 1, 1, -40, -40], [INFO] [stderr] 19 | | [5, 1, 1, 1, 1, 1, 1, 5], [INFO] [stderr] ... | [INFO] [stderr] 24 | | [1000, -40, 5, 5, 5, 5, -40, 1000], [INFO] [stderr] 25 | | ]; [INFO] [stderr] | |__^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interface/tcp_client.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | self.writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `feature_functions` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:83:11 [INFO] [stderr] | [INFO] [stderr] 83 | pub const feature_functions: [fn(board::Board) -> f32; 12] = [ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_FUNCTIONS` [INFO] [stderr] [INFO] [stderr] warning: constant `feature_names` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:87:11 [INFO] [stderr] | [INFO] [stderr] 87 | pub const feature_names: [&str; 12] = [ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `FEATURE_NAMES` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | create_dir(path); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:170:25 [INFO] [stderr] | [INFO] [stderr] 170 | write!(&mut writer, "{}", if his.result == MatchResult::Black{1}else{0}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:173:29 [INFO] [stderr] | [INFO] [stderr] 173 | ... write!(&mut writer, ",{:.3}", item); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/player/learning/analysis.rs:175:25 [INFO] [stderr] | [INFO] [stderr] 175 | write!(&mut writer, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/interface/parser.rs:184:34 [INFO] [stderr] | [INFO] [stderr] 184 | (x, Command::Bye(v)) => { panic!("hoge={}", x); } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scores` [INFO] [stderr] --> src/interface/game.rs:48:42 [INFO] [stderr] | [INFO] [stderr] 48 | client::Command::Bye(scores) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stderr] [INFO] [stderr] warning: `client` (lib) generated 47 warnings [INFO] [stderr] warning: `client` (lib test) generated 48 warnings (46 duplicates) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | Ok(mut g) => g.main_loop(), [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / match game::Game::new(client, player, NAME) { [INFO] [stderr] 36 | | Ok(mut g) => g.main_loop(), [INFO] [stderr] 37 | | Err(s) => panic!("Fail: {}", s), [INFO] [stderr] 38 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interface/tcp_client.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | self.writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: constant `filename` should have an upper case name [INFO] [stderr] --> src/analysis.rs:19:7 [INFO] [stderr] | [INFO] [stderr] 19 | const filename: &str = "data/data"; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper case: `FILENAME` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `output_dir` should have an upper case name [INFO] [stderr] --> src/analysis.rs:20:7 [INFO] [stderr] | [INFO] [stderr] 20 | const output_dir: &str = "output/"; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper case: `OUTPUT_DIR` [INFO] [stderr] [INFO] [stderr] warning: constant `map1` should have an upper case name [INFO] [stderr] --> src/player/linear_evaluator.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const map1: [[i64; 8]; 8] = [ [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `MAP1` [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> tests/board.rs:113:13 [INFO] [stderr] | [INFO] [stderr] 113 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `client` (bin "main") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (bin "main" test) generated 50 warnings (50 duplicates) [INFO] [stderr] warning: `client` (bin "analysis") generated 49 warnings (46 duplicates) [INFO] [stderr] warning: `client` (test "board") generated 1 warning [INFO] [stderr] warning: `client` (bin "analysis" test) generated 50 warnings (50 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/client-1e053beca615208e) [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: 0x559f8b17771c - std::backtrace_rs::backtrace::libunwind::trace::h91c465e73bf6c785 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x559f8b17771c - std::backtrace_rs::backtrace::trace_unsynchronized::hae9da36f5d58b5f3 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x559f8b17771c - std::sys_common::backtrace::_print_fmt::h7f499fa126a7effb [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x559f8b17771c - ::fmt::h3e2b509ce2ce6007 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x559f8b19d00c - core::fmt::write::h753c7571fa063ecb [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/fmt/mod.rs:1168:17 [INFO] [stdout] 5: 0x559f8b172983 - std::io::Write::write_fmt::hb649ab67f71b6655 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/io/mod.rs:1660:15 [INFO] [stdout] 6: 0x559f8b179df2 - std::sys_common::backtrace::_print::h64941a6fc8b0ed9b [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x559f8b179df2 - std::sys_common::backtrace::print::hcf25e43e1a9b0766 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x559f8b179df2 - std::panicking::default_hook::{{closure}}::h78d3e6cf97fc623d [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:211:50 [INFO] [stdout] 9: 0x559f8b179a41 - std::panicking::default_hook::hda898f8d3ad1a5ae [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:225:9 [INFO] [stdout] 10: 0x559f8b17a443 - std::panicking::rust_panic_with_hook::h1a5ea2d6c23051aa [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:606:17 [INFO] [stdout] 11: 0x559f8b17a132 - std::panicking::begin_panic_handler::{{closure}}::h07f549390938b73f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:500:13 [INFO] [stdout] 12: 0x559f8b177bc4 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ec3758a92cfb00d [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:139:18 [INFO] [stdout] 13: 0x559f8b179e99 - rust_begin_unwind [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5 [INFO] [stdout] 14: 0x559f8b0efdd1 - core::panicking::panic_fmt::h3a79a6a99affe1d5 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14 [INFO] [stdout] 15: 0x559f8b0efd1d - core::panicking::panic::h97167cd315d19cd4 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:48:5 [INFO] [stdout] 16: 0x559f8b110fcd - client::board::Board::gen_flip::h47189d4f55513a0a [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:293:35 [INFO] [stdout] 17: 0x559f8b110487 - client::board::Board::flip::hb45719a9934f4d76 [INFO] [stdout] at /opt/rustwide/workdir/src/board.rs:255:23 [INFO] [stdout] 18: 0x559f8b1191ba - client::player::learning::parser::tests::test_parse_csv_line::h95e9de3a18457f0e [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:149:37 [INFO] [stdout] 19: 0x559f8b118b5a - client::player::learning::parser::tests::test_parse_csv_line::{{closure}}::hacc4505b089328c0 [INFO] [stdout] at /opt/rustwide/workdir/src/player/learning/parser.rs:128:5 [INFO] [stdout] 20: 0x559f8b10e95e - core::ops::function::FnOnce::call_once::h258d6d161ed4865f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x559f8b145ed3 - core::ops::function::FnOnce::call_once::h1845a80638abc06e [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x559f8b145ed3 - test::__rust_begin_short_backtrace::h4f56ccea01b9889f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x559f8b144bbf - as core::ops::function::FnOnce>::call_once::h5afedf14a39ffa74 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 24: 0x559f8b144bbf - as core::ops::function::FnOnce<()>>::call_once::hd5aaa1b551e9ce71 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x559f8b144bbf - std::panicking::try::do_call::h316eebee63f96d32 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40 [INFO] [stdout] 26: 0x559f8b144bbf - std::panicking::try::h662e31e84dd7ce52 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19 [INFO] [stdout] 27: 0x559f8b144bbf - std::panic::catch_unwind::h129c1b23f076663f [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14 [INFO] [stdout] 28: 0x559f8b144bbf - test::run_test_in_process::h51d800d572f878ef [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x559f8b144bbf - test::run_test::run_test_inner::{{closure}}::h71a47db430260854 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x559f8b14df81 - test::run_test::run_test_inner::{{closure}}::h02edd5b3e2dab52a [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x559f8b14df81 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0838cfc8b0e995ec [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:123:18 [INFO] [stdout] 32: 0x559f8b11aa0f - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h4c2725d7078043cd [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/thread/mod.rs:477:17 [INFO] [stdout] 33: 0x559f8b11aa0f - as core::ops::function::FnOnce<()>>::call_once::hdf1aa612eed87270 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x559f8b11aa0f - std::panicking::try::do_call::hc72f8de3706d18d6 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40 [INFO] [stdout] 35: 0x559f8b11aa0f - std::panicking::try::h63f01f54dbd0fb87 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19 [INFO] [stdout] 36: 0x559f8b11aa0f - std::panic::catch_unwind::h58bc464ae9b26453 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14 [INFO] [stdout] 37: 0x559f8b11aa0f - std::thread::Builder::spawn_unchecked::{{closure}}::h6c065e19513e33e3 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/thread/mod.rs:476:30 [INFO] [stdout] 38: 0x559f8b11aa0f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd143450c74f35c32 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x559f8b17ffc3 - as core::ops::function::FnOnce>::call_once::h49b6c7c5155a2296 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 40: 0x559f8b17ffc3 - as core::ops::function::FnOnce>::call_once::ha8b5234bfeb15105 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 41: 0x559f8b17ffc3 - std::sys::unix::thread::Thread::new::thread_start::h6f207dd842d64859 [INFO] [stdout] at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f7d8e689609 - start_thread [INFO] [stdout] 43: 0x7f7d8e45b293 - 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.04s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "e3dfce6f97dfd8814b31ab6f83313eb0744c30b7a5569fa6dac841384f1cf4ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3dfce6f97dfd8814b31ab6f83313eb0744c30b7a5569fa6dac841384f1cf4ea", kill_on_drop: false }` [INFO] [stdout] e3dfce6f97dfd8814b31ab6f83313eb0744c30b7a5569fa6dac841384f1cf4ea