[INFO] cloning repository https://github.com/mahnovsky/rust_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mahnovsky/rust_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahnovsky%2Frust_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahnovsky%2Frust_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 521b6f3b78c58d11a5294dc5a8d8aba0d8b26696 [INFO] building mahnovsky/rust_game against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahnovsky%2Frust_game" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mahnovsky/rust_game [INFO] finished tweaking git repo https://github.com/mahnovsky/rust_game [INFO] tweaked toml for git repo https://github.com/mahnovsky/rust_game written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mahnovsky/rust_game on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mahnovsky/rust_game 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simba v0.9.0 [INFO] [stderr] Downloaded avif-serialize v0.8.3 [INFO] [stderr] Downloaded zune-inflate v0.2.54 [INFO] [stderr] Downloaded zune-jpeg v0.4.14 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded built v0.7.7 [INFO] [stderr] Downloaded half v2.5.0 [INFO] [stderr] Downloaded cc v1.2.18 [INFO] [stderr] Downloaded image-webp v0.2.1 [INFO] [stderr] Downloaded exr v1.73.0 [INFO] [stderr] Downloaded imgref v1.11.0 [INFO] [stderr] Downloaded anyhow v1.0.97 [INFO] [stderr] Downloaded toml v0.8.20 [INFO] [stderr] Downloaded zune-core v0.4.12 [INFO] [stderr] Downloaded bytemuck v1.22.0 [INFO] [stderr] Downloaded wide v0.7.32 [INFO] [stderr] Downloaded zerocopy-derive v0.8.24 [INFO] [stderr] Downloaded v_frame v0.3.8 [INFO] [stderr] Downloaded rav1e v0.7.1 [INFO] [stderr] Downloaded libfuzzer-sys v0.4.9 [INFO] [stderr] Downloaded toml_edit v0.22.24 [INFO] [stderr] Downloaded miniz_oxide v0.8.7 [INFO] [stderr] Downloaded glfw v0.59.0 [INFO] [stderr] Downloaded ravif v0.11.11 [INFO] [stderr] Downloaded loop9 v0.1.5 [INFO] [stderr] Downloaded winnow v0.7.4 [INFO] [stderr] Downloaded quick-error v2.0.1 [INFO] [stderr] Downloaded arg_enum_proc_macro v0.3.4 [INFO] [stderr] Downloaded bitstream-io v2.6.0 [INFO] [stderr] Downloaded profiling-procmacros v1.0.16 [INFO] [stderr] Downloaded simd_helpers v0.1.0 [INFO] [stderr] Downloaded matrixmultiply v0.3.9 [INFO] [stderr] Downloaded libc v0.2.171 [INFO] [stderr] Downloaded syn v2.0.100 [INFO] [stderr] Downloaded nalgebra v0.33.2 [INFO] [stderr] Downloaded zerocopy v0.8.24 [INFO] [stderr] Downloaded yaml-rust2 v0.10.1 [INFO] [stderr] Downloaded interpolate_name v0.2.4 [INFO] [stderr] Downloaded maybe-rayon v0.1.1 [INFO] [stderr] Downloaded noop_proc_macro v0.3.0 [INFO] [stderr] Downloaded safe_arch v0.7.4 [INFO] [stderr] Downloaded nalgebra-glm v0.19.0 [INFO] [stderr] Downloaded av1-grain v0.2.3 [INFO] [stderr] Downloaded aligned-vec v0.5.0 [INFO] [stderr] Downloaded glfw-sys v5.0.0+3.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7cf8aa6507910cc322ac298cb64f4984fe261edab20959f91c67a702f943f3a9 [INFO] running `Command { std: "docker" "start" "-a" "7cf8aa6507910cc322ac298cb64f4984fe261edab20959f91c67a702f943f3a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cf8aa6507910cc322ac298cb64f4984fe261edab20959f91c67a702f943f3a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cf8aa6507910cc322ac298cb64f4984fe261edab20959f91c67a702f943f3a9", kill_on_drop: false }` [INFO] [stdout] 7cf8aa6507910cc322ac298cb64f4984fe261edab20959f91c67a702f943f3a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af478cc0343cb491dc8d84e2427aa8fdf211d9e8ff4d7520a335e1e673579e88 [INFO] running `Command { std: "docker" "start" "-a" "af478cc0343cb491dc8d84e2427aa8fdf211d9e8ff4d7520a335e1e673579e88", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling bytemuck v1.22.0 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling miniz_oxide v0.8.7 [INFO] [stderr] Compiling cc v1.2.18 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling xml-rs v0.8.25 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling glfw-sys v5.0.0+3.3.9 [INFO] [stderr] Compiling wide v0.7.32 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling imgref v1.11.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling bitstream-io v2.6.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling avif-serialize v0.8.3 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling half v2.5.0 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling rgb v0.8.50 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling zune-jpeg v0.4.14 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling image-webp v0.2.1 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling profiling-procmacros v1.0.16 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling ecs_derive v0.1.0 (/opt/rustwide/workdir/crates/ecs/ecs_derive) [INFO] [stdout] warning: unused import: `ItemEnum` [INFO] [stdout] --> crates/ecs/ecs_derive/src/lib.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use syn::{parse, parse::Parser, parse_macro_input, ItemEnum, ItemStruct}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling raw-window-handle v0.6.2 [INFO] [stderr] Compiling strum_macros v0.27.1 [INFO] [stderr] Compiling ecs v0.1.0 (/opt/rustwide/workdir/crates/ecs) [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> crates/ecs/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/ecs/src/lib.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rc` and `Weak` [INFO] [stdout] --> crates/ecs/src/events.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling yaml-rust2 v0.10.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling glfw v0.59.0 [INFO] [stderr] Compiling nalgebra v0.33.2 [INFO] [stderr] Compiling strum v0.27.1 [INFO] [stderr] Compiling ravif v0.11.11 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling nalgebra-glm v0.19.0 [INFO] [stderr] Compiling rust_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/game.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Damagable` [INFO] [stdout] --> src/game.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::object_components::{Bullet, Damagable, Gun, Lifetime, Movable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerState` [INFO] [stdout] --> src/game.rs:24:68 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::player_config::{Player, PlayerAction, PlayerController, PlayerState}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glfw::ffi::GLFWcharfun` [INFO] [stdout] --> src/object_components.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use glfw::ffi::GLFWcharfun; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/player_config.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, fs}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Action` [INFO] [stdout] --> src/player_config.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use glfw::{Key, Action}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bullet` and `Lifetime` [INFO] [stdout] --> src/player_config.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::object_components::{Bullet, Damagable, Gun, Lifetime, Movable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BulletSpawner`, `Bullet`, `Lifetime`, and `self` [INFO] [stdout] --> src/system/ai_system.rs:7:65 [INFO] [stdout] | [INFO] [stdout] 7 | ...lider2d, object_components::{Bullet, BulletSpawner, Damagable, Gun, Lifetime, Movable}, quad_tree::{self, QuadTree}, sprite::Sprite, t... [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BulletSpawner`, `Bullet`, `Collider2d`, `Damagable`, `Gun`, `Lifetime`, `bounds::Bounds`, and `sprite::Sprite` [INFO] [stdout] --> src/system/move_system.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bounds::Bounds, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 5 | collider2d::{Collider2d, CollisionEvent}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | object_components::{Bullet, BulletSpawner, Damagable, Gun, Lifetime, Movable}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | sprite::Sprite, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader [INFO] [stdout] --> src/render.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use image::io::Reader as ImageReader; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader [INFO] [stdout] --> src/render.rs:258:26 [INFO] [stdout] | [INFO] [stdout] 258 | if let Ok(img) = ImageReader::open(file_name) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/map.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ... let mut objects = checked_cell.objects.borrow_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system/move_system.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | let mut quad_tree = self.quad_tree.borrow_mut(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/system/fire_system.rs:69:26 [INFO] [stdout] | [INFO] [stdout] 69 | unsafe { DAMAGE_TARGETS.push((bullet.get_damage(), target)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/system/fire_system.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 75 | while let Some(info) = DAMAGE_TARGETS.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "af478cc0343cb491dc8d84e2427aa8fdf211d9e8ff4d7520a335e1e673579e88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af478cc0343cb491dc8d84e2427aa8fdf211d9e8ff4d7520a335e1e673579e88", kill_on_drop: false }` [INFO] [stdout] af478cc0343cb491dc8d84e2427aa8fdf211d9e8ff4d7520a335e1e673579e88 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae27d69c88a63087e3709f54e45b616c788ca0651ad9a951d9a608300e913e5b [INFO] running `Command { std: "docker" "start" "-a" "ae27d69c88a63087e3709f54e45b616c788ca0651ad9a951d9a608300e913e5b", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `ItemEnum` [INFO] [stdout] --> crates/ecs/ecs_derive/src/lib.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use syn::{parse, parse::Parser, parse_macro_input, ItemEnum, ItemStruct}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> crates/ecs/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/ecs/src/lib.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rc` and `Weak` [INFO] [stdout] --> crates/ecs/src/events.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/game.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Damagable` [INFO] [stdout] --> src/game.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::object_components::{Bullet, Damagable, Gun, Lifetime, Movable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerState` [INFO] [stdout] --> src/game.rs:24:68 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::player_config::{Player, PlayerAction, PlayerController, PlayerState}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glfw::ffi::GLFWcharfun` [INFO] [stdout] --> src/object_components.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use glfw::ffi::GLFWcharfun; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/player_config.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, fs}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Action` [INFO] [stdout] --> src/player_config.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use glfw::{Key, Action}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bullet` and `Lifetime` [INFO] [stdout] --> src/player_config.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::object_components::{Bullet, Damagable, Gun, Lifetime, Movable}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BulletSpawner`, `Bullet`, `Lifetime`, and `self` [INFO] [stdout] --> src/system/ai_system.rs:7:65 [INFO] [stdout] | [INFO] [stdout] 7 | ...lider2d, object_components::{Bullet, BulletSpawner, Damagable, Gun, Lifetime, Movable}, quad_tree::{self, QuadTree}, sprite::Sprite, t... [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BulletSpawner`, `Bullet`, `Collider2d`, `Damagable`, `Gun`, `Lifetime`, `bounds::Bounds`, and `sprite::Sprite` [INFO] [stdout] --> src/system/move_system.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bounds::Bounds, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 5 | collider2d::{Collider2d, CollisionEvent}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | object_components::{Bullet, BulletSpawner, Damagable, Gun, Lifetime, Movable}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | sprite::Sprite, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader [INFO] [stdout] --> src/render.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use image::io::Reader as ImageReader; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader [INFO] [stdout] --> src/render.rs:258:26 [INFO] [stdout] | [INFO] [stdout] 258 | if let Ok(img) = ImageReader::open(file_name) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/map.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ... let mut objects = checked_cell.objects.borrow_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system/move_system.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | let mut quad_tree = self.quad_tree.borrow_mut(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/system/fire_system.rs:69:26 [INFO] [stdout] | [INFO] [stdout] 69 | unsafe { DAMAGE_TARGETS.push((bullet.get_damage(), target)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/system/fire_system.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 75 | while let Some(info) = DAMAGE_TARGETS.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "ae27d69c88a63087e3709f54e45b616c788ca0651ad9a951d9a608300e913e5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae27d69c88a63087e3709f54e45b616c788ca0651ad9a951d9a608300e913e5b", kill_on_drop: false }` [INFO] [stdout] ae27d69c88a63087e3709f54e45b616c788ca0651ad9a951d9a608300e913e5b