[INFO] cloning repository https://github.com/ShaJaPas/tank_wars_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShaJaPas/tank_wars_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShaJaPas%2Ftank_wars_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShaJaPas%2Ftank_wars_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1b7e9fadaccb2bd348261109dafe287f2271088 [INFO] checking ShaJaPas/tank_wars_server/e1b7e9fadaccb2bd348261109dafe287f2271088 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShaJaPas%2Ftank_wars_server" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShaJaPas/tank_wars_server 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] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ShaJaPas/tank_wars_server [INFO] finished tweaking git repo https://github.com/ShaJaPas/tank_wars_server [INFO] tweaked toml for git repo https://github.com/ShaJaPas/tank_wars_server written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 226 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.21.0 (available: v0.24.1) [INFO] [stderr] Adding backtrace v0.3.71 (available: v0.3.74) [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bit-vec v0.6.3 (available: v0.8.0) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding ctor v0.1.26 (available: v0.2.8) [INFO] [stderr] Adding dashmap v5.5.3 (available: v6.1.0) [INFO] [stderr] Adding diesel v1.4.8 (available: v2.2.4) [INFO] [stderr] Adding diesel_derives v1.4.1 (available: v2.2.3) [INFO] [stderr] Adding fast_rsync v0.1.4 (available: v0.2.0) [INFO] [stderr] Adding flume v0.10.14 (available: v0.11.0) [INFO] [stderr] Adding generator v0.7.5 (available: v0.8.3) [INFO] [stderr] Adding gimli v0.28.1 (available: v0.31.0) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding loom v0.5.6 (available: v0.7.2) [INFO] [stderr] Adding matchers v0.1.0 (available: v0.2.0) [INFO] [stderr] Adding miniz_oxide v0.7.4 (available: v0.8.0) [INFO] [stderr] Adding nalgebra v0.31.4 (available: v0.33.0) [INFO] [stderr] Adding nalgebra-macros v0.1.0 (available: v0.2.2) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (available: v0.50.1) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding object v0.32.2 (available: v0.36.4) [INFO] [stderr] Adding owo-colors v3.5.0 (available: v4.1.0) [INFO] [stderr] Adding parry2d v0.9.0 (available: v0.17.1) [INFO] [stderr] Adding pem v1.1.1 (available: v3.0.4) [INFO] [stderr] Adding pq-sys v0.4.8 (available: v0.6.3) [INFO] [stderr] Adding quinn v0.8.5 (available: v0.11.5) [INFO] [stderr] Adding quinn-proto v0.8.4 (available: v0.11.8) [INFO] [stderr] Adding quinn-udp v0.1.4 (available: v0.5.5) [INFO] [stderr] Adding rapier2d v0.14.0 (available: v0.22.0) [INFO] [stderr] Adding rcgen v0.9.3 (available: v0.13.1) [INFO] [stderr] Adding regex-automata v0.1.10 (available: v0.4.7) [INFO] [stderr] Adding regex-syntax v0.6.29 (available: v0.8.4) [INFO] [stderr] Adding ring v0.16.20 (available: v0.17.8) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding rustls v0.20.9 (available: v0.23.13) [INFO] [stderr] Adding rustls-native-certs v0.6.3 (available: v0.8.0) [INFO] [stderr] Adding rustls-pemfile v0.2.1 (available: v2.1.3) [INFO] [stderr] Adding rustls-pemfile v1.0.4 (available: v2.1.3) [INFO] [stderr] Adding security-framework v2.11.1 (available: v3.0.0) [INFO] [stderr] Adding simba v0.7.3 (available: v0.9.0) [INFO] [stderr] Adding socket2 v0.4.10 (available: v0.5.7) [INFO] [stderr] Adding spin v0.5.2 (available: v0.9.8) [INFO] [stderr] Adding state v0.5.3 (available: v0.6.0) [INFO] [stderr] Adding strum v0.24.1 (available: v0.26.3) [INFO] [stderr] Adding strum_macros v0.24.3 (available: v0.26.4) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] [stderr] Adding untrusted v0.7.1 (available: v0.9.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows v0.48.0 (available: v0.58.0) [INFO] [stderr] Adding windows-core v0.52.0 (available: v0.58.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [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-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95bf202aff8a89488283ac6ab913e6229c09133475ec0f5669bed4d06e2de6ba [INFO] running `Command { std: "docker" "start" "-a" "95bf202aff8a89488283ac6ab913e6229c09133475ec0f5669bed4d06e2de6ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95bf202aff8a89488283ac6ab913e6229c09133475ec0f5669bed4d06e2de6ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95bf202aff8a89488283ac6ab913e6229c09133475ec0f5669bed4d06e2de6ba", kill_on_drop: false }` [INFO] [stdout] 95bf202aff8a89488283ac6ab913e6229c09133475ec0f5669bed4d06e2de6ba [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40f844f3b31978bdcfaf5ec29d63041c88ab9ce19a824dd0803b6c84c5802f6c [INFO] running `Command { std: "docker" "start" "-a" "40f844f3b31978bdcfaf5ec29d63041c88ab9ce19a824dd0803b6c84c5802f6c", 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 unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling cc v1.1.22 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking rustls-pemfile v0.2.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking robust v1.1.0 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking pem v1.1.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Checking web-time v1.1.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking yasna v0.5.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking directories-next v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rs-snowflake v0.6.0 [INFO] [stderr] Checking fast_rsync v0.1.4 [INFO] [stderr] Checking state v0.5.3 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking rcgen v0.9.3 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking minstant v0.1.7 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking webpki v0.22.4 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.1 [INFO] [stderr] Checking color-eyre v0.6.3 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking spade v2.12.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking quinn-proto v0.8.4 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking quinn-udp v0.1.4 [INFO] [stderr] Checking quinn v0.8.5 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking argh_shared v0.1.12 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking simba v0.7.3 [INFO] [stderr] Compiling argh_derive v0.1.12 [INFO] [stderr] Checking diesel v1.4.8 [INFO] [stderr] Checking argh v0.1.12 [INFO] [stderr] Checking nalgebra v0.31.4 [INFO] [stderr] Checking parry2d v0.9.0 [INFO] [stderr] Checking rapier2d v0.14.0 [INFO] [stderr] Checking tank_wars_server v0.1.1 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `tank_wars_server` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut gen = rand::thread_rng(); [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] [stderr] [INFO] [stderr] * src/data/player.rs [INFO] [stderr] * src/physics.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] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 116 | price: gen.gen_range(40..=50), [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] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | count: gen.gen_range(40..=50), [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] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 124 | price: gen.gen_range(price..=(price as f32 * 1.1) as i32), [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] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let mut gen = rand::thread_rng(); [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] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | price: gen.gen_range(40..=50), [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] [stderr] fixing code with the `--broken-code` flag [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/data/player.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | count: gen.gen_range(40..=50), [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] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/network.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let gen = snowflake::SnowflakeIdGenerator::new(1, 1); [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] [stderr] The following errors were reported: [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/network.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | parking_lot::Mutex::new(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] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/physics.rs:431:17 [INFO] [stdout] | [INFO] [stdout] 431 | let mut gen = rand::thread_rng(); [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] [stderr] --> src/physics.rs:27:42 [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/physics.rs:466:60 [INFO] [stdout] | [INFO] [stdout] 466 | ... let battle_map = &maps[gen.gen_range(0..maps.len())]; [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] [stderr] | [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/physics.rs:1089:51 [INFO] [stdout] | [INFO] [stdout] 1089 | ... send_results!(battle, gen, 0, 1, false); [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] [stderr] 27 | ($x:ident, $gen:ident, $a:tt, $b:tt, $draw:expr_2021) => { [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/physics.rs:1092:51 [INFO] [stdout] | [INFO] [stdout] 1092 | ... send_results!(battle, gen, 1, 0, false); [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] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/physics.rs:1095:51 [INFO] [stdout] | [INFO] [stdout] 1095 | ... send_results!(battle, gen, 1, 0, true); [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] [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] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stderr] --> src/data/player.rs:60:20 [INFO] [stderr] | [INFO] [stderr] 60 | NaiveDate::from_ymd(1970, 1, 1), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stderr] --> src/data/player.rs:61:20 [INFO] [stderr] | [INFO] [stderr] 61 | NaiveTime::from_hms(0, 0, 0), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/physics.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | ($x:ident, $gen:ident, $a:tt, $b:tt, $draw: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] 27 | ($x:ident, $gen:ident, $a:tt, $b:tt, $draw:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:548:37 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut tank) = player.tanks.iter_mut().find(|f| f.id == tank_id) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/data/player.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | NaiveDate::from_ymd(1970, 1, 1), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/data/player.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | NaiveTime::from_hms(0, 0, 0), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | while let Ok(Some(entry)) = dir.next_entry().await { [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/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | if let Err(e) = fut.await { [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/network.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 49 ~ match fut.await { Err(e) => { [INFO] [stdout] 50 | error!("{}", e); [INFO] [stdout] 51 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | while let Some(conn) = incoming.next().await { [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/network.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | if let Ok(conn) = conn.await { [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/network.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 77 ~ match conn.await { Ok(conn) => { [INFO] [stdout] 78 | let id = conn.connection.stable_id(); [INFO] [stdout] ... [INFO] [stdout] 89 | }); [INFO] [stdout] 90 ~ } _ => { [INFO] [stdout] 91 | error!("failed to open NewConnection"); [INFO] [stdout] 92 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | if let Err(e) = fut.await { [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/network.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 81 ~ match fut.await { Err(e) => { [INFO] [stdout] 82 | let client = CLIENTS.get().remove(&id).unwrap(); [INFO] [stdout] ... [INFO] [stdout] 87 | error!("connection failed: {reason}", reason = e.to_string()); [INFO] [stdout] 88 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let Ok(x) = recv.recv_async().await { [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/network.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:150:24 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(index) = list.iter().position(|f| f.0 .0.id == id) { [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/network.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 150 ~ match list.iter().position(|f| f.0 .0.id == id) { Some(index) => { [INFO] [stdout] 151 | list.remove(index); [INFO] [stdout] 152 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:253:28 [INFO] [stdout] | [INFO] [stdout] 253 | if let Ok(packet) = PlayerPosition::deserialize(&mut Deserializer::new(buf.as_ref())){ [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/network.rs:258:25 [INFO] [stdout] | [INFO] [stdout] 258 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 253 ~ match PlayerPosition::deserialize(&mut Deserializer::new(buf.as_ref())){ Ok(packet) => { [INFO] [stdout] 254 | if let Some(client) = CLIENTS.get().get(&conn.connection.stable_id()){ [INFO] [stdout] ... [INFO] [stdout] 257 | } [INFO] [stdout] 258 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:254:32 [INFO] [stdout] | [INFO] [stdout] 254 | ... if let Some(client) = CLIENTS.get().get(&conn.connection.stable_id()){ [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/network.rs:257:29 [INFO] [stdout] | [INFO] [stdout] 257 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 254 ~ match CLIENTS.get().get(&conn.connection.stable_id()){ Some(client) => { [INFO] [stdout] 255 | let cmd = PhysicsCommand::PlayerPacket {id: client.id, position: packet}; [INFO] [stdout] 256 | PHYSICS.get().send(cmd).unwrap(); [INFO] [stdout] 257 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:334:20 [INFO] [stdout] | [INFO] [stdout] 334 | if let Some(client) = CLIENTS.get().get(&conn.stable_id()) { [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/network.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 334 ~ match CLIENTS.get().get(&conn.stable_id()) { Some(client) => { [INFO] [stdout] 335 | let cmd = PhysicsCommand::PlayerShoot { id: client.id }; [INFO] [stdout] 336 | PHYSICS.get().send(cmd).unwrap(); [INFO] [stdout] 337 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | while let Some(chunk) = recv.read_chunk(usize::MAX, true).await? { [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/network.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:355:16 [INFO] [stdout] | [INFO] [stdout] 355 | if let Ok(packet) = data::Packet::deserialize(&mut de) { [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/network.rs:636:13 [INFO] [stdout] | [INFO] [stdout] 636 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 355 ~ match data::Packet::deserialize(&mut de) { Ok(packet) => { [INFO] [stdout] 356 | let size: usize = de.position() as usize; [INFO] [stdout] ... [INFO] [stdout] 635 | } [INFO] [stdout] 636 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:410:35 [INFO] [stdout] | [INFO] [stdout] 410 | ... while let Ok(Some(entry)) = dir.next_entry().await { [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/network.rs:438:29 [INFO] [stdout] | [INFO] [stdout] 438 | ... } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:445:28 [INFO] [stdout] | [INFO] [stdout] 445 | if let Some(id) = CLIENTS.get().get_mut(&conn.stable_id()).map(|f| f.id) { [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/network.rs:453:25 [INFO] [stdout] | [INFO] [stdout] 453 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 445 ~ match CLIENTS.get().get_mut(&conn.stable_id()).map(|f| f.id) { Some(id) => { [INFO] [stdout] 446 | PHYSICS [INFO] [stdout] ... [INFO] [stdout] 452 | .unwrap(); [INFO] [stdout] 453 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/physics.rs:441:36 [INFO] [stdout] | [INFO] [stdout] 441 | ... if let ( [INFO] [stdout] | __________________________^ [INFO] [stdout] 442 | | ... Ok::(mut player1), [INFO] [stdout] 443 | | ... Ok::(mut player2), [INFO] [stdout] 444 | | ... ) = (player1.try_into(), player2.try_into()) [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/physics.rs:759:33 [INFO] [stdout] | [INFO] [stdout] 759 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 441 ~ match (player1.try_into(), player2.try_into()) [INFO] [stdout] 442 ~ { ( [INFO] [stdout] 443 + Ok::(mut player1), [INFO] [stdout] 444 + Ok::(mut player2), [INFO] [stdout] 445 ~ ) => { [INFO] [stdout] 446 | let (collision_send, collision_recv) = flume::unbounded(); [INFO] [stdout] ... [INFO] [stdout] 758 | battles.push(battle); [INFO] [stdout] 759 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/physics.rs:1127:27 [INFO] [stdout] | [INFO] [stdout] 1127 | while let Ok((collision_event, mut point)) = [INFO] [stdout] | ___________________________^ [INFO] [stdout] 1128 | | battles[i].collision_recv.try_recv() [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/physics.rs:1262:21 [INFO] [stdout] | [INFO] [stdout] 1262 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/physics.rs:1480:15 [INFO] [stdout] | [INFO] [stdout] 1480 | while let Some(Ok(entry)) = dir.next() { [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/physics.rs:1486:9 [INFO] [stdout] | [INFO] [stdout] 1486 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `tank_wars_server` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/data/player.rs [INFO] [stderr] * src/physics.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/physics.rs:27:42 [INFO] [stderr] | [INFO] [stderr] 27 | ($x:ident, $gen:ident, $a:tt, $b:tt, $draw: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] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stderr] --> src/data/player.rs:60:20 [INFO] [stderr] | [INFO] [stderr] 60 | NaiveDate::from_ymd(1970, 1, 1), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stderr] --> src/data/player.rs:61:20 [INFO] [stderr] | [INFO] [stderr] 61 | NaiveTime::from_hms(0, 0, 0), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 2 warnings emitted [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/data/player.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut gen = rand::thread_rng(); [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/data/player.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 116 | price: gen.gen_range(40..=50), [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/data/player.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | count: gen.gen_range(40..=50), [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/data/player.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 124 | price: gen.gen_range(price..=(price as f32 * 1.1) as i32), [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/data/player.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let mut gen = rand::thread_rng(); [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/data/player.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | price: gen.gen_range(40..=50), [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/data/player.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | count: gen.gen_range(40..=50), [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/network.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let gen = snowflake::SnowflakeIdGenerator::new(1, 1); [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/network.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | parking_lot::Mutex::new(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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/physics.rs:431:17 [INFO] [stdout] | [INFO] [stdout] 431 | let mut gen = rand::thread_rng(); [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/physics.rs:466:60 [INFO] [stdout] | [INFO] [stdout] 466 | ... let battle_map = &maps[gen.gen_range(0..maps.len())]; [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/physics.rs:1089:51 [INFO] [stdout] | [INFO] [stdout] 1089 | ... send_results!(battle, gen, 0, 1, false); [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/physics.rs:1092:51 [INFO] [stdout] | [INFO] [stdout] 1092 | ... send_results!(battle, gen, 1, 0, false); [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/physics.rs:1095:51 [INFO] [stdout] | [INFO] [stdout] 1095 | ... send_results!(battle, gen, 1, 0, true); [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/physics.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | ($x:ident, $gen:ident, $a:tt, $b:tt, $draw: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] 27 | ($x:ident, $gen:ident, $a:tt, $b:tt, $draw:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:548:37 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut tank) = player.tanks.iter_mut().find(|f| f.id == tank_id) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/data/player.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | NaiveDate::from_ymd(1970, 1, 1), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/data/player.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | NaiveTime::from_hms(0, 0, 0), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | while let Ok(Some(entry)) = dir.next_entry().await { [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/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | if let Err(e) = fut.await { [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/network.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 49 ~ match fut.await { Err(e) => { [INFO] [stdout] 50 | error!("{}", e); [INFO] [stdout] 51 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | while let Some(conn) = incoming.next().await { [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/network.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | if let Ok(conn) = conn.await { [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/network.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 77 ~ match conn.await { Ok(conn) => { [INFO] [stdout] 78 | let id = conn.connection.stable_id(); [INFO] [stdout] ... [INFO] [stdout] 89 | }); [INFO] [stdout] 90 ~ } _ => { [INFO] [stdout] 91 | error!("failed to open NewConnection"); [INFO] [stdout] 92 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | if let Err(e) = fut.await { [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/network.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 81 ~ match fut.await { Err(e) => { [INFO] [stdout] 82 | let client = CLIENTS.get().remove(&id).unwrap(); [INFO] [stdout] ... [INFO] [stdout] 87 | error!("connection failed: {reason}", reason = e.to_string()); [INFO] [stdout] 88 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let Ok(x) = recv.recv_async().await { [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/network.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:150:24 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(index) = list.iter().position(|f| f.0 .0.id == id) { [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/network.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 150 ~ match list.iter().position(|f| f.0 .0.id == id) { Some(index) => { [INFO] [stdout] 151 | list.remove(index); [INFO] [stdout] 152 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:253:28 [INFO] [stdout] | [INFO] [stdout] 253 | if let Ok(packet) = PlayerPosition::deserialize(&mut Deserializer::new(buf.as_ref())){ [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/network.rs:258:25 [INFO] [stdout] | [INFO] [stdout] 258 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 253 ~ match PlayerPosition::deserialize(&mut Deserializer::new(buf.as_ref())){ Ok(packet) => { [INFO] [stdout] 254 | if let Some(client) = CLIENTS.get().get(&conn.connection.stable_id()){ [INFO] [stdout] ... [INFO] [stdout] 257 | } [INFO] [stdout] 258 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:254:32 [INFO] [stdout] | [INFO] [stdout] 254 | ... if let Some(client) = CLIENTS.get().get(&conn.connection.stable_id()){ [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/network.rs:257:29 [INFO] [stdout] | [INFO] [stdout] 257 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 254 ~ match CLIENTS.get().get(&conn.connection.stable_id()){ Some(client) => { [INFO] [stdout] 255 | let cmd = PhysicsCommand::PlayerPacket {id: client.id, position: packet}; [INFO] [stdout] 256 | PHYSICS.get().send(cmd).unwrap(); [INFO] [stdout] 257 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:334:20 [INFO] [stdout] | [INFO] [stdout] 334 | if let Some(client) = CLIENTS.get().get(&conn.stable_id()) { [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/network.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 334 ~ match CLIENTS.get().get(&conn.stable_id()) { Some(client) => { [INFO] [stdout] 335 | let cmd = PhysicsCommand::PlayerShoot { id: client.id }; [INFO] [stdout] 336 | PHYSICS.get().send(cmd).unwrap(); [INFO] [stdout] 337 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | while let Some(chunk) = recv.read_chunk(usize::MAX, true).await? { [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/network.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:355:16 [INFO] [stdout] | [INFO] [stdout] 355 | if let Ok(packet) = data::Packet::deserialize(&mut de) { [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/network.rs:636:13 [INFO] [stdout] | [INFO] [stdout] 636 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 355 ~ match data::Packet::deserialize(&mut de) { Ok(packet) => { [INFO] [stdout] 356 | let size: usize = de.position() as usize; [INFO] [stdout] ... [INFO] [stdout] 635 | } [INFO] [stdout] 636 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:410:35 [INFO] [stdout] | [INFO] [stdout] 410 | ... while let Ok(Some(entry)) = dir.next_entry().await { [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/network.rs:438:29 [INFO] [stdout] | [INFO] [stdout] 438 | ... } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/network.rs:445:28 [INFO] [stdout] | [INFO] [stdout] 445 | if let Some(id) = CLIENTS.get().get_mut(&conn.stable_id()).map(|f| f.id) { [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/network.rs:453:25 [INFO] [stdout] | [INFO] [stdout] 453 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 445 ~ match CLIENTS.get().get_mut(&conn.stable_id()).map(|f| f.id) { Some(id) => { [INFO] [stdout] 446 | PHYSICS [INFO] [stdout] ... [INFO] [stdout] 452 | .unwrap(); [INFO] [stdout] 453 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/physics.rs:441:36 [INFO] [stdout] | [INFO] [stdout] 441 | ... if let ( [INFO] [stdout] | __________________________^ [INFO] [stdout] 442 | | ... Ok::(mut player1), [INFO] [stdout] 443 | | ... Ok::(mut player2), [INFO] [stdout] 444 | | ... ) = (player1.try_into(), player2.try_into()) [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/physics.rs:759:33 [INFO] [stdout] | [INFO] [stdout] 759 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 441 ~ match (player1.try_into(), player2.try_into()) [INFO] [stdout] 442 ~ { ( [INFO] [stdout] 443 + Ok::(mut player1), [INFO] [stdout] 444 + Ok::(mut player2), [INFO] [stdout] 445 ~ ) => { [INFO] [stdout] 446 | let (collision_send, collision_recv) = flume::unbounded(); [INFO] [stdout] ... [INFO] [stdout] 758 | battles.push(battle); [INFO] [stdout] 759 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/physics.rs:1127:27 [INFO] [stdout] | [INFO] [stdout] 1127 | while let Ok((collision_event, mut point)) = [INFO] [stdout] | ___________________________^ [INFO] [stdout] 1128 | | battles[i].collision_recv.try_recv() [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/physics.rs:1262:21 [INFO] [stdout] | [INFO] [stdout] 1262 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/physics.rs:1480:15 [INFO] [stdout] | [INFO] [stdout] 1480 | while let Some(Ok(entry)) = dir.next() { [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/physics.rs:1486:9 [INFO] [stdout] | [INFO] [stdout] 1486 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.49s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking tank_wars_server v0.1.1 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut gen = rand::thread_rng(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 105 | let mut r#gen = rand::thread_rng(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut gen = rand::thread_rng(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 105 | let mut r#gen = rand::thread_rng(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 115 | result.push(DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 116 | price: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 115 | result.push(DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 116 | price: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 115 | result.push(DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 118 | count: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 115 | result.push(DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 118 | count: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 123 | result.push(DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 124 | price: gen.gen_range(price..=(price as f32 * 1.1) as i32), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let mut gen = rand::thread_rng(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 136 | let mut r#gen = rand::thread_rng(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 123 | result.push(DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 124 | price: gen.gen_range(price..=(price as f32 * 1.1) as i32), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 139 | *x = DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 140 | price: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let mut gen = rand::thread_rng(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 136 | let mut r#gen = rand::thread_rng(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 139 | *x = DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 140 | price: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 139 | *x = DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 142 | count: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/data/player.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 139 | *x = DailyItem { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 142 | count: gen.gen_range(40..=50), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/network.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let gen = snowflake::SnowflakeIdGenerator::new(1, 1); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 38 | let r#gen = snowflake::SnowflakeIdGenerator::new(1, 1); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/network.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let gen = snowflake::SnowflakeIdGenerator::new(1, 1); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 38 | let r#gen = snowflake::SnowflakeIdGenerator::new(1, 1); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/network.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | parking_lot::Mutex::new(gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/network.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | parking_lot::Mutex::new(gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:431:17 [INFO] [stdout] | [INFO] [stdout] 431 | let mut gen = rand::thread_rng(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 431 | let mut r#gen = rand::thread_rng(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:466:60 [INFO] [stdout] | [INFO] [stdout] 466 | ... let battle_map = &maps[gen.gen_range(0..maps.len())]; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:431:17 [INFO] [stdout] | [INFO] [stdout] 431 | let mut gen = rand::thread_rng(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 431 | let mut r#gen = rand::thread_rng(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:466:60 [INFO] [stdout] | [INFO] [stdout] 466 | ... let battle_map = &maps[gen.gen_range(0..maps.len())]; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut win_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 45 | coins: $gen.gen_range(70..=100) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1089 | send_results!(battle, gen, 0, 1, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 64 | let mut lose_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 70 | coins: $gen.gen_range(15..=20) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1089 | send_results!(battle, gen, 0, 1, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut win_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 45 | coins: $gen.gen_range(70..=100) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1092 | send_results!(battle, gen, 1, 0, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 64 | let mut lose_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 70 | coins: $gen.gen_range(15..=20) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1092 | send_results!(battle, gen, 1, 0, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut win_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 45 | coins: $gen.gen_range(70..=100) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1095 | send_results!(battle, gen, 1, 0, true); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 64 | let mut lose_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 70 | coins: $gen.gen_range(15..=20) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1095 | send_results!(battle, gen, 1, 0, true); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut win_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 45 | coins: $gen.gen_range(70..=100) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1089 | send_results!(battle, gen, 0, 1, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 64 | let mut lose_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 70 | coins: $gen.gen_range(15..=20) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1089 | send_results!(battle, gen, 0, 1, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut win_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 45 | coins: $gen.gen_range(70..=100) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1092 | send_results!(battle, gen, 1, 0, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 64 | let mut lose_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 70 | coins: $gen.gen_range(15..=20) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1092 | send_results!(battle, gen, 1, 0, false); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut win_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 45 | coins: $gen.gen_range(70..=100) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1095 | send_results!(battle, gen, 1, 0, true); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/physics.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 64 | let mut lose_results = BattleResultStruct { [INFO] [stdout] | ------------------ while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 70 | coins: $gen.gen_range(15..=20) [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] ... [INFO] [stdout] 1095 | send_results!(battle, gen, 1, 0, true); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `send_results` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/data/player.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/data/player.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/physics.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/physics.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:548:37 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut tank) = player.tanks.iter_mut().find(|f| f.id == tank_id) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:548:37 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut tank) = player.tanks.iter_mut().find(|f| f.id == tank_id) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/data/player.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | NaiveDate::from_ymd(1970, 1, 1), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/data/player.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | NaiveTime::from_hms(0, 0, 0), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/data/player.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | NaiveDate::from_ymd(1970, 1, 1), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/data/player.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | NaiveTime::from_hms(0, 0, 0), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `players` on type `&mut _` [INFO] [stdout] --> src/physics.rs:765:62 [INFO] [stdout] | [INFO] [stdout] 765 | ... let player = if id == battle.players.0.player.id { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `players` on type `&mut _` [INFO] [stdout] --> src/physics.rs:866:62 [INFO] [stdout] | [INFO] [stdout] 866 | ... let player = if id == battle.players.0.player.id { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `players` on type `&mut _` [INFO] [stdout] --> src/physics.rs:987:62 [INFO] [stdout] | [INFO] [stdout] 987 | ... let player = if id == battle.players.0.player.id { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `players` on type `&mut _` [INFO] [stdout] --> src/physics.rs:765:62 [INFO] [stdout] | [INFO] [stdout] 765 | ... let player = if id == battle.players.0.player.id { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `players` on type `&mut _` [INFO] [stdout] --> src/physics.rs:866:62 [INFO] [stdout] | [INFO] [stdout] 866 | ... let player = if id == battle.players.0.player.id { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `players` on type `&mut _` [INFO] [stdout] --> src/physics.rs:987:62 [INFO] [stdout] | [INFO] [stdout] 987 | ... let player = if id == battle.players.0.player.id { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0609`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tank_wars_server` (bin "tank_wars_server") due to 21 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 20 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0609`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tank_wars_server` (bin "tank_wars_server" test) due to 21 previous errors; 5 warnings 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" "40f844f3b31978bdcfaf5ec29d63041c88ab9ce19a824dd0803b6c84c5802f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40f844f3b31978bdcfaf5ec29d63041c88ab9ce19a824dd0803b6c84c5802f6c", kill_on_drop: false }` [INFO] [stdout] 40f844f3b31978bdcfaf5ec29d63041c88ab9ce19a824dd0803b6c84c5802f6c