[INFO] cloning repository https://github.com/JoseRomaguera/TetrisRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoseRomaguera/TetrisRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseRomaguera%2FTetrisRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseRomaguera%2FTetrisRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f96559d1a6aa264f031c320c3a7d1b835f39944f [INFO] checking JoseRomaguera/TetrisRust against try#099af82bc034c1e4895c90e5407fafdd61976cdb for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoseRomaguera%2FTetrisRust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JoseRomaguera/TetrisRust [INFO] finished tweaking git repo https://github.com/JoseRomaguera/TetrisRust [INFO] tweaked toml for git repo https://github.com/JoseRomaguera/TetrisRust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JoseRomaguera/TetrisRust on toolchain 099af82bc034c1e4895c90e5407fafdd61976cdb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JoseRomaguera/TetrisRust 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" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "fetch" "--manifest-path" "Cargo.toml", 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] Downloading crates ... [INFO] [stderr] Downloaded piston2d-graphics v0.40.0 [INFO] [stderr] Downloaded piston_window v0.120.0 [INFO] [stderr] Downloaded piston2d-gfx_graphics v0.73.0 [INFO] [stderr] Downloaded spin_sleep v1.3.1 [INFO] [stderr] Downloaded pistoncore-glutin_window v0.69.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34b004c082a8814ec79614e14c813dfef1358ae026fc747c20cdf381d1eece12 [INFO] running `Command { std: "docker" "start" "-a" "34b004c082a8814ec79614e14c813dfef1358ae026fc747c20cdf381d1eece12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34b004c082a8814ec79614e14c813dfef1358ae026fc747c20cdf381d1eece12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34b004c082a8814ec79614e14c813dfef1358ae026fc747c20cdf381d1eece12", kill_on_drop: false }` [INFO] [stdout] 34b004c082a8814ec79614e14c813dfef1358ae026fc747c20cdf381d1eece12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] adc0eee919aea0d56677d5e6e2b501ab959ec00867c40d17e41b830ecdb8c804 [INFO] running `Command { std: "docker" "start" "-a" "adc0eee919aea0d56677d5e6e2b501ab959ec00867c40d17e41b830ecdb8c804", kill_on_drop: false }` [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking libloading v0.8.6 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking piston-float v1.0.1 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking piston-viewport v1.0.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking piston-graphics_api_version v1.0.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking owned_ttf_parser v0.15.2 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rusttype v0.9.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking xcursor v0.3.8 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking raw-window-handle v0.3.4 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking bytemuck v1.22.0 [INFO] [stderr] Checking piston-texture v0.8.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking gfx v0.18.3 [INFO] [stderr] Checking shader_version v0.7.0 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking interpolation v0.2.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking spin_sleep v1.3.1 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Checking piston2d-graphics v0.40.0 [INFO] [stderr] Checking pistoncore-input v1.0.1 [INFO] [stderr] Checking pistoncore-window v0.47.1 [INFO] [stderr] Checking pistoncore-event_loop v0.53.1 [INFO] [stderr] Checking piston v0.53.2 [INFO] [stderr] Checking piston-gfx_texture v0.41.0 [INFO] [stderr] Checking piston2d-gfx_graphics v0.73.0 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.69.0 [INFO] [stderr] Checking piston_window v0.120.0 [INFO] [stderr] Checking TetrisRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `count` should have an upper camel case name [INFO] [stdout] --> src/main.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | enum CellValue { None, Red, Green, Blue, count } [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `count` should have an upper camel case name [INFO] [stdout] --> src/main.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | enum CellValue { None, Red, Green, Blue, count } [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:357:5 [INFO] [stdout] | [INFO] [stdout] 357 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:357:5 [INFO] [stdout] | [INFO] [stdout] 357 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:429:12 [INFO] [stdout] | [INFO] [stdout] 429 | if (game.speedup) { tick_mult *= 10.0; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 429 - if (game.speedup) { tick_mult *= 10.0; } [INFO] [stdout] 429 + if game.speedup { tick_mult *= 10.0; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:429:12 [INFO] [stdout] | [INFO] [stdout] 429 | if (game.speedup) { tick_mult *= 10.0; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 429 - if (game.speedup) { tick_mult *= 10.0; } [INFO] [stdout] 429 + if game.speedup { tick_mult *= 10.0; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let mut x0 = x0 + game.screen_width as f32 * 0.5 - width * 0.5; [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:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let mut x0 = x0 + game.screen_width as f32 * 0.5 - width * 0.5; [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:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let mut y0 = -y0 + game.screen_height as f32 * 0.5 - height * 0.5; [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:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let mut y0 = -y0 + game.screen_height as f32 * 0.5 - height * 0.5; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TICK_RATE` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const TICK_RATE: f32 = 1.0 / TICK_DELAY; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f32_random` is never used [INFO] [stdout] --> src/main.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn f32_random(game: &mut Game) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f32_random_max` is never used [INFO] [stdout] --> src/main.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn f32_random_max(game: &mut Game, max: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f32_random_range` is never used [INFO] [stdout] --> src/main.rs:162:4 [INFO] [stdout] | [INFO] [stdout] 162 | fn f32_random_range(game: &mut Game, min: f32, max: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TICK_RATE` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const TICK_RATE: f32 = 1.0 / TICK_DELAY; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f32_random` is never used [INFO] [stdout] --> src/main.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn f32_random(game: &mut Game) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f32_random_max` is never used [INFO] [stdout] --> src/main.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn f32_random_max(game: &mut Game, max: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f32_random_range` is never used [INFO] [stdout] --> src/main.rs:162:4 [INFO] [stdout] | [INFO] [stdout] 162 | fn f32_random_range(game: &mut Game, min: f32, max: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.85s [INFO] running `Command { std: "docker" "inspect" "adc0eee919aea0d56677d5e6e2b501ab959ec00867c40d17e41b830ecdb8c804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adc0eee919aea0d56677d5e6e2b501ab959ec00867c40d17e41b830ecdb8c804", kill_on_drop: false }` [INFO] [stdout] adc0eee919aea0d56677d5e6e2b501ab959ec00867c40d17e41b830ecdb8c804