[INFO] cloning repository https://github.com/sparshg/asteroids-genetic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sparshg/asteroids-genetic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsparshg%2Fasteroids-genetic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsparshg%2Fasteroids-genetic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0c6e22a75a0a8868476407282d7611777e152d9 [INFO] building sparshg/asteroids-genetic against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsparshg%2Fasteroids-genetic" "/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/sparshg/asteroids-genetic [INFO] finished tweaking git repo https://github.com/sparshg/asteroids-genetic [INFO] tweaked toml for git repo https://github.com/sparshg/asteroids-genetic written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sparshg/asteroids-genetic 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/sparshg/asteroids-genetic 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] 783da0d17b63950f24155638f3bd957b8251d2b37c14cb5a814e62747e09c826 [INFO] running `Command { std: "docker" "start" "-a" "783da0d17b63950f24155638f3bd957b8251d2b37c14cb5a814e62747e09c826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "783da0d17b63950f24155638f3bd957b8251d2b37c14cb5a814e62747e09c826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "783da0d17b63950f24155638f3bd957b8251d2b37c14cb5a814e62747e09c826", kill_on_drop: false }` [INFO] [stdout] 783da0d17b63950f24155638f3bd957b8251d2b37c14cb5a814e62747e09c826 [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] c3116a24392d88a1a2b7e183de1f7506c80a41ba7ad93ac24ce31525aaf4f32c [INFO] running `Command { std: "docker" "start" "-a" "c3116a24392d88a1a2b7e183de1f7506c80a41ba7ad93ac24ce31525aaf4f32c", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling bytemuck v1.17.1 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling miniquad v0.4.6 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling safe_arch v0.7.2 [INFO] [stderr] Compiling wide v0.7.28 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling quad-rand v0.2.1 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling fontdue v0.7.3 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling macroquad v0.4.13 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling nalgebra v0.33.0 [INFO] [stderr] Compiling genetic v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NN` [INFO] [stdout] --> src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use nn::{ActivationFunc, NN}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `export` and `import` are never used [INFO] [stdout] --> src/nn.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl NN { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn export(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn import(path: &str) -> NN { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raycasts` is never read [INFO] [stdout] --> src/player.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Player { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | raycasts: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hlayers` is never read [INFO] [stdout] --> src/population.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Population { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub hlayers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `export_brain` is never used [INFO] [stdout] --> src/world.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn export_brain(&self, path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SWIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let SWIDTH: f32 = screen_width(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `swidth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SHEIGHT` should have a snake case name [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let SHEIGHT: f32 = screen_height(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sheight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let WIDTH: f32 = SWIDTH * (800. / 1400.); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let HEIGHT: f32 = SHEIGHT * (780. / 800.); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(size: AsteroidSize, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:22:44 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(size: AsteroidSize, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:52:64 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new_from(pos: Vec2, vel: Vec2, size: AsteroidSize, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:52:71 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new_from(pos: Vec2, vel: Vec2, size: AsteroidSize, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:59:63 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn new_to(pos: Vec2, speed: f32, size: AsteroidSize, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:59:70 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn new_to(pos: Vec2, speed: f32, size: AsteroidSize, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/asteroids.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/player.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/player.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | (WIDTH, HEIGHT): (f32, f32), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | (WIDTH, HEIGHT): (f32, f32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn draw(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:123:32 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn draw(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SWIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn draw(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `swidth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SHEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:123:48 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn draw(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sheight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:136:33 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn draw_borders(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:136:40 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn draw_borders(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SWIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:136:48 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn draw_borders(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `swidth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SHEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:136:56 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn draw_borders(&self, (WIDTH, HEIGHT, SWIDTH, SHEIGHT): (f32, f32, f32, f32)) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `sheight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/population.rs:144:33 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn next_gen(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/population.rs:144:40 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn next_gen(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/world.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | (WIDTH, HEIGHT): (f32, f32), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/world.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | (WIDTH, HEIGHT): (f32, f32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/world.rs:40:33 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn simulate(brain: NN, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/world.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn simulate(brain: NN, (WIDTH, HEIGHT): (f32, f32)) -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WIDTH` should have a snake case name [INFO] [stdout] --> src/world.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/world.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn update(&mut self, (WIDTH, HEIGHT): (f32, f32)) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [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" "<17 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libserde_json-5a0525e3f8a3ed33,libmemchr-f1fa2db164eb1e0b,libitoa-ea75ecc15613a0c1,libryu-200b71c8c1781836,libnalgebra-97dae668c0256503,libmatrixmultiply-f4b7192222217359,librawpointer-6c46af61ca4ee004,libnum_rational-e0f3cb3f58a1cf42,libnum_integer-fb0070a89a4fd217,libtypenum-9f6cb9a9af3cd5f0,libsimba-082d8fbd69e65469,libwide-746d6b5b45b32420,libsafe_arch-5b037a8b035844f7,libnum_complex-f03cc48644dc508e,libapprox-d3f5cc4ab75fa78c,libserde-d09e09923504a84f,libmacroquad-3c57f21e11880f0d,libfontdue-84f1a4624a06e79f,libttf_parser-7f6c1ac218636fc5,libhashbrown-a750ac800913e68d,libahash-8d8ddf23c9b15ac0,libonce_cell-259c17ba94809e42,libzerocopy-dd5a42398d62a463,libimage-196ae7e8f8dafb4d,libbytemuck-6d289c7268ce07ef,libcolor_quant-1e86b52941ac4ea7,libbyteorder-7cb42c9bfd1ac301,libpng-81ac1c99bd16f2fa,libflate2-4ce53e7f82bc6ead,libminiz_oxide-3428548cafe0a350,libadler2-2122ab827219a06b,libfdeflate-5c2fe8097e5c2f0c,libsimd_adler32-b5535ea0505b2829,libcrc32fast-af7609d2c86e1a97,libcfg_if-2a1f3d8d3a86aef9,libbitflags-4fa71e63d9d8e5ea,libnum_traits-ea853620be9f6c42,libquad_rand-3f6d699ad3c7baf8,libslotmap-8226636ceea0219a,libglam-a17c452ab1fb70b7,libminiquad-473d97bc56ddea9b}.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/genetic-742ccadb52fb7364.wasm" "--gc-sections" "-O3" [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/genetic-742ccadb52fb7364.genetic.7af492201d364de7-cgu.11.rcgu.o: undefined symbol: init_webgl [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/genetic-742ccadb52fb7364.genetic.7af492201d364de7-cgu.11.rcgu.o: undefined symbol: setup_canvas_size [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/genetic-742ccadb52fb7364.genetic.7af492201d364de7-cgu.11.rcgu.o: undefined symbol: canvas_width [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/genetic-742ccadb52fb7364.genetic.7af492201d364de7-cgu.11.rcgu.o: undefined symbol: canvas_height [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/genetic-742ccadb52fb7364.genetic.7af492201d364de7-cgu.11.rcgu.o: undefined symbol: run_animation_loop [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/genetic-742ccadb52fb7364.genetic.7af492201d364de7-cgu.11.rcgu.o: undefined symbol: console_log [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-3c57f21e11880f0d.rlib(macroquad-3c57f21e11880f0d.macroquad.435499fdc73808d1-cgu.06.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-3c57f21e11880f0d.rlib(macroquad-3c57f21e11880f0d.macroquad.435499fdc73808d1-cgu.06.rcgu.o): undefined symbol: glCopyTexImage2D [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-3c57f21e11880f0d.rlib(macroquad-3c57f21e11880f0d.macroquad.435499fdc73808d1-cgu.12.rcgu.o): undefined symbol: glFlush [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libmacroquad-3c57f21e11880f0d.rlib(macroquad-3c57f21e11880f0d.macroquad.435499fdc73808d1-cgu.12.rcgu.o): undefined symbol: glFinish [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.04.rcgu.o): undefined symbol: sapp_set_clipboard [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glActiveTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glBindTexture [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libminiquad-473d97bc56ddea9b.rlib(miniquad-473d97bc56ddea9b.miniquad.c1aecf6658298619-cgu.05.rcgu.o): undefined symbol: glActiveTexture [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 `genetic` (bin "genetic") due to 1 previous error; 39 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c3116a24392d88a1a2b7e183de1f7506c80a41ba7ad93ac24ce31525aaf4f32c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3116a24392d88a1a2b7e183de1f7506c80a41ba7ad93ac24ce31525aaf4f32c", kill_on_drop: false }` [INFO] [stdout] c3116a24392d88a1a2b7e183de1f7506c80a41ba7ad93ac24ce31525aaf4f32c