[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 absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserge-klochkov%2Fminesweeper-wasm" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-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-6-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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e09c59fe13786b7f3951baa2d8d6dbdb700dfd05c4be8494b1999d91b92626b9 [INFO] running `Command { std: "docker" "start" "-a" "e09c59fe13786b7f3951baa2d8d6dbdb700dfd05c4be8494b1999d91b92626b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e09c59fe13786b7f3951baa2d8d6dbdb700dfd05c4be8494b1999d91b92626b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e09c59fe13786b7f3951baa2d8d6dbdb700dfd05c4be8494b1999d91b92626b9", kill_on_drop: false }` [INFO] [stdout] e09c59fe13786b7f3951baa2d8d6dbdb700dfd05c4be8494b1999d91b92626b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 312ec9ccb5d0e273ceb0f8b951144f84575391372c249c53d89b99fd78f0095d [INFO] running `Command { std: "docker" "start" "-a" "312ec9ccb5d0e273ceb0f8b951144f84575391372c249c53d89b99fd78f0095d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Compiling quote v1.0.18 [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: 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: 9 warnings emitted [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.73s [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 4` [INFO] running `Command { std: "docker" "inspect" "312ec9ccb5d0e273ceb0f8b951144f84575391372c249c53d89b99fd78f0095d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "312ec9ccb5d0e273ceb0f8b951144f84575391372c249c53d89b99fd78f0095d", kill_on_drop: false }` [INFO] [stdout] 312ec9ccb5d0e273ceb0f8b951144f84575391372c249c53d89b99fd78f0095d [INFO] checking serge-klochkov/minesweeper-wasm against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserge-klochkov%2Fminesweeper-wasm" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/serge-klochkov/minesweeper-wasm on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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-6-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d87122a85fd1015945185c6e0faa7381da0a85ed17f29c1457587464d665a2d0 [INFO] running `Command { std: "docker" "start" "-a" "d87122a85fd1015945185c6e0faa7381da0a85ed17f29c1457587464d665a2d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d87122a85fd1015945185c6e0faa7381da0a85ed17f29c1457587464d665a2d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d87122a85fd1015945185c6e0faa7381da0a85ed17f29c1457587464d665a2d0", kill_on_drop: false }` [INFO] [stdout] d87122a85fd1015945185c6e0faa7381da0a85ed17f29c1457587464d665a2d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a864b39016e6294ff75f251c7190ddfc07e8e6773ede3d6735b052decdb0a2a [INFO] running `Command { std: "docker" "start" "-a" "1a864b39016e6294ff75f251c7190ddfc07e8e6773ede3d6735b052decdb0a2a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling log v0.4.17 [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 quote v1.0.18 [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 9.06s [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 3` [INFO] running `Command { std: "docker" "inspect" "1a864b39016e6294ff75f251c7190ddfc07e8e6773ede3d6735b052decdb0a2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a864b39016e6294ff75f251c7190ddfc07e8e6773ede3d6735b052decdb0a2a", kill_on_drop: false }` [INFO] [stdout] 1a864b39016e6294ff75f251c7190ddfc07e8e6773ede3d6735b052decdb0a2a