[INFO] cloning repository https://github.com/JoeruCodes/wasm-ansem-fight [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoeruCodes/wasm-ansem-fight" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoeruCodes%2Fwasm-ansem-fight", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoeruCodes%2Fwasm-ansem-fight'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac13b4805e3720c7d8c6cead46739b61b94cebed [INFO] checking JoeruCodes/wasm-ansem-fight/ac13b4805e3720c7d8c6cead46739b61b94cebed against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoeruCodes%2Fwasm-ansem-fight" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoeruCodes/wasm-ansem-fight on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JoeruCodes/wasm-ansem-fight [INFO] finished tweaking git repo https://github.com/JoeruCodes/wasm-ansem-fight [INFO] tweaked toml for git repo https://github.com/JoeruCodes/wasm-ansem-fight written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JoeruCodes/wasm-ansem-fight 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0acadc8c2856ef6d5988931a4a52f4f1d2e7c5b1e9707f4a71b3d4b0a277d274 [INFO] running `Command { std: "docker" "start" "-a" "0acadc8c2856ef6d5988931a4a52f4f1d2e7c5b1e9707f4a71b3d4b0a277d274", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0acadc8c2856ef6d5988931a4a52f4f1d2e7c5b1e9707f4a71b3d4b0a277d274", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0acadc8c2856ef6d5988931a4a52f4f1d2e7c5b1e9707f4a71b3d4b0a277d274", kill_on_drop: false }` [INFO] [stdout] 0acadc8c2856ef6d5988931a4a52f4f1d2e7c5b1e9707f4a71b3d4b0a277d274 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70b1910b021e971ac3b0a5482767c4f3d76ce2f68589288302652c6ea4f35d1c [INFO] running `Command { std: "docker" "start" "-a" "70b1910b021e971ac3b0a5482767c4f3d76ce2f68589288302652c6ea4f35d1c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.92 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.92 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.63 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Checking js-sys v0.3.69 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio_with_wasm v0.4.4 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.42 [INFO] [stderr] Checking web-sys v0.3.69 [INFO] [stderr] Checking ansem-wasm v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ansem_wasm` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/helpers.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/helpers.rs:11:6 [INFO] [stderr] | [INFO] [stderr] 11 | ($res: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 107 | let dodges = rand::thread_rng().gen::() < { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:117:43 [INFO] [stdout] | [INFO] [stdout] 117 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:126:43 [INFO] [stdout] | [INFO] [stdout] 126 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:153:41 [INFO] [stdout] | [INFO] [stdout] 153 | let num_punches: usize = if rng.gen::() < 0.5 { 1 } else { 2 }; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HtmlElement` [INFO] [stdout] --> src/helpers.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{Element, Event, HtmlAudioElement, HtmlElement, HtmlImageElement}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/helpers.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | ($res: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 11 | ($res: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PUNCH`, `WIN`, `LOSE`, `BELL`, `TIER3`, and `Dodge` are never constructed [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SoundTypes { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | PUNCH, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | WIN, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | LOSE, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | BELL, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | TIER3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Dodge, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SoundTypes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `background` is never read [INFO] [stdout] --> src/config.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Sounds { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | pub background: &'static str, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sounds` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPEED` is never used [INFO] [stdout] --> src/config.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | pub const SPEED: usize = 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winImage_cook` is never used [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const winImage_cook: &str = "win_cook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | if let Some(parent) = self.dodges_counter_ref.parent_element(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 143 ~ match self.dodges_counter_ref.parent_element(){ Some(parent) => { [INFO] [stdout] 144 | log!(parent.dyn_into::()).set_hidden(true); [INFO] [stdout] 145 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansem` should have an upper case name [INFO] [stdout] --> src/config.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | const ansem: &str = "start.png"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `ANSEM` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const ansemPunch: &str = "idlee.png"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t1ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | const t1ansemPunch: &str = "T1-Ansem-Punch2.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `T1ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t2ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | const t2ansemPunch: &str = "Tier_22.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `T2ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t3ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | const t3ansemPunch: &str = "t33.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `T3ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `upansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const upansemPunch: &str = "uppercut.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `UPANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winImage` should have an upper case name [INFO] [stdout] --> src/config.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | const winImage: &str = "win.png"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `WIN_IMAGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `loseImage` should have an upper case name [INFO] [stdout] --> src/config.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | const loseImage: &str = "lose.png"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LOSE_IMAGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `punchSound` should have an upper case name [INFO] [stdout] --> src/config.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const punchSound: &str = "punch1.m4a"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PUNCH_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winSound` should have an upper case name [INFO] [stdout] --> src/config.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const winSound: &str = "win.m4a"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `WIN_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `loseSound` should have an upper case name [INFO] [stdout] --> src/config.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const loseSound: &str = "lose.m4a"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LOSE_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `bellSound` should have an upper case name [INFO] [stdout] --> src/config.rs:72:7 [INFO] [stdout] | [INFO] [stdout] 72 | const bellSound: &str = "bell.m4a"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `BELL_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t3Sound` should have an upper case name [INFO] [stdout] --> src/config.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 73 | const t3Sound: &str = "tier3powerup1.m4a"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `T3_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `bgSound` should have an upper case name [INFO] [stdout] --> src/config.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | const bgSound: &str = "background.mp3"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `BG_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `opponent_t1` should have an upper case name [INFO] [stdout] --> src/config.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const opponent_t1: &str = "cook_punch_t1.png"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `OPPONENT_T1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `opponent_t2` should have an upper case name [INFO] [stdout] --> src/config.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const opponent_t2: &str = "cook_punch_t2.png"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `OPPONENT_T2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cook_dodge_1` should have an upper case name [INFO] [stdout] --> src/config.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | const cook_dodge_1: &str = "dodge_1_rev.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `COOK_DODGE_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cook_dodge_2` should have an upper case name [INFO] [stdout] --> src/config.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | const cook_dodge_2: &str = "dodge_2_rev.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `COOK_DODGE_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansem_dodge_1` should have an upper case name [INFO] [stdout] --> src/config.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const ansem_dodge_1: &str = "dodge_1.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `ANSEM_DODGE_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansem_dodge_2` should have an upper case name [INFO] [stdout] --> src/config.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const ansem_dodge_2: &str = "dodge_2.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `ANSEM_DODGE_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `loseImage_cook` should have an upper case name [INFO] [stdout] --> src/config.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const loseImage_cook: &str = "lose_cook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `LOSE_IMAGE_COOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winImage_cook` should have an upper case name [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const winImage_cook: &str = "win_cook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `WIN_IMAGE_COOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cook_t3_pwrup` should have an upper case name [INFO] [stdout] --> src/config.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | const cook_t3_pwrup: &str = "t33_rev.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `COOK_T3_PWRUP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t3_cook_win` should have an upper case name [INFO] [stdout] --> src/config.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const t3_cook_win: &str = "t3_cook_win.png"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `T3_COOK_WIN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dodge` should have an upper case name [INFO] [stdout] --> src/config.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const dodge: &str = "dodge.mp3"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `DODGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `uppercut_kook` should have an upper case name [INFO] [stdout] --> src/config.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | const uppercut_kook: &str = "uppercut_kook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `UPPERCUT_KOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/helpers.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(tx) = tx.borrow_mut().take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/helpers.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 42 ~ match tx.borrow_mut().take() { Some(tx) => { [INFO] [stdout] 43 | let _ = tx.send(()); [INFO] [stdout] 44 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/helpers.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(parent) = element.parent_element(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/helpers.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 56 ~ match element.parent_element(){ Some(parent) => { [INFO] [stdout] 57 | log!(parent.class_list().add_1("cameraShake")); [INFO] [stdout] 58 | sleep(Duration::from_millis(13)).await; [INFO] [stdout] 59 | log!(parent.class_list().remove_1("cameraShake")); [INFO] [stdout] 60 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ansem_wasm` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/helpers.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/helpers.rs:11:6 [INFO] [stderr] | [INFO] [stderr] 11 | ($res: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 107 | let dodges = rand::thread_rng().gen::() < { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:117:43 [INFO] [stdout] | [INFO] [stdout] 117 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:126:43 [INFO] [stdout] | [INFO] [stdout] 126 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/lib.rs:153:41 [INFO] [stdout] | [INFO] [stdout] 153 | let num_punches: usize = if rng.gen::() < 0.5 { 1 } else { 2 }; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HtmlElement` [INFO] [stdout] --> src/helpers.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{Element, Event, HtmlAudioElement, HtmlElement, HtmlImageElement}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/helpers.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | ($res: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 11 | ($res: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PUNCH`, `WIN`, `LOSE`, `BELL`, `TIER3`, and `Dodge` are never constructed [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum SoundTypes { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | PUNCH, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | WIN, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | LOSE, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | BELL, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | TIER3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Dodge, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SoundTypes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `background` is never read [INFO] [stdout] --> src/config.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Sounds { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | pub background: &'static str, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sounds` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPEED` is never used [INFO] [stdout] --> src/config.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | pub const SPEED: usize = 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winImage_cook` is never used [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const winImage_cook: &str = "win_cook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | if let Some(parent) = self.dodges_counter_ref.parent_element(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 143 ~ match self.dodges_counter_ref.parent_element(){ Some(parent) => { [INFO] [stdout] 144 | log!(parent.dyn_into::()).set_hidden(true); [INFO] [stdout] 145 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansem` should have an upper case name [INFO] [stdout] --> src/config.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | const ansem: &str = "start.png"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `ANSEM` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const ansemPunch: &str = "idlee.png"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t1ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | const t1ansemPunch: &str = "T1-Ansem-Punch2.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `T1ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t2ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | const t2ansemPunch: &str = "Tier_22.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `T2ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t3ansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | const t3ansemPunch: &str = "t33.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `T3ANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `upansemPunch` should have an upper case name [INFO] [stdout] --> src/config.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const upansemPunch: &str = "uppercut.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `UPANSEM_PUNCH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winImage` should have an upper case name [INFO] [stdout] --> src/config.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | const winImage: &str = "win.png"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `WIN_IMAGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `loseImage` should have an upper case name [INFO] [stdout] --> src/config.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | const loseImage: &str = "lose.png"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LOSE_IMAGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `punchSound` should have an upper case name [INFO] [stdout] --> src/config.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const punchSound: &str = "punch1.m4a"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PUNCH_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winSound` should have an upper case name [INFO] [stdout] --> src/config.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const winSound: &str = "win.m4a"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `WIN_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `loseSound` should have an upper case name [INFO] [stdout] --> src/config.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const loseSound: &str = "lose.m4a"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LOSE_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `bellSound` should have an upper case name [INFO] [stdout] --> src/config.rs:72:7 [INFO] [stdout] | [INFO] [stdout] 72 | const bellSound: &str = "bell.m4a"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `BELL_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t3Sound` should have an upper case name [INFO] [stdout] --> src/config.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 73 | const t3Sound: &str = "tier3powerup1.m4a"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `T3_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `bgSound` should have an upper case name [INFO] [stdout] --> src/config.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | const bgSound: &str = "background.mp3"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `BG_SOUND` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `opponent_t1` should have an upper case name [INFO] [stdout] --> src/config.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const opponent_t1: &str = "cook_punch_t1.png"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `OPPONENT_T1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `opponent_t2` should have an upper case name [INFO] [stdout] --> src/config.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const opponent_t2: &str = "cook_punch_t2.png"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `OPPONENT_T2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cook_dodge_1` should have an upper case name [INFO] [stdout] --> src/config.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | const cook_dodge_1: &str = "dodge_1_rev.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `COOK_DODGE_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cook_dodge_2` should have an upper case name [INFO] [stdout] --> src/config.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | const cook_dodge_2: &str = "dodge_2_rev.png"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `COOK_DODGE_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansem_dodge_1` should have an upper case name [INFO] [stdout] --> src/config.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const ansem_dodge_1: &str = "dodge_1.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `ANSEM_DODGE_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ansem_dodge_2` should have an upper case name [INFO] [stdout] --> src/config.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const ansem_dodge_2: &str = "dodge_2.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `ANSEM_DODGE_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `loseImage_cook` should have an upper case name [INFO] [stdout] --> src/config.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const loseImage_cook: &str = "lose_cook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `LOSE_IMAGE_COOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `winImage_cook` should have an upper case name [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const winImage_cook: &str = "win_cook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `WIN_IMAGE_COOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cook_t3_pwrup` should have an upper case name [INFO] [stdout] --> src/config.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | const cook_t3_pwrup: &str = "t33_rev.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `COOK_T3_PWRUP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `t3_cook_win` should have an upper case name [INFO] [stdout] --> src/config.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const t3_cook_win: &str = "t3_cook_win.png"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `T3_COOK_WIN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dodge` should have an upper case name [INFO] [stdout] --> src/config.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const dodge: &str = "dodge.mp3"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `DODGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `uppercut_kook` should have an upper case name [INFO] [stdout] --> src/config.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | const uppercut_kook: &str = "uppercut_kook.png"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `UPPERCUT_KOOK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/helpers.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(tx) = tx.borrow_mut().take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/helpers.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 42 ~ match tx.borrow_mut().take() { Some(tx) => { [INFO] [stdout] 43 | let _ = tx.send(()); [INFO] [stdout] 44 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/helpers.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(parent) = element.parent_element(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/helpers.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 56 ~ match element.parent_element(){ Some(parent) => { [INFO] [stdout] 57 | log!(parent.class_list().add_1("cameraShake")); [INFO] [stdout] 58 | sleep(Duration::from_millis(13)).await; [INFO] [stdout] 59 | log!(parent.class_list().remove_1("cameraShake")); [INFO] [stdout] 60 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.79s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ansem-wasm v0.1.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 107 | let dodges = rand::thread_rng().gen::() < { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 107 | let dodges = rand::thread_rng().r#gen::() < { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 107 | let dodges = rand::thread_rng().gen::() < { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 107 | let dodges = rand::thread_rng().r#gen::() < { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:117:43 [INFO] [stdout] | [INFO] [stdout] 117 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 117 | if rand::thread_rng().r#gen::() < 0.5 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:117:43 [INFO] [stdout] | [INFO] [stdout] 117 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 117 | if rand::thread_rng().r#gen::() < 0.5 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:126:43 [INFO] [stdout] | [INFO] [stdout] 126 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 126 | if rand::thread_rng().r#gen::() < 0.5 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:126:43 [INFO] [stdout] | [INFO] [stdout] 126 | if rand::thread_rng().gen::() < 0.5 { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 126 | if rand::thread_rng().r#gen::() < 0.5 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:153:41 [INFO] [stdout] | [INFO] [stdout] 153 | let num_punches: usize = if rng.gen::() < 0.5 { 1 } else { 2 }; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 153 | let num_punches: usize = if rng.r#gen::() < 0.5 { 1 } else { 2 }; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/lib.rs:153:41 [INFO] [stdout] | [INFO] [stdout] 153 | let num_punches: usize = if rng.gen::() < 0.5 { 1 } else { 2 }; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 153 | let num_punches: usize = if rng.r#gen::() < 0.5 { 1 } else { 2 }; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HtmlElement` [INFO] [stdout] --> src/helpers.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{Element, Event, HtmlAudioElement, HtmlElement, HtmlImageElement}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HtmlElement` [INFO] [stdout] --> src/helpers.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{Element, Event, HtmlAudioElement, HtmlElement, HtmlImageElement}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ansem-wasm` (lib) due to 5 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ansem-wasm` (lib test) due to 5 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "70b1910b021e971ac3b0a5482767c4f3d76ce2f68589288302652c6ea4f35d1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70b1910b021e971ac3b0a5482767c4f3d76ce2f68589288302652c6ea4f35d1c", kill_on_drop: false }` [INFO] [stdout] 70b1910b021e971ac3b0a5482767c4f3d76ce2f68589288302652c6ea4f35d1c