[INFO] cloning repository https://github.com/KOBA789/rust-reversi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KOBA789/rust-reversi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKOBA789%2Frust-reversi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKOBA789%2Frust-reversi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8cb601080df78b26dc586f1645d4830f5cb663b3 [INFO] checking KOBA789/rust-reversi against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKOBA789%2Frust-reversi" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KOBA789/rust-reversi on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KOBA789/rust-reversi [INFO] finished tweaking git repo https://github.com/KOBA789/rust-reversi [INFO] tweaked toml for git repo https://github.com/KOBA789/rust-reversi written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/KOBA789/rust-reversi already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "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] 58af4b090aed5b300320da476affb4785e565e0093f4960f3bd317991dc63c24 [INFO] running `Command { std: "docker" "start" "-a" "58af4b090aed5b300320da476affb4785e565e0093f4960f3bd317991dc63c24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58af4b090aed5b300320da476affb4785e565e0093f4960f3bd317991dc63c24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58af4b090aed5b300320da476affb4785e565e0093f4960f3bd317991dc63c24", kill_on_drop: false }` [INFO] [stdout] 58af4b090aed5b300320da476affb4785e565e0093f4960f3bd317991dc63c24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 118fd699b46926ab5d2ccb57dfcc21d9cbeab09f7006dccabde66e7f379a54f6 [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" "118fd699b46926ab5d2ccb57dfcc21d9cbeab09f7006dccabde66e7f379a54f6", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.37 [INFO] [stderr] Compiling rayon-core v1.4.0 [INFO] [stderr] Checking lazy_static v1.0.0 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Checking smallvec v0.6.0 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking crossbeam-epoch v0.3.0 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking rayon v1.0.0 [INFO] [stderr] Checking reversi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/coord.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | fn add(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/coord.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | fn add_assign(&mut self, rhs: Self) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/board.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | fn index(&self, index: Coord) -> &Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/board.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | fn index_mut(&mut self, index: Coord) -> &mut Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:153:24 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/board.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/board.rs:153:54 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | fn get_move(&self, piece: Piece, pos: Coord) -> Move { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/board.rs:160:38 [INFO] [stdout] | [INFO] [stdout] 160 | fn get_move(&self, piece: Piece, pos: Coord) -> Move { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn moves(&self, piece: Piece) -> Moves { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | fn count_mut(&mut self, piece: Piece) -> &mut u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/board.rs:184:41 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/board.rs:184:57 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flip` [INFO] [stdout] --> src/board.rs:184:69 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_flip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:189:31 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn do_move(&mut self, piece: Piece, mov: &Move) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mov` [INFO] [stdout] --> src/board.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn do_move(&mut self, piece: Piece, mov: &Move) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/board.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [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/board.rs:184:41 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_in_range` [INFO] [stdout] --> src/board.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn is_in_range(&self, pos: Coord) -> 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: `size` [INFO] [stdout] --> src/board.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZERO_FLIP` [INFO] [stdout] --> src/board.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | const ZERO_FLIP: [u8; 8] = [0, 0, 0, 0, 0, 0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_legal` [INFO] [stdout] --> src/board.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn is_legal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DIRECTIONS` [INFO] [stdout] --> src/board.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | / const DIRECTIONS: [Coord; 8] = [ [INFO] [stdout] 121 | | Coord(-1, -1), //左上 [INFO] [stdout] 122 | | Coord(0, -1), //真上 [INFO] [stdout] 123 | | Coord(1, -1), //右上 [INFO] [stdout] ... | [INFO] [stdout] 128 | | Coord(1, 1), //右下 [INFO] [stdout] 129 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_flip` [INFO] [stdout] --> src/board.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_move` [INFO] [stdout] --> src/board.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn get_move(&self, piece: Piece, pos: Coord) -> Move { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `count_mut` [INFO] [stdout] --> src/board.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn count_mut(&mut self, piece: Piece) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_flip` [INFO] [stdout] --> src/board.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/players/negamax.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(depth: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/coord.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | fn add(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/coord.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | fn add_assign(&mut self, rhs: Self) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/board.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | fn index(&self, index: Coord) -> &Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/board.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | fn index_mut(&mut self, index: Coord) -> &mut Self::Output { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:153:24 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/board.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/board.rs:153:54 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | fn get_move(&self, piece: Piece, pos: Coord) -> Move { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/board.rs:160:38 [INFO] [stdout] | [INFO] [stdout] 160 | fn get_move(&self, piece: Piece, pos: Coord) -> Move { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn moves(&self, piece: Piece) -> Moves { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | fn count_mut(&mut self, piece: Piece) -> &mut u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/board.rs:184:41 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/board.rs:184:57 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flip` [INFO] [stdout] --> src/board.rs:184:69 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_flip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/board.rs:189:31 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn do_move(&mut self, piece: Piece, mov: &Move) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mov` [INFO] [stdout] --> src/board.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn do_move(&mut self, piece: Piece, mov: &Move) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/board.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | fn get_flip(&self, piece: Piece, mut pos: Coord, dir: Coord) -> u8 { [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/board.rs:184:41 [INFO] [stdout] | [INFO] [stdout] 184 | fn do_flip(&mut self, piece: Piece, mut pos: Coord, dir: Coord, flip: u8) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DIRECTIONS` [INFO] [stdout] --> src/board.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | / const DIRECTIONS: [Coord; 8] = [ [INFO] [stdout] 121 | | Coord(-1, -1), //左上 [INFO] [stdout] 122 | | Coord(0, -1), //真上 [INFO] [stdout] 123 | | Coord(1, -1), //右上 [INFO] [stdout] ... | [INFO] [stdout] 128 | | Coord(1, 1), //右下 [INFO] [stdout] 129 | | ]; [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: `new` [INFO] [stdout] --> src/players/negamax.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(depth: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.89s [INFO] running `Command { std: "docker" "inspect" "118fd699b46926ab5d2ccb57dfcc21d9cbeab09f7006dccabde66e7f379a54f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "118fd699b46926ab5d2ccb57dfcc21d9cbeab09f7006dccabde66e7f379a54f6", kill_on_drop: false }` [INFO] [stdout] 118fd699b46926ab5d2ccb57dfcc21d9cbeab09f7006dccabde66e7f379a54f6