[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-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Fparticles" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tehsmeely/particles on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-15/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lyon_tessellation v0.17.9 [INFO] [stderr] Downloaded lyon_algorithms v0.17.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cafbb478760177d23576d4bb527628c7acb345eb3810fef296012321a38e0437 [INFO] running `Command { std: "docker" "start" "-a" "cafbb478760177d23576d4bb527628c7acb345eb3810fef296012321a38e0437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cafbb478760177d23576d4bb527628c7acb345eb3810fef296012321a38e0437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cafbb478760177d23576d4bb527628c7acb345eb3810fef296012321a38e0437", kill_on_drop: false }` [INFO] [stdout] cafbb478760177d23576d4bb527628c7acb345eb3810fef296012321a38e0437 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbd4dcf56001e3b8c348a1e518dcbb38885902910e061d1b29c278e275f05cb6 [INFO] running `Command { std: "docker" "start" "-a" "dbd4dcf56001e3b8c348a1e518dcbb38885902910e061d1b29c278e275f05cb6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling minimal-lexical v0.1.3 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling mint v0.5.6 [INFO] [stderr] Compiling array2d v0.2.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling glam v0.15.2 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling owned_ttf_parser v0.12.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling ab_glyph v0.2.11 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling euclid v0.22.6 [INFO] [stderr] Compiling sid v0.6.1 [INFO] [stderr] Compiling approx v0.5.0 [INFO] [stderr] Compiling float_next_after v0.1.5 [INFO] [stderr] Compiling ordered-float v2.8.0 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling glyph_brush_layout v0.2.3 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling lyon_geom v0.17.5 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling nix v0.20.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling lyon_path v0.17.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling directories v3.0.2 [INFO] [stderr] Compiling lyon_tessellation v0.17.9 [INFO] [stderr] Compiling lyon_algorithms v0.17.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling lyon v0.17.5 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling twox-hash v1.6.1 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Compiling glyph_brush v0.7.2 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling alsa v0.5.0 [INFO] [stderr] Compiling gilrs-core v0.3.1 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling gilrs v0.8.1 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling 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] Compiling thiserror v1.0.28 [INFO] [stderr] Compiling minimp3 v0.5.1 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling rodio v0.14.0 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling ggez v0.6.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`, `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: `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] = note: `#[warn(unused_variables)]` on by default [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: 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] [INFO] [stdout] warning: field is never read: `particles` [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | particles: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rng` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | rng: ThreadRng, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spawn_particle_depr` [INFO] [stdout] --> src/main.rs:87:8 [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: variant is never constructed: `Up` [INFO] [stdout] --> src/grid.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Up, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/grid.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Left, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/grid.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Right, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DownRight` [INFO] [stdout] --> src/grid.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | DownRight, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DownLeft` [INFO] [stdout] --> src/grid.rs:11:5 [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_world` [INFO] [stdout] --> src/grid.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn to_world(&self, grid: &Grid) -> WorldPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_max_y` [INFO] [stdout] --> src/grid.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn is_at_max_y(&self, grid: &Grid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_grid` [INFO] [stdout] --> src/grid.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn to_grid(&self, grid: &Grid) -> GridPosition { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_rect` [INFO] [stdout] --> src/grid.rs:99:12 [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 function is never used: `new` [INFO] [stdout] --> src/grid.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn new(cell_size: (i32, i32), grid_size: (i32, i32)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_move` [INFO] [stdout] --> src/grid.rs:126:12 [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: associated function is never used: `as_colour` [INFO] [stdout] --> src/particle.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn as_colour(&self) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pos` [INFO] [stdout] --> src/particle.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | pos: GridPosition, [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `type_` [INFO] [stdout] --> src/particle.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | type_: usize, [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `colour` [INFO] [stdout] --> src/particle.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | colour: Color, [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_move` [INFO] [stdout] --> src/particle.rs:26:5 [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/particle.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(pos: GridPosition, type_: ParticleType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/particle.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn update(&mut self, grid: &mut Grid, rng: &mut ThreadRng) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_` [INFO] [stdout] --> src/particle.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn move_(&mut self, grid: &mut Grid, dir: &Direction) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw` [INFO] [stdout] --> src/particle.rs:82:12 [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.94s [INFO] running `Command { std: "docker" "inspect" "dbd4dcf56001e3b8c348a1e518dcbb38885902910e061d1b29c278e275f05cb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbd4dcf56001e3b8c348a1e518dcbb38885902910e061d1b29c278e275f05cb6", kill_on_drop: false }` [INFO] [stdout] dbd4dcf56001e3b8c348a1e518dcbb38885902910e061d1b29c278e275f05cb6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e2ef86f34916ea03cda658d2a376e2b2971ef937a12f73b4d7a02dcf35a3a5d [INFO] running `Command { std: "docker" "start" "-a" "7e2ef86f34916ea03cda658d2a376e2b2971ef937a12f73b4d7a02dcf35a3a5d", 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: `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] = note: `#[warn(unused_variables)]` on by default [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: 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] [INFO] [stdout] warning: field is never read: `particles` [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | particles: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rng` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | rng: ThreadRng, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spawn_particle_depr` [INFO] [stdout] --> src/main.rs:87:8 [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: variant is never constructed: `Up` [INFO] [stdout] --> src/grid.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Up, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/grid.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Left, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/grid.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Right, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DownRight` [INFO] [stdout] --> src/grid.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | DownRight, [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DownLeft` [INFO] [stdout] --> src/grid.rs:11:5 [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] --> src/grid.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_world` [INFO] [stdout] --> src/grid.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn to_world(&self, grid: &Grid) -> WorldPosition { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_max_y` [INFO] [stdout] --> src/grid.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn is_at_max_y(&self, grid: &Grid) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_grid` [INFO] [stdout] --> src/grid.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn to_grid(&self, grid: &Grid) -> GridPosition { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_rect` [INFO] [stdout] --> src/grid.rs:99:12 [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 function is never used: `new` [INFO] [stdout] --> src/grid.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn new(cell_size: (i32, i32), grid_size: (i32, i32)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_move` [INFO] [stdout] --> src/grid.rs:126:12 [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: associated function is never used: `as_colour` [INFO] [stdout] --> src/particle.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn as_colour(&self) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pos` [INFO] [stdout] --> src/particle.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | pos: GridPosition, [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `type_` [INFO] [stdout] --> src/particle.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | type_: usize, [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `colour` [INFO] [stdout] --> src/particle.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | colour: Color, [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_move` [INFO] [stdout] --> src/particle.rs:26:5 [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] --> src/particle.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/particle.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(pos: GridPosition, type_: ParticleType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/particle.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn update(&mut self, grid: &mut Grid, rng: &mut ThreadRng) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_` [INFO] [stdout] --> src/particle.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn move_(&mut self, grid: &mut Grid, dir: &Direction) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw` [INFO] [stdout] --> src/particle.rs:82:12 [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.23s [INFO] running `Command { std: "docker" "inspect" "7e2ef86f34916ea03cda658d2a376e2b2971ef937a12f73b4d7a02dcf35a3a5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e2ef86f34916ea03cda658d2a376e2b2971ef937a12f73b4d7a02dcf35a3a5d", kill_on_drop: false }` [INFO] [stdout] 7e2ef86f34916ea03cda658d2a376e2b2971ef937a12f73b4d7a02dcf35a3a5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bc1b25713e7c48e84bbd1ec193b49105cf445eba25042bdd5240fbee5217e40e [INFO] running `Command { std: "docker" "start" "-a" "bc1b25713e7c48e84bbd1ec193b49105cf445eba25042bdd5240fbee5217e40e", 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: `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] = note: `#[warn(unused_variables)]` on by default [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: 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] warning: field is never read: `particles` [INFO] [stderr] --> src/main.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | particles: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `rng` [INFO] [stderr] --> src/main.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | rng: ThreadRng, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `spawn_particle_depr` [INFO] [stderr] --> src/main.rs:87:8 [INFO] [stderr] | [INFO] [stderr] 87 | fn spawn_particle_depr(&mut self, ctx: &mut Context, type_: ParticleType) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Up` [INFO] [stderr] --> src/grid.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | Up, [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] --> src/grid.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Left` [INFO] [stderr] --> src/grid.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | Left, [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] --> src/grid.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Right` [INFO] [stderr] --> src/grid.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Right, [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] --> src/grid.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DownRight` [INFO] [stderr] --> src/grid.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | DownRight, [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] --> src/grid.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DownLeft` [INFO] [stderr] --> src/grid.rs:11:5 [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] --> src/grid.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_world` [INFO] [stderr] --> src/grid.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn to_world(&self, grid: &Grid) -> WorldPosition { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_at_max_y` [INFO] [stderr] --> src/grid.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn is_at_max_y(&self, grid: &Grid) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_grid` [INFO] [stderr] --> src/grid.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 89 | pub fn to_grid(&self, grid: &Grid) -> GridPosition { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_rect` [INFO] [stderr] --> src/grid.rs:99:12 [INFO] [stderr] | [INFO] [stderr] 99 | pub fn to_rect(&self, grid: &Grid) -> ggez::graphics::Rect { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/grid.rs:117:12 [INFO] [stderr] | [INFO] [stderr] 117 | pub fn new(cell_size: (i32, i32), grid_size: (i32, i32)) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `can_move` [INFO] [stderr] --> src/grid.rs:126:12 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn can_move(&self, direction: &Direction, pos: GridPosition, type_: usize) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `as_colour` [INFO] [stderr] --> src/particle.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | fn as_colour(&self) -> Color { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pos` [INFO] [stderr] --> src/particle.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | pos: GridPosition, [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] --> src/particle.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `type_` [INFO] [stderr] --> src/particle.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | type_: usize, [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] --> src/particle.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `colour` [INFO] [stderr] --> src/particle.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | colour: Color, [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] --> src/particle.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `last_move` [INFO] [stderr] --> src/particle.rs:26:5 [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] --> src/particle.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/particle.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn new(pos: GridPosition, type_: ParticleType) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update` [INFO] [stderr] --> src/particle.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn update(&mut self, grid: &mut Grid, rng: &mut ThreadRng) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `move_` [INFO] [stderr] --> src/particle.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn move_(&mut self, grid: &mut Grid, dir: &Direction) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `draw` [INFO] [stderr] --> src/particle.rs:82:12 [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: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `particles` (bin "particles" test) generated 29 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/particles-dac44af10bc76297) [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" "bc1b25713e7c48e84bbd1ec193b49105cf445eba25042bdd5240fbee5217e40e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc1b25713e7c48e84bbd1ec193b49105cf445eba25042bdd5240fbee5217e40e", kill_on_drop: false }` [INFO] [stdout] bc1b25713e7c48e84bbd1ec193b49105cf445eba25042bdd5240fbee5217e40e