[INFO] cloning repository https://github.com/ObvMamut/rust-tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ObvMamut/rust-tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObvMamut%2Frust-tetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObvMamut%2Frust-tetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bfdccc63e57e3f4a791890292c19faee0f9f0bc0 [INFO] checking ObvMamut/rust-tetris against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObvMamut%2Frust-tetris" "/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/ObvMamut/rust-tetris on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ObvMamut/rust-tetris [INFO] finished tweaking git repo https://github.com/ObvMamut/rust-tetris [INFO] tweaked toml for git repo https://github.com/ObvMamut/rust-tetris written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ObvMamut/rust-tetris 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crevice-derive v0.10.0 [INFO] [stderr] Downloaded symphonia v0.5.3 [INFO] [stderr] Downloaded ordered-float v4.2.0 [INFO] [stderr] Downloaded cargo-platform v0.1.6 [INFO] [stderr] Downloaded coreaudio-sys v0.2.14 [INFO] [stderr] Downloaded float_next_after v1.0.0 [INFO] [stderr] Downloaded symphonia-bundle-mp3 v0.5.3 [INFO] [stderr] Downloaded crevice v0.13.0 [INFO] [stderr] Downloaded crossbeam-channel v0.5.10 [INFO] [stderr] Downloaded lyon_tessellation v1.0.13 [INFO] [stderr] Downloaded bindgen v0.69.1 [INFO] [stderr] Downloaded naga v0.12.3 [INFO] [stderr] Downloaded serde_json v1.0.110 [INFO] [stderr] Downloaded wgpu-core v0.16.1 [INFO] [stderr] Downloaded wgpu-hal v0.16.2 [INFO] [stderr] Downloaded wgpu v0.16.3 [INFO] [stderr] Downloaded winnow v0.5.31 [INFO] [stderr] Downloaded syn v2.0.46 [INFO] [stderr] Downloaded glyph_brush_draw_cache v0.1.5 [INFO] [stderr] Downloaded glyph_brush v0.7.8 [INFO] [stderr] Downloaded lyon_algorithms v1.0.4 [INFO] [stderr] Downloaded lyon_geom v1.0.5 [INFO] [stderr] Downloaded lyon_path v1.0.4 [INFO] [stderr] Downloaded mint v0.5.9 [INFO] [stderr] Downloaded claxon v0.4.3 [INFO] [stderr] Downloaded semver v1.0.21 [INFO] [stderr] Downloaded serde v1.0.194 [INFO] [stderr] Downloaded ggez v0.9.3 [INFO] [stderr] Downloaded symphonia-core v0.5.3 [INFO] [stderr] Downloaded symphonia-metadata v0.5.3 [INFO] [stderr] Downloaded lyon v1.0.1 [INFO] [stderr] Downloaded wgpu-types v0.16.1 [INFO] [stderr] Downloaded serde_derive v1.0.194 [INFO] [stderr] Downloaded proc-macro2 v1.0.74 [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0dddda32ad98b235af38ebf510114be893f0524989848dab079cc7de639dd96 [INFO] running `Command { std: "docker" "start" "-a" "e0dddda32ad98b235af38ebf510114be893f0524989848dab079cc7de639dd96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0dddda32ad98b235af38ebf510114be893f0524989848dab079cc7de639dd96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0dddda32ad98b235af38ebf510114be893f0524989848dab079cc7de639dd96", kill_on_drop: false }` [INFO] [stdout] e0dddda32ad98b235af38ebf510114be893f0524989848dab079cc7de639dd96 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa0a29c2d7b4f1fa7c249bc11b018993d15083aa1ed3c003e63121c170f4ceb0 [INFO] running `Command { std: "docker" "start" "-a" "aa0a29c2d7b4f1fa7c249bc11b018993d15083aa1ed3c003e63121c170f4ceb0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.74 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling pkg-config v0.3.28 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling serde v1.0.194 [INFO] [stderr] Checking libloading v0.8.1 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.18 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling camino v1.1.6 [INFO] [stderr] Compiling syn v2.0.46 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling semver v1.0.21 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Compiling serde_json v1.0.110 [INFO] [stderr] Checking euclid v0.22.9 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.17 [INFO] [stderr] Checking fdeflate v0.3.3 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Compiling pulldown-cmark v0.9.3 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Checking lyon_geom v1.0.5 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Checking png v0.17.10 [INFO] [stderr] Checking crossbeam-deque v0.8.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking spirv v0.2.0+1.5.4 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking gpu-alloc-types v0.2.0 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Checking xcursor v0.3.5 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.194 [INFO] [stderr] Compiling bytemuck_derive v1.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Checking gpu-alloc v0.5.4 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking rayon-core v1.12.0 [INFO] [stderr] Checking lyon_path v1.0.4 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking symphonia-core v0.5.3 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking thiserror v1.0.56 [INFO] [stderr] Checking wgpu-types v0.16.1 [INFO] [stderr] Checking naga v0.12.3 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking profiling v1.0.13 [INFO] [stderr] Checking renderdoc-sys v1.0.0 [INFO] [stderr] Checking glow v0.12.3 [INFO] [stderr] Compiling bytecount v0.6.7 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking symphonia-metadata v0.5.3 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.3 [INFO] [stderr] Checking inotify v0.10.2 [INFO] [stderr] Checking alsa v0.7.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking crossbeam-channel v0.5.10 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking uuid v1.6.1 [INFO] [stderr] Checking float_next_after v1.0.0 [INFO] [stderr] Checking mint v0.5.9 [INFO] [stderr] Compiling gilrs v0.10.4 [INFO] [stderr] Checking jpeg-decoder v0.3.0 [INFO] [stderr] Checking cpal v0.15.2 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.5 [INFO] [stderr] Checking gilrs-core v0.5.10 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking glyph_brush_layout v0.2.3 [INFO] [stderr] Checking tiff v0.9.0 [INFO] [stderr] Checking lyon_tessellation v1.0.13 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking wgpu-hal v0.16.2 [INFO] [stderr] Checking symphonia v0.5.3 [INFO] [stderr] Checking lyon_algorithms v1.0.4 [INFO] [stderr] Checking ordered-float v4.2.0 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking hound v3.5.1 [INFO] [stderr] Checking rodio v0.17.3 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Checking glyph_brush v0.7.8 [INFO] [stderr] Checking lyon v1.0.1 [INFO] [stderr] Checking image v0.24.7 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Checking glam v0.24.2 [INFO] [stderr] Checking wgpu-core v0.16.1 [INFO] [stderr] Checking crevice v0.13.0 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling cargo-platform v0.1.6 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Checking wgpu v0.16.3 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking rust-tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | x = (21 - crds[0] as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - x = (21 - crds[0] as i32); [INFO] [stdout] 352 + x = 21 - crds[0] as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:353:13 [INFO] [stdout] | [INFO] [stdout] 353 | y = (crds[1] as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 353 - y = (crds[1] as i32); [INFO] [stdout] 353 + y = crds[1] as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | x = (21 - crds[0] as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - x = (21 - crds[0] as i32); [INFO] [stdout] 352 + x = 21 - crds[0] as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:353:13 [INFO] [stdout] | [INFO] [stdout] 353 | y = (crds[1] as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 353 - y = (crds[1] as i32); [INFO] [stdout] 353 + y = crds[1] as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut init_board: [[i32;12];22] = [ [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut init_board: [[i32;12];22] = [ [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | fn piece_can_move(&mut self, mut coords: Vec>) -> bool { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | fn piece_can_move(&mut self, mut coords: Vec>) -> bool { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut coords_of_piece: Vec>; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `coords` is never read [INFO] [stdout] --> src/main.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | let mut coords: (f32, f32) = (404 as f32, 404 as f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color` is never read [INFO] [stdout] --> src/main.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let mut color = [0.0, 0.0, 0.0, 1.0]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `coords` is never read [INFO] [stdout] --> src/main.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut coords: Vec> = vec![vec![]]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut coords_of_piece: Vec>; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `coords` is never read [INFO] [stdout] --> src/main.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | let mut coords: (f32, f32) = (404 as f32, 404 as f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color` is never read [INFO] [stdout] --> src/main.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let mut color = [0.0, 0.0, 0.0, 1.0]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `coords` is never read [INFO] [stdout] --> src/main.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut coords: Vec> = vec![vec![]]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:327:21 [INFO] [stdout] | [INFO] [stdout] 327 | let mut crd_to_push = vec![crd[0] + x, crd[1]]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:327:21 [INFO] [stdout] | [INFO] [stdout] 327 | let mut crd_to_push = vec![crd[0] + x, crd[1]]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:334:25 [INFO] [stdout] | [INFO] [stdout] 334 | let mut crd_to_push = vec![crd[0] + x - 1, crd[1]]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:349:13 [INFO] [stdout] | [INFO] [stdout] 349 | let mut x: i32; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut y: i32; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:371:17 [INFO] [stdout] | [INFO] [stdout] 371 | let mut coord = Board::coords_to_coords(self, c1); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:334:25 [INFO] [stdout] | [INFO] [stdout] 334 | let mut crd_to_push = vec![crd[0] + x - 1, crd[1]]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:349:13 [INFO] [stdout] | [INFO] [stdout] 349 | let mut x: i32; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut y: i32; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut pivot = &coords[0]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | let mut x1 = ((c2[0] - xc) * 0) - ((c2[1] - yc) * -1) + xc; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | let mut y1 = ((c2[0] - xc) * -1) + ((c2[1] - yc) * 0) + yc; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | let mut crds = vec![x1, y1]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | let mut coord = Board::coords_to_coords(self, c3); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:371:17 [INFO] [stdout] | [INFO] [stdout] 371 | let mut coord = Board::coords_to_coords(self, c1); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut pivot = &coords[0]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | let mut x1 = ((c2[0] - xc) * 0) - ((c2[1] - yc) * -1) + xc; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | let mut y1 = ((c2[0] - xc) * -1) + ((c2[1] - yc) * 0) + yc; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | let mut crds = vec![x1, y1]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | let mut coord = Board::coords_to_coords(self, c3); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ended` is never constructed [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum GameState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 24 | Started, [INFO] [stdout] 25 | Ended, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ended` is never constructed [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum GameState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 24 | Started, [INFO] [stdout] 25 | Ended, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_down` is never used [INFO] [stdout] --> src/main.rs:420:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 420 | fn move_down(&mut self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_down` is never used [INFO] [stdout] --> src/main.rs:420:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 420 | fn move_down(&mut self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "aa0a29c2d7b4f1fa7c249bc11b018993d15083aa1ed3c003e63121c170f4ceb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa0a29c2d7b4f1fa7c249bc11b018993d15083aa1ed3c003e63121c170f4ceb0", kill_on_drop: false }` [INFO] [stdout] aa0a29c2d7b4f1fa7c249bc11b018993d15083aa1ed3c003e63121c170f4ceb0