[INFO] cloning repository https://github.com/serge-klochkov/minesweeper-wasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/serge-klochkov/minesweeper-wasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserge-klochkov%2Fminesweeper-wasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserge-klochkov%2Fminesweeper-wasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e096c8e3720d45acaec0c2800cf05f1633b4bde [INFO] checking serge-klochkov/minesweeper-wasm against master#385fa9d845dd326c6bbfd58c22244215e431948a for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserge-klochkov%2Fminesweeper-wasm" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/serge-klochkov/minesweeper-wasm on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/serge-klochkov/minesweeper-wasm [INFO] finished tweaking git repo https://github.com/serge-klochkov/minesweeper-wasm [INFO] tweaked toml for git repo https://github.com/serge-klochkov/minesweeper-wasm written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/serge-klochkov/minesweeper-wasm 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3ed57ba58ac70d0b275d3569974fd15632e4cdf2a36cb5f2c008bdb47d820d8 [INFO] running `Command { std: "docker" "start" "-a" "a3ed57ba58ac70d0b275d3569974fd15632e4cdf2a36cb5f2c008bdb47d820d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3ed57ba58ac70d0b275d3569974fd15632e4cdf2a36cb5f2c008bdb47d820d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3ed57ba58ac70d0b275d3569974fd15632e4cdf2a36cb5f2c008bdb47d820d8", kill_on_drop: false }` [INFO] [stdout] a3ed57ba58ac70d0b275d3569974fd15632e4cdf2a36cb5f2c008bdb47d820d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bafadfd57def3ba5f0d137278cf48a1680d61ef6d278eb296f2c1cb095edc8d4 [INFO] running `Command { std: "docker" "start" "-a" "bafadfd57def3ba5f0d137278cf48a1680d61ef6d278eb296f2c1cb095edc8d4", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Checking minesweeper-wasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type alias `Position` is never used [INFO] [stdout] --> src/minesweeper.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Position = (usize, usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cell` is never used [INFO] [stdout] --> src/minesweeper.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Cell { [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: struct `Minesweeper` is never constructed [INFO] [stdout] --> src/minesweeper.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Minesweeper { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Minesweeper` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/minesweeper.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Minesweeper { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(width: usize, height: usize, mines_count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn restart(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn toggle_flag(&mut self, pos: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn open(&mut self, position: Position) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn init_cells(width: usize, height: usize, mines_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn get_index(&self, (x, y): &Position) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn find_neighbors(&self, (x, y): Position) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn find_neighbors_mines_count(&self, pos: Position) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn get_has_mine(&self, position: &Position) -> (usize, bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_width` is never used [INFO] [stdout] --> src/wasm.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_width() -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_height` is never used [INFO] [stdout] --> src/wasm.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_height() -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toggle_flag` is never used [INFO] [stdout] --> src/wasm.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn toggle_flag(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cells` is never used [INFO] [stdout] --> src/wasm.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_cells() -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_cell` is never used [INFO] [stdout] --> src/wasm.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn open_cell(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restart` is never used [INFO] [stdout] --> src/wasm.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn restart() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/minesweeper.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Open(usize), [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | Open(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mines_count` is never read [INFO] [stdout] --> src/minesweeper.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Minesweeper { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub mines_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Minesweeper` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `restart` is never used [INFO] [stdout] --> src/minesweeper.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Minesweeper { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn restart(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_width` is never used [INFO] [stdout] --> src/wasm.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_width() -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_height` is never used [INFO] [stdout] --> src/wasm.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_height() -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toggle_flag` is never used [INFO] [stdout] --> src/wasm.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn toggle_flag(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cells` is never used [INFO] [stdout] --> src/wasm.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_cells() -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_cell` is never used [INFO] [stdout] --> src/wasm.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn open_cell(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restart` is never used [INFO] [stdout] --> src/wasm.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn restart() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.04s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.80 [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" "bafadfd57def3ba5f0d137278cf48a1680d61ef6d278eb296f2c1cb095edc8d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bafadfd57def3ba5f0d137278cf48a1680d61ef6d278eb296f2c1cb095edc8d4", kill_on_drop: false }` [INFO] [stdout] bafadfd57def3ba5f0d137278cf48a1680d61ef6d278eb296f2c1cb095edc8d4 [INFO] checking serge-klochkov/minesweeper-wasm against try#2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserge-klochkov%2Fminesweeper-wasm" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/serge-klochkov/minesweeper-wasm on toolchain 2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/serge-klochkov/minesweeper-wasm [INFO] finished tweaking git repo https://github.com/serge-klochkov/minesweeper-wasm [INFO] tweaked toml for git repo https://github.com/serge-klochkov/minesweeper-wasm written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/serge-klochkov/minesweeper-wasm 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" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b849ebeaeb1834002998255bb3ba1dc94963ac1e997b361e13d1d3b9c45160e8 [INFO] running `Command { std: "docker" "start" "-a" "b849ebeaeb1834002998255bb3ba1dc94963ac1e997b361e13d1d3b9c45160e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b849ebeaeb1834002998255bb3ba1dc94963ac1e997b361e13d1d3b9c45160e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b849ebeaeb1834002998255bb3ba1dc94963ac1e997b361e13d1d3b9c45160e8", kill_on_drop: false }` [INFO] [stdout] b849ebeaeb1834002998255bb3ba1dc94963ac1e997b361e13d1d3b9c45160e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35b5bce76394eafe38e97802b1371eeeeb612b9660be7deeb3277105bdacf05a [INFO] running `Command { std: "docker" "start" "-a" "35b5bce76394eafe38e97802b1371eeeeb612b9660be7deeb3277105bdacf05a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Checking minesweeper-wasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/minesweeper.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Open(usize), [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | Open(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mines_count` is never read [INFO] [stdout] --> src/minesweeper.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Minesweeper { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub mines_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Minesweeper` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `restart` is never used [INFO] [stdout] --> src/minesweeper.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Minesweeper { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn restart(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_width` is never used [INFO] [stdout] --> src/wasm.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_width() -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_height` is never used [INFO] [stdout] --> src/wasm.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_height() -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toggle_flag` is never used [INFO] [stdout] --> src/wasm.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn toggle_flag(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cells` is never used [INFO] [stdout] --> src/wasm.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_cells() -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_cell` is never used [INFO] [stdout] --> src/wasm.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn open_cell(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restart` is never used [INFO] [stdout] --> src/wasm.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn restart() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Position` is never used [INFO] [stdout] --> src/minesweeper.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Position = (usize, usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cell` is never used [INFO] [stdout] --> src/minesweeper.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Cell { [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: struct `Minesweeper` is never constructed [INFO] [stdout] --> src/minesweeper.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Minesweeper { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Minesweeper` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/minesweeper.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Minesweeper { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(width: usize, height: usize, mines_count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn restart(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn toggle_flag(&mut self, pos: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn open(&mut self, position: Position) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn init_cells(width: usize, height: usize, mines_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn get_index(&self, (x, y): &Position) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn find_neighbors(&self, (x, y): Position) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn find_neighbors_mines_count(&self, pos: Position) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn get_has_mine(&self, position: &Position) -> (usize, bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_width` is never used [INFO] [stdout] --> src/wasm.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_width() -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_height` is never used [INFO] [stdout] --> src/wasm.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_height() -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toggle_flag` is never used [INFO] [stdout] --> src/wasm.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn toggle_flag(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cells` is never used [INFO] [stdout] --> src/wasm.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_cells() -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_cell` is never used [INFO] [stdout] --> src/wasm.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn open_cell(x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restart` is never used [INFO] [stdout] --> src/wasm.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn restart() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.80s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.80 [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" "35b5bce76394eafe38e97802b1371eeeeb612b9660be7deeb3277105bdacf05a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35b5bce76394eafe38e97802b1371eeeeb612b9660be7deeb3277105bdacf05a", kill_on_drop: false }` [INFO] [stdout] 35b5bce76394eafe38e97802b1371eeeeb612b9660be7deeb3277105bdacf05a