[INFO] fetching crate rust_tetris 0.9.1... [INFO] testing rust_tetris-0.9.1 against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628-retry-1 [INFO] extracting crate rust_tetris 0.9.1 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate rust_tetris 0.9.1 [INFO] finished tweaking crates.io crate rust_tetris 0.9.1 [INFO] tweaked toml for crates.io crate rust_tetris 0.9.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rust_tetris 0.9.1 on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust_tetris 0.9.1 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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ccd3280f7decdb681c0d3cbf89db6e56d66bb5395da7ff812291777f55c081c [INFO] running `Command { std: "docker" "start" "-a" "5ccd3280f7decdb681c0d3cbf89db6e56d66bb5395da7ff812291777f55c081c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ccd3280f7decdb681c0d3cbf89db6e56d66bb5395da7ff812291777f55c081c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ccd3280f7decdb681c0d3cbf89db6e56d66bb5395da7ff812291777f55c081c", kill_on_drop: false }` [INFO] [stdout] 5ccd3280f7decdb681c0d3cbf89db6e56d66bb5395da7ff812291777f55c081c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ed2dfe228acbb6a8b7bb09fb697ab513955d4f9c91579a1ee4351f5e0e76af9 [INFO] running `Command { std: "docker" "start" "-a" "2ed2dfe228acbb6a8b7bb09fb697ab513955d4f9c91579a1ee4351f5e0e76af9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling xml-rs v0.8.23 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling ttf-parser v0.25.0 [INFO] [stderr] Compiling rustix v0.38.40 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling fdeflate v0.3.6 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling allocator-api2 v0.2.20 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling euclid v0.22.11 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling png v0.17.14 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling gpu-alloc v0.5.4 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling wgpu-types v0.16.1 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling cc v1.1.37 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling lyon_geom v1.0.6 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling lyon_path v1.0.6 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling inotify v0.10.2 [INFO] [stderr] Compiling ab_glyph v0.2.29 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling mint v0.5.9 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling bytemuck_derive v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling float_next_after v1.0.0 [INFO] [stderr] Compiling gilrs v0.10.10 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling rustc-hash v2.0.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling lyon_tessellation v1.0.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling glyph_brush_layout v0.2.4 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.6 [INFO] [stderr] Compiling gilrs-core v0.5.15 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling lyon_algorithms v1.0.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling naga v0.12.3 [INFO] [stderr] Compiling bytemuck v1.19.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling ordered-float v4.5.0 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling crevice v0.13.0 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling twox-hash v2.0.1 [INFO] [stderr] Compiling lyon v1.0.1 [INFO] [stderr] Compiling directories v5.0.1 [INFO] [stderr] Compiling glyph_brush v0.7.11 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling glam v0.24.2 [INFO] [stderr] Compiling smart-default v0.7.1 [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 colored v2.1.0 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling rodio v0.17.3 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling wgpu-hal v0.16.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 wgpu-core v0.16.1 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Compiling wgpu v0.16.3 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling rust_tetris v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Updatable` [INFO] [stdout] --> src/t_state.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::t_updatable::{Drawable, Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/define/fn_define.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::runtime::input::InputComponent` [INFO] [stdout] --> src/define/fn_define.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::runtime::input::InputComponent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Void_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `VoidFn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bool_KeyCode_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Bool_KeyCode_Fn = fn(KeyCode) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoolKeyCodeFn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> src/define/enum_define.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use num_enum::{FromPrimitive, IntoPrimitive, TryFromPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LogLevelEnum` and `log` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyInput` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:8:38 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::input::keyboard::{KeyCode, KeyInput}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrokeOptions` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::graphics::{Canvas, DrawMode, Mesh, StrokeOptions, Text, Color, DrawParam}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(self._tick_counter < 10){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(self._tick_counter < 10){ [INFO] [stdout] 105 + if self._tick_counter < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tickable` [INFO] [stdout] --> src/runtime/procedure.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::t_updatable::{Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 27 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 44 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 52 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 67 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 73 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Lines` [INFO] [stdout] --> src/runtime/data/play_field.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseFloatError` [INFO] [stdout] --> src/runtime/data/play_field.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::ParseFloatError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec2` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::glam::{IVec2, ivec2, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::constant::BLOCK_MAX_OCCUPIED` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::constant::BLOCK_MAX_OCCUPIED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProcedureTestDrawBlockParam` and `ProcedureTestDrawBlock` [INFO] [stdout] --> src/app.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::runtime::procedure::procedure_test_draw_block::{ProcedureTestDrawBlock, ProcedureTestDrawBlockParam}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogLevelEnum` [INFO] [stdout] --> src/app.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fatal` [INFO] [stdout] --> src/app.rs:15:42 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::tools::logger::LogLevelEnum::{Fatal, Warning}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `debug_draw_block` [INFO] [stdout] --> src/app.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | #[cfg(feature = "debug_draw_block")]{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `debug` and `debug_draw` [INFO] [stdout] = help: consider adding `debug_draw_block` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused attribute [INFO] [stdout] --> src/runtime/data/teri_grid.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | #[inline] [INFO] [stdout] | ^^^^^^^^^ help: remove this attribute [INFO] [stdout] | [INFO] [stdout] note: attribute also specified here [INFO] [stdout] --> src/runtime/data/teri_grid.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/runtime/procedure.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | / return if let Some(new_procedure) = self._procedure_map.remove(&enum_type) { [INFO] [stdout] 144 | | self._current_procedure = Some(new_procedure); [INFO] [stdout] 145 | | let procedure_ref = self._current_procedure.as_mut().unwrap(); [INFO] [stdout] 146 | | procedure_ref.on_enter(enter_param); [INFO] [stdout] 147 | | return true; [INFO] [stdout] | | ----------- any code following this expression is unreachable [INFO] [stdout] ... | [INFO] [stdout] 152 | | return false; [INFO] [stdout] 153 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `teri` [INFO] [stdout] --> src/tools.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let teri = Tetrimino::new(rand_teri_type); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_teri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:158:27 [INFO] [stdout] | [INFO] [stdout] 158 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:158:63 [INFO] [stdout] | [INFO] [stdout] 158 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 169 | fn on_enter(&mut self, mut param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | fn on_enter(&mut self, mut param:Box){ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:86:46 [INFO] [stdout] | [INFO] [stdout] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:86:63 [INFO] [stdout] | [INFO] [stdout] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `procedure_to_return` is never read [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | procedure_to_return = (Some(ProcedureEnum::Playing),None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:377:37 [INFO] [stdout] | [INFO] [stdout] 377 | fn draw_playing_state(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:387:29 [INFO] [stdout] | [INFO] [stdout] 387 | fn draw_score(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:450:33 [INFO] [stdout] | [INFO] [stdout] 450 | fn draw_playing_info(&self, ctx : &mut Context , canvas : &mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:450:54 [INFO] [stdout] | [INFO] [stdout] 450 | fn draw_playing_info(&self, ctx : &mut Context , canvas : &mut Canvas){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | fn on_draw(&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: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:63 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_over.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_over.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | ...key_code: Option,delta_sec:f32) -> (Option, Option>){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_rect_2` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mesh_rect_2 = Mesh::new_rectangle( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_rect_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:46 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | fn on_enter(&mut self, param: Box) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_test_draw_block.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_test_draw_block.rs:84:72 [INFO] [stdout] | [INFO] [stdout] 84 | ...key_code: Option,delta_sec:f32) -> (Option, Option>){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | fn on_leave(&mut self, param: Option>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | fn on_draw(&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: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | fn on_enter(&mut self,param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> (Option src/runtime/procedure/procedure_test_draw_text.rs:32:51 [INFO] [stdout] | [INFO] [stdout] 32 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> (Option src/runtime/procedure/procedure_test_draw_text.rs:32:100 [INFO] [stdout] | [INFO] [stdout] 32 | ...input::keyboard::KeyCode>,delta_sec:f32) -> (Option, Option>){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | fn on_leave(&mut self,param:Option>){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:44:64 [INFO] [stdout] | [INFO] [stdout] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/runtime/procedure/playing_state_enum.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _ => "Unknown", [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/runtime/procedure/playing_state_enum.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 20 | PlayingStateEnum::Start => "Start", [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 21 | PlayingStateEnum::Falling => "Falling", [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 22 | PlayingStateEnum::Performing => "Performing", [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 23 | PlayingStateEnum::Settlement => "Settlement", [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 24 | _ => "Unknown", [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `insert_succ` is never read [INFO] [stdout] --> src/runtime/procedure.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut insert_succ : Option> = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn not_impl_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_index` [INFO] [stdout] --> src/runtime/data/play_field.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | let mut line_index = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_col` is never read [INFO] [stdout] --> src/runtime/data/play_field.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | let mut curr_col = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/data/play_field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | let mut line_index = 0; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/runtime/data/play_field.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | let len = block_area.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_angle` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:189:94 [INFO] [stdout] | [INFO] [stdout] 189 | fn negate(&self,tetri_type : &TetriminoTypeEnum , clock_wise : bool , curr_angle : u16 , old_angle : u16) -> i32{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/data/tetrimino.rs:265:17 [INFO] [stdout] | [INFO] [stdout] 265 | let mut new_tetrimino = Tetrimino{ [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repeat` [INFO] [stdout] --> src/app.rs:174:71 [INFO] [stdout] | [INFO] [stdout] 174 | fn key_down_event(&mut self, _ctx: &mut Context, input: KeyInput, repeat: bool) -> GameResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RUNTIME_INITIAL_PROCEDURE_INDEX` is never used [INFO] [stdout] --> src/constant.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const RUNTIME_INITIAL_PROCEDURE_INDEX : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_R0G0B0` is never used [INFO] [stdout] --> src/constant.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const COLOR_R0G0B0 : [f32;3] = [0.0 ,0.0 ,0.0]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_R1G1B1` is never used [INFO] [stdout] --> src/constant.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const COLOR_R1G1B1 : [f32;3] = [1.0 ,1.0 ,1.0]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_R1G1B1A1` is never used [INFO] [stdout] --> src/constant.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const COLOR_R1G1B1A1 : [f32;4] = [1.0 ,1.0 ,1.0,1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_1` is never used [INFO] [stdout] --> src/constant.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const COLOR_ALPHA_1 : [f32;1] = [1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_0` is never used [INFO] [stdout] --> src/constant.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const COLOR_ALPHA_0 : [f32;1] = [0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_MAX_OCCUPIED` is never used [INFO] [stdout] --> src/constant.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub const BLOCK_MAX_OCCUPIED : usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Void_Fn` is never used [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/define/enum_define.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TetriminoTypeEnum { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 60 | ///将枚举转换为&str / Convert enum to &str [INFO] [stdout] 61 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Purple` is never constructed [INFO] [stdout] --> src/define/enum_define.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum TetriminoColorEnum{ [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 87 | Purple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TetriminoColorEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_as_empty`, `add_new_procedure`, and `all_procedure_name` are never used [INFO] [stdout] --> src/runtime/procedure.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl ProcedureComponent { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn new_as_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn add_new_procedure(&mut self,procedure_enum:ProcedureEnum) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn all_procedure_name(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw_playing_state` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 309 | impl ProcedurePlaying { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 377 | fn draw_playing_state(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawBlock` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ProcedureTestDrawBlock{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw_text`, `draw_block`, and `draw_another_block` are never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ProcedureTestDrawBlock{ [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new()-> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn draw_text(&mut self,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn draw_block(&mut self,canvas: &mut Canvas,ctx:&mut Context) -> GameResult{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn draw_another_block(&mut self,canvas: &mut Canvas,ctx:&mut Context) -> GameResult{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawBlockParam` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct ProcedureTestDrawBlockParam{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl ProcedureTestDrawBlockParam { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 121 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawText` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ProcedureTestDrawText{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ProcedureTestDrawText{ [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawTextParam` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct ProcedureTestDrawTextParam{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ProcedureTestDrawTextParam{ [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 57 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventComponent` is never constructed [INFO] [stdout] --> src/runtime/event.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EventComponent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, `register_event`, `unregister_event`, and `test` are never used [INFO] [stdout] --> src/runtime/event.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl EventComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 15 | ///constructor [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fire(&mut self,event_id:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn register_event(&mut self,event_id:i32,call_back:fn()) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn unregister_event(&mut self,event_id: i32,call_back:fn()) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn test(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `clear_input`, `main_ui_input_filter`, `playing_input_filter`, `over_input_filter`, and `set_input_filter_mode` are never used [INFO] [stdout] --> src/runtime/input.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl InputComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn clear_input(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn main_ui_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn set_input_filter_mode(&mut self,procedure:ProcedureEnum){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `block_area`, `block_area_mut`, and `get_curr_tetrimino_type` are never used [INFO] [stdout] --> src/runtime/data/play_field.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl PlayField { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn block_area(&self) -> & [[TetriGridCell;constant::PLAY_FIELD_RAWS];constant::PLAY_FIELD_COLS]{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn block_area_mut(&mut self) -> &mut [[TetriGridCell;constant::PLAY_FIELD_RAWS];constant::PLAY_FIELD_COLS]{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn get_curr_tetrimino_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `detect_tetrimino_collision_one_cell` is never used [INFO] [stdout] --> src/runtime/data/play_field.rs:455:8 [INFO] [stdout] | [INFO] [stdout] 320 | impl PlayField { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 455 | fn detect_tetrimino_collision_one_cell( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/runtime/data/playing_data.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl PlayingData { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `coord_as_string`, `set_world_position`, and `get_world_position` are never used [INFO] [stdout] --> src/runtime/data/teri_grid.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl TetriGridCell{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn coord_as_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_world_position(&mut self,world_position: Vec2){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_world_position(&self) -> &Vec2{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_type` and `update_occupied` are never used [INFO] [stdout] --> src/runtime/data/tetrimino.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Tetrimino{ [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn get_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn update_occupied(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | curr_procedure.on_draw(ctx); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 185 | let _ = curr_procedure.on_draw(ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | self.draw_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = self.draw_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/runtime/data/play_field.rs:360:50 [INFO] [stdout] | [INFO] [stdout] 360 | if x >= constant::PLAY_FIELD_COLS || y < 0 || y >= constant::PLAY_FIELD_RAWS { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 50s [INFO] running `Command { std: "docker" "inspect" "2ed2dfe228acbb6a8b7bb09fb697ab513955d4f9c91579a1ee4351f5e0e76af9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ed2dfe228acbb6a8b7bb09fb697ab513955d4f9c91579a1ee4351f5e0e76af9", kill_on_drop: false }` [INFO] [stdout] 2ed2dfe228acbb6a8b7bb09fb697ab513955d4f9c91579a1ee4351f5e0e76af9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2edb4a553a148cffee3fa34e1b723ebf0eb1a2ab89202355cf8edaa1e82a3dfb [INFO] running `Command { std: "docker" "start" "-a" "2edb4a553a148cffee3fa34e1b723ebf0eb1a2ab89202355cf8edaa1e82a3dfb", kill_on_drop: false }` [INFO] [stderr] Compiling rust_tetris v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Updatable` [INFO] [stdout] --> src/t_state.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::t_updatable::{Drawable, Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/define/fn_define.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::runtime::input::InputComponent` [INFO] [stdout] --> src/define/fn_define.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::runtime::input::InputComponent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Void_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `VoidFn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bool_KeyCode_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Bool_KeyCode_Fn = fn(KeyCode) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoolKeyCodeFn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> src/define/enum_define.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use num_enum::{FromPrimitive, IntoPrimitive, TryFromPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LogLevelEnum` and `log` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyInput` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:8:38 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::input::keyboard::{KeyCode, KeyInput}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrokeOptions` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::graphics::{Canvas, DrawMode, Mesh, StrokeOptions, Text, Color, DrawParam}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(self._tick_counter < 10){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(self._tick_counter < 10){ [INFO] [stdout] 105 + if self._tick_counter < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tickable` [INFO] [stdout] --> src/runtime/procedure.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::t_updatable::{Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 27 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 44 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 52 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 67 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 73 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Lines` [INFO] [stdout] --> src/runtime/data/play_field.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseFloatError` [INFO] [stdout] --> src/runtime/data/play_field.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::ParseFloatError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec2` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::glam::{IVec2, ivec2, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::constant::BLOCK_MAX_OCCUPIED` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::constant::BLOCK_MAX_OCCUPIED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProcedureTestDrawBlockParam` and `ProcedureTestDrawBlock` [INFO] [stdout] --> src/app.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::runtime::procedure::procedure_test_draw_block::{ProcedureTestDrawBlock, ProcedureTestDrawBlockParam}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogLevelEnum` [INFO] [stdout] --> src/app.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fatal` [INFO] [stdout] --> src/app.rs:15:42 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::tools::logger::LogLevelEnum::{Fatal, Warning}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `debug_draw_block` [INFO] [stdout] --> src/app.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | #[cfg(feature = "debug_draw_block")]{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `debug` and `debug_draw` [INFO] [stdout] = help: consider adding `debug_draw_block` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused attribute [INFO] [stdout] --> src/runtime/data/teri_grid.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | #[inline] [INFO] [stdout] | ^^^^^^^^^ help: remove this attribute [INFO] [stdout] | [INFO] [stdout] note: attribute also specified here [INFO] [stdout] --> src/runtime/data/teri_grid.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/runtime/procedure.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | / return if let Some(new_procedure) = self._procedure_map.remove(&enum_type) { [INFO] [stdout] 144 | | self._current_procedure = Some(new_procedure); [INFO] [stdout] 145 | | let procedure_ref = self._current_procedure.as_mut().unwrap(); [INFO] [stdout] 146 | | procedure_ref.on_enter(enter_param); [INFO] [stdout] 147 | | return true; [INFO] [stdout] | | ----------- any code following this expression is unreachable [INFO] [stdout] ... | [INFO] [stdout] 152 | | return false; [INFO] [stdout] 153 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `teri` [INFO] [stdout] --> src/tools.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let teri = Tetrimino::new(rand_teri_type); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_teri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:158:27 [INFO] [stdout] | [INFO] [stdout] 158 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:158:63 [INFO] [stdout] | [INFO] [stdout] 158 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 169 | fn on_enter(&mut self, mut param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | fn on_enter(&mut self, mut param:Box){ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:86:46 [INFO] [stdout] | [INFO] [stdout] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:86:63 [INFO] [stdout] | [INFO] [stdout] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `procedure_to_return` is never read [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | procedure_to_return = (Some(ProcedureEnum::Playing),None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:377:37 [INFO] [stdout] | [INFO] [stdout] 377 | fn draw_playing_state(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:387:29 [INFO] [stdout] | [INFO] [stdout] 387 | fn draw_score(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:450:33 [INFO] [stdout] | [INFO] [stdout] 450 | fn draw_playing_info(&self, ctx : &mut Context , canvas : &mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:450:54 [INFO] [stdout] | [INFO] [stdout] 450 | fn draw_playing_info(&self, ctx : &mut Context , canvas : &mut Canvas){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | fn on_draw(&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: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:63 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_over.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_over.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | ...key_code: Option,delta_sec:f32) -> (Option, Option>){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_rect_2` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mesh_rect_2 = Mesh::new_rectangle( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_rect_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:46 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | fn on_enter(&mut self, param: Box) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_test_draw_block.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_test_draw_block.rs:84:72 [INFO] [stdout] | [INFO] [stdout] 84 | ...key_code: Option,delta_sec:f32) -> (Option, Option>){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | fn on_leave(&mut self, param: Option>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | fn on_draw(&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: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | fn on_enter(&mut self,param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> (Option src/runtime/procedure/procedure_test_draw_text.rs:32:51 [INFO] [stdout] | [INFO] [stdout] 32 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> (Option src/runtime/procedure/procedure_test_draw_text.rs:32:100 [INFO] [stdout] | [INFO] [stdout] 32 | ...input::keyboard::KeyCode>,delta_sec:f32) -> (Option, Option>){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | fn on_leave(&mut self,param:Option>){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:44:64 [INFO] [stdout] | [INFO] [stdout] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/runtime/procedure/playing_state_enum.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _ => "Unknown", [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/runtime/procedure/playing_state_enum.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 20 | PlayingStateEnum::Start => "Start", [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 21 | PlayingStateEnum::Falling => "Falling", [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 22 | PlayingStateEnum::Performing => "Performing", [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 23 | PlayingStateEnum::Settlement => "Settlement", [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 24 | _ => "Unknown", [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `insert_succ` is never read [INFO] [stdout] --> src/runtime/procedure.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut insert_succ : Option> = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn not_impl_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_index` [INFO] [stdout] --> src/runtime/data/play_field.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | let mut line_index = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_col` is never read [INFO] [stdout] --> src/runtime/data/play_field.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | let mut curr_col = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/data/play_field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | let mut line_index = 0; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/runtime/data/play_field.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | let len = block_area.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_angle` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:189:94 [INFO] [stdout] | [INFO] [stdout] 189 | fn negate(&self,tetri_type : &TetriminoTypeEnum , clock_wise : bool , curr_angle : u16 , old_angle : u16) -> i32{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/data/tetrimino.rs:265:17 [INFO] [stdout] | [INFO] [stdout] 265 | let mut new_tetrimino = Tetrimino{ [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repeat` [INFO] [stdout] --> src/app.rs:174:71 [INFO] [stdout] | [INFO] [stdout] 174 | fn key_down_event(&mut self, _ctx: &mut Context, input: KeyInput, repeat: bool) -> GameResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RUNTIME_INITIAL_PROCEDURE_INDEX` is never used [INFO] [stdout] --> src/constant.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const RUNTIME_INITIAL_PROCEDURE_INDEX : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_R0G0B0` is never used [INFO] [stdout] --> src/constant.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const COLOR_R0G0B0 : [f32;3] = [0.0 ,0.0 ,0.0]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_R1G1B1` is never used [INFO] [stdout] --> src/constant.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const COLOR_R1G1B1 : [f32;3] = [1.0 ,1.0 ,1.0]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_R1G1B1A1` is never used [INFO] [stdout] --> src/constant.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const COLOR_R1G1B1A1 : [f32;4] = [1.0 ,1.0 ,1.0,1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_1` is never used [INFO] [stdout] --> src/constant.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const COLOR_ALPHA_1 : [f32;1] = [1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_0` is never used [INFO] [stdout] --> src/constant.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const COLOR_ALPHA_0 : [f32;1] = [0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_MAX_OCCUPIED` is never used [INFO] [stdout] --> src/constant.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub const BLOCK_MAX_OCCUPIED : usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Void_Fn` is never used [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/define/enum_define.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TetriminoTypeEnum { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 60 | ///将枚举转换为&str / Convert enum to &str [INFO] [stdout] 61 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Purple` is never constructed [INFO] [stdout] --> src/define/enum_define.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum TetriminoColorEnum{ [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 87 | Purple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TetriminoColorEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_as_empty`, `add_new_procedure`, and `all_procedure_name` are never used [INFO] [stdout] --> src/runtime/procedure.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl ProcedureComponent { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn new_as_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn add_new_procedure(&mut self,procedure_enum:ProcedureEnum) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn all_procedure_name(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw_playing_state` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 309 | impl ProcedurePlaying { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 377 | fn draw_playing_state(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawBlock` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ProcedureTestDrawBlock{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw_text`, `draw_block`, and `draw_another_block` are never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ProcedureTestDrawBlock{ [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new()-> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn draw_text(&mut self,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn draw_block(&mut self,canvas: &mut Canvas,ctx:&mut Context) -> GameResult{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn draw_another_block(&mut self,canvas: &mut Canvas,ctx:&mut Context) -> GameResult{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawBlockParam` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct ProcedureTestDrawBlockParam{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl ProcedureTestDrawBlockParam { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 121 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawText` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ProcedureTestDrawText{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ProcedureTestDrawText{ [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcedureTestDrawTextParam` is never constructed [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct ProcedureTestDrawTextParam{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ProcedureTestDrawTextParam{ [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 57 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventComponent` is never constructed [INFO] [stdout] --> src/runtime/event.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EventComponent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, `register_event`, `unregister_event`, and `test` are never used [INFO] [stdout] --> src/runtime/event.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl EventComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 15 | ///constructor [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fire(&mut self,event_id:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn register_event(&mut self,event_id:i32,call_back:fn()) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn unregister_event(&mut self,event_id: i32,call_back:fn()) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn test(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `clear_input`, `main_ui_input_filter`, `playing_input_filter`, `over_input_filter`, and `set_input_filter_mode` are never used [INFO] [stdout] --> src/runtime/input.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl InputComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn clear_input(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn main_ui_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn set_input_filter_mode(&mut self,procedure:ProcedureEnum){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `block_area`, `block_area_mut`, and `get_curr_tetrimino_type` are never used [INFO] [stdout] --> src/runtime/data/play_field.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl PlayField { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn block_area(&self) -> & [[TetriGridCell;constant::PLAY_FIELD_RAWS];constant::PLAY_FIELD_COLS]{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn block_area_mut(&mut self) -> &mut [[TetriGridCell;constant::PLAY_FIELD_RAWS];constant::PLAY_FIELD_COLS]{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn get_curr_tetrimino_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `detect_tetrimino_collision_one_cell` is never used [INFO] [stdout] --> src/runtime/data/play_field.rs:455:8 [INFO] [stdout] | [INFO] [stdout] 320 | impl PlayField { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 455 | fn detect_tetrimino_collision_one_cell( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/runtime/data/playing_data.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl PlayingData { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `coord_as_string`, `set_world_position`, and `get_world_position` are never used [INFO] [stdout] --> src/runtime/data/teri_grid.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl TetriGridCell{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn coord_as_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_world_position(&mut self,world_position: Vec2){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_world_position(&self) -> &Vec2{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_type` and `update_occupied` are never used [INFO] [stdout] --> src/runtime/data/tetrimino.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Tetrimino{ [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn get_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn update_occupied(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | curr_procedure.on_draw(ctx); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 185 | let _ = curr_procedure.on_draw(ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | self.draw_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = self.draw_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/runtime/data/play_field.rs:360:50 [INFO] [stdout] | [INFO] [stdout] 360 | if x >= constant::PLAY_FIELD_COLS || y < 0 || y >= constant::PLAY_FIELD_RAWS { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.31s [INFO] running `Command { std: "docker" "inspect" "2edb4a553a148cffee3fa34e1b723ebf0eb1a2ab89202355cf8edaa1e82a3dfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2edb4a553a148cffee3fa34e1b723ebf0eb1a2ab89202355cf8edaa1e82a3dfb", kill_on_drop: false }` [INFO] [stdout] 2edb4a553a148cffee3fa34e1b723ebf0eb1a2ab89202355cf8edaa1e82a3dfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3a2a488b175c6650f11864a6213ec81487079ac098ea8d318e3b0594eedd188e [INFO] running `Command { std: "docker" "start" "-a" "3a2a488b175c6650f11864a6213ec81487079ac098ea8d318e3b0594eedd188e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Updatable` [INFO] [stderr] --> src/t_state.rs:6:46 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::t_updatable::{Drawable, Tickable, Updatable}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fmt` [INFO] [stderr] --> src/define/fn_define.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::fmt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::runtime::input::InputComponent` [INFO] [stderr] --> src/define/fn_define.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::runtime::input::InputComponent; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Void_Fn` should have an upper camel case name [INFO] [stderr] --> src/define/fn_define.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | pub type Void_Fn = fn(); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper camel case: `VoidFn` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `Bool_KeyCode_Fn` should have an upper camel case name [INFO] [stderr] --> src/define/fn_define.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | pub type Bool_KeyCode_Fn = fn(KeyCode) -> bool; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoolKeyCodeFn` [INFO] [stderr] [INFO] [stderr] warning: unused import: `FromPrimitive` [INFO] [stderr] --> src/define/enum_define.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | use num_enum::{FromPrimitive, IntoPrimitive, TryFromPrimitive}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `LogLevelEnum` and `log` [INFO] [stderr] --> src/runtime/procedure/procedure_main_ui.rs:7:28 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stderr] | ^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `KeyInput` [INFO] [stderr] --> src/runtime/procedure/procedure_main_ui.rs:8:38 [INFO] [stderr] | [INFO] [stderr] 8 | use ggez::input::keyboard::{KeyCode, KeyInput}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `StrokeOptions` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:4:46 [INFO] [stderr] | [INFO] [stderr] 4 | use ggez::graphics::{Canvas, DrawMode, Mesh, StrokeOptions, Text, Color, DrawParam}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:105:11 [INFO] [stderr] | [INFO] [stderr] 105 | if(self._tick_counter < 10){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 105 - if(self._tick_counter < 10){ [INFO] [stderr] 105 + if self._tick_counter < 10 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `Formatter` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Tickable` [INFO] [stderr] --> src/runtime/procedure.rs:19:26 [INFO] [stderr] | [INFO] [stderr] 19 | use crate::t_updatable::{Tickable, Updatable}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/runtime/event.rs:27:11 [INFO] [stderr] | [INFO] [stderr] 27 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 27 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stderr] 27 + if !self._event_map.contains_key(&event_id) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/runtime/event.rs:44:11 [INFO] [stderr] | [INFO] [stderr] 44 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 44 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stderr] 44 + if !self._event_map.contains_key(&event_id) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/runtime/event.rs:52:11 [INFO] [stderr] | [INFO] [stderr] 52 | if(!call_back_vec.contains(&call_back)){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 52 - if(!call_back_vec.contains(&call_back)){ [INFO] [stderr] 52 + if !call_back_vec.contains(&call_back) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/runtime/event.rs:67:11 [INFO] [stderr] | [INFO] [stderr] 67 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 67 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stderr] 67 + if !self._event_map.contains_key(&event_id) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/runtime/event.rs:73:11 [INFO] [stderr] | [INFO] [stderr] 73 | if(!call_back_vec.contains(&call_back)){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 73 - if(!call_back_vec.contains(&call_back)){ [INFO] [stderr] 73 + if !call_back_vec.contains(&call_back) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Lines` [INFO] [stderr] --> src/runtime/data/play_field.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Lines; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::num::ParseFloatError` [INFO] [stderr] --> src/runtime/data/play_field.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::num::ParseFloatError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Vec2` [INFO] [stderr] --> src/runtime/data/tetrimino.rs:3:32 [INFO] [stderr] | [INFO] [stderr] 3 | use ggez::glam::{IVec2, ivec2, Vec2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::constant::BLOCK_MAX_OCCUPIED` [INFO] [stderr] --> src/runtime/data/tetrimino.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::constant::BLOCK_MAX_OCCUPIED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ProcedureTestDrawBlockParam` and `ProcedureTestDrawBlock` [INFO] [stderr] --> src/app.rs:11:60 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::runtime::procedure::procedure_test_draw_block::{ProcedureTestDrawBlock, ProcedureTestDrawBlockParam}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `LogLevelEnum` [INFO] [stderr] --> src/app.rs:14:33 [INFO] [stderr] | [INFO] [stderr] 14 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Fatal` [INFO] [stderr] --> src/app.rs:15:42 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::tools::logger::LogLevelEnum::{Fatal, Warning}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `debug_draw_block` [INFO] [stderr] --> src/app.rs:40:19 [INFO] [stderr] | [INFO] [stderr] 40 | #[cfg(feature = "debug_draw_block")]{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `debug` and `debug_draw` [INFO] [stderr] = help: consider adding `debug_draw_block` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused attribute [INFO] [stderr] --> src/runtime/data/teri_grid.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | #[inline] [INFO] [stderr] | ^^^^^^^^^ help: remove this attribute [INFO] [stderr] | [INFO] [stderr] note: attribute also specified here [INFO] [stderr] --> src/runtime/data/teri_grid.rs:67:5 [INFO] [stderr] | [INFO] [stderr] 67 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/runtime/procedure.rs:143:9 [INFO] [stderr] | [INFO] [stderr] 143 | / return if let Some(new_procedure) = self._procedure_map.remove(&enum_type) { [INFO] [stderr] 144 | | self._current_procedure = Some(new_procedure); [INFO] [stderr] 145 | | let procedure_ref = self._current_procedure.as_mut().unwrap(); [INFO] [stderr] 146 | | procedure_ref.on_enter(enter_param); [INFO] [stderr] 147 | | return true; [INFO] [stderr] | | ----------- any code following this expression is unreachable [INFO] [stderr] ... | [INFO] [stderr] 152 | | return false; [INFO] [stderr] 153 | | } [INFO] [stderr] | |_________^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `teri` [INFO] [stderr] --> src/tools.rs:78:13 [INFO] [stderr] | [INFO] [stderr] 78 | let teri = Tetrimino::new(rand_teri_type); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_teri` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_main_ui.rs:158:27 [INFO] [stderr] | [INFO] [stderr] 158 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interval` [INFO] [stderr] --> src/runtime/procedure/procedure_main_ui.rs:158:63 [INFO] [stderr] | [INFO] [stderr] 158 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/runtime/procedure/procedure_main_ui.rs:169:32 [INFO] [stderr] | [INFO] [stderr] 169 | fn on_enter(&mut self, mut param:Box){ [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/runtime/procedure/procedure_main_ui.rs:169:28 [INFO] [stderr] | [INFO] [stderr] 169 | fn on_enter(&mut self, mut param:Box){ [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:86:27 [INFO] [stderr] | [INFO] [stderr] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_time` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:86:46 [INFO] [stderr] | [INFO] [stderr] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interval` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:86:63 [INFO] [stderr] | [INFO] [stderr] 86 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `procedure_to_return` is never read [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:243:21 [INFO] [stderr] | [INFO] [stderr] 243 | procedure_to_return = (Some(ProcedureEnum::Playing),None); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:377:37 [INFO] [stderr] | [INFO] [stderr] 377 | fn draw_playing_state(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:387:29 [INFO] [stderr] | [INFO] [stderr] 387 | fn draw_score(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:450:33 [INFO] [stderr] | [INFO] [stderr] 450 | fn draw_playing_info(&self, ctx : &mut Context , canvas : &mut Canvas){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `canvas` [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:450:54 [INFO] [stderr] | [INFO] [stderr] 450 | fn draw_playing_info(&self, ctx : &mut Context , canvas : &mut Canvas){ [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_over.rs:16:27 [INFO] [stderr] | [INFO] [stderr] 16 | fn on_draw(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_over.rs:22:27 [INFO] [stderr] | [INFO] [stderr] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_time` [INFO] [stderr] --> src/runtime/procedure/procedure_over.rs:22:46 [INFO] [stderr] | [INFO] [stderr] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interval` [INFO] [stderr] --> src/runtime/procedure/procedure_over.rs:22:63 [INFO] [stderr] | [INFO] [stderr] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_over.rs:33:28 [INFO] [stderr] | [INFO] [stderr] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_over.rs:33:45 [INFO] [stderr] | [INFO] [stderr] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_over.rs:33:71 [INFO] [stderr] | [INFO] [stderr] 33 | ...key_code: Option,delta_sec:f32) -> (Option, Option>){ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mesh_rect_2` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | let mesh_rect_2 = Mesh::new_rectangle( [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_rect_2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:69:27 [INFO] [stderr] | [INFO] [stderr] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_time` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:69:46 [INFO] [stderr] | [INFO] [stderr] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interval` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:69:63 [INFO] [stderr] | [INFO] [stderr] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:76:28 [INFO] [stderr] | [INFO] [stderr] 76 | fn on_enter(&mut self, param: Box) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:84:28 [INFO] [stderr] | [INFO] [stderr] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_test_draw_block.rs:84:46 [INFO] [stderr] | [INFO] [stderr] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> (Option, Option src/runtime/procedure/procedure_test_draw_block.rs:84:72 [INFO] [stderr] | [INFO] [stderr] 84 | ...key_code: Option,delta_sec:f32) -> (Option, Option>){ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:89:28 [INFO] [stderr] | [INFO] [stderr] 89 | fn on_leave(&mut self, param: Option>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:23:27 [INFO] [stderr] | [INFO] [stderr] 23 | fn on_draw(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:29:27 [INFO] [stderr] | [INFO] [stderr] 29 | fn on_enter(&mut self,param:Box){ [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:32:28 [INFO] [stderr] | [INFO] [stderr] 32 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> (Option src/runtime/procedure/procedure_test_draw_text.rs:32:51 [INFO] [stderr] | [INFO] [stderr] 32 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> (Option src/runtime/procedure/procedure_test_draw_text.rs:32:100 [INFO] [stderr] | [INFO] [stderr] 32 | ...input::keyboard::KeyCode>,delta_sec:f32) -> (Option, Option>){ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:35:27 [INFO] [stderr] | [INFO] [stderr] 35 | fn on_leave(&mut self,param:Option>){ [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:44:26 [INFO] [stderr] | [INFO] [stderr] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_time` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:44:49 [INFO] [stderr] | [INFO] [stderr] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interval` [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:44:64 [INFO] [stderr] | [INFO] [stderr] 44 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/runtime/procedure/playing_state_enum.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | _ => "Unknown", [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/runtime/procedure/playing_state_enum.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 20 | PlayingStateEnum::Start => "Start", [INFO] [stderr] | ----------------------- matches some of the same values [INFO] [stderr] 21 | PlayingStateEnum::Falling => "Falling", [INFO] [stderr] | ------------------------- matches some of the same values [INFO] [stderr] 22 | PlayingStateEnum::Performing => "Performing", [INFO] [stderr] | ---------------------------- matches some of the same values [INFO] [stderr] 23 | PlayingStateEnum::Settlement => "Settlement", [INFO] [stderr] | ---------------------------- matches some of the same values [INFO] [stderr] 24 | _ => "Unknown", [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `insert_succ` is never read [INFO] [stderr] --> src/runtime/procedure.rs:98:17 [INFO] [stderr] | [INFO] [stderr] 98 | let mut insert_succ : Option> = None; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key_code` [INFO] [stderr] --> src/runtime/input.rs:47:30 [INFO] [stderr] | [INFO] [stderr] 47 | fn not_impl_input_filter(key_code: KeyCode) -> bool{ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key_code` [INFO] [stderr] --> src/runtime/input.rs:73:29 [INFO] [stderr] | [INFO] [stderr] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key_code` [INFO] [stderr] --> src/runtime/input.rs:77:26 [INFO] [stderr] | [INFO] [stderr] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `line_index` [INFO] [stderr] --> src/runtime/data/play_field.rs:274:17 [INFO] [stderr] | [INFO] [stderr] 274 | let mut line_index = 0; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_index` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `curr_col` is never read [INFO] [stderr] --> src/runtime/data/play_field.rs:277:17 [INFO] [stderr] | [INFO] [stderr] 277 | let mut curr_col = 0; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/runtime/data/play_field.rs:274:13 [INFO] [stderr] | [INFO] [stderr] 274 | let mut line_index = 0; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `len` [INFO] [stderr] --> src/runtime/data/play_field.rs:405:13 [INFO] [stderr] | [INFO] [stderr] 405 | let len = block_area.len(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `old_angle` [INFO] [stderr] --> src/runtime/data/tetrimino.rs:189:94 [INFO] [stderr] | [INFO] [stderr] 189 | fn negate(&self,tetri_type : &TetriminoTypeEnum , clock_wise : bool , curr_angle : u16 , old_angle : u16) -> i32{ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_angle` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/runtime/data/tetrimino.rs:265:17 [INFO] [stderr] | [INFO] [stderr] 265 | let mut new_tetrimino = Tetrimino{ [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `repeat` [INFO] [stderr] --> src/app.rs:174:71 [INFO] [stderr] | [INFO] [stderr] 174 | fn key_down_event(&mut self, _ctx: &mut Context, input: KeyInput, repeat: bool) -> GameResult { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stderr] [INFO] [stderr] warning: constant `RUNTIME_INITIAL_PROCEDURE_INDEX` is never used [INFO] [stderr] --> src/constant.rs:31:11 [INFO] [stderr] | [INFO] [stderr] 31 | pub const RUNTIME_INITIAL_PROCEDURE_INDEX : i32 = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `COLOR_R0G0B0` is never used [INFO] [stderr] --> src/constant.rs:44:11 [INFO] [stderr] | [INFO] [stderr] 44 | pub const COLOR_R0G0B0 : [f32;3] = [0.0 ,0.0 ,0.0]; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COLOR_R1G1B1` is never used [INFO] [stderr] --> src/constant.rs:45:11 [INFO] [stderr] | [INFO] [stderr] 45 | pub const COLOR_R1G1B1 : [f32;3] = [1.0 ,1.0 ,1.0]; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COLOR_R1G1B1A1` is never used [INFO] [stderr] --> src/constant.rs:46:11 [INFO] [stderr] | [INFO] [stderr] 46 | pub const COLOR_R1G1B1A1 : [f32;4] = [1.0 ,1.0 ,1.0,1.0]; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COLOR_ALPHA_1` is never used [INFO] [stderr] --> src/constant.rs:48:11 [INFO] [stderr] | [INFO] [stderr] 48 | pub const COLOR_ALPHA_1 : [f32;1] = [1.0]; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COLOR_ALPHA_0` is never used [INFO] [stderr] --> src/constant.rs:49:11 [INFO] [stderr] | [INFO] [stderr] 49 | pub const COLOR_ALPHA_0 : [f32;1] = [0.0]; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BLOCK_MAX_OCCUPIED` is never used [INFO] [stderr] --> src/constant.rs:63:11 [INFO] [stderr] | [INFO] [stderr] 63 | pub const BLOCK_MAX_OCCUPIED : usize = 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `Void_Fn` is never used [INFO] [stderr] --> src/define/fn_define.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | pub type Void_Fn = fn(); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/define/enum_define.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 59 | impl TetriminoTypeEnum { [INFO] [stderr] | ---------------------- method in this implementation [INFO] [stderr] 60 | ///将枚举转换为&str / Convert enum to &str [INFO] [stderr] 61 | pub fn as_str(&self) -> &str { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Purple` is never constructed [INFO] [stderr] --> src/define/enum_define.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 82 | pub enum TetriminoColorEnum{ [INFO] [stderr] | ------------------ variant in this enum [INFO] [stderr] ... [INFO] [stderr] 87 | Purple, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TetriminoColorEnum` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new_as_empty`, `add_new_procedure`, and `all_procedure_name` are never used [INFO] [stderr] --> src/runtime/procedure.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 31 | impl ProcedureComponent { [INFO] [stderr] | ----------------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn new_as_empty() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | pub fn add_new_procedure(&mut self,procedure_enum:ProcedureEnum) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 169 | pub fn all_procedure_name(&self) -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `draw_playing_state` is never used [INFO] [stderr] --> src/runtime/procedure/procedure_playing.rs:377:8 [INFO] [stderr] | [INFO] [stderr] 309 | impl ProcedurePlaying { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 377 | fn draw_playing_state(&mut self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ProcedureTestDrawBlock` is never constructed [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct ProcedureTestDrawBlock{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `draw_text`, `draw_block`, and `draw_another_block` are never used [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 21 | impl ProcedureTestDrawBlock{ [INFO] [stderr] | --------------------------- associated items in this implementation [INFO] [stderr] 22 | pub fn new()-> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | fn draw_text(&mut self,canvas: &mut Canvas){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | fn draw_block(&mut self,canvas: &mut Canvas,ctx:&mut Context) -> GameResult{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | fn draw_another_block(&mut self,canvas: &mut Canvas,ctx:&mut Context) -> GameResult{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ProcedureTestDrawBlockParam` is never constructed [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:116:12 [INFO] [stderr] | [INFO] [stderr] 116 | pub struct ProcedureTestDrawBlockParam{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:121:12 [INFO] [stderr] | [INFO] [stderr] 120 | impl ProcedureTestDrawBlockParam { [INFO] [stderr] | -------------------------------- associated function in this implementation [INFO] [stderr] 121 | pub fn new() -> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ProcedureTestDrawText` is never constructed [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct ProcedureTestDrawText{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl ProcedureTestDrawText{ [INFO] [stderr] | -------------------------- associated function in this implementation [INFO] [stderr] 15 | pub fn new() -> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ProcedureTestDrawTextParam` is never constructed [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub struct ProcedureTestDrawTextParam{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_text.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 56 | impl ProcedureTestDrawTextParam{ [INFO] [stderr] | ------------------------------- associated function in this implementation [INFO] [stderr] 57 | pub fn new() -> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EventComponent` is never constructed [INFO] [stderr] --> src/runtime/event.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct EventComponent { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `fire`, `register_event`, `unregister_event`, and `test` are never used [INFO] [stderr] --> src/runtime/event.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl EventComponent { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 15 | ///constructor [INFO] [stderr] 16 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn fire(&mut self,event_id:i32){ [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn register_event(&mut self,event_id:i32,call_back:fn()) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 66 | pub fn unregister_event(&mut self,event_id: i32,call_back:fn()) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | pub fn test(&self){ [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `clear_input`, `main_ui_input_filter`, `playing_input_filter`, `over_input_filter`, and `set_input_filter_mode` are never used [INFO] [stderr] --> src/runtime/input.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl InputComponent { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn clear_input(&mut self){ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | fn main_ui_input_filter(key_code: KeyCode) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn set_input_filter_mode(&mut self,procedure:ProcedureEnum){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `block_area`, `block_area_mut`, and `get_curr_tetrimino_type` are never used [INFO] [stderr] --> src/runtime/data/play_field.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 20 | impl PlayField { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn block_area(&self) -> & [[TetriGridCell;constant::PLAY_FIELD_RAWS];constant::PLAY_FIELD_COLS]{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 96 | pub fn block_area_mut(&mut self) -> &mut [[TetriGridCell;constant::PLAY_FIELD_RAWS];constant::PLAY_FIELD_COLS]{ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 252 | pub fn get_curr_tetrimino_type(&self) -> &TetriminoTypeEnum{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `detect_tetrimino_collision_one_cell` is never used [INFO] [stderr] --> src/runtime/data/play_field.rs:455:8 [INFO] [stderr] | [INFO] [stderr] 320 | impl PlayField { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 455 | fn detect_tetrimino_collision_one_cell( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `clear` is never used [INFO] [stderr] --> src/runtime/data/playing_data.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl PlayingData { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 31 | pub fn clear(&mut self){ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `coord_as_string`, `set_world_position`, and `get_world_position` are never used [INFO] [stderr] --> src/runtime/data/teri_grid.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl TetriGridCell{ [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn coord_as_string(&self) -> String{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | pub fn set_world_position(&mut self,world_position: Vec2){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | pub fn get_world_position(&self) -> &Vec2{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_type` and `update_occupied` are never used [INFO] [stderr] --> src/runtime/data/tetrimino.rs:246:12 [INFO] [stderr] | [INFO] [stderr] 25 | impl Tetrimino{ [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 246 | pub fn get_type(&self) -> &TetriminoTypeEnum{ [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 259 | fn update_occupied(&mut self){ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/runtime/procedure.rs:185:13 [INFO] [stderr] | [INFO] [stderr] 185 | curr_procedure.on_draw(ctx); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 185 | let _ = curr_procedure.on_draw(ctx); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | self.draw_block(&mut canvas, ctx); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 106 | let _ = self.draw_block(&mut canvas, ctx); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/runtime/procedure/procedure_test_draw_block.rs:109:13 [INFO] [stderr] | [INFO] [stderr] 109 | self.draw_another_block(&mut canvas, ctx); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 109 | let _ = self.draw_another_block(&mut canvas, ctx); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/runtime/data/play_field.rs:360:50 [INFO] [stderr] | [INFO] [stderr] 360 | if x >= constant::PLAY_FIELD_COLS || y < 0 || y >= constant::PLAY_FIELD_RAWS { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust_tetris` (bin "rust_tetris" test) generated 109 warnings (run `cargo fix --bin "rust_tetris" --tests` to apply 26 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_tetris-b3f7820b73d67342) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test::test_logger::test_logger::entry ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3a2a488b175c6650f11864a6213ec81487079ac098ea8d318e3b0594eedd188e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a2a488b175c6650f11864a6213ec81487079ac098ea8d318e3b0594eedd188e", kill_on_drop: false }` [INFO] [stdout] 3a2a488b175c6650f11864a6213ec81487079ac098ea8d318e3b0594eedd188e