[INFO] cloning repository https://github.com/juanitoddd/rust-wasm-starter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/juanitoddd/rust-wasm-starter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuanitoddd%2Frust-wasm-starter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuanitoddd%2Frust-wasm-starter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81b0e5ae808aabc1e6da5f6ab76f055025b00cd0 [INFO] checking juanitoddd/rust-wasm-starter against master#8e37e151835d96d6a7415e93e6876561485a3354 for pr-134218 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuanitoddd%2Frust-wasm-starter" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/juanitoddd/rust-wasm-starter on toolchain 8e37e151835d96d6a7415e93e6876561485a3354 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e37e151835d96d6a7415e93e6876561485a3354" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/juanitoddd/rust-wasm-starter [INFO] finished tweaking git repo https://github.com/juanitoddd/rust-wasm-starter [INFO] tweaked toml for git repo https://github.com/juanitoddd/rust-wasm-starter written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/juanitoddd/rust-wasm-starter 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" "+8e37e151835d96d6a7415e93e6876561485a3354" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+8e37e151835d96d6a7415e93e6876561485a3354" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 061d7ec1d60e207c77a90bce02ca03d2d0da8a1648d3726249f401a49b468710 [INFO] running `Command { std: "docker" "start" "-a" "061d7ec1d60e207c77a90bce02ca03d2d0da8a1648d3726249f401a49b468710", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "061d7ec1d60e207c77a90bce02ca03d2d0da8a1648d3726249f401a49b468710", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "061d7ec1d60e207c77a90bce02ca03d2d0da8a1648d3726249f401a49b468710", kill_on_drop: false }` [INFO] [stdout] 061d7ec1d60e207c77a90bce02ca03d2d0da8a1648d3726249f401a49b468710 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+8e37e151835d96d6a7415e93e6876561485a3354" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23a3a28f9ecaf6cc0416a8a80f74dd92728aaaa8746fccb195a9626351a79fb5 [INFO] running `Command { std: "docker" "start" "-a" "23a3a28f9ecaf6cc0416a8a80f74dd92728aaaa8746fccb195a9626351a79fb5", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.64 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.64 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.64 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.64 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.64 [INFO] [stderr] Checking js-sys v0.3.40 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking web-sys v0.3.40 [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking gobblet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::game::utils::coord::Coord` [INFO] [stdout] --> src/game/manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::utils::coord::Coord; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::utils::coord::Coord` [INFO] [stdout] --> src/game/manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::utils::coord::Coord; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `player_number_match` [INFO] [stdout] --> src/game/manager.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game::utils::{PlayerNumber, player_number_match}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `js_sys::Math` [INFO] [stdout] --> src/game/manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use js_sys::Math; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `console_error_panic_hook` [INFO] [stdout] --> src/utils.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "console_error_panic_hook")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `wee_alloc` [INFO] [stdout] = help: consider adding `console_error_panic_hook` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::manager::Manager` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::game::manager::Manager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::utils::player_number_match` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::game::utils::player_number_match; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `player_number_match` [INFO] [stdout] --> src/game/manager.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game::utils::{PlayerNumber, player_number_match}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `js_sys::Math` [INFO] [stdout] --> src/game/manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use js_sys::Math; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `console_error_panic_hook` [INFO] [stdout] --> src/utils.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "console_error_panic_hook")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `wee_alloc` [INFO] [stdout] = help: consider adding `console_error_panic_hook` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::manager::Manager` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::game::manager::Manager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::utils::player_number_match` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::game::utils::player_number_match; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/game/logic/player.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(name: String, number: PlayerNumber) -> Player { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game/ui/graphics.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut rectangles: Vec = Vec::with_capacity(16); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `graphics` [INFO] [stdout] --> src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let graphics = Rc::new(RefCell::new(Graphics::new(canvas.clone()))); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_graphics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_circle_x_y` [INFO] [stdout] --> src/lib.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let original_circle_x_y = Rc::new(Cell::new((0.0, 0.0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_circle_x_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name1` [INFO] [stdout] --> src/lib.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn start_game(canvas: HtmlCanvasElement, name1: String, name2: String) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name2` [INFO] [stdout] --> src/lib.rs:34:61 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn start_game(canvas: HtmlCanvasElement, name1: String, name2: String) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PlayerNumber` is never used [INFO] [stdout] --> src/game/utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PlayerNumber { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerNumber` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/game/logic/player.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(name: String, number: PlayerNumber) -> Player { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `player_number_match` is never used [INFO] [stdout] --> src/game/utils/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn player_number_match(shape_owner: &PlayerNumber, current_turn: &PlayerNumber) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game/ui/graphics.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut rectangles: Vec = Vec::with_capacity(16); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/game/utils/coord.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Coord(u8, u8); [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Coord` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_row`, and `get_column` are never used [INFO] [stdout] --> src/game/utils/coord.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Coord { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(row: u8, column: u8) -> Coord { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn get_row(&self) -> &u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_column(&self) -> &u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `graphics` [INFO] [stdout] --> src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let graphics = Rc::new(RefCell::new(Graphics::new(canvas.clone()))); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_graphics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/game/logic/player.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_circle_x_y` [INFO] [stdout] --> src/lib.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let original_circle_x_y = Rc::new(Cell::new((0.0, 0.0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_circle_x_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name1` [INFO] [stdout] --> src/lib.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn start_game(canvas: HtmlCanvasElement, name1: String, name2: String) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/logic/player.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Player { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(name: String, number: PlayerNumber) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> src/game/logic/board.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/logic/board.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Board { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 6 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name2` [INFO] [stdout] --> src/lib.rs:34:61 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn start_game(canvas: HtmlCanvasElement, name1: String, name2: String) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/game/logic/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pressed`, `chosen_circle`, `initial_rectangle`, and `ending_rectangle` are never read [INFO] [stdout] --> src/game/ui/interaction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Interaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pressed: Rc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | chosen_circle: Rc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | initial_rectangle: Rc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | ending_rectangle: Rc> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interaction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path`, `coord`, `x`, and `y` are never read [INFO] [stdout] --> src/game/ui/shapes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | path: Path2d, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | coord: Coord, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 9 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_path`, `get_coord`, and `get_pos` are never used [INFO] [stdout] --> src/game/ui/shapes.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(path: Path2d, coord: Coord, x: f64, y: f64) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_path(&self) -> &Path2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get_coord(&self) -> &Coord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_pos(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interaction`, `element`, `context`, and `rectangles` are never read [INFO] [stdout] --> src/game/ui/graphics.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Graphics { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | pub interaction: Interaction, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | element: HtmlCanvasElement, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | context: CanvasRenderingContext2d, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | rectangles: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Graphics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Manager` is never constructed [INFO] [stdout] --> src/game/manager.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Manager { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Manager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/manager.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Manager { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 19 | pub fn new(name1: String, name2: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PlayerNumber` is never used [INFO] [stdout] --> src/game/utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PlayerNumber { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerNumber` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `player_number_match` is never used [INFO] [stdout] --> src/game/utils/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn player_number_match(shape_owner: &PlayerNumber, current_turn: &PlayerNumber) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/game/logic/player.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/logic/player.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Player { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(name: String, number: PlayerNumber) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> src/game/logic/board.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/logic/board.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Board { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 6 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/game/logic/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pressed`, `chosen_circle`, `initial_rectangle`, and `ending_rectangle` are never read [INFO] [stdout] --> src/game/ui/interaction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Interaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pressed: Rc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | chosen_circle: Rc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | initial_rectangle: Rc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | ending_rectangle: Rc> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interaction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path`, `coord`, `x`, and `y` are never read [INFO] [stdout] --> src/game/ui/shapes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | path: Path2d, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | coord: Coord, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 9 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_path`, `get_coord`, and `get_pos` are never used [INFO] [stdout] --> src/game/ui/shapes.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(path: Path2d, coord: Coord, x: f64, y: f64) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_path(&self) -> &Path2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get_coord(&self) -> &Coord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_pos(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interaction`, `element`, `context`, and `rectangles` are never read [INFO] [stdout] --> src/game/ui/graphics.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Graphics { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | pub interaction: Interaction, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | element: HtmlCanvasElement, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | context: CanvasRenderingContext2d, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | rectangles: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Graphics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Manager` is never constructed [INFO] [stdout] --> src/game/manager.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Manager { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Manager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/manager.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Manager { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 19 | pub fn new(name1: String, name2: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.76s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.64 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "23a3a28f9ecaf6cc0416a8a80f74dd92728aaaa8746fccb195a9626351a79fb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23a3a28f9ecaf6cc0416a8a80f74dd92728aaaa8746fccb195a9626351a79fb5", kill_on_drop: false }` [INFO] [stdout] 23a3a28f9ecaf6cc0416a8a80f74dd92728aaaa8746fccb195a9626351a79fb5