[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] 881555b9923163aa07a7c78e3a93448cffb24274 [INFO] checking AlexanderReaper7/mine_sweeper against master#b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 for pr-79470 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderReaper7%2Fmine_sweeper" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlexanderReaper7/mine_sweeper on toolchain b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-13/source/Cargo.toml [INFO] crate git repo https://github.com/AlexanderReaper7/mine_sweeper already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "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] edeb56ec286ce97df938e6a8f4fc55ac68b8a379917fb598ac4abe4c2e3fd2f0 [INFO] running `Command { std: "docker" "start" "-a" "edeb56ec286ce97df938e6a8f4fc55ac68b8a379917fb598ac4abe4c2e3fd2f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edeb56ec286ce97df938e6a8f4fc55ac68b8a379917fb598ac4abe4c2e3fd2f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edeb56ec286ce97df938e6a8f4fc55ac68b8a379917fb598ac4abe4c2e3fd2f0", kill_on_drop: false }` [INFO] [stdout] edeb56ec286ce97df938e6a8f4fc55ac68b8a379917fb598ac4abe4c2e3fd2f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5553cb94fd9f83849bdff053f183115db0079a34a0e932f7e4c6864a36efcf7 [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" "e5553cb94fd9f83849bdff053f183115db0079a34a0e932f7e4c6864a36efcf7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking weezl v0.1.3 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking bytemuck v1.4.1 [INFO] [stderr] Checking piston-texture v0.8.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking interpolation v0.2.0 [INFO] [stderr] Checking piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking shader_version v0.7.0 [INFO] [stderr] Checking libloading v0.6.6 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking gif v0.11.1 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking piston2d-graphics v0.39.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking tiff v0.6.0 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking image v0.23.12 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking piston-gfx_texture v0.41.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.76.0 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Checking piston2d-gfx_graphics v0.72.0 [INFO] [stderr] Checking pistoncore-input v1.0.0 [INFO] [stderr] Checking glutin v0.21.2 [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 pistoncore-glutin_window v0.67.1 [INFO] [stderr] Checking piston_window v0.116.0 [INFO] [stderr] Checking mine_sweeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Ellipse`, `Line`, `circle_arc`, `ellipse`, `grid::Grid`, `rectangle` [INFO] [stdout] --> src/mine_sweeper.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use graphics::{Ellipse, Line, circle_arc, color::BLACK, color::WHITE, grid::Grid, ellipse, rectangle}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGL` [INFO] [stdout] --> src/mine_sweeper.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use opengl_graphics::{GlGraphics, OpenGL}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mine_field::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use mine_field::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ellipse`, `Line`, `circle_arc`, `ellipse`, `grid::Grid`, `rectangle` [INFO] [stdout] --> src/mine_sweeper.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use graphics::{Ellipse, Line, circle_arc, color::BLACK, color::WHITE, grid::Grid, ellipse, rectangle}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGL` [INFO] [stdout] --> src/mine_sweeper.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use opengl_graphics::{GlGraphics, OpenGL}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mine_field::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use mine_field::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ellipse`, `Line`, `circle_arc`, `ellipse`, `grid::Grid`, `rectangle` [INFO] [stdout] --> src/mine_sweeper.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use graphics::{Ellipse, Line, circle_arc, color::BLACK, color::WHITE, grid::Grid, ellipse, rectangle}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGL` [INFO] [stdout] --> src/mine_sweeper.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use opengl_graphics::{GlGraphics, OpenGL}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ellipse`, `Line`, `circle_arc`, `ellipse`, `grid::Grid`, `rectangle` [INFO] [stdout] --> src/mine_sweeper.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use graphics::{Ellipse, Line, circle_arc, color::BLACK, color::WHITE, grid::Grid, ellipse, rectangle}; [INFO] [stdout] | ^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGL` [INFO] [stdout] --> src/mine_sweeper.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use opengl_graphics::{GlGraphics, OpenGL}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left_click_cell` [INFO] [stdout] --> src/mine_sweeper.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn left_click_cell(&mut self, cell_pos: [usize;2]) { [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: `left_click_cell` [INFO] [stdout] --> src/mine_sweeper.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn left_click_cell(&mut self, cell_pos: [usize;2]) { [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: `right_click_cell` [INFO] [stdout] --> src/mine_sweeper.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn right_click_cell(&mut self, cell_pos: [usize;2]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_click_cell` [INFO] [stdout] --> src/mine_sweeper.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn right_click_cell(&mut self, cell_pos: [usize;2]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/mine_sweeper.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | self.reveal_cell( [x as usize, y as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/alpha_ai.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | if let Some(args) = e.update_args() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/alpha_ai.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let time = SystemTime::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/alpha_ai.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | if let Some(args) = e.update_args() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/mine_sweeper.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | self.reveal_cell( [x as usize, y as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/alpha_ai.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let time = SystemTime::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COLORS` [INFO] [stdout] --> src/mine_sweeper.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub const COLORS: [[f32; 4]; 8] = [ [INFO] [stdout] 8 | | [0.0,0.0,1.0,1.0], // Blue [INFO] [stdout] 9 | | [0.0,1.0,0.0,1.0], // Green [INFO] [stdout] 10 | | [1.0,0.0,0.0,1.0], // Red [INFO] [stdout] ... | [INFO] [stdout] 15 | | [0.65,0.0,0.55,1.0], // purple [INFO] [stdout] 16 | | ]; [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: `render` [INFO] [stdout] --> src/mine_sweeper.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn render(&mut self, args: &RenderArgs, gl: &mut GlGraphics) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left_click` [INFO] [stdout] --> src/mine_sweeper.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn left_click(&mut self, mouse_pos: [f64;2]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_click` [INFO] [stdout] --> src/mine_sweeper.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn right_click(&mut self, mouse_pos: [f64;2]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_from_position` [INFO] [stdout] --> src/mine_sweeper.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | fn get_cell_from_position(&self, position: [f64;2]) -> [usize;2] { //TODO: add bounds checking and return a result instead [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/alpha_ai.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `restart` [INFO] [stdout] --> src/alpha_ai.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &mut V... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EvalSurroundingReveals` [INFO] [stdout] --> src/alpha_ai.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | EvalSurroundingReveals [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reveal_least_risky` [INFO] [stdout] --> src/alpha_ai.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | fn reveal_least_risky(&mut self, mine_sweeper: &mut MineSweeper) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_risks` [INFO] [stdout] --> src/alpha_ai.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 287 | fn calculate_risks(&mut self, mine_sweeper: &mut MineSweeper) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COLORS` [INFO] [stdout] --> src/mine_sweeper.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub const COLORS: [[f32; 4]; 8] = [ [INFO] [stdout] 8 | | [0.0,0.0,1.0,1.0], // Blue [INFO] [stdout] 9 | | [0.0,1.0,0.0,1.0], // Green [INFO] [stdout] 10 | | [1.0,0.0,0.0,1.0], // Red [INFO] [stdout] ... | [INFO] [stdout] 15 | | [0.65,0.0,0.55,1.0], // purple [INFO] [stdout] 16 | | ]; [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: `render` [INFO] [stdout] --> src/mine_sweeper.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn render(&mut self, args: &RenderArgs, gl: &mut GlGraphics) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left_click` [INFO] [stdout] --> src/mine_sweeper.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn left_click(&mut self, mouse_pos: [f64;2]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_click` [INFO] [stdout] --> src/mine_sweeper.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn right_click(&mut self, mouse_pos: [f64;2]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_from_position` [INFO] [stdout] --> src/mine_sweeper.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | fn get_cell_from_position(&self, position: [f64;2]) -> [usize;2] { //TODO: add bounds checking and return a result instead [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/alpha_ai.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `restart` [INFO] [stdout] --> src/alpha_ai.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn restart(alpha_ai: &mut AlphaAI, mine_sweeper: &mut MineSweeper, window: &mut PistonWindow, wins: &usize, losses: &usize, times: &mut V... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EvalSurroundingReveals` [INFO] [stdout] --> src/alpha_ai.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | EvalSurroundingReveals [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reveal_least_risky` [INFO] [stdout] --> src/alpha_ai.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | fn reveal_least_risky(&mut self, mine_sweeper: &mut MineSweeper) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_risks` [INFO] [stdout] --> src/alpha_ai.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 287 | fn calculate_risks(&mut self, mine_sweeper: &mut MineSweeper) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/mine_sweeper.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | self.reveal_cell( [x as usize, y as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/mine_sweeper.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | self.reveal_cell( [x as usize, y as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 53s [INFO] running `Command { std: "docker" "inspect" "e5553cb94fd9f83849bdff053f183115db0079a34a0e932f7e4c6864a36efcf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5553cb94fd9f83849bdff053f183115db0079a34a0e932f7e4c6864a36efcf7", kill_on_drop: false }` [INFO] [stdout] e5553cb94fd9f83849bdff053f183115db0079a34a0e932f7e4c6864a36efcf7