[INFO] cloning repository https://github.com/MUKUL47/Turret_Guardian_Rust- [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MUKUL47/Turret_Guardian_Rust-" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMUKUL47%2FTurret_Guardian_Rust-", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMUKUL47%2FTurret_Guardian_Rust-'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e2b5d9ed38586e9ec9908612b7e00fb06dcedf1 [INFO] building MUKUL47/Turret_Guardian_Rust- against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMUKUL47%2FTurret_Guardian_Rust-" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MUKUL47/Turret_Guardian_Rust- on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MUKUL47/Turret_Guardian_Rust- [INFO] finished tweaking git repo https://github.com/MUKUL47/Turret_Guardian_Rust- [INFO] tweaked toml for git repo https://github.com/MUKUL47/Turret_Guardian_Rust- written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MUKUL47/Turret_Guardian_Rust- 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clang-sys v1.8.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06f61ff6c9b7fc9c27070c7fe2ed777eb674fc080003a942610ea832c3e1cf61 [INFO] running `Command { std: "docker" "start" "-a" "06f61ff6c9b7fc9c27070c7fe2ed777eb674fc080003a942610ea832c3e1cf61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06f61ff6c9b7fc9c27070c7fe2ed777eb674fc080003a942610ea832c3e1cf61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06f61ff6c9b7fc9c27070c7fe2ed777eb674fc080003a942610ea832c3e1cf61", kill_on_drop: false }` [INFO] [stdout] 06f61ff6c9b7fc9c27070c7fe2ed777eb674fc080003a942610ea832c3e1cf61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39502f9719cef8922e55c9ebbb1750d5a69c1893d7f7c48693c3bb956e995ffe [INFO] running `Command { std: "docker" "start" "-a" "39502f9719cef8922e55c9ebbb1750d5a69c1893d7f7c48693c3bb956e995ffe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling xml-rs v0.8.20 [INFO] [stderr] Compiling libloading v0.8.3 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling miniz_oxide v0.7.3 [INFO] [stderr] Compiling ttf-parser v0.21.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling zerocopy v0.7.34 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling camino v1.1.7 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling unicode-width v0.1.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling euclid v0.22.10 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling lyon_geom v1.0.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling xcursor v0.3.5 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling lyon_path v1.0.5 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling gpu-alloc v0.5.4 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling owned_ttf_parser v0.21.0 [INFO] [stderr] Compiling ab_glyph v0.2.26 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling wgpu-types v0.16.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling bytemuck_derive v1.7.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling renderdoc-sys v1.1.0 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling glow v0.12.3 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling alsa v0.9.0 [INFO] [stderr] Compiling inotify v0.10.2 [INFO] [stderr] Compiling bytemuck v1.16.0 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling naga v0.12.3 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling gilrs v0.10.7 [INFO] [stderr] Compiling float_next_after v1.0.0 [INFO] [stderr] Compiling mint v0.5.9 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling glyph_brush_layout v0.2.3 [INFO] [stderr] Compiling lyon_tessellation v1.0.15 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.5 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling gilrs-core v0.5.11 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling lyon_algorithms v1.0.4 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling ordered-float v4.2.0 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Compiling lyon v1.0.1 [INFO] [stderr] Compiling directories v5.0.1 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling rodio v0.17.3 [INFO] [stderr] Compiling glyph_brush v0.7.8 [INFO] [stderr] Compiling glam v0.24.2 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling crevice v0.13.0 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling pollster v0.3.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling cargo-platform v0.1.8 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling wgpu-hal v0.16.2 [INFO] [stderr] Compiling wgpu-core v0.16.1 [INFO] [stderr] Compiling wgpu v0.16.3 [INFO] [stderr] Compiling game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/core/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/core/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path` [INFO] [stdout] --> src/core/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::Canvas` [INFO] [stdout] --> src/core/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use ggez::graphics::Canvas; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::DrawParam` [INFO] [stdout] --> src/core/game.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use ggez::graphics::DrawParam; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::Text` [INFO] [stdout] --> src/core/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ggez::graphics::Text; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/core/game.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use ggez::graphics::{self, Color}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/core/../entities/./enemies.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | graphics::{self, Canvas, Color}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::Pointf32` [INFO] [stdout] --> src/core/../entities/./enemies.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use utils::Pointf32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | graphics::{self, Canvas, Color}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::get_rand_color` [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use utils::get_rand_color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enemies::utils::Pointf32` [INFO] [stdout] --> src/core/../entities/score_board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enemies::utils::Pointf32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `DrawParam`, and `self` [INFO] [stdout] --> src/core/../entities/score_board.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | graphics::{self, Canvas, Color, DrawParam, Drawable, PxScale, Text}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/core/../state/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/core/../state/enemy.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | let is_collided = (f32::abs(projectile.position.0 - e.position.0) < (e.size + 2.5) [INFO] [stdout] | ^ [INFO] [stdout] 48 | && f32::abs(projectile.position.1 - e.position.1) < (e.size + 2.5)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 ~ let is_collided = f32::abs(projectile.position.0 - e.position.0) < (e.size + 2.5) [INFO] [stdout] 48 ~ && f32::abs(projectile.position.1 - e.position.1) < (e.size + 2.5); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core/../state/gun_projectile.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `glam::Vec2`, and `self` [INFO] [stdout] --> src/core/../state/gun_projectile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | glam::Vec2, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | graphics::{self, Canvas, Color}, [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_rand_color` [INFO] [stdout] --> src/core/../state/gun_projectile.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use utils::{get_rand_color, Pointf32}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameResult`, `event`, and `glam::Vec2` [INFO] [stdout] --> src/core/../state/player.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{event, glam::Vec2, graphics::Color, GameResult}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointf32` [INFO] [stdout] --> src/core/../state/player.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use utils::{get_rand_color, Pointf32}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/core/../state/player.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | (t.angle - t.speed) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - (t.angle - t.speed) [INFO] [stdout] 39 + t.angle - t.speed [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `State_Manager` should have an upper camel case name [INFO] [stdout] --> src/core/../state/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct State_Manager { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StateManager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `self` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use ggez::graphics::{self, Color}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `GameResult` [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use ggez::{Context, GameResult}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::glam::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ggez::glam::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/core/game.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![recursion_limit = "256"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/core/../entities/./enemies.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::*; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Drawable` [INFO] [stdout] --> src/core/../entities/score_board.rs:6:48 [INFO] [stdout] | [INFO] [stdout] 6 | graphics::{self, Canvas, Color, DrawParam, Drawable, PxScale, Text}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::Drawable` [INFO] [stdout] --> src/core/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ggez::graphics::Drawable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/core/../entities/score_board.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn draw(&mut self, ctx: &ggez::Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `w` is never read [INFO] [stdout] --> src/core/game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MainState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | w: conf::WindowMode, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TURRET_DISTANCE` is never used [INFO] [stdout] --> src/core/../entities/player.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static TURRET_DISTANCE: f32 = 50.; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Enemies` is never constructed [INFO] [stdout] --> src/core/../entities/./enemies.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Enemies { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `draw` are never used [INFO] [stdout] --> src/core/../entities/./enemies.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Enemies { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 19 | pub fn new(state_manager: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn draw(&mut self, ctx: &ggez::Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectiles` is never constructed [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Projectiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, `update`, and `draw` are never used [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Projectiles { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(state_manager: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn fire(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn draw(&mut self, ctx: &ggez::Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fire` is never used [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Projectiles { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn fire(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enemies_killed` is never read [INFO] [stdout] --> src/core/../state/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct State_Manager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub enemies_killed: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectile` is never constructed [INFO] [stdout] --> src/core/../state/gun_projectile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Projectile { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Projectile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mark_deleted` is never used [INFO] [stdout] --> src/core/../state/gun_projectile.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Projectile{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 23 | pub fn mark_deleted(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectiles` is never constructed [INFO] [stdout] --> src/core/../state/gun_projectile.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Projectiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, and `update` are never used [INFO] [stdout] --> src/core/../state/gun_projectile.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Projectiles { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 35 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn fire(&mut self, position: &utils::Pointf32, original_angle: &f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 59s [INFO] running `Command { std: "docker" "inspect" "39502f9719cef8922e55c9ebbb1750d5a69c1893d7f7c48693c3bb956e995ffe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39502f9719cef8922e55c9ebbb1750d5a69c1893d7f7c48693c3bb956e995ffe", kill_on_drop: false }` [INFO] [stdout] 39502f9719cef8922e55c9ebbb1750d5a69c1893d7f7c48693c3bb956e995ffe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb48b90b8f30c97644e53643480ea25beee1263fcedf0bf338f13bf5af815e35 [INFO] running `Command { std: "docker" "start" "-a" "eb48b90b8f30c97644e53643480ea25beee1263fcedf0bf338f13bf5af815e35", kill_on_drop: false }` [INFO] [stderr] Compiling game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/core/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/core/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path` [INFO] [stdout] --> src/core/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::Canvas` [INFO] [stdout] --> src/core/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use ggez::graphics::Canvas; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::DrawParam` [INFO] [stdout] --> src/core/game.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use ggez::graphics::DrawParam; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::Text` [INFO] [stdout] --> src/core/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ggez::graphics::Text; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/core/game.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use ggez::graphics::{self, Color}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/core/../entities/./enemies.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | graphics::{self, Canvas, Color}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::Pointf32` [INFO] [stdout] --> src/core/../entities/./enemies.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use utils::Pointf32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | graphics::{self, Canvas, Color}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::get_rand_color` [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use utils::get_rand_color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enemies::utils::Pointf32` [INFO] [stdout] --> src/core/../entities/score_board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enemies::utils::Pointf32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `DrawParam`, and `self` [INFO] [stdout] --> src/core/../entities/score_board.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | graphics::{self, Canvas, Color, DrawParam, Drawable, PxScale, Text}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/core/../state/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/core/../state/enemy.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | let is_collided = (f32::abs(projectile.position.0 - e.position.0) < (e.size + 2.5) [INFO] [stdout] | ^ [INFO] [stdout] 48 | && f32::abs(projectile.position.1 - e.position.1) < (e.size + 2.5)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 ~ let is_collided = f32::abs(projectile.position.0 - e.position.0) < (e.size + 2.5) [INFO] [stdout] 48 ~ && f32::abs(projectile.position.1 - e.position.1) < (e.size + 2.5); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core/../state/gun_projectile.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `glam::Vec2`, and `self` [INFO] [stdout] --> src/core/../state/gun_projectile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | glam::Vec2, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | graphics::{self, Canvas, Color}, [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_rand_color` [INFO] [stdout] --> src/core/../state/gun_projectile.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use utils::{get_rand_color, Pointf32}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameResult`, `event`, and `glam::Vec2` [INFO] [stdout] --> src/core/../state/player.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{event, glam::Vec2, graphics::Color, GameResult}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointf32` [INFO] [stdout] --> src/core/../state/player.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use utils::{get_rand_color, Pointf32}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/core/../state/player.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | (t.angle - t.speed) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - (t.angle - t.speed) [INFO] [stdout] 39 + t.angle - t.speed [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `State_Manager` should have an upper camel case name [INFO] [stdout] --> src/core/../state/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct State_Manager { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StateManager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `self` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use ggez::graphics::{self, Color}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `GameResult` [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use ggez::{Context, GameResult}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::glam::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ggez::glam::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/core/game.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![recursion_limit = "256"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/core/../entities/./enemies.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::*; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Drawable` [INFO] [stdout] --> src/core/../entities/score_board.rs:6:48 [INFO] [stdout] | [INFO] [stdout] 6 | graphics::{self, Canvas, Color, DrawParam, Drawable, PxScale, Text}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::Drawable` [INFO] [stdout] --> src/core/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ggez::graphics::Drawable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/core/../entities/score_board.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn draw(&mut self, ctx: &ggez::Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `w` is never read [INFO] [stdout] --> src/core/game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MainState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | w: conf::WindowMode, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TURRET_DISTANCE` is never used [INFO] [stdout] --> src/core/../entities/player.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static TURRET_DISTANCE: f32 = 50.; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Enemies` is never constructed [INFO] [stdout] --> src/core/../entities/./enemies.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Enemies { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `draw` are never used [INFO] [stdout] --> src/core/../entities/./enemies.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Enemies { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 19 | pub fn new(state_manager: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn draw(&mut self, ctx: &ggez::Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectiles` is never constructed [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Projectiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, `update`, and `draw` are never used [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Projectiles { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(state_manager: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn fire(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn draw(&mut self, ctx: &ggez::Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/core/../entities/../utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fire` is never used [INFO] [stdout] --> src/core/../entities/./gun_projectile.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Projectiles { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn fire(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/core/../utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enemies_killed` is never read [INFO] [stdout] --> src/core/../state/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct State_Manager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub enemies_killed: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf64` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Pointf64 = (f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_btw_2_points` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn angle_btw_2_points(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_color` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_rand_color() -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectile` is never constructed [INFO] [stdout] --> src/core/../state/gun_projectile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Projectile { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Projectile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mark_deleted` is never used [INFO] [stdout] --> src/core/../state/gun_projectile.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Projectile{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 23 | pub fn mark_deleted(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectiles` is never constructed [INFO] [stdout] --> src/core/../state/gun_projectile.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Projectiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, and `update` are never used [INFO] [stdout] --> src/core/../state/gun_projectile.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Projectiles { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 35 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn fire(&mut self, position: &utils::Pointf32, original_angle: &f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pointf32` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Pointf32 = (f32, f32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rotation_angle` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rotation_angle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `euclidean_distance` is never used [INFO] [stdout] --> src/core/../state/../utils/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn euclidean_distance(p1: &Pointf32, p2: &Pointf32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.72s [INFO] running `Command { std: "docker" "inspect" "eb48b90b8f30c97644e53643480ea25beee1263fcedf0bf338f13bf5af815e35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb48b90b8f30c97644e53643480ea25beee1263fcedf0bf338f13bf5af815e35", kill_on_drop: false }` [INFO] [stdout] eb48b90b8f30c97644e53643480ea25beee1263fcedf0bf338f13bf5af815e35