[INFO] cloning repository https://github.com/phantomgoose/snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phantomgoose/snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphantomgoose%2Fsnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphantomgoose%2Fsnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ef7feffadd534f201d9d95dedcdb73dd43a9f3e [INFO] building phantomgoose/snake against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphantomgoose%2Fsnake" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/phantomgoose/snake [INFO] finished tweaking git repo https://github.com/phantomgoose/snake [INFO] tweaked toml for git repo https://github.com/phantomgoose/snake written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/phantomgoose/snake 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/phantomgoose/snake 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 2bd059c633d074d217caf7754251f8cc0c958399a0d4f9c7f1cef76ad7d99af3 [INFO] running `Command { std: "docker" "start" "-a" "2bd059c633d074d217caf7754251f8cc0c958399a0d4f9c7f1cef76ad7d99af3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2bd059c633d074d217caf7754251f8cc0c958399a0d4f9c7f1cef76ad7d99af3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bd059c633d074d217caf7754251f8cc0c958399a0d4f9c7f1cef76ad7d99af3", kill_on_drop: false }` [INFO] [stdout] 2bd059c633d074d217caf7754251f8cc0c958399a0d4f9c7f1cef76ad7d99af3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 1efb0b78be689433347d23e1ac3a3486883c47eddfbb3f718394fe75da457021 [INFO] running `Command { std: "docker" "start" "-a" "1efb0b78be689433347d23e1ac3a3486883c47eddfbb3f718394fe75da457021", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling miniquad v0.4.0-alpha.10 [INFO] [stderr] Compiling impl_ops v0.1.1 [INFO] [stderr] Compiling alea v0.2.2 [INFO] [stderr] Compiling bytemuck v1.14.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling approx_eq v0.1.8 [INFO] [stderr] Compiling reverse v0.2.2 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling glam v0.21.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling seq-macro v0.2.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling fontdue v0.7.3 [INFO] [stderr] Compiling png v0.17.11 [INFO] [stderr] Compiling rayon v1.9.0 [INFO] [stderr] Compiling image v0.24.8 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling macroquad v0.4.4 [INFO] [stderr] Compiling kdtree v0.7.0 [INFO] [stderr] Compiling talos_procs v0.1.0 [INFO] [stderr] Compiling compute v0.2.3 [INFO] [stderr] Compiling talos v0.1.0 [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Sigmoid` is never constructed [INFO] [stdout] --> src/brain.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | enum Activation { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 18 | Sigmoid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Activation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CENTER_TEXT_SIZE` is never used [INFO] [stdout] --> src/utils.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const CENTER_TEXT_SIZE: u16 = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_text_center` is never used [INFO] [stdout] --> src/utils.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn draw_text_center(msg_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `predict_direction_naive` is never used [INFO] [stdout] --> src/utils.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | pub(crate) fn predict_direction_naive(snake: &SnakeBody, food: &Option) -> Direction { [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" "<10 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libtalos-799e8c66653a7f39,libcompute-fe1120fb3a7441ae,libalea-5526969e6f236308,libserde-69ee8e93df1a27fb,libapprox_eq-f7e54ee3c6b11224,libkdtree-2e0535efb792654c,libthiserror-267120e077facdfc,libreverse-bee653904f34765c,librand-68221c0e5e4ac2f7,librand_chacha-15dfd5e9df16db7c,libppv_lite86-486e4425e6fd09e6,librand_core-f90f8ee44e8f4b55,libgetrandom-3b1af9cb37065929,libwasi-b9c6bfbff0bef49f,librayon-e5adbe0e39565678,librayon_core-596b789b3248fe04,libcrossbeam_deque-edfc9ac1b274ec38,libcrossbeam_epoch-8b329c916e80e0f6,libcrossbeam_utils-8a6fb6f51532af4f,libeither-60017fdd882ad79d,libmacroquad-d490e5ed74ab83f1,libbumpalo-c55c6953b93d0282,libfontdue-a00ad4dbb48f2341,libttf_parser-2dad05e889eb49b2,libhashbrown-f8324102b2069576,libahash-5cd5939985673aa7,libonce_cell-847ca6422e74ab52,libzerocopy-8ac84286dd5aeee5,libimage-c0dc1bc4338c8c02,libbytemuck-a67743e843c0f0f0,libcolor_quant-8e07a515e6ff48c0,libbyteorder-529cc76400af54b3,libpng-8af085cccb53ff66,libflate2-91015f676f4bb91c,libminiz_oxide-2450c187032c446b,libfdeflate-50f0fe513a8b9967,libsimd_adler32-f60c9d1329d503cc,libcrc32fast-f0a61590867b47c0,libcfg_if-50b02a9e3502ecf2,libbitflags-15e3d67e03629ffa,libnum_traits-5c5427095bffd816,libquad_rand-a489066e64330885,libglam-ca429907f5f11390,libminiquad-661f8c28390ec67a,libslotmap-d9a116e7abd028d4}.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/snake-b8f2d638c6e0e0b0.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/snake-b8f2d638c6e0e0b0.snake.ad91b857c63f6161-cgu.1.rcgu.o: undefined symbol: setup_canvas_size [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/snake-b8f2d638c6e0e0b0.snake.ad91b857c63f6161-cgu.1.rcgu.o: undefined symbol: canvas_width [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/snake-b8f2d638c6e0e0b0.snake.ad91b857c63f6161-cgu.1.rcgu.o: undefined symbol: canvas_height [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/snake-b8f2d638c6e0e0b0.snake.ad91b857c63f6161-cgu.1.rcgu.o: undefined symbol: run_animation_loop [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/snake-b8f2d638c6e0e0b0.snake.ad91b857c63f6161-cgu.1.rcgu.o: undefined symbol: console_log [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-d490e5ed74ab83f1.rlib(macroquad-d490e5ed74ab83f1.macroquad.678596f2d94735de-cgu.03.rcgu.o): undefined symbol: glFlush [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-d490e5ed74ab83f1.rlib(macroquad-d490e5ed74ab83f1.macroquad.678596f2d94735de-cgu.03.rcgu.o): undefined symbol: glFinish [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-d490e5ed74ab83f1.rlib(macroquad-d490e5ed74ab83f1.macroquad.678596f2d94735de-cgu.12.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-d490e5ed74ab83f1.rlib(macroquad-d490e5ed74ab83f1.macroquad.678596f2d94735de-cgu.12.rcgu.o): undefined symbol: glCopyTexImage2D [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: sapp_set_cursor_grab [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: sapp_set_fullscreen [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: glBindBuffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: glBindBuffer [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: sapp_set_cursor [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.0.rcgu.o): undefined symbol: sapp_set_clipboard [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.1.rcgu.o): undefined symbol: console_error [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.1.rcgu.o): undefined symbol: console_warn [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-661f8c28390ec67a.rlib(miniquad-661f8c28390ec67a.miniquad.3e025e903f388248-cgu.1.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 `snake` (bin "snake") due to 1 previous error; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1efb0b78be689433347d23e1ac3a3486883c47eddfbb3f718394fe75da457021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1efb0b78be689433347d23e1ac3a3486883c47eddfbb3f718394fe75da457021", kill_on_drop: false }` [INFO] [stdout] 1efb0b78be689433347d23e1ac3a3486883c47eddfbb3f718394fe75da457021