[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#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SHaaD94/AICup2022 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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-2-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 97445c676ae2a9074a1eb0726e76007a4f4ff50502f0b6ad3d5725736fc163ce [INFO] running `Command { std: "docker" "start" "-a" "97445c676ae2a9074a1eb0726e76007a4f4ff50502f0b6ad3d5725736fc163ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "97445c676ae2a9074a1eb0726e76007a4f4ff50502f0b6ad3d5725736fc163ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97445c676ae2a9074a1eb0726e76007a4f4ff50502f0b6ad3d5725736fc163ce", kill_on_drop: false }` [INFO] [stdout] 97445c676ae2a9074a1eb0726e76007a4f4ff50502f0b6ad3d5725736fc163ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] baccf5d516c75ab282610e4a5a060d06ced09b9e15084bbe7104cefb83fbe7ed [INFO] running `Command { std: "docker" "start" "-a" "baccf5d516c75ab282610e4a5a060d06ced09b9e15084bbe7104cefb83fbe7ed", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling ucd-trie v0.1.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking time v0.3.11 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking ndarray v0.15.4 [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 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/model/unit.rs:142:58 [INFO] [stdout] | [INFO] [stdout] 142 | let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0))); [INFO] [stdout] 142 + let next_vec = rotate(center, cur_angle, radius * (i as f64 + 1.0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointer` [INFO] [stdout] --> src/model/vec2.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Aim`, `Pickup`, and `UseShieldPotion` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::ActionOrder::{Aim, Pickup, UseShieldPotion}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::Item::ShieldPotions` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::Item::ShieldPotions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActionOrder` and `Loot` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::model::{ActionOrder, Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_all_enemy_units`, `get_constants`, `get_loot`, `get_obstacles`, and `remove_loot` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | get_all_enemy_units, get_constants, get_game, get_loot, get_obstacles, remove_loot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategy::loot::best_loot` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::strategy::loot::best_loot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::strategy::util::intersects_with_obstacles; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TEAL` and `TRANSPARENT_TEAL` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, RED, TEAL, TRANSPARENT_BLUE, TRANSPARENT_TEAL}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WeaponProperties` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::{Obstacle, Unit, UnitOrder, Vec2, WeaponProperties}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `intersects_with_obstacles` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:13:48 [INFO] [stdout] | [INFO] [stdout] 13 | bullet_trace_score, get_projectile_traces, intersects_with_obstacles, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `all` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use itertools::{all, Itertools}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter` and `Pointer` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | use std::fmt::{Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Display` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::path::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN}; [INFO] [stdout] | ^^^^^ ^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Pickup` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::ActionOrder::Pickup; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Loot` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::{Game, Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remove_loot` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:8:77 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::strategy::holder::{book_loot, get_constants, get_game, get_loot, remove_loot}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bullet_trace_score` and `get_projectile_traces` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::strategy::util::{bullet_trace_score, get_projectile_traces, rotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN}; [INFO] [stdout] | ^^^^^ ^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Loot` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::{Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | (goal.clone() - unit.position.clone()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - (goal.clone() - unit.position.clone()) [INFO] [stdout] 92 + goal.clone() - unit.position.clone() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN` and `TRANSPARENT_BLUE` [INFO] [stdout] --> src/strategy/behaviour/run_and_heal.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `intersects_with_obstacles` and `rotate` [INFO] [stdout] --> src/strategy/behaviour/run_and_heal.rs:11:48 [INFO] [stdout] | [INFO] [stdout] 11 | bullet_trace_score, get_projectile_traces, intersects_with_obstacles, rotate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::set_current_dir` [INFO] [stdout] --> src/strategy/behaviour/run_and_heal.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::env::set_current_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Obstacle` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::{Obstacle, Unit, Vec2, WeaponProperties}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `my_units_magnet_score` and `zone_penalty` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::strategy::behaviour::behaviour::{my_units_magnet_score, zone_penalty}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `intersects_with_obstacles_vec` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::strategy::util::{intersects_with_obstacles_vec, rotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `all` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::{all, Itertools}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLUE` and `RED` [INFO] [stdout] --> src/strategy/holder/mod.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::debugging::{BLUE, RED}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles_vec` [INFO] [stdout] --> src/strategy/holder/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::strategy::util::intersects_with_obstacles_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/strategy/holder/mod.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | res.push((x.clone())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - res.push((x.clone())); [INFO] [stdout] 58 + res.push(x.clone()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec2` [INFO] [stdout] --> src/strategy/loot/mod.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::model::{Item, Loot, Unit, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `my_units_collision_score` [INFO] [stdout] --> src/strategy/loot/mod.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::strategy::behaviour::behaviour::{my_units_collision_score, my_units_magnet_score}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/strategy/loot/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::clone` [INFO] [stdout] --> src/strategy/loot/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use libc::clone; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/strategy/loot/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Unit` [INFO] [stdout] --> src/strategy/potential_field.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::model::{Unit, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::debug_interface::DebugInterface` [INFO] [stdout] --> src/strategy/util/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::debug_interface::DebugInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/strategy/util/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::debugging::GREEN` [INFO] [stdout] --> src/strategy/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::debugging::GREEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Aim` [INFO] [stdout] --> src/strategy/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::model::ActionOrder::Aim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActionOrder`, `Constants`, `Game`, `Item`, `Loot`, `Unit`, and `Vec2` [INFO] [stdout] --> src/strategy/mod.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::model::{ActionOrder, Constants, Game, Item, Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/strategy/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/model/unit.rs:142:58 [INFO] [stdout] | [INFO] [stdout] 142 | let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0))); [INFO] [stdout] 142 + let next_vec = rotate(center, cur_angle, radius * (i as f64 + 1.0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointer` [INFO] [stdout] --> src/model/vec2.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Aim`, `Pickup`, and `UseShieldPotion` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::ActionOrder::{Aim, Pickup, UseShieldPotion}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::Item::ShieldPotions` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::Item::ShieldPotions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActionOrder` and `Loot` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::model::{ActionOrder, Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_all_enemy_units`, `get_constants`, `get_loot`, `get_obstacles`, and `remove_loot` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | get_all_enemy_units, get_constants, get_game, get_loot, get_obstacles, remove_loot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategy::loot::best_loot` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::strategy::loot::best_loot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::strategy::util::intersects_with_obstacles; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/strategy/behaviour/behaviour.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TEAL` and `TRANSPARENT_TEAL` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, RED, TEAL, TRANSPARENT_BLUE, TRANSPARENT_TEAL}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WeaponProperties` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::{Obstacle, Unit, UnitOrder, Vec2, WeaponProperties}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `intersects_with_obstacles` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:13:48 [INFO] [stdout] | [INFO] [stdout] 13 | bullet_trace_score, get_projectile_traces, intersects_with_obstacles, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `all` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use itertools::{all, Itertools}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter` and `Pointer` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | use std::fmt::{Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Display` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::path::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN}; [INFO] [stdout] | ^^^^^ ^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Pickup` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::ActionOrder::Pickup; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Loot` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::{Game, Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remove_loot` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:8:77 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::strategy::holder::{book_loot, get_constants, get_game, get_loot, remove_loot}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bullet_trace_score` and `get_projectile_traces` [INFO] [stdout] --> src/strategy/behaviour/ghosting.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::strategy::util::{bullet_trace_score, get_projectile_traces, rotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN}; [INFO] [stdout] | ^^^^^ ^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Loot` [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::model::{Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/strategy/behaviour/move_or_loot.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | (goal.clone() - unit.position.clone()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - (goal.clone() - unit.position.clone()) [INFO] [stdout] 92 + goal.clone() - unit.position.clone() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN` and `TRANSPARENT_BLUE` [INFO] [stdout] --> src/strategy/behaviour/run_and_heal.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `intersects_with_obstacles` and `rotate` [INFO] [stdout] --> src/strategy/behaviour/run_and_heal.rs:11:48 [INFO] [stdout] | [INFO] [stdout] 11 | bullet_trace_score, get_projectile_traces, intersects_with_obstacles, rotate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::set_current_dir` [INFO] [stdout] --> src/strategy/behaviour/run_and_heal.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::env::set_current_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Obstacle` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::{Obstacle, Unit, Vec2, WeaponProperties}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `my_units_magnet_score` and `zone_penalty` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::strategy::behaviour::behaviour::{my_units_magnet_score, zone_penalty}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `intersects_with_obstacles_vec` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::strategy::util::{intersects_with_obstacles_vec, rotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `all` [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::{all, Itertools}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLUE` and `RED` [INFO] [stdout] --> src/strategy/holder/mod.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::debugging::{BLUE, RED}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles_vec` [INFO] [stdout] --> src/strategy/holder/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::strategy::util::intersects_with_obstacles_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/strategy/holder/mod.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | res.push((x.clone())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - res.push((x.clone())); [INFO] [stdout] 58 + res.push(x.clone()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec2` [INFO] [stdout] --> src/strategy/loot/mod.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::model::{Item, Loot, Unit, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `my_units_collision_score` [INFO] [stdout] --> src/strategy/loot/mod.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::strategy::behaviour::behaviour::{my_units_collision_score, my_units_magnet_score}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/strategy/loot/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::clone` [INFO] [stdout] --> src/strategy/loot/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use libc::clone; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/strategy/loot/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Unit` [INFO] [stdout] --> src/strategy/potential_field.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::model::{Unit, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::debug_interface::DebugInterface` [INFO] [stdout] --> src/strategy/util/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::debug_interface::DebugInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/strategy/util/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::debugging::GREEN` [INFO] [stdout] --> src/strategy/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::debugging::GREEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Aim` [INFO] [stdout] --> src/strategy/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::model::ActionOrder::Aim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActionOrder`, `Constants`, `Game`, `Item`, `Loot`, `Unit`, and `Vec2` [INFO] [stdout] --> src/strategy/mod.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::model::{ActionOrder, Constants, Game, Item, Loot, Unit, UnitOrder, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/strategy/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ops::Index; [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:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | 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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 27 | 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:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | 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] 39 | 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:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | 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] 43 | 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:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | 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] 47 | 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:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | 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] 51 | 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:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 56 | 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:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | 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] 66 | 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:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | 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] 74 | 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:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | 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] 101 | 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:190:23 [INFO] [stdout] | [INFO] [stdout] 190 | 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] 190 | 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:207:23 [INFO] [stdout] | [INFO] [stdout] 207 | 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] 207 | for x in 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:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | 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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 27 | 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:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | 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] 39 | 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:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | 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] 43 | 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:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | 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] 47 | 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:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | 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] 51 | 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:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 56 | 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:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | 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] 66 | 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:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | 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] 74 | 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:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | 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] 101 | 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:190:23 [INFO] [stdout] | [INFO] [stdout] 190 | 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] 190 | 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:207:23 [INFO] [stdout] | [INFO] [stdout] 207 | 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] 207 | 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:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | 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: variable does not need to be mutable [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | for mut ally in cur_team { [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/strategy/holder/fight_sim.rs:172:25 [INFO] [stdout] | [INFO] [stdout] 172 | for mut enemy in &mut *other_team { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/strategy/holder/mod.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | 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:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | 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:49:39 [INFO] [stdout] | [INFO] [stdout] 49 | 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:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | 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:127:31 [INFO] [stdout] | [INFO] [stdout] 127 | 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:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | 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:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | 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:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | 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:105:5 [INFO] [stdout] | [INFO] [stdout] 101 | struct FightProps { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 105 | 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/trans.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | Ok(if is_some { [INFO] [stdout] | ____________^ [INFO] [stdout] 88 | | Some(T::read_from(reader)?) [INFO] [stdout] 89 | | } else { [INFO] [stdout] 90 | | None [INFO] [stdout] 91 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 75 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemies_around` [INFO] [stdout] --> src/strategy/behaviour/fighting.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | 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] [stderr] error: could not compile `ai-cup-22` (lib test) due to 2 previous errors; 75 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: variable does not need to be mutable [INFO] [stdout] --> src/strategy/holder/fight_sim.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | for mut ally in cur_team { [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/strategy/holder/fight_sim.rs:172:25 [INFO] [stdout] | [INFO] [stdout] 172 | for mut enemy in &mut *other_team { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon` [INFO] [stdout] --> src/strategy/holder/mod.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | 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:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | 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:49:39 [INFO] [stdout] | [INFO] [stdout] 49 | 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:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | 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:127:31 [INFO] [stdout] | [INFO] [stdout] 127 | 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:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | 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:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | 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:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | 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:105:5 [INFO] [stdout] | [INFO] [stdout] 101 | struct FightProps { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 105 | 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/trans.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | Ok(if is_some { [INFO] [stdout] | ____________^ [INFO] [stdout] 88 | | Some(T::read_from(reader)?) [INFO] [stdout] 89 | | } else { [INFO] [stdout] 90 | | None [INFO] [stdout] 91 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 75 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ai-cup-22` (lib) due to 2 previous errors; 75 warnings emitted [INFO] running `Command { std: "docker" "inspect" "baccf5d516c75ab282610e4a5a060d06ced09b9e15084bbe7104cefb83fbe7ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baccf5d516c75ab282610e4a5a060d06ced09b9e15084bbe7104cefb83fbe7ed", kill_on_drop: false }` [INFO] [stdout] baccf5d516c75ab282610e4a5a060d06ced09b9e15084bbe7104cefb83fbe7ed