[INFO] cloning repository https://github.com/AlexanderReaper7/mine_sweeper
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexanderReaper7/mine_sweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderReaper7%2Fmine_sweeper", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderReaper7%2Fmine_sweeper'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8542de89d55bdc4e2ef455e66202d77ba00fa0e2
[INFO] checking AlexanderReaper7/mine_sweeper against 8006091eb71ae7d9e9bccb66c6122c9d68af4466 for pr-129249-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderReaper7%2Fmine_sweeper" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AlexanderReaper7/mine_sweeper
[INFO] finished tweaking git repo https://github.com/AlexanderReaper7/mine_sweeper
[INFO] tweaked toml for git repo https://github.com/AlexanderReaper7/mine_sweeper written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AlexanderReaper7/mine_sweeper on toolchain 8006091eb71ae7d9e9bccb66c6122c9d68af4466
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AlexanderReaper7/mine_sweeper already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pistoncore-input v1.0.0
[INFO] [stderr]   Downloaded pistoncore-window v0.47.0
[INFO] [stderr]   Downloaded piston-graphics_api_version v1.0.0
[INFO] [stderr]   Downloaded wayland-sys v0.28.3
[INFO] [stderr]   Downloaded core-graphics-types v0.1.1
[INFO] [stderr]   Downloaded cocoa-foundation v0.1.0
[INFO] [stderr]   Downloaded pistoncore-glutin_window v0.68.0
[INFO] [stderr]   Downloaded xcursor v0.3.3
[INFO] [stderr]   Downloaded ab_glyph_rasterizer v0.1.4
[INFO] [stderr]   Downloaded thiserror-impl v1.0.23
[INFO] [stderr]   Downloaded glutin_egl_sys v0.1.5
[INFO] [stderr]   Downloaded piston-viewport v1.0.0
[INFO] [stderr]   Downloaded instant v0.1.9
[INFO] [stderr]   Downloaded glutin_glx_sys v0.1.7
[INFO] [stderr]   Downloaded wayland-egl v0.28.3
[INFO] [stderr]   Downloaded adler v0.2.3
[INFO] [stderr]   Downloaded piston-float v1.0.0
[INFO] [stderr]   Downloaded wayland-cursor v0.28.3
[INFO] [stderr]   Downloaded rusttype v0.9.2
[INFO] [stderr]   Downloaded lock_api v0.4.2
[INFO] [stderr]   Downloaded thiserror v1.0.23
[INFO] [stderr]   Downloaded core-graphics v0.22.2
[INFO] [stderr]   Downloaded core-foundation-sys v0.8.2
[INFO] [stderr]   Downloaded gif v0.11.1
[INFO] [stderr]   Downloaded bytemuck v1.5.0
[INFO] [stderr]   Downloaded piston2d-opengl_graphics v0.77.0
[INFO] [stderr]   Downloaded wayland-scanner v0.28.3
[INFO] [stderr]   Downloaded wayland-commons v0.28.3
[INFO] [stderr]   Downloaded owned_ttf_parser v0.6.0
[INFO] [stderr]   Downloaded parking_lot_core v0.8.2
[INFO] [stderr]   Downloaded core-foundation v0.9.1
[INFO] [stderr]   Downloaded weezl v0.1.3
[INFO] [stderr]   Downloaded cocoa v0.24.0
[INFO] [stderr]   Downloaded parking_lot v0.11.1
[INFO] [stderr]   Downloaded miniz_oxide v0.4.3
[INFO] [stderr]   Downloaded xml-rs v0.8.3
[INFO] [stderr]   Downloaded ttf-parser v0.6.2
[INFO] [stderr]   Downloaded wayland-client v0.28.3
[INFO] [stderr]   Downloaded smithay-client-toolkit v0.12.2
[INFO] [stderr]   Downloaded wayland-protocols v0.28.3
[INFO] [stderr]   Downloaded nom v6.1.0
[INFO] [stderr]   Downloaded image v0.23.12
[INFO] [stderr]   Downloaded jpeg-decoder v0.1.21
[INFO] [stderr]   Downloaded ndk-sys v0.2.1
[INFO] [stderr]   Downloaded khronos_api v2.2.0
[INFO] [stderr]   Downloaded libc v0.2.82
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a
[INFO] running `Command { std: "docker" "start" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.82
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling xml-rs v0.8.3
[INFO] [stderr]    Compiling pkg-config v0.3.19
[INFO] [stderr]    Compiling const_fn v0.4.5
[INFO] [stderr]    Compiling memchr v2.3.4
[INFO] [stderr]    Compiling serde v1.0.123
[INFO] [stderr]    Compiling nix v0.18.0
[INFO] [stderr]     Checking libloading v0.6.7
[INFO] [stderr]     Checking smallvec v1.6.1
[INFO] [stderr]     Checking piston-float v1.0.0
[INFO] [stderr]     Checking byteorder v1.4.2
[INFO] [stderr]     Checking ttf-parser v0.6.2
[INFO] [stderr]     Checking ab_glyph_rasterizer v0.1.4
[INFO] [stderr]     Checking once_cell v1.5.2
[INFO] [stderr]    Compiling syn v1.0.60
[INFO] [stderr]     Checking piston-viewport v1.0.0
[INFO] [stderr]    Compiling nom v6.1.0
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]     Checking dlib v0.4.2
[INFO] [stderr]     Checking scoped-tls v1.0.0
[INFO] [stderr]    Compiling serde_derive v1.0.123
[INFO] [stderr]     Checking downcast-rs v1.2.0
[INFO] [stderr]    Compiling miniz_oxide v0.4.3
[INFO] [stderr]     Checking piston-graphics_api_version v1.0.0
[INFO] [stderr]     Checking adler32 v1.2.0
[INFO] [stderr]    Compiling crc32fast v1.2.1
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]     Checking adler v0.2.3
[INFO] [stderr]     Checking weezl v0.1.3
[INFO] [stderr]     Checking deflate v0.8.6
[INFO] [stderr]    Compiling wayland-sys v0.28.3
[INFO] [stderr]    Compiling x11-dl v2.18.5
[INFO] [stderr]     Checking miniz_oxide v0.3.7
[INFO] [stderr]     Checking draw_state v0.8.0
[INFO] [stderr]    Compiling wayland-scanner v0.28.3
[INFO] [stderr]    Compiling gl_generator v0.14.0
[INFO] [stderr]    Compiling gl_generator v0.13.1
[INFO] [stderr]     Checking instant v0.1.9
[INFO] [stderr]     Checking xdg v2.2.0
[INFO] [stderr]     Checking gif v0.11.1
[INFO] [stderr]     Checking gfx_core v0.9.2
[INFO] [stderr]     Checking crossbeam-epoch v0.9.1
[INFO] [stderr]     Checking png v0.16.8
[INFO] [stderr]     Checking lock_api v0.4.2
[INFO] [stderr]     Checking scoped_threadpool v0.1.9
[INFO] [stderr]     Checking crossbeam-deque v0.8.0
[INFO] [stderr]     Checking bytemuck v1.5.0
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]     Checking lazycell v1.3.0
[INFO] [stderr]     Checking piston-texture v0.8.0
[INFO] [stderr]     Checking shader_version v0.7.0
[INFO] [stderr]     Checking vecmath v1.0.0
[INFO] [stderr]     Checking interpolation v0.2.0
[INFO] [stderr]     Checking percent-encoding v2.1.0
[INFO] [stderr]     Checking read_color v1.0.0
[INFO] [stderr]     Checking piston-shaders_graphics2d v0.4.0
[INFO] [stderr]    Compiling gl v0.13.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.10
[INFO] [stderr]    Compiling serde_json v1.0.61
[INFO] [stderr]     Checking itoa v0.4.7
[INFO] [stderr]     Checking regex-automata v0.1.9
[INFO] [stderr]     Checking plotters-backend v0.3.0
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking half v1.7.1
[INFO] [stderr]     Checking regex-syntax v0.6.22
[INFO] [stderr]     Checking owned_ttf_parser v0.6.0
[INFO] [stderr]    Compiling glutin_glx_sys v0.1.7
[INFO] [stderr]     Checking rusttype v0.9.2
[INFO] [stderr]    Compiling glutin_egl_sys v0.1.5
[INFO] [stderr]    Compiling gfx_gl v0.6.1
[INFO] [stderr]     Checking andrew v0.3.1
[INFO] [stderr]     Checking piston2d-graphics v0.39.0
[INFO] [stderr]     Checking plotters-svg v0.3.0
[INFO] [stderr]     Checking itertools v0.10.0
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking net2 v0.2.37
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking memmap2 v0.1.0
[INFO] [stderr]     Checking rayon-core v1.9.0
[INFO] [stderr]     Checking mio v0.6.23
[INFO] [stderr]     Checking parking_lot_core v0.8.2
[INFO] [stderr]     Checking parking_lot v0.11.1
[INFO] [stderr]     Checking raw-window-handle v0.3.3
[INFO] [stderr]     Checking shared_library v0.1.9
[INFO] [stderr]     Checking osmesa-sys v0.1.2
[INFO] [stderr]     Checking gfx v0.18.2
[INFO] [stderr]    Compiling wayland-client v0.28.3
[INFO] [stderr]    Compiling wayland-protocols v0.28.3
[INFO] [stderr]     Checking plotters v0.3.0
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking mio-extras v2.0.6
[INFO] [stderr]     Checking rayon v1.5.0
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking oorandom v11.1.3
[INFO] [stderr]     Checking xcursor v0.3.3
[INFO] [stderr]     Checking regex v1.4.3
[INFO] [stderr]     Checking bstr v0.2.14
[INFO] [stderr]     Checking serde_cbor v0.11.1
[INFO] [stderr]     Checking wayland-commons v0.28.3
[INFO] [stderr]     Checking calloop v0.6.5
[INFO] [stderr]     Checking gfx_device_gl v0.16.2
[INFO] [stderr]     Checking csv v1.1.5
[INFO] [stderr]     Checking jpeg-decoder v0.1.21
[INFO] [stderr]     Checking tinytemplate v1.2.0
[INFO] [stderr]     Checking wayland-cursor v0.28.3
[INFO] [stderr]     Checking wayland-egl v0.28.3
[INFO] [stderr]     Checking tiff v0.6.1
[INFO] [stderr]     Checking image v0.23.12
[INFO] [stderr]     Checking pistoncore-input v1.0.0
[INFO] [stderr]     Checking criterion v0.3.4
[INFO] [stderr]     Checking piston-gfx_texture v0.41.0
[INFO] [stderr]     Checking piston2d-opengl_graphics v0.77.0
[INFO] [stderr]     Checking piston2d-gfx_graphics v0.72.0
[INFO] [stderr]     Checking pistoncore-window v0.47.0
[INFO] [stderr]     Checking pistoncore-event_loop v0.52.0
[INFO] [stderr]     Checking piston v0.52.1
[INFO] [stderr]     Checking smithay-client-toolkit v0.12.2
[INFO] [stderr]     Checking winit v0.24.0
[INFO] [stderr]     Checking glutin v0.26.0
[INFO] [stderr]     Checking pistoncore-glutin_window v0.68.0
[INFO] [stderr]     Checking piston_window v0.117.0
[INFO] [stderr]     Checking mine_sweeper v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `ellipse` and `rectangle`
[INFO] [stdout]  --> src/mine_sweeper.rs:2:44
[INFO] [stdout]   |
[INFO] [stdout] 2 | use graphics::{color::BLACK, color::WHITE, ellipse, rectangle};
[INFO] [stdout]   |                                            ^^^^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `OpenGL`
[INFO] [stdout]  --> src/mine_sweeper.rs:3:35
[INFO] [stdout]   |
[INFO] [stdout] 3 | use opengl_graphics::{GlGraphics, OpenGL};
[INFO] [stdout]   |                                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ellipse` and `rectangle`
[INFO] [stdout]  --> src/mine_sweeper.rs:2:44
[INFO] [stdout]   |
[INFO] [stdout] 2 | use graphics::{color::BLACK, color::WHITE, ellipse, rectangle};
[INFO] [stdout]   |                                            ^^^^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `OpenGL`
[INFO] [stdout]  --> src/mine_sweeper.rs:3:35
[INFO] [stdout]   |
[INFO] [stdout] 3 | use opengl_graphics::{GlGraphics, OpenGL};
[INFO] [stdout]   |                                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `time::SystemTime`
[INFO] [stdout]  --> src/bin/alpha_ai_noui_async.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::{time::SystemTime};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude::*`
[INFO] [stdout]  --> src/bin/alpha_ai_noui_async.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rayon::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `time::SystemTime`
[INFO] [stdout]  --> src/bin/alpha_ai_noui_async.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::{time::SystemTime};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude::*`
[INFO] [stdout]  --> src/bin/alpha_ai_noui_async.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rayon::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> benches/../src/bin/alpha_ai.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restart` is never used
[INFO] [stdout]   --> benches/../src/bin/alpha_ai.rs:88:4
[INFO] [stdout]    |
[INFO] [stdout] 88 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &...
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_ai`, `search_field`, and `eval_cell_for_safe_surrounding_reveals` are never used
[INFO] [stdout]    --> benches/../src/bin/alpha_ai.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl AlphaAI {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub fn update_ai(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     fn search_field(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 412 |     fn eval_cell_for_safe_surrounding_reveals(&mut self, mine_sweeper: &mut MineSweeper, target: [usize;2]) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> benches/../src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let mut mine_sweeper: MineSweeper;
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut times: Vec<(Duration, usize)> = Vec::with_capacity(1000);
[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/bin/alpha_ai_noui_async.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut alpha_ai: AlphaAI = AlphaAI::new(mine_sweeper.cols(), mine_sweeper.rows());
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `times`
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut times: Vec<(Duration, usize)> = Vec::with_capacity(1000);
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_times`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha_ai`
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut alpha_ai: AlphaAI = AlphaAI::new(mine_sweeper.cols(), mine_sweeper.rows());
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha_ai`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restart` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:88:4
[INFO] [stdout]    |
[INFO] [stdout] 88 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &...
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Reveal` and `Flag` are never constructed
[INFO] [stdout]    --> src/bin/alpha_ai.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 105 | pub enum AiActions {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 106 |     Reveal,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 107 |     Flag,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `action_queue`, `step`, `starts`, `ends`, and `safes` are never read
[INFO] [stdout]    --> src/bin/alpha_ai.rs:111:5
[INFO] [stdout]     |
[INFO] [stdout] 110 | pub struct AlphaAI {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] 111 |     action_queue: VecDeque<(AiActions, [usize;2])>,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout] 112 |     pub step: usize,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 113 |     starts: Vec<(usize, usize)>,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 114 |     ends: Vec<(usize, usize)>,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 115 |     safes: Vec<Vec<bool>>,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/bin/alpha_ai.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl AlphaAI {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub fn update_ai(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 150 |     pub fn update_ai_async(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     fn reveal_random(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 187 |     fn reveal_least_risky(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 215 |     fn calculate_risks(&mut self, mine_sweeper: &mut MineSweeper) -> Vec<Vec<Option<f32>>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     fn search_field(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 267 |     fn search_field_async(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 296 |     fn update_skips(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 328 |     fn create_skip(&mut self, x:  &mut usize, y:  &mut usize, skip:  &mut usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 344 |     fn update_skip(&mut self, x:  &mut usize, y:  &mut usize, skip:  &mut usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 380 |     fn try_skip(&mut self, x: &mut usize, y: &mut usize, skip: &mut usize) -> bool {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 393 |     fn generate_unskipped_indexes_array(&mut self, mine_sweeper: &mut MineSweeper) -> Vec<[usize;2]> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 412 |     fn eval_cell_for_safe_surrounding_reveals(&mut self, mine_sweeper: &mut MineSweeper, target: [usize;2]) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 441 |     fn eval_cell_for_safe_surrounding_reveals_async(&self, mine_sweeper:  &MineSweeper, target: [usize;2]) -> (bool, Vec<(AiActions...
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 471 |     fn count_surrounding_possible_mines(mine_sweeper: &MineSweeper, target: [usize;2]) -> Result<(u8, Vec<[usize;2]>), &str>{
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restart` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:88:4
[INFO] [stdout]    |
[INFO] [stdout] 88 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &...
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_ai`, `search_field`, and `eval_cell_for_safe_surrounding_reveals` are never used
[INFO] [stdout]    --> src/bin/alpha_ai.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl AlphaAI {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub fn update_ai(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     fn search_field(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 412 |     fn eval_cell_for_safe_surrounding_reveals(&mut self, mine_sweeper: &mut MineSweeper, target: [usize;2]) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let mut mine_sweeper: MineSweeper;
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut times: Vec<(Duration, usize)> = Vec::with_capacity(1000);
[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/bin/alpha_ai_noui_async.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut alpha_ai: AlphaAI = AlphaAI::new(mine_sweeper.cols(), mine_sweeper.rows());
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `times`
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut times: Vec<(Duration, usize)> = Vec::with_capacity(1000);
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_times`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha_ai`
[INFO] [stdout]   --> src/bin/alpha_ai_noui_async.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut alpha_ai: AlphaAI = AlphaAI::new(mine_sweeper.cols(), mine_sweeper.rows());
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha_ai`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restart` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:88:4
[INFO] [stdout]    |
[INFO] [stdout] 88 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &...
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Reveal` and `Flag` are never constructed
[INFO] [stdout]    --> src/bin/alpha_ai.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 105 | pub enum AiActions {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 106 |     Reveal,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 107 |     Flag,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `action_queue`, `step`, `starts`, `ends`, and `safes` are never read
[INFO] [stdout]    --> src/bin/alpha_ai.rs:111:5
[INFO] [stdout]     |
[INFO] [stdout] 110 | pub struct AlphaAI {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] 111 |     action_queue: VecDeque<(AiActions, [usize;2])>,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout] 112 |     pub step: usize,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 113 |     starts: Vec<(usize, usize)>,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 114 |     ends: Vec<(usize, usize)>,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 115 |     safes: Vec<Vec<bool>>,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/bin/alpha_ai.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl AlphaAI {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub fn update_ai(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 150 |     pub fn update_ai_async(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     fn reveal_random(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 187 |     fn reveal_least_risky(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 215 |     fn calculate_risks(&mut self, mine_sweeper: &mut MineSweeper) -> Vec<Vec<Option<f32>>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     fn search_field(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 267 |     fn search_field_async(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 296 |     fn update_skips(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 328 |     fn create_skip(&mut self, x:  &mut usize, y:  &mut usize, skip:  &mut usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 344 |     fn update_skip(&mut self, x:  &mut usize, y:  &mut usize, skip:  &mut usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 380 |     fn try_skip(&mut self, x: &mut usize, y: &mut usize, skip: &mut usize) -> bool {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 393 |     fn generate_unskipped_indexes_array(&mut self, mine_sweeper: &mut MineSweeper) -> Vec<[usize;2]> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 412 |     fn eval_cell_for_safe_surrounding_reveals(&mut self, mine_sweeper: &mut MineSweeper, target: [usize;2]) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 441 |     fn eval_cell_for_safe_surrounding_reveals_async(&self, mine_sweeper:  &MineSweeper, target: [usize;2]) -> (bool, Vec<(AiActions...
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 471 |     fn count_surrounding_possible_mines(mine_sweeper: &MineSweeper, target: [usize;2]) -> Result<(u8, Vec<[usize;2]>), &str>{
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restart` is never used
[INFO] [stdout]   --> src/bin/alpha_ai.rs:88:4
[INFO] [stdout]    |
[INFO] [stdout] 88 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &...
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_ai`, `search_field`, and `eval_cell_for_safe_surrounding_reveals` are never used
[INFO] [stdout]    --> src/bin/alpha_ai.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl AlphaAI {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub fn update_ai(&mut self, mine_sweeper: &mut MineSweeper) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     fn search_field(&mut self, mine_sweeper: &mut MineSweeper) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 412 |     fn eval_cell_for_safe_surrounding_reveals(&mut self, mine_sweeper: &mut MineSweeper, target: [usize;2]) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]    --> src/bin/alpha_ai.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |             for elem in x.1.pop() {
[INFO] [stdout]     |                         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             while let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]     |
[INFO] [stdout] 285 -             for elem in x.1.pop() {
[INFO] [stdout] 285 +             if let Some(elem) = x.1.pop() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.94s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.4, nom v6.1.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 6`
[INFO] running `Command { std: "docker" "inspect" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a", kill_on_drop: false }`
[INFO] [stdout] 3ab0c5dd75bde36b8312a90df9df8b357b2cb32c177947bd532a97aeb81f739a
