[INFO] cloning repository https://github.com/SHaaD94/AICup2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SHaaD94/AICup2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2b5e62223758f918886089ded1294d8b6ba1cc3 [INFO] checking SHaaD94/AICup2022/d2b5e62223758f918886089ded1294d8b6ba1cc3 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022" "/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/SHaaD94/AICup2022 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SHaaD94/AICup2022 [INFO] finished tweaking git repo https://github.com/SHaaD94/AICup2022 [INFO] tweaked toml for git repo https://github.com/SHaaD94/AICup2022 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/SHaaD94/AICup2022 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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] 7f1df9d0c13e54fa69ad1467ca818a86352289548ec5e9f2af3fbfb8193b5787 [INFO] running `Command { std: "docker" "start" "-a" "7f1df9d0c13e54fa69ad1467ca818a86352289548ec5e9f2af3fbfb8193b5787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f1df9d0c13e54fa69ad1467ca818a86352289548ec5e9f2af3fbfb8193b5787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f1df9d0c13e54fa69ad1467ca818a86352289548ec5e9f2af3fbfb8193b5787", kill_on_drop: false }` [INFO] [stdout] 7f1df9d0c13e54fa69ad1467ca818a86352289548ec5e9f2af3fbfb8193b5787 [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] 3cf2a9177c43f23bdd291c549949ac14d9e7944c37031052e1e2a264d5967f74 [INFO] running `Command { std: "docker" "start" "-a" "3cf2a9177c43f23bdd291c549949ac14d9e7944c37031052e1e2a264d5967f74", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling ucd-trie v0.1.4 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking pest v2.1.3 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking time v0.3.11 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking ndarray v0.15.4 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking py_literal v0.4.0 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking zip v0.5.13 [INFO] [stderr] Checking ndarray-npy v0.8.1 [INFO] [stderr] Checking ai-cup-22 v1.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/strategy/behaviour/move_or_loot.rs (3 fixes) [INFO] [stderr] Fixed src/strategy/loot/mod.rs (5 fixes) [INFO] [stderr] Fixed src/strategy/potential_field.rs (1 fix) [INFO] [stderr] Fixed src/strategy/behaviour/fighting.rs (9 fixes) [INFO] [stderr] Fixed src/strategy/behaviour/run_and_heal.rs (3 fixes) [INFO] [stderr] Fixed src/strategy/holder/fight_sim.rs (6 fixes) [INFO] [stderr] Fixed src/strategy/util/mod.rs (2 fixes) [INFO] [stderr] Fixed src/strategy/mod.rs (4 fixes) [INFO] [stderr] Fixed src/model/unit.rs (1 fix) [INFO] [stderr] Fixed src/strategy/behaviour/ghosting.rs (5 fixes) [INFO] [stderr] Fixed src/model/vec2.rs (1 fix) [INFO] [stderr] Fixed src/strategy/behaviour/behaviour.rs (8 fixes) [INFO] [stderr] Fixed src/strategy/holder/mod.rs (4 fixes) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { &FIGHT_SIM_RESULT } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { addr_of!(FIGHT_SIM_RESULT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { &CONSTANTS } [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { addr_of!(CONSTANTS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { &GAME } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { addr_of!(GAME) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &UNITS } [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { addr_of!(UNITS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { &LOOT } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { addr_of!(LOOT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | for x in &LOOT_TO_TICK { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 54 | for x in addr_of!(LOOT_TO_TICK) { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &PROJECTILES } [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of!(PROJECTILES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { &NEAREST_OBSTACLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { addr_of!(NEAREST_OBSTACLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { &UNIT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { addr_of!(UNIT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { &LOOT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { addr_of!(LOOT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { &PROJECTILES } { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { addr_of!(PROJECTILES) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemies_around` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let enemies_around = get_all_enemy_units() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemies_around` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | fn should_use(&self, unit: &Unit) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/strategy/holder/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn remove_loot(id_to_remove: i32) { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 60 | unsafe { LOOT = LOOT_TO_TICK.iter().map(|e| e.1.clone()).collect_vec() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/strategy/holder/mod.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let weapon = sound.type_index - 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_interface` [INFO] [stdout] --> src/strategy/holder/mod.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | fn update_units(game: &Game, debug_interface: &mut Option<&mut DebugInterface>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug` [INFO] [stdout] --> src/strategy/mod.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(debug) = debug_interface.as_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_debug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aim` is never read [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct FightProps { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | aim: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pos` is never read [INFO] [stdout] --> src/strategy/potential_field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PotentialFieldNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 5 | pos: Vec2, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PotentialFieldNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { &FIGHT_SIM_RESULT } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { addr_of!(FIGHT_SIM_RESULT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { &CONSTANTS } [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { addr_of!(CONSTANTS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { &GAME } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { addr_of!(GAME) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &UNITS } [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { addr_of!(UNITS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { &LOOT } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { addr_of!(LOOT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | for x in &LOOT_TO_TICK { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 54 | for x in addr_of!(LOOT_TO_TICK) { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &PROJECTILES } [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of!(PROJECTILES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { &NEAREST_OBSTACLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { addr_of!(NEAREST_OBSTACLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { &UNIT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { addr_of!(UNIT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { &LOOT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { addr_of!(LOOT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/strategy/holder/mod.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { &PROJECTILES } { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { addr_of!(PROJECTILES) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemies_around` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let enemies_around = get_all_enemy_units() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemies_around` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | fn should_use(&self, unit: &Unit) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/strategy/holder/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn remove_loot(id_to_remove: i32) { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 60 | unsafe { LOOT = LOOT_TO_TICK.iter().map(|e| e.1.clone()).collect_vec() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/strategy/holder/mod.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let weapon = sound.type_index - 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_interface` [INFO] [stdout] --> src/strategy/holder/mod.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | fn update_units(game: &Game, debug_interface: &mut Option<&mut DebugInterface>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug` [INFO] [stdout] --> src/strategy/mod.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(debug) = debug_interface.as_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_debug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aim` is never read [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct FightProps { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | aim: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pos` is never read [INFO] [stdout] --> src/strategy/potential_field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PotentialFieldNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 5 | pos: Vec2, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PotentialFieldNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/my_strategy.rs (8 fixes) [INFO] [stdout] warning: unused variable: `displayed_tick` [INFO] [stdout] --> src/my_strategy.rs:122:36 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_displayed_tick` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_interface` [INFO] [stdout] --> src/my_strategy.rs:122:57 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `draw_vision`, `draw_projectiles`, `draw_obstacles`, and `draw_loot` are never used [INFO] [stdout] --> src/my_strategy.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl MyStrategy { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn draw_vision(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn draw_projectiles(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn draw_obstacles(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn draw_loot(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `displayed_tick` [INFO] [stdout] --> src/my_strategy.rs:122:36 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_displayed_tick` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_interface` [INFO] [stdout] --> src/my_strategy.rs:122:57 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `draw_vision`, `draw_projectiles`, `draw_obstacles`, and `draw_loot` are never used [INFO] [stdout] --> src/my_strategy.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl MyStrategy { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn draw_vision(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn draw_projectiles(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn draw_obstacles(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn draw_loot(debug: &mut DebugInterface) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.25s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ai-cup-22 v1.1.0 (/tmp/fixit) [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { &FIGHT_SIM_RESULT } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { addr_of!(FIGHT_SIM_RESULT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { &CONSTANTS } [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { addr_of!(CONSTANTS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { &GAME } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { addr_of!(GAME) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &UNITS } [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { addr_of!(UNITS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { &LOOT } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { addr_of!(LOOT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | for x in &LOOT_TO_TICK { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 54 | for x in addr_of!(LOOT_TO_TICK) { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &PROJECTILES } [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of!(PROJECTILES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { &NEAREST_OBSTACLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { addr_of!(NEAREST_OBSTACLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { &FIGHT_SIM_RESULT } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { addr_of!(FIGHT_SIM_RESULT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { &CONSTANTS } [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { addr_of!(CONSTANTS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { &GAME } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { addr_of!(GAME) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &UNITS } [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { addr_of!(UNITS) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { &LOOT } [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 49 | unsafe { addr_of!(LOOT) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | for x in &LOOT_TO_TICK { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 54 | for x in addr_of!(LOOT_TO_TICK) { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &PROJECTILES } [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of!(PROJECTILES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { &NEAREST_OBSTACLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { addr_of!(NEAREST_OBSTACLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { &UNIT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { addr_of!(UNIT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { &LOOT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { addr_of!(LOOT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { &UNIT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 99 | for x in unsafe { addr_of!(UNIT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { &PROJECTILES } { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { addr_of!(PROJECTILES) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { &LOOT_TO_TICK } { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 188 | for x in unsafe { addr_of!(LOOT_TO_TICK) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/strategy/holder/mod.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { &PROJECTILES } { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 205 | for x in unsafe { addr_of!(PROJECTILES) } { [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemies_around` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let enemies_around = get_all_enemy_units() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemies_around` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemies_around` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let enemies_around = get_all_enemy_units() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemies_around` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | fn should_use(&self, unit: &Unit) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | fn should_use(&self, unit: &Unit) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/strategy/holder/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn remove_loot(id_to_remove: i32) { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 60 | unsafe { LOOT = LOOT_TO_TICK.iter().map(|e| e.1.clone()).collect_vec() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/strategy/holder/mod.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let weapon = sound.type_index - 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_interface` [INFO] [stdout] --> src/strategy/holder/mod.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | fn update_units(game: &Game, debug_interface: &mut Option<&mut DebugInterface>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/strategy/holder/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn remove_loot(id_to_remove: i32) { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 60 | unsafe { LOOT = LOOT_TO_TICK.iter().map(|e| e.1.clone()).collect_vec() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/strategy/holder/mod.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let weapon = sound.type_index - 1; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_interface` [INFO] [stdout] --> src/strategy/holder/mod.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | fn update_units(game: &Game, debug_interface: &mut Option<&mut DebugInterface>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | Item::ShieldPotions { amount } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/strategy/loot/mod.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | amount, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug` [INFO] [stdout] --> src/strategy/mod.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(debug) = debug_interface.as_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_debug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constants` [INFO] [stdout] --> src/strategy/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let constants = get_constants(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug` [INFO] [stdout] --> src/strategy/mod.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(debug) = debug_interface.as_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_debug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ai-cup-22` (lib test) due to 12 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ai-cup-22` (lib) due to 12 previous errors; 12 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" "3cf2a9177c43f23bdd291c549949ac14d9e7944c37031052e1e2a264d5967f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cf2a9177c43f23bdd291c549949ac14d9e7944c37031052e1e2a264d5967f74", kill_on_drop: false }` [INFO] [stdout] 3cf2a9177c43f23bdd291c549949ac14d9e7944c37031052e1e2a264d5967f74