[INFO] cloning repository https://github.com/eggmunkee/ggez-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eggmunkee/ggez-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feggmunkee%2Fggez-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feggmunkee%2Fggez-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5592717e981d7e9e87ce28e99a3b96389b38e236 [INFO] building eggmunkee/ggez-demo against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feggmunkee%2Fggez-demo" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eggmunkee/ggez-demo 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/eggmunkee/ggez-demo [INFO] finished tweaking git repo https://github.com/eggmunkee/ggez-demo [INFO] tweaked toml for git repo https://github.com/eggmunkee/ggez-demo written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eggmunkee/ggez-demo 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 zip v0.5.5 [INFO] [stderr] Downloaded bzip2-sys v0.1.8+1.0.8 [INFO] [stderr] Downloaded hashbrown v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] c5f553f76263b3039c948dce82457028f191874096f6ecf86bc938c96fcec129 [INFO] running `Command { std: "docker" "start" "-a" "c5f553f76263b3039c948dce82457028f191874096f6ecf86bc938c96fcec129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5f553f76263b3039c948dce82457028f191874096f6ecf86bc938c96fcec129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5f553f76263b3039c948dce82457028f191874096f6ecf86bc938c96fcec129", kill_on_drop: false }` [INFO] [stdout] c5f553f76263b3039c948dce82457028f191874096f6ecf86bc938c96fcec129 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3c9937db65fdbfa1fd33ffa57a05b4840966669dd8027d02c9cf0e07059fd4a5 [INFO] running `Command { std: "docker" "start" "-a" "3c9937db65fdbfa1fd33ffa57a05b4840966669dd8027d02c9cf0e07059fd4a5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling arrayvec v0.5.1 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling linked-hash-map v0.5.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.33 [INFO] [stderr] Compiling error-chain v0.12.2 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling downcast-rs v1.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling bzip2-sys v0.1.8+1.0.8 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling backtrace v0.3.45 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling nom v5.1.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling lock_api v0.3.3 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling sid v0.5.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hashbrown v0.7.0 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling xi-unicode v0.2.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling bytecount v0.4.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling twox-hash v1.5.0 [INFO] [stderr] Compiling matrixmultiply v0.2.3 [INFO] [stderr] Compiling rusttype v0.8.2 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling alga v0.9.3 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling rayon v1.3.0 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling glyph_brush_layout v0.1.9 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling ogg v0.7.0 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling mint v0.5.4 [INFO] [stderr] Compiling minimp3 v0.3.5 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling glyph_brush v0.6.3 [INFO] [stderr] Compiling nalgebra v0.18.1 [INFO] [stderr] Compiling png v0.15.3 [INFO] [stderr] Compiling cpal v0.8.2 [INFO] [stderr] Compiling bzip2 v0.3.3 [INFO] [stderr] Compiling euclid v0.19.9 [INFO] [stderr] Compiling dirs-sys v0.3.4 [INFO] [stderr] Compiling jpeg-decoder v0.1.18 [INFO] [stderr] Compiling atom v0.3.5 [INFO] [stderr] Compiling claxon v0.4.2 [INFO] [stderr] Compiling tynm v0.1.4 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling mopa v0.2.2 [INFO] [stderr] Compiling tiff v0.3.1 [INFO] [stderr] Compiling smallvec v1.2.0 [INFO] [stderr] Compiling podio v0.1.6 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling const-random v0.1.8 [INFO] [stderr] Compiling zip v0.5.5 [INFO] [stderr] Compiling ahash v0.3.2 [INFO] [stderr] Compiling hibitset v0.6.3 [INFO] [stderr] Compiling directories v2.0.2 [INFO] [stderr] Compiling glyph_brush v0.5.4 [INFO] [stderr] Compiling lyon_geom v0.12.7 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling image v0.22.5 [INFO] [stderr] Compiling gilrs-core v0.2.5 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling gilrs v0.7.4 [INFO] [stderr] Compiling shrev v1.1.1 [INFO] [stderr] Compiling tuple_utils v0.3.0 [INFO] [stderr] Compiling lyon_path v0.13.2 [INFO] [stderr] Compiling shred v0.10.2 [INFO] [stderr] Compiling lyon_algorithms v0.13.4 [INFO] [stderr] Compiling lyon_tessellation v0.13.5 [INFO] [stderr] Compiling specs v0.16.1 [INFO] [stderr] Compiling lyon v0.13.5 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Compiling rodio v0.9.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling glutin v0.20.1 [INFO] [stderr] Compiling gfx_window_glutin v0.30.0 [INFO] [stderr] Compiling ggez_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ContextBuilder` [INFO] [stdout] --> src/conf.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{ContextBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameError` and `GameResult` [INFO] [stdout] --> src/entities/player.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{Context, GameResult, GameError}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics` [INFO] [stdout] --> src/entities/player.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::graphics; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Image` [INFO] [stdout] --> src/entities/player.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::graphics::{Image}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::nalgebra as na` [INFO] [stdout] --> src/entities/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntityBuilder` [INFO] [stdout] --> src/entities/player.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use specs::{Builder,Entity,EntityBuilder,World,WorldExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameState` [INFO] [stdout] --> src/entities/player.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game_state::{GameState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::systems::*` [INFO] [stdout] --> src/entities/player.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::systems::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector2` [INFO] [stdout] --> src/physics.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use na::{Point2,Vector2,distance_squared,distance}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/physics.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | let total_friction = (friction_i + friction_j); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - let total_friction = (friction_i + friction_j); [INFO] [stdout] 96 + let total_friction = friction_i + friction_j; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point2`, `Vector2`, and `distance` [INFO] [stdout] --> src/components/collision.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::nalgebra::{Point2,Vector2,distance}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::nalgebra as na` [INFO] [stdout] --> src/systems/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/systems/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entities` [INFO] [stdout] --> src/systems/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Entities, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Collision` [INFO] [stdout] --> src/systems/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::components::collision::{Collision}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerComponent` [INFO] [stdout] --> src/systems/mod.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::components::player::{PlayerComponent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldAction` [INFO] [stdout] --> src/systems/input.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::resources::{InputResource,WorldAction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point2`, `Vector2`, `distance_squared`, and `distance` [INFO] [stdout] --> src/systems/interactor.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use ggez::nalgebra::{Point2,Vector2,distance,distance_squared}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InputResource` [INFO] [stdout] --> src/systems/interactor.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::resources::{InputResource}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/render.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::{Context, GameResult, GameError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DrawParam` [INFO] [stdout] --> src/render.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use ggez::graphics::{Color,DrawParam,set_window_title}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DisplayCompType` and `DisplayComp` [INFO] [stdout] --> src/render.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::components::{Position,DisplayComp,DisplayCompType,RenderTrait}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerComponent` [INFO] [stdout] --> src/render.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::components::player::{PlayerComponent,CharacterDisplayComponent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldExt` [INFO] [stdout] --> src/input.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use specs::{World, WorldExt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldAction` [INFO] [stdout] --> src/input.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::resources::{InputResource,WorldAction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::*` [INFO] [stdout] --> src/game_state.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::nalgebra as na` [INFO] [stdout] --> src/game_state.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ggez::nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/game_state.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::{Context, GameResult, GameError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NumSamples` and `WindowSetup` [INFO] [stdout] --> src/game_state.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use ggez::conf::{NumSamples,WindowSetup,WindowMode}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Image`, and `set_window_title` [INFO] [stdout] --> src/game_state.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use ggez::graphics::{Rect,Color,Image,set_window_title}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Builder`, `Component`, `DispatcherBuilder`, `RunNow`, `System`, and `VecStorage` [INFO] [stdout] --> src/game_state.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use specs::{Builder, Component, DispatcherBuilder, Dispatcher,// ReadStorage, WriteStorage, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | System, VecStorage, World, WorldExt, RunNow}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/game_state.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InputResource` and `WorldAction` [INFO] [stdout] --> src/game_state.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::resources::{InputResource,WorldAction,GameStateResource}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MouseInput` [INFO] [stdout] --> src/game_state.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::input::{InputMap,MouseInput}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldExt` [INFO] [stdout] --> src/systems/interactor.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use specs::{WorldExt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/render.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/systems/interactor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `imp` is never read [INFO] [stdout] --> src/physics.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let mut imp = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mass_frac_i` is never read [INFO] [stdout] --> src/physics.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | let mut mass_frac_i = 0.5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mass_frac_j` is never read [INFO] [stdout] --> src/physics.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | let mut mass_frac_j = 0.5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `imp` is never read [INFO] [stdout] --> src/physics.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let mut imp = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `friction_i` [INFO] [stdout] --> src/physics.rs:144:31 [INFO] [stdout] | [INFO] [stdout] 144 | mass_i: f32, mass_j: f32, friction_i: f32, friction_j: f32, combined_obj_radius: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_friction_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `friction_j` [INFO] [stdout] --> src/physics.rs:144:48 [INFO] [stdout] | [INFO] [stdout] 144 | mass_i: f32, mass_j: f32, friction_i: f32, friction_j: f32, combined_obj_radius: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_friction_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/physics.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let mut x_imp = imp * x_dif; [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/physics.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let mut y_imp = imp * y_dif; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/components/ball.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let w = self.image.width(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/components/ball.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let h = self.image.height(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vel` [INFO] [stdout] --> src/systems/input.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let (vel, _player, _e) = inn_v; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/input.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | fn run(&mut self, (mut vel, player, mut input, ent): Self::SystemData) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/input.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut list = (&mut vel, &player, &ent).join().collect::>(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/systems/interactor.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | fn run(&mut self, (mut pos, mut vel, collision, ent): Self::SystemData) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:99:29 [INFO] [stdout] | [INFO] [stdout] 99 | let mut ent_vec = block_hash.get_mut(&(i,j)).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:199:53 [INFO] [stdout] | [INFO] [stdout] 199 | ... if let Some(mut velocity_i) = svel_i { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:209:53 [INFO] [stdout] | [INFO] [stdout] 209 | ... if let Some(mut velocity_j) = svel_j { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char_disp` [INFO] [stdout] --> src/render.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | for (char_disp,pos,ent) in (&char_disp,&pos,&entities).join() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_char_disp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ball_disp` [INFO] [stdout] --> src/render.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | for (ball_disp,pos,ent) in (&ball_disp,&pos,&entities).join() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ball_disp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymod` [INFO] [stdout] --> src/input.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | keymod: KeyMods,) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/input.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | ctx: &mut Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymod` [INFO] [stdout] --> src/input.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | keymod: KeyMods,) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/input.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/input.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 150 | MouseInput::Left => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 155 | MouseInput::Middle => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 162 | MouseInput::Right => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 168 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/input.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/input.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 178 | MouseInput::Left => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 183 | MouseInput::Middle => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 188 | MouseInput::Right => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 194 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game_state.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | fn update(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_state.rs:184:83 [INFO] [stdout] | [INFO] [stdout] 184 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_state.rs:184:91 [INFO] [stdout] | [INFO] [stdout] 184 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_state.rs:204:81 [INFO] [stdout] | [INFO] [stdout] 204 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_state.rs:204:89 [INFO] [stdout] | [INFO] [stdout] 204 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xrel` [INFO] [stdout] --> src/game_state.rs:223:74 [INFO] [stdout] | [INFO] [stdout] 223 | fn mouse_motion_event(&mut self, _ctx: &mut Context, x: f32, y: f32, xrel: f32, yrel: f32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_xrel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yrel` [INFO] [stdout] --> src/game_state.rs:223:85 [INFO] [stdout] | [INFO] [stdout] 223 | fn mouse_motion_event(&mut self, _ctx: &mut Context, x: f32, y: f32, xrel: f32, yrel: f32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_yrel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build` and `build_static` are never used [INFO] [stdout] --> src/entities/ball.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl BallBuilder { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 11 | pub fn build(world: &mut World, ctx: &mut Context, x: f32, y: f32, vx: f32, vy: f32) -> Entity { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn build_static(world: &mut World, ctx: &mut Context, x: f32, y: f32) -> Entity { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `radius_square_check_points` is never used [INFO] [stdout] --> src/physics.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn radius_square_check_points(point: &Point2, check_point: &Point2, radius: f32) -> (bool, f32, Point2, Point2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `actors_push_squares` is never used [INFO] [stdout] --> src/physics.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn actors_push_squares(pos_i: &na::Point2, pos_j: &na::Point2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `col` are never read [INFO] [stdout] --> src/components/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct GridLoc { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 16 | pub row: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 17 | pub col: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridLoc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `circle` and `display_type` are never read [INFO] [stdout] --> src/components/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct DisplayComp { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 65 | pub circle: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 66 | pub display_type: DisplayCompType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DisplayComp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/components/ball.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BallDisplayComponent { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 14 | pub image: Image, // component owns image [INFO] [stdout] 15 | pub path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BallDisplayComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `life` and `move_ramp_up` are never read [INFO] [stdout] --> src/components/player.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PlayerComponent { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 13 | pub player_name: String, [INFO] [stdout] 14 | pub life: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pub move_ramp_up: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/components/player.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct CharacterDisplayComponent { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 45 | pub image: Image, // component owns image [INFO] [stdout] 46 | pub path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharacterDisplayComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/components/collision.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | Circle(f32), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CollisionShape` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Circle(f32), [INFO] [stdout] 7 + Circle(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Square` is never constructed [INFO] [stdout] --> src/components/collision.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum CollisionShape { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 7 | Circle(f32), [INFO] [stdout] 8 | Square(f32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CollisionShape` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shape` is never read [INFO] [stdout] --> src/components/collision.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Collision { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 13 | pub shape: CollisionShape, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Collision` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_circle` and `new_square` are never used [INFO] [stdout] --> src/components/collision.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Collision { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn new_circle(radius: f32) -> Collision { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn new_square(radius: f32) -> Collision { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AddCircle` is never constructed [INFO] [stdout] --> src/resources/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub enum WorldAction { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 67 | AddCircle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WorldAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `actions` is never read [INFO] [stdout] --> src/resources/mod.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct InputResource { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | pub actions: Vec::, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputResource` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_mouse_x` and `set_mouse_y` are never used [INFO] [stdout] --> src/resources/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl InputResource { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_mouse_x(&mut self, mouse_x: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn set_mouse_y(&mut self, mouse_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `t_delta` is never read [INFO] [stdout] --> src/systems/mod.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct UpdatePos { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 33 | pub t_delta: Duration [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SumSys` is never constructed [INFO] [stdout] --> src/systems/mod.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct SumSys; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NpcInputSystem` is never constructed [INFO] [stdout] --> src/systems/input.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct NpcInputSystem; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `font` is never read [INFO] [stdout] --> src/game_state.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct GameState<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub font: graphics::Font, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game_state.rs:313:13 [INFO] [stdout] | [INFO] [stdout] 313 | ggez::graphics::set_screen_coordinates(ctx, Rect::new(0.0, 0.0, width, height)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 313 | let _ = ggez::graphics::set_screen_coordinates(ctx, Rect::new(0.0, 0.0, width, height)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.80s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "3c9937db65fdbfa1fd33ffa57a05b4840966669dd8027d02c9cf0e07059fd4a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c9937db65fdbfa1fd33ffa57a05b4840966669dd8027d02c9cf0e07059fd4a5", kill_on_drop: false }` [INFO] [stdout] 3c9937db65fdbfa1fd33ffa57a05b4840966669dd8027d02c9cf0e07059fd4a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2bc08a377d75c50aa035b4737a295719c16183bbae5fb800cd9fefbed6aaf1d1 [INFO] running `Command { std: "docker" "start" "-a" "2bc08a377d75c50aa035b4737a295719c16183bbae5fb800cd9fefbed6aaf1d1", kill_on_drop: false }` [INFO] [stderr] Compiling ggez_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ContextBuilder` [INFO] [stdout] --> src/conf.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{ContextBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameError` and `GameResult` [INFO] [stdout] --> src/entities/player.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{Context, GameResult, GameError}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics` [INFO] [stdout] --> src/entities/player.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::graphics; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Image` [INFO] [stdout] --> src/entities/player.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::graphics::{Image}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::nalgebra as na` [INFO] [stdout] --> src/entities/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntityBuilder` [INFO] [stdout] --> src/entities/player.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use specs::{Builder,Entity,EntityBuilder,World,WorldExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameState` [INFO] [stdout] --> src/entities/player.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game_state::{GameState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::systems::*` [INFO] [stdout] --> src/entities/player.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::systems::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector2` [INFO] [stdout] --> src/physics.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use na::{Point2,Vector2,distance_squared,distance}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/physics.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | let total_friction = (friction_i + friction_j); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - let total_friction = (friction_i + friction_j); [INFO] [stdout] 96 + let total_friction = friction_i + friction_j; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point2`, `Vector2`, and `distance` [INFO] [stdout] --> src/components/collision.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::nalgebra::{Point2,Vector2,distance}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::nalgebra as na` [INFO] [stdout] --> src/systems/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/systems/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entities` [INFO] [stdout] --> src/systems/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Entities, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Collision` [INFO] [stdout] --> src/systems/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::components::collision::{Collision}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerComponent` [INFO] [stdout] --> src/systems/mod.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::components::player::{PlayerComponent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldAction` [INFO] [stdout] --> src/systems/input.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::resources::{InputResource,WorldAction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point2`, `Vector2`, `distance_squared`, and `distance` [INFO] [stdout] --> src/systems/interactor.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use ggez::nalgebra::{Point2,Vector2,distance,distance_squared}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InputResource` [INFO] [stdout] --> src/systems/interactor.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::resources::{InputResource}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/render.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::{Context, GameResult, GameError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DrawParam` [INFO] [stdout] --> src/render.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use ggez::graphics::{Color,DrawParam,set_window_title}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DisplayCompType` and `DisplayComp` [INFO] [stdout] --> src/render.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::components::{Position,DisplayComp,DisplayCompType,RenderTrait}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerComponent` [INFO] [stdout] --> src/render.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::components::player::{PlayerComponent,CharacterDisplayComponent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldExt` [INFO] [stdout] --> src/input.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use specs::{World, WorldExt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldAction` [INFO] [stdout] --> src/input.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::resources::{InputResource,WorldAction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::*` [INFO] [stdout] --> src/game_state.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::nalgebra as na` [INFO] [stdout] --> src/game_state.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ggez::nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/game_state.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::{Context, GameResult, GameError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NumSamples` and `WindowSetup` [INFO] [stdout] --> src/game_state.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use ggez::conf::{NumSamples,WindowSetup,WindowMode}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Image`, and `set_window_title` [INFO] [stdout] --> src/game_state.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use ggez::graphics::{Rect,Color,Image,set_window_title}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Builder`, `Component`, `DispatcherBuilder`, `RunNow`, `System`, and `VecStorage` [INFO] [stdout] --> src/game_state.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use specs::{Builder, Component, DispatcherBuilder, Dispatcher,// ReadStorage, WriteStorage, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | System, VecStorage, World, WorldExt, RunNow}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/game_state.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InputResource` and `WorldAction` [INFO] [stdout] --> src/game_state.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::resources::{InputResource,WorldAction,GameStateResource}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MouseInput` [INFO] [stdout] --> src/game_state.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::input::{InputMap,MouseInput}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorldExt` [INFO] [stdout] --> src/systems/interactor.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use specs::{WorldExt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/render.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/systems/interactor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `imp` is never read [INFO] [stdout] --> src/physics.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let mut imp = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mass_frac_i` is never read [INFO] [stdout] --> src/physics.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | let mut mass_frac_i = 0.5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mass_frac_j` is never read [INFO] [stdout] --> src/physics.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | let mut mass_frac_j = 0.5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `imp` is never read [INFO] [stdout] --> src/physics.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let mut imp = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `friction_i` [INFO] [stdout] --> src/physics.rs:144:31 [INFO] [stdout] | [INFO] [stdout] 144 | mass_i: f32, mass_j: f32, friction_i: f32, friction_j: f32, combined_obj_radius: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_friction_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `friction_j` [INFO] [stdout] --> src/physics.rs:144:48 [INFO] [stdout] | [INFO] [stdout] 144 | mass_i: f32, mass_j: f32, friction_i: f32, friction_j: f32, combined_obj_radius: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_friction_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/physics.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let mut x_imp = imp * x_dif; [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/physics.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let mut y_imp = imp * y_dif; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/components/ball.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let w = self.image.width(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/components/ball.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let h = self.image.height(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vel` [INFO] [stdout] --> src/systems/input.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let (vel, _player, _e) = inn_v; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/input.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | fn run(&mut self, (mut vel, player, mut input, ent): Self::SystemData) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/input.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut list = (&mut vel, &player, &ent).join().collect::>(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/systems/interactor.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | fn run(&mut self, (mut pos, mut vel, collision, ent): Self::SystemData) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:99:29 [INFO] [stdout] | [INFO] [stdout] 99 | let mut ent_vec = block_hash.get_mut(&(i,j)).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:199:53 [INFO] [stdout] | [INFO] [stdout] 199 | ... if let Some(mut velocity_i) = svel_i { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/systems/interactor.rs:209:53 [INFO] [stdout] | [INFO] [stdout] 209 | ... if let Some(mut velocity_j) = svel_j { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char_disp` [INFO] [stdout] --> src/render.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | for (char_disp,pos,ent) in (&char_disp,&pos,&entities).join() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_char_disp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ball_disp` [INFO] [stdout] --> src/render.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | for (ball_disp,pos,ent) in (&ball_disp,&pos,&entities).join() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ball_disp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymod` [INFO] [stdout] --> src/input.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | keymod: KeyMods,) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/input.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | ctx: &mut Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymod` [INFO] [stdout] --> src/input.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | keymod: KeyMods,) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/input.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/input.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 150 | MouseInput::Left => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 155 | MouseInput::Middle => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 162 | MouseInput::Right => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 168 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/input.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/input.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 178 | MouseInput::Left => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 183 | MouseInput::Middle => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 188 | MouseInput::Right => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 194 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game_state.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | fn update(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_state.rs:184:83 [INFO] [stdout] | [INFO] [stdout] 184 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_state.rs:184:91 [INFO] [stdout] | [INFO] [stdout] 184 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_state.rs:204:81 [INFO] [stdout] | [INFO] [stdout] 204 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_state.rs:204:89 [INFO] [stdout] | [INFO] [stdout] 204 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xrel` [INFO] [stdout] --> src/game_state.rs:223:74 [INFO] [stdout] | [INFO] [stdout] 223 | fn mouse_motion_event(&mut self, _ctx: &mut Context, x: f32, y: f32, xrel: f32, yrel: f32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_xrel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yrel` [INFO] [stdout] --> src/game_state.rs:223:85 [INFO] [stdout] | [INFO] [stdout] 223 | fn mouse_motion_event(&mut self, _ctx: &mut Context, x: f32, y: f32, xrel: f32, yrel: f32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_yrel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build` and `build_static` are never used [INFO] [stdout] --> src/entities/ball.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl BallBuilder { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 11 | pub fn build(world: &mut World, ctx: &mut Context, x: f32, y: f32, vx: f32, vy: f32) -> Entity { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn build_static(world: &mut World, ctx: &mut Context, x: f32, y: f32) -> Entity { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `radius_square_check_points` is never used [INFO] [stdout] --> src/physics.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn radius_square_check_points(point: &Point2, check_point: &Point2, radius: f32) -> (bool, f32, Point2, Point2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `actors_push_squares` is never used [INFO] [stdout] --> src/physics.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn actors_push_squares(pos_i: &na::Point2, pos_j: &na::Point2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `col` are never read [INFO] [stdout] --> src/components/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct GridLoc { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 16 | pub row: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 17 | pub col: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridLoc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `circle` and `display_type` are never read [INFO] [stdout] --> src/components/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct DisplayComp { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 65 | pub circle: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 66 | pub display_type: DisplayCompType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DisplayComp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/components/ball.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BallDisplayComponent { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 14 | pub image: Image, // component owns image [INFO] [stdout] 15 | pub path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BallDisplayComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `life` and `move_ramp_up` are never read [INFO] [stdout] --> src/components/player.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PlayerComponent { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 13 | pub player_name: String, [INFO] [stdout] 14 | pub life: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pub move_ramp_up: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/components/player.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct CharacterDisplayComponent { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 45 | pub image: Image, // component owns image [INFO] [stdout] 46 | pub path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CharacterDisplayComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/components/collision.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | Circle(f32), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CollisionShape` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Circle(f32), [INFO] [stdout] 7 + Circle(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Square` is never constructed [INFO] [stdout] --> src/components/collision.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum CollisionShape { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 7 | Circle(f32), [INFO] [stdout] 8 | Square(f32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CollisionShape` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shape` is never read [INFO] [stdout] --> src/components/collision.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Collision { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 13 | pub shape: CollisionShape, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Collision` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_circle` and `new_square` are never used [INFO] [stdout] --> src/components/collision.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Collision { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn new_circle(radius: f32) -> Collision { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn new_square(radius: f32) -> Collision { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AddCircle` is never constructed [INFO] [stdout] --> src/resources/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub enum WorldAction { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 67 | AddCircle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WorldAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `actions` is never read [INFO] [stdout] --> src/resources/mod.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct InputResource { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | pub actions: Vec::, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputResource` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_mouse_x` and `set_mouse_y` are never used [INFO] [stdout] --> src/resources/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl InputResource { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_mouse_x(&mut self, mouse_x: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn set_mouse_y(&mut self, mouse_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `t_delta` is never read [INFO] [stdout] --> src/systems/mod.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct UpdatePos { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 33 | pub t_delta: Duration [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SumSys` is never constructed [INFO] [stdout] --> src/systems/mod.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct SumSys; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NpcInputSystem` is never constructed [INFO] [stdout] --> src/systems/input.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct NpcInputSystem; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `font` is never read [INFO] [stdout] --> src/game_state.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct GameState<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub font: graphics::Font, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game_state.rs:313:13 [INFO] [stdout] | [INFO] [stdout] 313 | ggez::graphics::set_screen_coordinates(ctx, Rect::new(0.0, 0.0, width, height)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 313 | let _ = ggez::graphics::set_screen_coordinates(ctx, Rect::new(0.0, 0.0, width, height)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.02s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2bc08a377d75c50aa035b4737a295719c16183bbae5fb800cd9fefbed6aaf1d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bc08a377d75c50aa035b4737a295719c16183bbae5fb800cd9fefbed6aaf1d1", kill_on_drop: false }` [INFO] [stdout] 2bc08a377d75c50aa035b4737a295719c16183bbae5fb800cd9fefbed6aaf1d1