[INFO] cloning repository https://github.com/jesko7/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jesko7/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjesko7%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjesko7%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7570a420745704b9d4591066d575aea37d975e81 [INFO] building jesko7/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%2Fjesko7%2Fchess" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jesko7/chess [INFO] finished tweaking git repo https://github.com/jesko7/chess [INFO] tweaked toml for git repo https://github.com/jesko7/chess written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jesko7/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/jesko7/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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] d338ed1bd4b2f448cb174fcfc285a04fe60570dbc0ca01f4a25bf0a66a98bda0 [INFO] running `Command { std: "docker" "start" "-a" "d338ed1bd4b2f448cb174fcfc285a04fe60570dbc0ca01f4a25bf0a66a98bda0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d338ed1bd4b2f448cb174fcfc285a04fe60570dbc0ca01f4a25bf0a66a98bda0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d338ed1bd4b2f448cb174fcfc285a04fe60570dbc0ca01f4a25bf0a66a98bda0", kill_on_drop: false }` [INFO] [stdout] d338ed1bd4b2f448cb174fcfc285a04fe60570dbc0ca01f4a25bf0a66a98bda0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 35f5458f9b6820739a2e82de469accf7c741290b8e1d4a68326fdedf8309895e [INFO] running `Command { std: "docker" "start" "-a" "35f5458f9b6820739a2e82de469accf7c741290b8e1d4a68326fdedf8309895e", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling miniquad v0.4.5 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling bytemuck v1.16.3 [INFO] [stderr] Compiling quad-rand v0.2.1 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling fontdue v0.7.3 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling macroquad v0.4.11 [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `macroquad::miniquad::BlendFactor` [INFO] [stdout] --> src/board.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::miniquad::BlendFactor; [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 variable: `other` [INFO] [stdout] --> src/board.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | other => panic!() [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/board.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | other => panic!() [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/piece.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | other => panic!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/piece.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | other => panic!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/piece.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | other => panic!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/piece.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | other => vec![], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coords` [INFO] [stdout] --> src/render.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let coords = square_to_coords(square); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_coords` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `to_move` is never read [INFO] [stdout] --> src/board.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 10 | pub pieces: Vec>, [INFO] [stdout] 11 | pub to_move: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_name` is never used [INFO] [stdout] --> src/piece.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_name(piece_type: u8) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `selected_pice` should have an upper case name [INFO] [stdout] --> src/render.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub static mut selected_pice: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 7 - pub static mut selected_pice: Option = None; [INFO] [stdout] 7 + pub static mut SELECTED_PICE: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/render.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | if selected_pice.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/render.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | let start_square = selected_pice.clone().unwrap().square; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/render.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(piece) = selected_pice.clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/render.rs:69:41 [INFO] [stdout] | [INFO] [stdout] 69 | if Some(inner_piece) == selected_pice.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [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" "<4 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libmacroquad-a100c469e0a2a3e7,libbumpalo-e2decddbfcc90894,libfontdue-88c66030d1b54d24,libttf_parser-2dad05e889eb49b2,libhashbrown-1c9fdfbf45dee5a1,libahash-0ede8119c781b45d,libonce_cell-119600c39ce58a96,libzerocopy-700d58819e876f4a,libimage-7afbd59d783a9de0,libbytemuck-c32b35f040dc50c4,libcolor_quant-8e07a515e6ff48c0,libbyteorder-529cc76400af54b3,libpng-905f277b482c2a3f,libflate2-12288045dfbce1a4,libminiz_oxide-119077de7212f19e,libfdeflate-50f0fe513a8b9967,libsimd_adler32-f60c9d1329d503cc,libcrc32fast-e0220637d8011755,libcfg_if-50b02a9e3502ecf2,libbitflags-15e3d67e03629ffa,libnum_traits-a8fc41689d85f03e,libquad_rand-a489066e64330885,libslotmap-e0fb2445f2417256,libglam-1547a7719eb4aa0f,libminiquad-02f4b54781d9ec71}.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/chess-a155c23253df6e72.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/chess-a155c23253df6e72.chess.61cd5323ebfd39fa-cgu.1.rcgu.o: undefined symbol: init_webgl [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/chess-a155c23253df6e72.chess.61cd5323ebfd39fa-cgu.1.rcgu.o: undefined symbol: setup_canvas_size [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/chess-a155c23253df6e72.chess.61cd5323ebfd39fa-cgu.1.rcgu.o: undefined symbol: canvas_width [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/chess-a155c23253df6e72.chess.61cd5323ebfd39fa-cgu.1.rcgu.o: undefined symbol: canvas_height [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/chess-a155c23253df6e72.chess.61cd5323ebfd39fa-cgu.1.rcgu.o: undefined symbol: run_animation_loop [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/chess-a155c23253df6e72.chess.61cd5323ebfd39fa-cgu.1.rcgu.o: undefined symbol: console_log [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-a100c469e0a2a3e7.rlib(macroquad-a100c469e0a2a3e7.macroquad.79c8a2544bae082c-cgu.02.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-a100c469e0a2a3e7.rlib(macroquad-a100c469e0a2a3e7.macroquad.79c8a2544bae082c-cgu.02.rcgu.o): undefined symbol: glCopyTexImage2D [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-a100c469e0a2a3e7.rlib(macroquad-a100c469e0a2a3e7.macroquad.79c8a2544bae082c-cgu.10.rcgu.o): undefined symbol: glFlush [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-a100c469e0a2a3e7.rlib(macroquad-a100c469e0a2a3e7.macroquad.79c8a2544bae082c-cgu.10.rcgu.o): undefined symbol: glFinish [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-a100c469e0a2a3e7.rlib(macroquad-a100c469e0a2a3e7.macroquad.79c8a2544bae082c-cgu.13.rcgu.o): undefined symbol: fs_load_file [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.2.rcgu.o): undefined symbol: glBindBuffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.2.rcgu.o): undefined symbol: glBindBuffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.2.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.2.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.3.rcgu.o): undefined symbol: fs_get_buffer_size [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.3.rcgu.o): undefined symbol: fs_take_buffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.3.rcgu.o): undefined symbol: sapp_set_cursor_grab [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.3.rcgu.o): undefined symbol: sapp_set_fullscreen [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-02f4b54781d9ec71.rlib(miniquad-02f4b54781d9ec71.miniquad.dd62f886eb7b078a-cgu.3.rcgu.o): undefined symbol: glGenQueries [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 `chess` (bin "chess") due to 1 previous error; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "35f5458f9b6820739a2e82de469accf7c741290b8e1d4a68326fdedf8309895e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35f5458f9b6820739a2e82de469accf7c741290b8e1d4a68326fdedf8309895e", kill_on_drop: false }` [INFO] [stdout] 35f5458f9b6820739a2e82de469accf7c741290b8e1d4a68326fdedf8309895e