[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 try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tehsmeely/particles on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 988b0143831d345124dc7983e212c674bf8a0b22e0afc08d487f4f8f79635350 [INFO] running `Command { std: "docker" "start" "-a" "988b0143831d345124dc7983e212c674bf8a0b22e0afc08d487f4f8f79635350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "988b0143831d345124dc7983e212c674bf8a0b22e0afc08d487f4f8f79635350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "988b0143831d345124dc7983e212c674bf8a0b22e0afc08d487f4f8f79635350", kill_on_drop: false }` [INFO] [stdout] 988b0143831d345124dc7983e212c674bf8a0b22e0afc08d487f4f8f79635350 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff24a6d0a87ce63045b56748f1bcd046a00da4aab5ff097a2ffc188b65711477 [INFO] running `Command { std: "docker" "start" "-a" "ff24a6d0a87ce63045b56748f1bcd046a00da4aab5ff097a2ffc188b65711477", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking libloading v0.7.0 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Checking minimal-lexical v0.1.3 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Checking euclid v0.22.6 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Checking ttf-parser v0.12.3 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Checking lyon_geom v0.17.5 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Checking nix v0.20.1 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking nix v0.18.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking owned_ttf_parser v0.12.1 [INFO] [stderr] Checking x11-dl v2.18.5 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ab_glyph v0.2.11 [INFO] [stderr] Checking lyon_path v0.17.6 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking alsa-sys v0.3.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Checking sid v0.6.1 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Checking libudev-sys v0.1.4 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking deflate v0.8.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 jpeg-decoder v0.1.22 [INFO] [stderr] Checking glyph_brush_layout v0.2.3 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking lyon_tessellation v0.17.9 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking lyon_algorithms v0.17.5 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking twox-hash v1.6.1 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Checking ordered-float v2.8.0 [INFO] [stderr] Checking mint v0.5.6 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Checking lyon v0.17.5 [INFO] [stderr] Checking glam v0.15.2 [INFO] [stderr] Checking directories v3.0.2 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking array2d v0.2.1 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking alsa v0.5.0 [INFO] [stderr] Checking gilrs-core v0.3.1 [INFO] [stderr] Checking bzip2 v0.4.3 [INFO] [stderr] Checking gilrs v0.8.1 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking glyph_brush v0.7.2 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Compiling thiserror-impl v1.0.28 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking thiserror v1.0.28 [INFO] [stderr] Checking minimp3 v0.5.1 [INFO] [stderr] Checking zip v0.5.13 [INFO] [stderr] Checking rodio v0.14.0 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling ggez v0.6.0 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.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` and `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)]` (part of `#[warn(unused)]`) 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` and `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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [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, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pixel.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MaterialType` [INFO] [stdout] 33 | pub enum MaterialType { [INFO] [stdout] | ------------ `MaterialType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [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: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [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: `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)]` (part of `#[warn(unused)]`) 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] [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, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pixel.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MaterialType` [INFO] [stdout] 33 | pub enum MaterialType { [INFO] [stdout] | ------------ `MaterialType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [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: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.92s [INFO] running `Command { std: "docker" "inspect" "ff24a6d0a87ce63045b56748f1bcd046a00da4aab5ff097a2ffc188b65711477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff24a6d0a87ce63045b56748f1bcd046a00da4aab5ff097a2ffc188b65711477", kill_on_drop: false }` [INFO] [stdout] ff24a6d0a87ce63045b56748f1bcd046a00da4aab5ff097a2ffc188b65711477