[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 db8f076d2619ce2585b0380dda06e8da25a40da4 for pr-163699 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderReaper7%2Fmine_sweeper" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AlexanderReaper7/mine_sweeper on toolchain db8f076d2619ce2585b0380dda06e8da25a40da4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db8f076d2619ce2585b0380dda06e8da25a40da4" "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" "+db8f076d2619ce2585b0380dda06e8da25a40da4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memoffset v0.6.1 [INFO] [stderr] Downloaded const_fn v0.4.5 [INFO] [stderr] Downloaded crossbeam-utils v0.8.1 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.1 [INFO] [stderr] Downloaded oorandom v11.1.3 [INFO] [stderr] Downloaded cast v0.2.3 [INFO] [stderr] Downloaded wayland-sys v0.28.3 [INFO] [stderr] Downloaded plotters-svg v0.3.0 [INFO] [stderr] Downloaded wayland-cursor v0.28.3 [INFO] [stderr] Downloaded thiserror-impl v1.0.23 [INFO] [stderr] Downloaded wayland-egl v0.28.3 [INFO] [stderr] Downloaded adler v0.2.3 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.70 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.70 [INFO] [stderr] Downloaded plotters-backend v0.3.0 [INFO] [stderr] Downloaded tinytemplate v1.2.0 [INFO] [stderr] Downloaded quote v1.0.8 [INFO] [stderr] Downloaded wayland-commons v0.28.3 [INFO] [stderr] Downloaded walkdir v2.3.1 [INFO] [stderr] Downloaded redox_syscall v0.1.57 [INFO] [stderr] Downloaded lock_api v0.4.2 [INFO] [stderr] Downloaded thiserror v1.0.23 [INFO] [stderr] Downloaded byteorder v1.4.2 [INFO] [stderr] Downloaded gif v0.11.1 [INFO] [stderr] Downloaded bytemuck v1.5.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.70 [INFO] [stderr] Downloaded csv-core v0.1.10 [INFO] [stderr] Downloaded wayland-scanner v0.28.3 [INFO] [stderr] Downloaded parking_lot_core v0.8.2 [INFO] [stderr] Downloaded once_cell v1.5.2 [INFO] [stderr] Downloaded criterion-plot v0.4.3 [INFO] [stderr] Downloaded weezl v0.1.3 [INFO] [stderr] Downloaded piston2d-opengl_graphics v0.77.0 [INFO] [stderr] Downloaded half v1.7.1 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.70 [INFO] [stderr] Downloaded proc-macro2 v1.0.24 [INFO] [stderr] Downloaded miniz_oxide v0.4.3 [INFO] [stderr] Downloaded serde_cbor v0.11.1 [INFO] [stderr] Downloaded cc v1.0.66 [INFO] [stderr] Downloaded wayland-client v0.28.3 [INFO] [stderr] Downloaded js-sys v0.3.47 [INFO] [stderr] Downloaded pistoncore-glutin_window v0.68.0 [INFO] [stderr] Downloaded serde_derive v1.0.123 [INFO] [stderr] Downloaded serde v1.0.123 [INFO] [stderr] Downloaded criterion v0.3.4 [INFO] [stderr] Downloaded serde_json v1.0.61 [INFO] [stderr] Downloaded itertools v0.10.0 [INFO] [stderr] Downloaded regex-automata v0.1.9 [INFO] [stderr] Downloaded wayland-protocols v0.28.3 [INFO] [stderr] Downloaded bumpalo v3.5.0 [INFO] [stderr] Downloaded smithay-client-toolkit v0.12.2 [INFO] [stderr] Downloaded nom v6.1.0 [INFO] [stderr] Downloaded wasm-bindgen v0.2.70 [INFO] [stderr] Downloaded image v0.23.12 [INFO] [stderr] Downloaded regex v1.4.3 [INFO] [stderr] Downloaded syn v1.0.60 [INFO] [stderr] Downloaded jpeg-decoder v0.1.21 [INFO] [stderr] Downloaded regex-syntax v0.6.22 [INFO] [stderr] Downloaded khronos_api v2.2.0 [INFO] [stderr] Downloaded bstr v0.2.14 [INFO] [stderr] Downloaded libc v0.2.82 [INFO] [stderr] Downloaded web-sys v0.3.47 [INFO] [stderr] Downloaded csv v1.1.5 [INFO] [stderr] Downloaded plotters v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5 [INFO] running `Command { std: "docker" "start" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5", 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" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5" "/opt/rustwide/cargo-home/bin/cargo" "+db8f076d2619ce2585b0380dda06e8da25a40da4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5", 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" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5" "/opt/rustwide/cargo-home/bin/cargo" "+db8f076d2619ce2585b0380dda06e8da25a40da4" "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 proc-macro2 v1.0.24 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling wayland-sys v0.28.3 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking piston-float v1.0.0 [INFO] [stderr] Compiling wayland-scanner v0.28.3 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking num_cpus v1.13.0 [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] Compiling nom v6.1.0 [INFO] [stderr] Checking rayon-core v1.9.0 [INFO] [stderr] Checking piston-viewport v1.0.0 [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 same-file v1.0.6 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Checking rayon v1.5.0 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking weezl v0.1.3 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Compiling wayland-client v0.28.3 [INFO] [stderr] Compiling wayland-protocols v0.28.3 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking xcursor v0.3.3 [INFO] [stderr] Checking gif v0.11.1 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking jpeg-decoder v0.1.21 [INFO] [stderr] Checking wayland-commons v0.28.3 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking lock_api v0.4.2 [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 image v0.23.12 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking shader_version v0.7.0 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking wayland-cursor v0.28.3 [INFO] [stderr] Checking shared_library v0.1.9 [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 osmesa-sys v0.1.2 [INFO] [stderr] Checking piston2d-graphics v0.39.0 [INFO] [stderr] Checking wayland-egl v0.28.3 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking plotters-backend v0.3.0 [INFO] [stderr] Checking plotters-svg v0.3.0 [INFO] [stderr] Checking bstr v0.2.14 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking piston-gfx_texture v0.41.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.77.0 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking piston2d-gfx_graphics v0.72.0 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Checking tinytemplate v1.2.0 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking csv v1.1.5 [INFO] [stderr] Checking plotters v0.3.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking pistoncore-input v1.0.0 [INFO] [stderr] Checking criterion v0.3.4 [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] --> 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: 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>, [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>> { [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: 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>, [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>> { [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] --> 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 28s [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 7` [INFO] running `Command { std: "docker" "inspect" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5", kill_on_drop: false }` [INFO] [stdout] 5fafc2d01e72c8f3c5b5f5358e221d543c211a7851c90140cbbdd0ed84bfbeb5