[INFO] cloning repository https://github.com/seamusdaniello/gated-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seamusdaniello/gated-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseamusdaniello%2Fgated-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseamusdaniello%2Fgated-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4432893ab58d58206bd3fa6c566ffeca457bca43 [INFO] building seamusdaniello/gated-chess against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseamusdaniello%2Fgated-chess" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/seamusdaniello/gated-chess [INFO] finished tweaking git repo https://github.com/seamusdaniello/gated-chess [INFO] tweaked toml for git repo https://github.com/seamusdaniello/gated-chess written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/seamusdaniello/gated-chess on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/seamusdaniello/gated-chess 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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3189d29b9cf04846271035cce56ff5305b8e01a6d194aa092d6fa7f15be80ac8 [INFO] running `Command { std: "docker" "start" "-a" "3189d29b9cf04846271035cce56ff5305b8e01a6d194aa092d6fa7f15be80ac8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3189d29b9cf04846271035cce56ff5305b8e01a6d194aa092d6fa7f15be80ac8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3189d29b9cf04846271035cce56ff5305b8e01a6d194aa092d6fa7f15be80ac8", kill_on_drop: false }` [INFO] [stdout] 3189d29b9cf04846271035cce56ff5305b8e01a6d194aa092d6fa7f15be80ac8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 39a68a1729e19b09e5b327e77361fcbfdc54feea3416f8167870a805fde578d8 [INFO] running `Command { std: "docker" "start" "-a" "39a68a1729e19b09e5b327e77361fcbfdc54feea3416f8167870a805fde578d8", kill_on_drop: false }` [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling miniquad v0.4.8 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling ttf-parser v0.21.1 [INFO] [stderr] Compiling quad-rand v0.2.3 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling fontdue v0.9.3 [INFO] [stderr] Compiling macroquad v0.4.14 [INFO] [stderr] Compiling gated_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bishop_loader::load_bishop_frames` [INFO] [stdout] --> src/pieces/piece_animations/loaders/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use bishop_loader::load_bishop_frames; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `morph::MorphAnimation` [INFO] [stdout] --> src/pieces/piece_animations/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use morph::MorphAnimation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/game/state_machine/game_state_manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::BOARD_SIZE` [INFO] [stdout] --> src/game/state_machine/game_state_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::BOARD_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `PieceType`, and `Piece` [INFO] [stdout] --> src/game/state_machine/game_state_manager.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::pieces::{Color, Piece, PieceId, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algebraic::*` [INFO] [stdout] --> src/parser/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use algebraic::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/board/mod.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 71 | GateType::Standard { duration } => print!("S"), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `duration: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/board/mod.rs:72:39 [INFO] [stdout] | [INFO] [stdout] 72 | GateType::Decay { duration } => print!("D"), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `duration: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/game/state_machine/game_state_manager.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | board: &mut [[Square; crate::config::BOARD_SIZE]; crate::config::BOARD_SIZE], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile_size` [INFO] [stdout] --> src/frontend/move_history.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn draw(&self, tile_size: f32) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tile_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `panel_y` [INFO] [stdout] --> src/frontend/move_history.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let panel_y = 20.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_panel_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/frontend/mod.rs:205:18 [INFO] [stdout] | [INFO] [stdout] 205 | fn process_click(game: &Game, camera: &Camera2D, current_tile_size: f32) -> Option<(Position, Position)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_board` is never used [INFO] [stdout] --> src/board/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn print_board(board: &[[Square; BOARD_SIZE]; BOARD_SIZE]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Corrupted`, `Ascended`, and `Fragmented` are never constructed [INFO] [stdout] --> src/pieces/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum PieceForm { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 32 | Base, [INFO] [stdout] 33 | Corrupted, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | Ascended, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | Fragmented, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PieceForm` 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: variants `Selected`, `Moving`, `Morphing`, `Attacking`, and `Dead` are never constructed [INFO] [stdout] --> src/pieces/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum PieceState { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 40 | Idle, [INFO] [stdout] 41 | Selected, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 42 | Moving, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | Morphing(PieceForm), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | Attacking, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 45 | Dead, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PieceState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `form`, `state`, and `has_moved` are never read [INFO] [stdout] --> src/pieces/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Piece { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 64 | pub form: PieceForm, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | pub state: PieceState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | pub has_moved: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` 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: trait `Animation` is never used [INFO] [stdout] --> src/pieces/piece_animations/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Animation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MorphAnimation` is never constructed [INFO] [stdout] --> src/pieces/piece_animations/morph.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct MorphAnimation { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_bishop` is never used [INFO] [stdout] --> src/pieces/piece_animations/morph.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl MorphAnimation { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 24 | pub async fn load_bishop(color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_bishop_frames` is never used [INFO] [stdout] --> src/pieces/piece_animations/loaders/bishop_loader.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn load_bishop_frames(color: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_state`, `update_kind`, `update_color`, `update_has_moved`, `piece`, and `piece_mut` are never used [INFO] [stdout] --> src/pieces/piece_fsm/piece_fsm.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait PieceFSM { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 4 | fn update_state(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | fn update_kind(&mut self); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | fn update_color(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | fn update_has_moved(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | [INFO] [stdout] 9 | fn piece(&self) -> &Piece; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | fn piece_mut(&mut self) -> &mut Piece; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece` and `position` are never read [INFO] [stdout] --> src/pieces/piece_fsm/pawn_fsm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PawnFSM { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece` and `position` are never read [INFO] [stdout] --> src/pieces/piece_fsm/rook_fsm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RookFSM { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece` and `position` are never read [INFO] [stdout] --> src/pieces/piece_fsm/knight_fsm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct KnightFSM { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece` and `position` are never read [INFO] [stdout] --> src/pieces/piece_fsm/bishop_fsm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BishopFSM { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece` and `position` are never read [INFO] [stdout] --> src/pieces/piece_fsm/queen_fsm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct QueenFSM { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece` and `position` are never read [INFO] [stdout] --> src/pieces/piece_fsm/king_fsm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct KingFSM { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Decay` is never constructed [INFO] [stdout] --> src/gates/gate_type.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum GateType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 13 | Standard { duration: u8 }, [INFO] [stdout] 14 | Decay { duration: u8 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GateType` 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: function `set_gate` is never used [INFO] [stdout] --> src/gates/actions.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn set_gate(square: &mut Square, gate: GateType) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_gate` is never used [INFO] [stdout] --> src/gates/actions.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_gate(square: &mut Square) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 29 | pub fn new(row: usize, col: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoPieceAtPosition` and `InvalidPosition` are never constructed [INFO] [stdout] --> src/game/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum MoveError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 40 | IllegalMove, [INFO] [stdout] 41 | NoPieceAtPosition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | InvalidPosition, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveError` 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: field `state_manager` is never read [INFO] [stdout] --> src/game/mod.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 55 | pub board: [[Square; BOARD_SIZE]; BOARD_SIZE], [INFO] [stdout] 56 | pub state_manager: GameStateManager, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_all_fsm` is never used [INFO] [stdout] --> src/game/state_machine/game_state_manager.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> GameStateManager { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn update_all_fsm( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GATE_DURATION` is never used [INFO] [stdout] --> src/config.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const MAX_GATE_DURATION: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY_SQUARE_CHAR` is never used [INFO] [stdout] --> src/config.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const EMPTY_SQUARE_CHAR: &str = "."; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_square` is never used [INFO] [stdout] --> src/parser/algebraic.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_square(input: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_move` is never used [INFO] [stdout] --> src/parser/algebraic.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_move(input: &str) -> Option<(Position, Position)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `animations` is never read [INFO] [stdout] --> src/frontend/load_pieces.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PieceTextures { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 8 | pub textures: HashMap<(PieceType, Color), Texture2D>, [INFO] [stdout] 9 | pub animations: HashMap<(PieceType, Color), Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_animation` is never used [INFO] [stdout] --> src/frontend/load_pieces.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl PieceTextures { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_animation(&self, kind: PieceType, color: Color) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `rust-lld` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "rust-lld" "-flavor" "wasm" "--export" "__main_void" "--export" "CONTEXT" "--export" "allocate_vec_u8" "--export" "crate_version" "--export" "file_loaded" "--export" "focus" "--export" "frame" "--export" "key_down" "--export" "key_press" "--export" "key_up" "--export" "mouse_down" "--export" "mouse_move" "--export" "mouse_up" "--export" "mouse_wheel" "--export" "on_clipboard_paste" "--export" "on_file_dropped" "--export" "on_files_dropped_finish" "--export" "on_files_dropped_start" "--export" "raw_mouse_move" "--export" "resize" "--export" "touch" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<6 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libmacroquad-fd9bfed4e0c8f0bc,libfontdue-979c1f2127db35f0,libhashbrown-1c629eb99450a059,libfoldhash-6e98285c7e677e53,libequivalent-e75e9a7d273f0189,liballocator_api2-8e8748a307852ab5,libttf_parser-f7891d02a2dd8704,libimage-26f49b23437d0c5c,libbytemuck-64558e758bffb654,libcolor_quant-8e07a515e6ff48c0,libbyteorder-529cc76400af54b3,libpng-b7214e2d701d597d,libbitflags-15e3d67e03629ffa,libflate2-bcc15a3e54a73a21,libminiz_oxide-add2caca990dcbb8,libfdeflate-1973eda695894699,libsimd_adler32-f60c9d1329d503cc,libcrc32fast-c19ce4228a5bbdd7,libcfg_if-d6bc76d3bc4619c0,libnum_traits-3a8e83649fd78d15,libquad_rand-c335779a0f85c006,libglam-1547a7719eb4aa0f,libminiquad-ee8216464762dde6}.rlib" "/lib/rustlib/wasm32-wasip1/lib/{libstd-*,libwasi-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*}.rlib" "-l" "c" "/lib/rustlib/wasm32-wasip1/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.wasm" "--gc-sections" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: init_webgl [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: setup_canvas_size [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: canvas_width [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: canvas_height [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: dpi_scale [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: run_animation_loop [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/gated_chess-e0312b9295554b4e.gated_chess.b0456214900569d0-cgu.3.rcgu.o: undefined symbol: console_log [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-fd9bfed4e0c8f0bc.rlib(macroquad-fd9bfed4e0c8f0bc.macroquad.d35bccfc6a0d64d7-cgu.10.rcgu.o): undefined symbol: fs_load_file [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-fd9bfed4e0c8f0bc.rlib(macroquad-fd9bfed4e0c8f0bc.macroquad.d35bccfc6a0d64d7-cgu.10.rcgu.o): undefined symbol: glFlush [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-fd9bfed4e0c8f0bc.rlib(macroquad-fd9bfed4e0c8f0bc.macroquad.d35bccfc6a0d64d7-cgu.10.rcgu.o): undefined symbol: glFinish [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-fd9bfed4e0c8f0bc.rlib(macroquad-fd9bfed4e0c8f0bc.macroquad.d35bccfc6a0d64d7-cgu.12.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-fd9bfed4e0c8f0bc.rlib(macroquad-fd9bfed4e0c8f0bc.macroquad.d35bccfc6a0d64d7-cgu.12.rcgu.o): undefined symbol: glCopyTexImage2D [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: glBindBuffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: glBindBuffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: glDisableVertexAttribArray [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: console_error [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: console_warn [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-ee8216464762dde6.rlib(miniquad-ee8216464762dde6.miniquad.a46dca1772deceb0-cgu.3.rcgu.o): undefined symbol: console_info [INFO] [stdout] rust-lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gated_chess` (bin "gated_chess") due to 1 previous error; 40 warnings emitted [INFO] running `Command { std: "docker" "inspect" "39a68a1729e19b09e5b327e77361fcbfdc54feea3416f8167870a805fde578d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39a68a1729e19b09e5b327e77361fcbfdc54feea3416f8167870a805fde578d8", kill_on_drop: false }` [INFO] [stdout] 39a68a1729e19b09e5b327e77361fcbfdc54feea3416f8167870a805fde578d8