[INFO] cloning repository https://github.com/seun-ja/growing-tree [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seun-ja/growing-tree" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseun-ja%2Fgrowing-tree", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseun-ja%2Fgrowing-tree'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 42e705fa7be10d539565487888912a626d35c018 [INFO] building seun-ja/growing-tree against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseun-ja%2Fgrowing-tree" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/seun-ja/growing-tree on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/seun-ja/growing-tree [INFO] finished tweaking git repo https://github.com/seun-ja/growing-tree [INFO] tweaked toml for git repo https://github.com/seun-ja/growing-tree written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/seun-ja/growing-tree 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85ffbb78a5af6960a8773964fb5293981cbce6065d392c410c80119419f45240 [INFO] running `Command { std: "docker" "start" "-a" "85ffbb78a5af6960a8773964fb5293981cbce6065d392c410c80119419f45240", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85ffbb78a5af6960a8773964fb5293981cbce6065d392c410c80119419f45240", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85ffbb78a5af6960a8773964fb5293981cbce6065d392c410c80119419f45240", kill_on_drop: false }` [INFO] [stdout] 85ffbb78a5af6960a8773964fb5293981cbce6065d392c410c80119419f45240 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a95143f6b0862060fe531498fbaabbd6885e5f3eb63eb50f27ebfa1e6bf1298 [INFO] running `Command { std: "docker" "start" "-a" "9a95143f6b0862060fe531498fbaabbd6885e5f3eb63eb50f27ebfa1e6bf1298", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling growing_tree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/lib.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/lib.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | fn get_index(&self, scene: Scene) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/lib.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | fn cell_move(&self, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELLS` is never used [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CELLS: usize = 25; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cells` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 17 | cells: Arc>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_maze`, `choose_index`, `choose_next`, `delete_cell`, and `empty` are never used [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Scene { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 21 | fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn create_maze() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn choose_index(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn choose_next(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn delete_cell(&self, index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `passage` and `get_position` are never used [INFO] [stdout] --> src/lib.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 61 | fn passage(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_position(&self) -> (u16, u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/lib.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | struct Cell (u16, u16); [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_index`, and `cell_move` are never used [INFO] [stdout] --> src/lib.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Cell { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 75 | fn new(scene_height: u16) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn get_index(&self, scene: Scene) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn cell_move(&self, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_num` is never used [INFO] [stdout] --> src/lib.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn generate_num(max: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / self.cells.write().map( [INFO] [stdout] 43 | | |mut cells| { [INFO] [stdout] 44 | | cells.remove(index) [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = self.cells.write().map( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.20s [INFO] running `Command { std: "docker" "inspect" "9a95143f6b0862060fe531498fbaabbd6885e5f3eb63eb50f27ebfa1e6bf1298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a95143f6b0862060fe531498fbaabbd6885e5f3eb63eb50f27ebfa1e6bf1298", kill_on_drop: false }` [INFO] [stdout] 9a95143f6b0862060fe531498fbaabbd6885e5f3eb63eb50f27ebfa1e6bf1298 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c0a594ebdadaa92ee4693d4f49c6ae38e4a512016f686e57ff43d0346cd03cc [INFO] running `Command { std: "docker" "start" "-a" "2c0a594ebdadaa92ee4693d4f49c6ae38e4a512016f686e57ff43d0346cd03cc", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/lib.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/lib.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | fn get_index(&self, scene: Scene) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/lib.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | fn cell_move(&self, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELLS` is never used [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CELLS: usize = 25; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cells` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 17 | cells: Arc>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_maze`, `choose_index`, `choose_next`, `delete_cell`, and `empty` are never used [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Scene { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 21 | fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn create_maze() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn choose_index(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn choose_next(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn delete_cell(&self, index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `passage` and `get_position` are never used [INFO] [stdout] --> src/lib.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 61 | fn passage(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_position(&self) -> (u16, u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling growing_tree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/lib.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | struct Cell (u16, u16); [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_index`, and `cell_move` are never used [INFO] [stdout] --> src/lib.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Cell { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 75 | fn new(scene_height: u16) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn get_index(&self, scene: Scene) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn cell_move(&self, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_num` is never used [INFO] [stdout] --> src/lib.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn generate_num(max: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / self.cells.write().map( [INFO] [stdout] 43 | | |mut cells| { [INFO] [stdout] 44 | | cells.remove(index) [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = self.cells.write().map( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/lib.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/lib.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | fn get_index(&self, scene: Scene) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/lib.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | fn cell_move(&self, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELLS` is never used [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CELLS: usize = 25; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cells` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 17 | cells: Arc>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_maze`, `choose_index`, `choose_next`, `delete_cell`, and `empty` are never used [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Scene { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 21 | fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn create_maze() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn choose_index(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn choose_next(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn delete_cell(&self, index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `passage` and `get_position` are never used [INFO] [stdout] --> src/lib.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 61 | fn passage(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_position(&self) -> (u16, u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/lib.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | struct Cell (u16, u16); [INFO] [stdout] | ---- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_index`, and `cell_move` are never used [INFO] [stdout] --> src/lib.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Cell { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 75 | fn new(scene_height: u16) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn get_index(&self, scene: Scene) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn cell_move(&self, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_num` is never used [INFO] [stdout] --> src/lib.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn generate_num(max: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / self.cells.write().map( [INFO] [stdout] 43 | | |mut cells| { [INFO] [stdout] 44 | | cells.remove(index) [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = self.cells.write().map( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "2c0a594ebdadaa92ee4693d4f49c6ae38e4a512016f686e57ff43d0346cd03cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c0a594ebdadaa92ee4693d4f49c6ae38e4a512016f686e57ff43d0346cd03cc", kill_on_drop: false }` [INFO] [stdout] 2c0a594ebdadaa92ee4693d4f49c6ae38e4a512016f686e57ff43d0346cd03cc