[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] testing tehsmeely/particles against beta-2025-02-18 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tehsmeely/particles on toolchain beta-2025-02-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "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-tc2/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" "+beta-2025-02-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 261d1e8ea47f15de05d97f0e99d7225386b81e34709c3f9daac86287d31c1423 [INFO] running `Command { std: "docker" "start" "-a" "261d1e8ea47f15de05d97f0e99d7225386b81e34709c3f9daac86287d31c1423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "261d1e8ea47f15de05d97f0e99d7225386b81e34709c3f9daac86287d31c1423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "261d1e8ea47f15de05d97f0e99d7225386b81e34709c3f9daac86287d31c1423", kill_on_drop: false }` [INFO] [stdout] 261d1e8ea47f15de05d97f0e99d7225386b81e34709c3f9daac86287d31c1423 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48ba7ccafb5c9604575af6f4675e7af7791281b89f3eaf0eb8098498925fbc7b [INFO] running `Command { std: "docker" "start" "-a" "48ba7ccafb5c9604575af6f4675e7af7791281b89f3eaf0eb8098498925fbc7b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling nix v0.20.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling minimal-lexical v0.1.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling euclid v0.22.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling lyon_geom v0.17.5 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling thiserror-impl v1.0.28 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling owned_ttf_parser v0.12.1 [INFO] [stderr] Compiling thiserror v1.0.28 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling ab_glyph v0.2.11 [INFO] [stderr] Compiling lyon_path v0.17.6 [INFO] [stderr] Compiling sid v0.6.1 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling alsa v0.5.0 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling wayland-egl v0.28.6 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling float_next_after v0.1.5 [INFO] [stderr] Compiling approx v0.5.0 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling twox-hash v1.6.1 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling gilrs-core v0.3.1 [INFO] [stderr] Compiling glyph_brush_layout v0.2.3 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling lyon_tessellation v0.17.9 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling lyon_algorithms v0.17.5 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling ordered-float v2.8.0 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling mint v0.5.6 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling glam v0.15.2 [INFO] [stderr] Compiling gilrs v0.8.1 [INFO] [stderr] Compiling directories v3.0.2 [INFO] [stderr] Compiling glyph_brush v0.7.2 [INFO] [stderr] Compiling ggez v0.6.0 [INFO] [stderr] Compiling lyon v0.17.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling array2d v0.2.1 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling minimp3 v0.5.1 [INFO] [stderr] Compiling rodio v0.14.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling old_school_gfx_glutin_ext v0.26.0 [INFO] [stderr] Compiling 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)]` 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, `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)]` 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 3m 44s [INFO] running `Command { std: "docker" "inspect" "48ba7ccafb5c9604575af6f4675e7af7791281b89f3eaf0eb8098498925fbc7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48ba7ccafb5c9604575af6f4675e7af7791281b89f3eaf0eb8098498925fbc7b", kill_on_drop: false }` [INFO] [stdout] 48ba7ccafb5c9604575af6f4675e7af7791281b89f3eaf0eb8098498925fbc7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fe52307efe60871d0cca579566aa8e94eea27fac71d502a6751b2dd399a4efa [INFO] running `Command { std: "docker" "start" "-a" "2fe52307efe60871d0cca579566aa8e94eea27fac71d502a6751b2dd399a4efa", kill_on_drop: false }` [INFO] [stderr] Compiling 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)]` 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, `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)]` 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 `test` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "2fe52307efe60871d0cca579566aa8e94eea27fac71d502a6751b2dd399a4efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fe52307efe60871d0cca579566aa8e94eea27fac71d502a6751b2dd399a4efa", kill_on_drop: false }` [INFO] [stdout] 2fe52307efe60871d0cca579566aa8e94eea27fac71d502a6751b2dd399a4efa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e6d3d4f132b5b1ee61a0d10aab0b0259f24151d11983e9e8a75143799e8ffa2a [INFO] running `Command { std: "docker" "start" "-a" "e6d3d4f132b5b1ee61a0d10aab0b0259f24151d11983e9e8a75143799e8ffa2a", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ParticleType` and `Particle` [INFO] [stderr] --> src/grid.rs:1:23 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::particle::{Particle, ParticleType}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Grid` [INFO] [stderr] --> src/main.rs:9:19 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::grid::{Grid, WorldPosition}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `grid` [INFO] [stderr] --> src/pixel.rs:73:54 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn update(&self, current_pos: &GridPosition, grid: &Array2D) -> GridPosition { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grid` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:133:82 [INFO] [stderr] | [INFO] [stderr] 133 | fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/main.rs:133:90 [INFO] [stderr] | [INFO] [stderr] 133 | fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: fields `particles` and `rng` are never read [INFO] [stderr] --> src/main.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 34 | struct GameState { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 35 | grid: pixel_grid::Grid, [INFO] [stderr] 36 | particles: Vec, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 37 | mouse_state: MouseState, [INFO] [stderr] 38 | rng: ThreadRng, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `spawn_particle_depr` is never used [INFO] [stderr] --> src/main.rs:87:8 [INFO] [stderr] | [INFO] [stderr] 41 | impl GameState { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 87 | fn spawn_particle_depr(&mut self, ctx: &mut Context, type_: ParticleType) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Up`, `Left`, `Right`, `DownRight`, and `DownLeft` are never constructed [INFO] [stderr] --> src/grid.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub enum Direction { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] 6 | Up, [INFO] [stderr] | ^^ [INFO] [stderr] 7 | Down, [INFO] [stderr] 8 | Left, [INFO] [stderr] | ^^^^ [INFO] [stderr] 9 | Right, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 10 | DownRight, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 11 | DownLeft, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `to_world` and `is_at_max_y` are never used [INFO] [stderr] --> src/grid.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 20 | impl GridPosition { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 51 | pub fn to_world(&self, grid: &Grid) -> WorldPosition { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn is_at_max_y(&self, grid: &Grid) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `to_grid` and `to_rect` are never used [INFO] [stderr] --> src/grid.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 81 | impl WorldPosition { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn to_grid(&self, grid: &Grid) -> GridPosition { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub fn to_rect(&self, grid: &Grid) -> ggez::graphics::Rect { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Grid` is never constructed [INFO] [stderr] --> src/grid.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 110 | pub struct Grid { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Grid` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `can_move` are never used [INFO] [stderr] --> src/grid.rs:117:12 [INFO] [stderr] | [INFO] [stderr] 116 | impl Grid { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 117 | pub fn new(cell_size: (i32, i32), grid_size: (i32, i32)) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 126 | pub fn can_move(&self, direction: &Direction, pos: GridPosition, type_: usize) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_colour` is never used [INFO] [stderr] --> src/particle.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 13 | impl ParticleType { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] 14 | fn as_colour(&self) -> Color { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `pos`, `type_`, `colour`, and `last_move` are never read [INFO] [stderr] --> src/particle.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct Particle { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 23 | pos: GridPosition, [INFO] [stderr] | ^^^ [INFO] [stderr] 24 | type_: usize, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 25 | colour: Color, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 26 | last_move: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Particle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `update`, `move_`, and `draw` are never used [INFO] [stderr] --> src/particle.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl Particle { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 30 | pub fn new(pos: GridPosition, type_: ParticleType) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn update(&mut self, grid: &mut Grid, rng: &mut ThreadRng) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 75 | fn move_(&mut self, grid: &mut Grid, dir: &Direction) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 82 | pub fn draw(&self, ctx: &mut Context, grid: &Grid) -> GameResult<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pixel.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 32 | #[derive(Debug, FromPrimitive, PartialEq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MaterialType` [INFO] [stderr] 33 | pub enum MaterialType { [INFO] [stderr] | ------------ `MaterialType` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/pixel_grid.rs:55:17 [INFO] [stderr] | [INFO] [stderr] 55 | graphics::draw(ctx, &rectangle, (ggez::mint::Point2 { x: 0.0, y: 0.0 },)); [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)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 55 | let _ = graphics::draw(ctx, &rectangle, (ggez::mint::Point2 { x: 0.0, y: 0.0 },)); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `particles` (bin "particles" test) generated 17 warnings (run `cargo fix --bin "particles" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/particles-c880ac951d733ec0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e6d3d4f132b5b1ee61a0d10aab0b0259f24151d11983e9e8a75143799e8ffa2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6d3d4f132b5b1ee61a0d10aab0b0259f24151d11983e9e8a75143799e8ffa2a", kill_on_drop: false }` [INFO] [stdout] e6d3d4f132b5b1ee61a0d10aab0b0259f24151d11983e9e8a75143799e8ffa2a