[INFO] cloning repository https://github.com/claudiomattera/wasmanoid [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/claudiomattera/wasmanoid" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaudiomattera%2Fwasmanoid", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaudiomattera%2Fwasmanoid'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71499a0a1f44cc71e594c0d393906b842bc70a91 [INFO] checking claudiomattera/wasmanoid/71499a0a1f44cc71e594c0d393906b842bc70a91 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaudiomattera%2Fwasmanoid" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/claudiomattera/wasmanoid on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/claudiomattera/wasmanoid [INFO] finished tweaking git repo https://github.com/claudiomattera/wasmanoid [INFO] tweaked toml for git repo https://github.com/claudiomattera/wasmanoid written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/claudiomattera/wasmanoid 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm4fun-storage v0.1.0 [INFO] [stderr] Downloaded wasm4fun-time v0.1.0 [INFO] [stderr] Downloaded serde v1.0.134 [INFO] [stderr] Downloaded wasm4fun-core v0.1.0 [INFO] [stderr] Downloaded core2 v0.3.3 [INFO] [stderr] Downloaded color_quant v1.1.0 [INFO] [stderr] Downloaded wasm4fun-panichandler v0.1.0 [INFO] [stderr] Downloaded wasm4fun-random v0.1.0 [INFO] [stderr] Downloaded autocfg v1.0.1 [INFO] [stderr] Downloaded buddy-alloc v0.4.1 [INFO] [stderr] Downloaded bytemuck v1.7.3 [INFO] [stderr] Downloaded num-rational v0.3.2 [INFO] [stderr] Downloaded deflate v0.8.6 [INFO] [stderr] Downloaded png v0.17.2 [INFO] [stderr] Downloaded encoding-index-japanese v1.20141219.5 [INFO] [stderr] Downloaded encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Downloaded encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Downloaded encoding-index-korean v1.20141219.5 [INFO] [stderr] Downloaded encoding v0.2.33 [INFO] [stderr] Downloaded micromath v2.0.0 [INFO] [stderr] Downloaded image v0.23.14 [INFO] [stderr] Downloaded wasm4fun-graphics v0.1.0 [INFO] [stderr] Downloaded syn v1.0.86 [INFO] [stderr] Downloaded deflate v0.9.1 [INFO] [stderr] Downloaded miniz_oxide v0.4.4 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded memchr v2.4.1 [INFO] [stderr] Downloaded num-traits v0.2.14 [INFO] [stderr] Downloaded byteorder v1.4.3 [INFO] [stderr] Downloaded miniz_oxide v0.3.7 [INFO] [stderr] Downloaded png v0.16.8 [INFO] [stderr] Downloaded tinyvec v1.5.1 [INFO] [stderr] Downloaded quote v1.0.14 [INFO] [stderr] Downloaded unicode-xid v0.2.2 [INFO] [stderr] Downloaded serde_derive v1.0.134 [INFO] [stderr] Downloaded crc32fast v1.3.1 [INFO] [stderr] Downloaded postcard-cobs v0.1.5-pre [INFO] [stderr] Downloaded postcard v0.7.3 [INFO] [stderr] Downloaded num-iter v0.1.42 [INFO] [stderr] Downloaded num-integer v0.1.44 [INFO] [stderr] Downloaded encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Downloaded thiserror-impl v1.0.30 [INFO] [stderr] Downloaded thiserror v1.0.30 [INFO] [stderr] Downloaded png2wasm4src v0.1.0 [INFO] [stderr] Downloaded wasm4fun-logo v0.1.0 [INFO] [stderr] Downloaded wasm4fun-sound v0.1.0 [INFO] [stderr] Downloaded wasm4fun-fmt v0.1.0 [INFO] [stderr] Downloaded adler32 v1.2.0 [INFO] [stderr] Downloaded encoding_index_tests v0.1.4 [INFO] [stderr] Downloaded wasm4fun-input v0.1.0 [INFO] [stderr] Downloaded rand_xorshift v0.3.0 [INFO] [stderr] Downloaded wasm4fun-log v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15e724c3f588df7d1518c29855dfa40f5211d0a624f59b109d642376a2cec7d9 [INFO] running `Command { std: "docker" "start" "-a" "15e724c3f588df7d1518c29855dfa40f5211d0a624f59b109d642376a2cec7d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15e724c3f588df7d1518c29855dfa40f5211d0a624f59b109d642376a2cec7d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15e724c3f588df7d1518c29855dfa40f5211d0a624f59b109d642376a2cec7d9", kill_on_drop: false }` [INFO] [stdout] 15e724c3f588df7d1518c29855dfa40f5211d0a624f59b109d642376a2cec7d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6afa80ee54de30a173c4ad296591b22b23cf0e30e7999b8b970ec5e295f598f6 [INFO] running `Command { std: "docker" "start" "-a" "6afa80ee54de30a173c4ad296591b22b23cf0e30e7999b8b970ec5e295f598f6", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.3.1 [INFO] [stderr] Checking wasm4fun-core v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.134 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling serde v1.0.134 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling deflate v0.9.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Checking postcard-cobs v0.1.5-pre [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Checking wasm4fun-sound v0.1.0 [INFO] [stderr] Checking wasm4fun-graphics v0.1.0 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Checking wasm4fun-time v0.1.0 [INFO] [stderr] Checking wasm4fun-panichandler v0.1.0 [INFO] [stderr] Checking wasm4fun-input v0.1.0 [INFO] [stderr] Checking micromath v2.0.0 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking wasm4fun-fmt v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking wasm4fun-logo v0.1.0 [INFO] [stderr] Checking core2 v0.3.3 [INFO] [stderr] Checking wasm4fun-log v0.1.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Checking wasm4fun-random v0.1.0 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling png v0.17.2 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling png2wasm4src v0.1.0 [INFO] [stderr] Compiling cartridge v1.0.0 (/opt/rustwide/workdir/game) [INFO] [stderr] Checking postcard v0.7.3 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking wasm4fun-storage v0.1.0 [INFO] [stdout] error: `#[panic_handler]` function required, but not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/game/ball.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | if self.unit_velocity.1.abs() < MINIMAL_VERTICAL_VELOCITY { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/game/ball.rs:100:33 [INFO] [stdout] | [INFO] [stdout] 100 | if self.unit_velocity.0.abs() > self.unit_velocity.1.abs() + 0.5 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/game/ball.rs:100:62 [INFO] [stdout] | [INFO] [stdout] 100 | if self.unit_velocity.0.abs() > self.unit_velocity.1.abs() + 0.5 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/game/ball.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | } else if self.unit_velocity.1.abs() > self.unit_velocity.0.abs() + 0.5 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/game/ball.rs:110:69 [INFO] [stdout] | [INFO] [stdout] 110 | } else if self.unit_velocity.1.abs() > self.unit_velocity.0.abs() + 0.5 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | let state_machine = unsafe { &mut STATE_MACHINE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 28 | let state_machine = unsafe { addr_of_mut!(STATE_MACHINE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | let audio_queue = unsafe { &mut AUDIO_QUEUE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 32 | let audio_queue = unsafe { addr_of_mut!(AUDIO_QUEUE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | let state_machine = unsafe { &mut STATE_MACHINE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 38 | let state_machine = unsafe { addr_of_mut!(STATE_MACHINE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | let audio_queue = unsafe { &mut AUDIO_QUEUE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 41 | let audio_queue = unsafe { addr_of_mut!(AUDIO_QUEUE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | let state_machine = unsafe { &mut STATE_MACHINE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 28 | let state_machine = unsafe { addr_of_mut!(STATE_MACHINE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | let audio_queue = unsafe { &mut AUDIO_QUEUE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 32 | let audio_queue = unsafe { addr_of_mut!(AUDIO_QUEUE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | let state_machine = unsafe { &mut STATE_MACHINE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 38 | let state_machine = unsafe { addr_of_mut!(STATE_MACHINE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> game/src/game/loop.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | let audio_queue = unsafe { &mut AUDIO_QUEUE }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 41 | let audio_queue = unsafe { addr_of_mut!(AUDIO_QUEUE) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/math.rs:37:87 [INFO] [stdout] | [INFO] [stdout] 37 | if ((xc - xs1).pow(2) as f32 + (yc - ys).pow(2) as f32 - r.pow(2) as f32).abs() <= 6.0 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/math.rs:43:87 [INFO] [stdout] | [INFO] [stdout] 43 | if ((xc - xs2).pow(2) as f32 + (yc - ys).pow(2) as f32 - r.pow(2) as f32).abs() <= 6.0 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/math.rs:69:87 [INFO] [stdout] | [INFO] [stdout] 69 | if ((yc - ys1).pow(2) as f32 + (xc - xs).pow(2) as f32 - r.pow(2) as f32).abs() <= 6.0 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `abs` found for type `f32` in the current scope [INFO] [stdout] --> game/src/math.rs:75:87 [INFO] [stdout] | [INFO] [stdout] 75 | if ((yc - ys2).pow(2) as f32 + (xc - xs).pow(2) as f32 - r.pow(2) as f32).abs() <= 6.0 { [INFO] [stdout] | ^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `powi` found for type `f32` in the current scope [INFO] [stdout] --> game/src/math.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | (x.powi(2) + y.powi(2)).sqrt() [INFO] [stdout] | ^^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `powi` found for type `f32` in the current scope [INFO] [stdout] --> game/src/math.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | (x.powi(2) + y.powi(2)).sqrt() [INFO] [stdout] | ^^^^ method not found in `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cartridge` (lib) due to 14 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6afa80ee54de30a173c4ad296591b22b23cf0e30e7999b8b970ec5e295f598f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6afa80ee54de30a173c4ad296591b22b23cf0e30e7999b8b970ec5e295f598f6", kill_on_drop: false }` [INFO] [stdout] 6afa80ee54de30a173c4ad296591b22b23cf0e30e7999b8b970ec5e295f598f6