[INFO] cloning repository https://github.com/caengen/tetris-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/caengen/tetris-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaengen%2Ftetris-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaengen%2Ftetris-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e3ba618843a596b0bcee71567bf766a9bac7edd0
[INFO] building caengen/tetris-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaengen%2Ftetris-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/caengen/tetris-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/caengen/tetris-rs
[INFO] finished tweaking git repo https://github.com/caengen/tetris-rs
[INFO] tweaked toml for git repo https://github.com/caengen/tetris-rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/caengen/tetris-rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded miniquad v0.3.11
[INFO] [stderr] Downloaded macroquad v0.3.23
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6defcc8004e5453e59e2fd6564bf474e447470b4c07e11f6076d337780e85604
[INFO] running `Command { std: "docker" "start" "-a" "6defcc8004e5453e59e2fd6564bf474e447470b4c07e11f6076d337780e85604", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6defcc8004e5453e59e2fd6564bf474e447470b4c07e11f6076d337780e85604", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6defcc8004e5453e59e2fd6564bf474e447470b4c07e11f6076d337780e85604", kill_on_drop: false }`
[INFO] [stdout] 6defcc8004e5453e59e2fd6564bf474e447470b4c07e11f6076d337780e85604
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d02c4040840593d60dadcaab21550380cfcb4b66573fcf998b4d684e2d5449a5
[INFO] running `Command { std: "docker" "start" "-a" "d02c4040840593d60dadcaab21550380cfcb4b66573fcf998b4d684e2d5449a5", kill_on_drop: false }`
[INFO] [stderr] Compiling autocfg v1.1.0
[INFO] [stderr] Compiling byteorder v1.4.3
[INFO] [stderr] Compiling libc v0.2.126
[INFO] [stderr] Compiling maybe-uninit v2.0.0
[INFO] [stderr] Compiling quad-alsa-sys v0.3.2
[INFO] [stderr] Compiling adler32 v1.2.0
[INFO] [stderr] Compiling crc32fast v1.3.2
[INFO] [stderr] Compiling cfg-if v1.0.0
[INFO] [stderr] Compiling dasp_sample v0.11.0
[INFO] [stderr] Compiling miniz_oxide v0.3.7
[INFO] [stderr] Compiling ahash v0.4.7
[INFO] [stderr] Compiling ogg v0.7.1
[INFO] [stderr] Compiling dasp_frame v0.11.0
[INFO] [stderr] Compiling deflate v0.8.6
[INFO] [stderr] Compiling smallvec v0.6.14
[INFO] [stderr] Compiling bitflags v1.3.2
[INFO] [stderr] Compiling hound v3.4.0
[INFO] [stderr] Compiling miniquad v0.3.11
[INFO] [stderr] Compiling quad-snd v0.2.3
[INFO] [stderr] Compiling png v0.16.8
[INFO] [stderr] Compiling hashbrown v0.9.1
[INFO] [stderr] Compiling ttf-parser v0.12.3
[INFO] [stderr] Compiling lewton v0.9.4
[INFO] [stderr] Compiling num-traits v0.2.15
[INFO] [stderr] Compiling num-integer v0.1.45
[INFO] [stderr] Compiling num-iter v0.1.43
[INFO] [stderr] Compiling num-rational v0.3.2
[INFO] [stderr] Compiling color_quant v1.1.0
[INFO] [stderr] Compiling bytemuck v1.11.0
[INFO] [stderr] Compiling fontdue v0.5.2
[INFO] [stderr] Compiling bumpalo v3.10.0
[INFO] [stderr] Compiling glam v0.14.0
[INFO] [stderr] Compiling macroquad_macro v0.1.7
[INFO] [stderr] Compiling quad-rand v0.2.1
[INFO] [stderr] Compiling image v0.23.14
[INFO] [stderr] Compiling getrandom v0.2.7
[INFO] [stderr] Compiling audrey v0.3.0
[INFO] [stderr] Compiling macroquad v0.3.23
[INFO] [stderr] Compiling tetris-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `PIXELS_PER_UNIT`
[INFO] [stdout] --> src/draw.rs:4:58
[INFO] [stdout] |
[INFO] [stdout] 4 | GameMode, ScorePopup, ENTRY_DELAY, LINE_CLEAR_DELAY, PIXELS_PER_UNIT, SCORE_TIMEOUT,
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `Font`, `debug`, `draw_line`, and `get_fps`
[INFO] [stdout] --> src/draw.rs:13:27
[INFO] [stdout] |
[INFO] [stdout] 13 | clear_background, debug, draw_circle, draw_line, draw_rectangle, draw_rectangle_lines,
[INFO] [stdout] | ^^^^^ ^^^^^^^^^
[INFO] [stdout] 14 | draw_text, draw_texture_ex, get_fps, measure_text, vec2, DrawTextureParams, Rect,
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 | text::{draw_text_ex, Font, TextDimensions, TextParams},
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `BLUE`, `GREEN`, `ORANGE`, `PURPLE`, `RED`, `SKYBLUE`, `Vec2`, and `YELLOW`
[INFO] [stdout] --> src/spawner.rs:5:65
[INFO] [stdout] |
[INFO] [stdout] 5 | const_mat3, const_mat4, debug, vec2, Color, Mat3, Mat4, Vec2, BLUE, GREEN, ORANGE, PURPLE,
[INFO] [stdout] | ^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^^
[INFO] [stdout] 6 | RED, SKYBLUE, YELLOW,
[INFO] [stdout] | ^^^ ^^^^^^^ ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Gravity`
[INFO] [stdout] --> src/spawner.rs:11:36
[INFO] [stdout] |
[INFO] [stdout] 11 | use crate::components::{GameState, Gravity, WELL_WIDTH};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `HARD_DROP_GRAVITY` and `LOCK_DELAY`
[INFO] [stdout] --> src/input.rs:4:9
[INFO] [stdout] |
[INFO] [stdout] 4 | HARD_DROP_GRAVITY, LOCK_DELAY, SOFT_DROP_GRAVITY,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `WELL_WIDTH`
[INFO] [stdout] --> src/input.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 11 | WELL_WIDTH,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::components::LOCK_DELAY`
[INFO] [stdout] --> src/collision.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use crate::components::LOCK_DELAY;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout] --> src/collision.rs:4:26
[INFO] [stdout] |
[INFO] [stdout] 4 | use macroquad::prelude::{debug, Vec2};
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout] --> src/collision.rs:87:5
[INFO] [stdout] |
[INFO] [stdout] 87 | (bottom_collision(tetromino, pos) || vertical_block_collision(placed, tetromino, pos))
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 87 - (bottom_collision(tetromino, pos) || vertical_block_collision(placed, tetromino, pos))
[INFO] [stdout] 87 + bottom_collision(tetromino, pos) || vertical_block_collision(placed, tetromino, pos)
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `WELL_HEIGHT`
[INFO] [stdout] --> src/gravity_system.rs:4:18
[INFO] [stdout] |
[INFO] [stdout] 4 | components::{WELL_HEIGHT, WELL_WIDTH},
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout] --> src/draw.rs:266:21
[INFO] [stdout] |
[INFO] [stdout] 266 | let color = if *debug { GRAY } else { block.color };
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `GameTypeMenu`, `LevelAndHeightMenu`, `HighScore`, `Ending`, and `Demo` are never constructed
[INFO] [stdout] --> src/components.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 9 | pub enum GameMode {
[INFO] [stdout] | -------- variants in this enum
[INFO] [stdout] 10 | Title,
[INFO] [stdout] 11 | GameTypeMenu,
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout] 12 | LevelAndHeightMenu,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 | HighScore,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 16 | Ending,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 17 | Demo,
[INFO] [stdout] | ^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant `HARD_DROP_GRAVITY` is never used
[INFO] [stdout] --> src/components.rs:39:11
[INFO] [stdout] |
[INFO] [stdout] 39 | pub const HARD_DROP_GRAVITY: f32 = 1.0;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: fields `color` and `ghost_color` are never read
[INFO] [stdout] --> src/components.rs:66:9
[INFO] [stdout] |
[INFO] [stdout] 58 | pub struct Tetromino {
[INFO] [stdout] | --------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 66 | pub color: Color,
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 67 | pub ghost_color: Color,
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Tetromino` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `surrounded_by_neighbours` is never used
[INFO] [stdout] --> src/collision.rs:149:8
[INFO] [stdout] |
[INFO] [stdout] 149 | pub fn surrounded_by_neighbours(placed: &Vec