[INFO] cloning repository https://github.com/strangelovephd/minesweeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/strangelovephd/minesweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrangelovephd%2Fminesweeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrangelovephd%2Fminesweeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ebc94507a558f3c8f62f0ad5a29af86bbf794e3 [INFO] testing strangelovephd/minesweeper against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrangelovephd%2Fminesweeper" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/strangelovephd/minesweeper [INFO] finished tweaking git repo https://github.com/strangelovephd/minesweeper [INFO] tweaked toml for git repo https://github.com/strangelovephd/minesweeper written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/strangelovephd/minesweeper on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/strangelovephd/minesweeper 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 69a3c7a628604559d5e4c8caebbbb457ef511daa0e1baed46ebec8f7421ca1a0 [INFO] running `Command { std: "docker" "start" "-a" "69a3c7a628604559d5e4c8caebbbb457ef511daa0e1baed46ebec8f7421ca1a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69a3c7a628604559d5e4c8caebbbb457ef511daa0e1baed46ebec8f7421ca1a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69a3c7a628604559d5e4c8caebbbb457ef511daa0e1baed46ebec8f7421ca1a0", kill_on_drop: false }` [INFO] [stdout] 69a3c7a628604559d5e4c8caebbbb457ef511daa0e1baed46ebec8f7421ca1a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eed9931e97a5b33113c31ebdae72ae56cab7293678bbb720cbfa34cf191f3c34 [INFO] running `Command { std: "docker" "start" "-a" "eed9931e97a5b33113c31ebdae72ae56cab7293678bbb720cbfa34cf191f3c34", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.29 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling khronos_api v3.0.0 [INFO] [stderr] Compiling nix v0.12.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling piston-float v0.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling rand_jitter v0.1.2 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling piston-viewport v0.5.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling serde v1.0.87 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling stb_truetype v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling same-file v1.0.4 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling downcast-rs v1.0.3 [INFO] [stderr] Compiling walkdir v2.2.7 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling smallvec v0.6.8 [INFO] [stderr] Compiling shader_version v0.3.0 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling rand_os v0.1.2 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling num_cpus v1.9.0 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Compiling wayland-scanner v0.21.11 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling wayland-sys v0.21.11 [INFO] [stderr] Compiling approx v0.3.1 [INFO] [stderr] Compiling ordered-float v1.0.1 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling glutin v0.19.0 [INFO] [stderr] Compiling rusttype v0.7.4 [INFO] [stderr] Compiling deflate v0.7.19 [INFO] [stderr] Compiling inflate v0.4.4 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling andrew v0.1.6 [INFO] [stderr] Compiling gif v0.10.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling vecmath v0.3.1 [INFO] [stderr] Compiling png v0.14.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling safe-transmute v0.10.1 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling piston-texture v0.6.0 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling piston2d-graphics v0.30.0 [INFO] [stderr] Compiling wayland-client v0.21.11 [INFO] [stderr] Compiling wayland-protocols v0.21.11 [INFO] [stderr] Compiling serde_derive v1.0.87 [INFO] [stderr] Compiling wayland-commons v0.21.11 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling image v0.21.0 [INFO] [stderr] Compiling pistoncore-input v0.23.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.59.0 [INFO] [stderr] Compiling pistoncore-window v0.35.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.40.0 [INFO] [stderr] Compiling piston v0.40.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.4 [INFO] [stderr] Compiling winit v0.18.1 [INFO] [stderr] Compiling pistoncore-glutin_window v0.52.0 [INFO] [stderr] Compiling minesweeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `temp_val` [INFO] [stdout] --> src/minesweeper.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let temp_val: i32 = index as i32; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/minesweeper_controller.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/minesweeper_controller.rs:27:61 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/minesweeper_controller.rs:27:72 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut minesweeper_controller = MinesweeperController::new(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: variants `Intermediate` and `Expert` are never constructed [INFO] [stdout] --> src/minesweeper.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum GameMode { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 17 | Beginner, [INFO] [stdout] 18 | Intermediate, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | Expert, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mine_number` is never read [INFO] [stdout] --> src/minesweeper.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Minesweeper { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 24 | pub size: usize, [INFO] [stdout] 25 | pub mine_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init` is never used [INFO] [stdout] --> src/minesweeper.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Minesweeper { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Open` is never constructed [INFO] [stdout] --> src/minesweeper.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | pub enum CellState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 92 | Open(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CellState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mine` and `state` are never read [INFO] [stdout] --> src/minesweeper.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 99 | pub mine: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 100 | pub adjacency_num: u8, [INFO] [stdout] 101 | pub state: CellState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `toggle` are never used [INFO] [stdout] --> src/minesweeper.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl Cell { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 105 | /// Creates a new Cell. [INFO] [stdout] 106 | pub fn new() -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn toggle(&mut self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cursor_pos` is never read [INFO] [stdout] --> src/minesweeper_controller.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MinesweeperController { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub cursor_pos: [f64; 2], [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `event` is never used [INFO] [stdout] --> src/minesweeper_controller.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MinesweeperController { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cell_open_color`, `cell_closed_color`, `outside_border_color`, and `hover_color_open` are never read [INFO] [stdout] --> src/minesweeper_view.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct MinesweeperViewSettings { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub cell_open_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | pub cell_closed_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub outside_border_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub hover_color_open: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: glutin v0.19.0, winit v0.18.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "eed9931e97a5b33113c31ebdae72ae56cab7293678bbb720cbfa34cf191f3c34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eed9931e97a5b33113c31ebdae72ae56cab7293678bbb720cbfa34cf191f3c34", kill_on_drop: false }` [INFO] [stdout] eed9931e97a5b33113c31ebdae72ae56cab7293678bbb720cbfa34cf191f3c34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4230ceb396ca4c9583fb562da593e2dfa9b005e6e7466ffd60a4fe5f09288ed3 [INFO] running `Command { std: "docker" "start" "-a" "4230ceb396ca4c9583fb562da593e2dfa9b005e6e7466ffd60a4fe5f09288ed3", kill_on_drop: false }` [INFO] [stderr] Compiling minesweeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `temp_val` [INFO] [stdout] --> src/minesweeper.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let temp_val: i32 = index as i32; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/minesweeper_controller.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/minesweeper_controller.rs:27:61 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/minesweeper_controller.rs:27:72 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut minesweeper_controller = MinesweeperController::new(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: variants `Intermediate` and `Expert` are never constructed [INFO] [stdout] --> src/minesweeper.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum GameMode { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 17 | Beginner, [INFO] [stdout] 18 | Intermediate, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | Expert, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mine_number` is never read [INFO] [stdout] --> src/minesweeper.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Minesweeper { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 24 | pub size: usize, [INFO] [stdout] 25 | pub mine_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init` is never used [INFO] [stdout] --> src/minesweeper.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Minesweeper { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Open` is never constructed [INFO] [stdout] --> src/minesweeper.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | pub enum CellState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 92 | Open(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CellState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mine` and `state` are never read [INFO] [stdout] --> src/minesweeper.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 99 | pub mine: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 100 | pub adjacency_num: u8, [INFO] [stdout] 101 | pub state: CellState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `toggle` are never used [INFO] [stdout] --> src/minesweeper.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl Cell { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 105 | /// Creates a new Cell. [INFO] [stdout] 106 | pub fn new() -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn toggle(&mut self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cursor_pos` is never read [INFO] [stdout] --> src/minesweeper_controller.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MinesweeperController { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub cursor_pos: [f64; 2], [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `event` is never used [INFO] [stdout] --> src/minesweeper_controller.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MinesweeperController { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cell_open_color`, `cell_closed_color`, `outside_border_color`, and `hover_color_open` are never read [INFO] [stdout] --> src/minesweeper_view.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct MinesweeperViewSettings { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub cell_open_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | pub cell_closed_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub outside_border_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub hover_color_open: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.58s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: glutin v0.19.0, winit v0.18.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "4230ceb396ca4c9583fb562da593e2dfa9b005e6e7466ffd60a4fe5f09288ed3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4230ceb396ca4c9583fb562da593e2dfa9b005e6e7466ffd60a4fe5f09288ed3", kill_on_drop: false }` [INFO] [stdout] 4230ceb396ca4c9583fb562da593e2dfa9b005e6e7466ffd60a4fe5f09288ed3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 33be49eafbb532f6982f0edd9fe4e8e18d90695b9d222d032faa303ddef5efe0 [INFO] running `Command { std: "docker" "start" "-a" "33be49eafbb532f6982f0edd9fe4e8e18d90695b9d222d032faa303ddef5efe0", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `temp_val` [INFO] [stderr] --> src/minesweeper.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | let temp_val: i32 = index as i32; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_val` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/minesweeper_controller.rs:27:46 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size` [INFO] [stderr] --> src/minesweeper_controller.rs:27:61 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/minesweeper_controller.rs:27:72 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | let mut minesweeper_controller = MinesweeperController::new(minesweeper); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Intermediate` and `Expert` are never constructed [INFO] [stderr] --> src/minesweeper.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum GameMode { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 17 | Beginner, [INFO] [stderr] 18 | Intermediate, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 19 | Expert, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `mine_number` is never read [INFO] [stderr] --> src/minesweeper.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct Minesweeper { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 24 | pub size: usize, [INFO] [stderr] 25 | pub mine_number: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `init` is never used [INFO] [stderr] --> src/minesweeper.rs:64:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl Minesweeper { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 64 | pub fn init(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Open` is never constructed [INFO] [stderr] --> src/minesweeper.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 91 | pub enum CellState { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 92 | Open(u8), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CellState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `mine` and `state` are never read [INFO] [stderr] --> src/minesweeper.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 98 | pub struct Cell { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 99 | pub mine: bool, [INFO] [stderr] | ^^^^ [INFO] [stderr] 100 | pub adjacency_num: u8, [INFO] [stderr] 101 | pub state: CellState, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Cell` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `toggle` are never used [INFO] [stderr] --> src/minesweeper.rs:106:12 [INFO] [stderr] | [INFO] [stderr] 104 | impl Cell { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 105 | /// Creates a new Cell. [INFO] [stderr] 106 | pub fn new() -> Cell { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 115 | pub fn toggle(&mut self) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `cursor_pos` is never read [INFO] [stderr] --> src/minesweeper_controller.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct MinesweeperController { [INFO] [stderr] | --------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 14 | pub cursor_pos: [f64; 2], [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `event` is never used [INFO] [stderr] --> src/minesweeper_controller.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl MinesweeperController { [INFO] [stderr] | -------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn event(&mut self, pos: [f64; 2], size: f64, e: &E) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `cell_open_color`, `cell_closed_color`, `outside_border_color`, and `hover_color_open` are never read [INFO] [stderr] --> src/minesweeper_view.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct MinesweeperViewSettings { [INFO] [stderr] | ----------------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 20 | pub cell_open_color: Color, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 21 | [INFO] [stderr] 22 | pub cell_closed_color: Color, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub outside_border_color: Color, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 27 | [INFO] [stderr] 28 | pub hover_color_open: Color, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `minesweeper` (bin "minesweeper" test) generated 14 warnings (run `cargo fix --bin "minesweeper" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: glutin v0.19.0, winit v0.18.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/minesweeper-d5108669566a3106) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "33be49eafbb532f6982f0edd9fe4e8e18d90695b9d222d032faa303ddef5efe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33be49eafbb532f6982f0edd9fe4e8e18d90695b9d222d032faa303ddef5efe0", kill_on_drop: false }` [INFO] [stdout] 33be49eafbb532f6982f0edd9fe4e8e18d90695b9d222d032faa303ddef5efe0