[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 1.77.0 for beta-1.78-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tehsmeely/particles on toolchain 1.77.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.77.0" "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-6-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" "+1.77.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded skeptic v0.13.6 [INFO] [stderr] Downloaded lyon v0.17.5 [INFO] [stderr] Downloaded old_school_gfx_glutin_ext v0.26.0 [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_tessellation v0.17.9 [INFO] [stderr] Downloaded ggez v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+1.77.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad94848c00c8ae9571a06c40091556a68f796eb3684b4c30d3fbd0d7fe171b7d [INFO] running `Command { std: "docker" "start" "-a" "ad94848c00c8ae9571a06c40091556a68f796eb3684b4c30d3fbd0d7fe171b7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad94848c00c8ae9571a06c40091556a68f796eb3684b4c30d3fbd0d7fe171b7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad94848c00c8ae9571a06c40091556a68f796eb3684b4c30d3fbd0d7fe171b7d", kill_on_drop: false }` [INFO] [stdout] ad94848c00c8ae9571a06c40091556a68f796eb3684b4c30d3fbd0d7fe171b7d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 687c0d46e3e4622df30dd76473b05469929d2010bfbb1c356b040aa76d4cb160 [INFO] running `Command { std: "docker" "start" "-a" "687c0d46e3e4622df30dd76473b05469929d2010bfbb1c356b040aa76d4cb160", 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 smallvec v1.6.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling nix v0.20.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling wayland-client v0.28.6 [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 scoped-tls v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling minimal-lexical v0.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling unicase v2.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 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 crc32fast v1.2.1 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling lyon_geom v0.17.5 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling thiserror-impl v1.0.28 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling owned_ttf_parser v0.12.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling thiserror v1.0.28 [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 num_cpus v1.13.0 [INFO] [stderr] Compiling memmap2 v0.1.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 adler32 v1.2.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling mio-extras v2.0.6 [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 percent-encoding v2.1.0 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling adler v1.0.2 [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 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 approx v0.5.0 [INFO] [stderr] Compiling float_next_after v0.1.5 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling twox-hash v1.6.1 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Compiling gilrs-core v0.3.1 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling glyph_brush_layout v0.2.3 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling lyon_tessellation v0.17.9 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling lyon_algorithms v0.17.5 [INFO] [stderr] Compiling ordered-float v2.8.0 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling mint v0.5.6 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling glam v0.15.2 [INFO] [stderr] Compiling gilrs v0.8.1 [INFO] [stderr] Compiling directories v3.0.2 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling glyph_brush v0.7.2 [INFO] [stderr] Compiling lyon v0.17.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling ggez v0.6.0 [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 minimp3 v0.5.1 [INFO] [stderr] Compiling rodio v0.14.0 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling zip v0.5.13 [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`, `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: 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: 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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 07s [INFO] running `Command { std: "docker" "inspect" "687c0d46e3e4622df30dd76473b05469929d2010bfbb1c356b040aa76d4cb160", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "687c0d46e3e4622df30dd76473b05469929d2010bfbb1c356b040aa76d4cb160", kill_on_drop: false }` [INFO] [stdout] 687c0d46e3e4622df30dd76473b05469929d2010bfbb1c356b040aa76d4cb160 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb1b1073c458cc0042abf3eafe93e2a82eb50b2916c600cdd799a5d7977fd136 [INFO] running `Command { std: "docker" "start" "-a" "eb1b1073c458cc0042abf3eafe93e2a82eb50b2916c600cdd799a5d7977fd136", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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: 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: 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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.90s [INFO] running `Command { std: "docker" "inspect" "eb1b1073c458cc0042abf3eafe93e2a82eb50b2916c600cdd799a5d7977fd136", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb1b1073c458cc0042abf3eafe93e2a82eb50b2916c600cdd799a5d7977fd136", kill_on_drop: false }` [INFO] [stdout] eb1b1073c458cc0042abf3eafe93e2a82eb50b2916c600cdd799a5d7977fd136 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2bea19b7b1e0933c45e1c18fd831568030834fb00018be2ca350ba164be0a38b [INFO] running `Command { std: "docker" "start" "-a" "2bea19b7b1e0933c45e1c18fd831568030834fb00018be2ca350ba164be0a38b", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ParticleType`, `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: 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: 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 15 warnings (run `cargo fix --bin "particles" --tests` to apply 5 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/particles-d06d193aa366d666) [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" "2bea19b7b1e0933c45e1c18fd831568030834fb00018be2ca350ba164be0a38b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bea19b7b1e0933c45e1c18fd831568030834fb00018be2ca350ba164be0a38b", kill_on_drop: false }` [INFO] [stdout] 2bea19b7b1e0933c45e1c18fd831568030834fb00018be2ca350ba164be0a38b