[INFO] cloning repository https://github.com/tehsmeely/particles [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tehsmeely/particles" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 906199a92ab48acb1b798607edc3d6e4cd9bdb63 [INFO] checking tehsmeely/particles against master#84e729a59f216cc64755788a470f165429a731f4 for pr-123737-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tehsmeely/particles on toolchain 84e729a59f216cc64755788a470f165429a731f4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tehsmeely/particles [INFO] finished tweaking git repo https://github.com/tehsmeely/particles [INFO] tweaked toml for git repo https://github.com/tehsmeely/particles written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tehsmeely/particles 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" "+84e729a59f216cc64755788a470f165429a731f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zip v0.5.13 [INFO] [stderr] Downloaded ndk-glue v0.4.0 [INFO] [stderr] Downloaded num v0.4.0 [INFO] [stderr] Downloaded twox-hash v1.6.1 [INFO] [stderr] Downloaded thiserror v1.0.28 [INFO] [stderr] Downloaded approx v0.5.0 [INFO] [stderr] Downloaded array2d v0.2.1 [INFO] [stderr] Downloaded glam v0.15.2 [INFO] [stderr] Downloaded euclid v0.22.6 [INFO] [stderr] Downloaded lyon_tessellation v0.17.9 [INFO] [stderr] Downloaded alsa v0.5.0 [INFO] [stderr] Downloaded combine v4.6.1 [INFO] [stderr] Downloaded oboe-sys v0.4.4 [INFO] [stderr] Downloaded cpal v0.13.4 [INFO] [stderr] Downloaded pest v2.1.3 [INFO] [stderr] Downloaded serde_json v1.0.67 [INFO] [stderr] Downloaded pulldown-cmark v0.8.0 [INFO] [stderr] Downloaded nix v0.20.1 [INFO] [stderr] Downloaded ggez v0.6.0 [INFO] [stderr] Downloaded num-bigint v0.4.2 [INFO] [stderr] Downloaded gilrs-core v0.3.1 [INFO] [stderr] Downloaded gilrs v0.8.1 [INFO] [stderr] Downloaded glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Downloaded ordered-float v2.8.0 [INFO] [stderr] Downloaded glyph_brush v0.7.2 [INFO] [stderr] Downloaded lyon_algorithms v0.17.5 [INFO] [stderr] Downloaded lyon_geom v0.17.5 [INFO] [stderr] Downloaded lyon_path v0.17.6 [INFO] [stderr] Downloaded lyon v0.17.5 [INFO] [stderr] Downloaded old_school_gfx_glutin_ext v0.26.0 [INFO] [stderr] Downloaded clang-sys v1.2.2 [INFO] [stderr] Downloaded ndk v0.4.0 [INFO] [stderr] Downloaded oboe v0.4.4 [INFO] [stderr] Downloaded hound v3.4.0 [INFO] [stderr] Downloaded cargo-platform v0.1.2 [INFO] [stderr] Downloaded ucd-trie v0.1.3 [INFO] [stderr] Downloaded skeptic v0.13.6 [INFO] [stderr] Downloaded serde_derive v1.0.130 [INFO] [stderr] Downloaded bzip2 v0.4.3 [INFO] [stderr] Downloaded bytecount v0.6.2 [INFO] [stderr] Downloaded semver v0.11.0 [INFO] [stderr] Downloaded semver-parser v0.10.2 [INFO] [stderr] Downloaded cargo_metadata v0.12.3 [INFO] [stderr] Downloaded jobserver v0.1.24 [INFO] [stderr] Downloaded thiserror-impl v1.0.28 [INFO] [stderr] Downloaded num-complex v0.4.0 [INFO] [stderr] Downloaded num-rational v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bef3a37971e6c00323cc60cdb9d3ecc7db4f48639af313773423cb84ebcb0d1d [INFO] running `Command { std: "docker" "start" "-a" "bef3a37971e6c00323cc60cdb9d3ecc7db4f48639af313773423cb84ebcb0d1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bef3a37971e6c00323cc60cdb9d3ecc7db4f48639af313773423cb84ebcb0d1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bef3a37971e6c00323cc60cdb9d3ecc7db4f48639af313773423cb84ebcb0d1d", kill_on_drop: false }` [INFO] [stdout] bef3a37971e6c00323cc60cdb9d3ecc7db4f48639af313773423cb84ebcb0d1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3388aa0f5349caedf8135886004503881054d23993ad42b8f8c948f3eb1a07a [INFO] running `Command { std: "docker" "start" "-a" "d3388aa0f5349caedf8135886004503881054d23993ad42b8f8c948f3eb1a07a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling thiserror-impl v1.0.28 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking euclid v0.22.6 [INFO] [stderr] Checking ttf-parser v0.12.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking lyon_geom v0.17.5 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking nix v0.20.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Checking nix v0.18.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Checking thiserror v1.0.28 [INFO] [stderr] Checking owned_ttf_parser v0.12.1 [INFO] [stderr] Checking x11-dl v2.18.5 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking ab_glyph v0.2.11 [INFO] [stderr] Checking lyon_path v0.17.6 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking alsa-sys v0.3.1 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking sid v0.6.1 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Checking wayland-client v0.28.6 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Checking rayon v1.5.1 [INFO] [stderr] Checking tinyvec v1.3.1 [INFO] [stderr] Checking alsa v0.5.0 [INFO] [stderr] Checking glutin_glx_sys v0.1.7 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking libudev-sys v0.1.4 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking wayland-protocols v0.28.6 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Checking float_next_after v0.1.5 [INFO] [stderr] Checking approx v0.5.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking twox-hash v1.6.1 [INFO] [stderr] Checking gilrs-core v0.3.1 [INFO] [stderr] Checking glyph_brush_layout v0.2.3 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking lyon_tessellation v0.17.9 [INFO] [stderr] Checking minimp3 v0.5.1 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking lyon_algorithms v0.17.5 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Checking ordered-float v2.8.0 [INFO] [stderr] Checking mint v0.5.6 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking glyph_brush v0.7.2 [INFO] [stderr] Checking rodio v0.14.0 [INFO] [stderr] Checking glam v0.15.2 [INFO] [stderr] Checking gilrs v0.8.1 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking directories v3.0.2 [INFO] [stderr] Checking lyon v0.17.5 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking array2d v0.2.1 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking bzip2 v0.4.3 [INFO] [stderr] Checking zip v0.5.13 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Compiling ggez v0.6.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking old_school_gfx_glutin_ext v0.26.0 [INFO] [stderr] Checking particles v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ParticleType`, `Particle` [INFO] [stdout] --> src/grid.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::particle::{Particle, ParticleType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Grid` [INFO] [stdout] --> src/main.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::grid::{Grid, WorldPosition}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParticleType`, `Particle` [INFO] [stdout] --> src/grid.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::particle::{Particle, ParticleType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Grid` [INFO] [stdout] --> src/main.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::grid::{Grid, WorldPosition}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid` [INFO] [stdout] --> src/pixel.rs:73:54 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn update(&self, current_pos: &GridPosition, grid: &Array2D) -> GridPosition { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:133:82 [INFO] [stdout] | [INFO] [stdout] 133 | fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:133:90 [INFO] [stdout] | [INFO] [stdout] 133 | fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `particles` and `rng` are never read [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct GameState { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 35 | grid: pixel_grid::Grid, [INFO] [stdout] 36 | particles: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 37 | mouse_state: MouseState, [INFO] [stdout] 38 | rng: ThreadRng, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spawn_particle_depr` is never used [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | fn spawn_particle_depr(&mut self, ctx: &mut Context, type_: ParticleType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Left`, `Right`, `DownRight`, and `DownLeft` are never constructed [INFO] [stdout] --> src/grid.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | Down, [INFO] [stdout] 8 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | DownRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | DownLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_world` and `is_at_max_y` are never used [INFO] [stdout] --> src/grid.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl GridPosition { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn to_world(&self, grid: &Grid) -> WorldPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn is_at_max_y(&self, grid: &Grid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_grid` and `to_rect` are never used [INFO] [stdout] --> src/grid.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl WorldPosition { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn to_grid(&self, grid: &Grid) -> GridPosition { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn to_rect(&self, grid: &Grid) -> ggez::graphics::Rect { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/grid.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grid` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `can_move` are never used [INFO] [stdout] --> src/grid.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl Grid { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 117 | pub fn new(cell_size: (i32, i32), grid_size: (i32, i32)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn can_move(&self, direction: &Direction, pos: GridPosition, type_: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_colour` is never used [INFO] [stdout] --> src/particle.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ParticleType { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 14 | fn as_colour(&self) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `type_`, `colour`, and `last_move` are never read [INFO] [stdout] --> src/particle.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Particle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 23 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | type_: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | colour: Color, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | last_move: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Particle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `move_`, and `draw` are never used [INFO] [stdout] --> src/particle.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Particle { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(pos: GridPosition, type_: ParticleType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn update(&mut self, grid: &mut Grid, rng: &mut ThreadRng) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn move_(&mut self, grid: &mut Grid, dir: &Direction) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn draw(&self, ctx: &mut Context, grid: &Grid) -> GameResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/pixel.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_MaterialType` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid` [INFO] [stdout] --> src/pixel.rs:73:54 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn update(&self, current_pos: &GridPosition, grid: &Array2D) -> GridPosition { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pixel_grid.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | graphics::draw(ctx, &rectangle, (ggez::mint::Point2 { x: 0.0, y: 0.0 },)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = graphics::draw(ctx, &rectangle, (ggez::mint::Point2 { x: 0.0, y: 0.0 },)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:133:82 [INFO] [stdout] | [INFO] [stdout] 133 | fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:133:90 [INFO] [stdout] | [INFO] [stdout] 133 | fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `particles` and `rng` are never read [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct GameState { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 35 | grid: pixel_grid::Grid, [INFO] [stdout] 36 | particles: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 37 | mouse_state: MouseState, [INFO] [stdout] 38 | rng: ThreadRng, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spawn_particle_depr` is never used [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | fn spawn_particle_depr(&mut self, ctx: &mut Context, type_: ParticleType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Left`, `Right`, `DownRight`, and `DownLeft` are never constructed [INFO] [stdout] --> src/grid.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | Down, [INFO] [stdout] 8 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | DownRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | DownLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_world` and `is_at_max_y` are never used [INFO] [stdout] --> src/grid.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl GridPosition { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn to_world(&self, grid: &Grid) -> WorldPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn is_at_max_y(&self, grid: &Grid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_grid` and `to_rect` are never used [INFO] [stdout] --> src/grid.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl WorldPosition { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn to_grid(&self, grid: &Grid) -> GridPosition { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn to_rect(&self, grid: &Grid) -> ggez::graphics::Rect { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/grid.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grid` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `can_move` are never used [INFO] [stdout] --> src/grid.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl Grid { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 117 | pub fn new(cell_size: (i32, i32), grid_size: (i32, i32)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn can_move(&self, direction: &Direction, pos: GridPosition, type_: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_colour` is never used [INFO] [stdout] --> src/particle.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ParticleType { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 14 | fn as_colour(&self) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `type_`, `colour`, and `last_move` are never read [INFO] [stdout] --> src/particle.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Particle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 23 | pos: GridPosition, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | type_: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | colour: Color, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | last_move: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Particle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `move_`, and `draw` are never used [INFO] [stdout] --> src/particle.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Particle { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(pos: GridPosition, type_: ParticleType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn update(&mut self, grid: &mut Grid, rng: &mut ThreadRng) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn move_(&mut self, grid: &mut Grid, dir: &Direction) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn draw(&self, ctx: &mut Context, grid: &Grid) -> GameResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/pixel.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_MaterialType` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pixel_grid.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | graphics::draw(ctx, &rectangle, (ggez::mint::Point2 { x: 0.0, y: 0.0 },)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = graphics::draw(ctx, &rectangle, (ggez::mint::Point2 { x: 0.0, y: 0.0 },)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "d3388aa0f5349caedf8135886004503881054d23993ad42b8f8c948f3eb1a07a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3388aa0f5349caedf8135886004503881054d23993ad42b8f8c948f3eb1a07a", kill_on_drop: false }` [INFO] [stdout] d3388aa0f5349caedf8135886004503881054d23993ad42b8f8c948f3eb1a07a