[INFO] cloning repository https://github.com/IJW123/Macroquad-Tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IJW123/Macroquad-Tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIJW123%2FMacroquad-Tetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIJW123%2FMacroquad-Tetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b656b77ee73e86f24b4ccd479a6363cb0dfeabf [INFO] checking IJW123/Macroquad-Tetris against try#099af82bc034c1e4895c90e5407fafdd61976cdb for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIJW123%2FMacroquad-Tetris" "/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/IJW123/Macroquad-Tetris [INFO] finished tweaking git repo https://github.com/IJW123/Macroquad-Tetris [INFO] tweaked toml for git repo https://github.com/IJW123/Macroquad-Tetris written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/IJW123/Macroquad-Tetris 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/IJW123/Macroquad-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" "+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 zerocopy-derive v0.8.0-alpha.6 [INFO] [stderr] Downloaded rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Downloaded rand_core v0.9.0-alpha.1 [INFO] [stderr] Downloaded zerocopy v0.8.0-alpha.6 [INFO] [stderr] Downloaded rand v0.9.0-alpha.1 [INFO] [stderr] Downloaded miniquad v0.4.2 [INFO] [stderr] Downloaded macroquad v0.4.8 [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] f10a1ea8708545ffa6bf2ac627583cebadd6a2947d2eaf03e3789a513896f208 [INFO] running `Command { std: "docker" "start" "-a" "f10a1ea8708545ffa6bf2ac627583cebadd6a2947d2eaf03e3789a513896f208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f10a1ea8708545ffa6bf2ac627583cebadd6a2947d2eaf03e3789a513896f208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f10a1ea8708545ffa6bf2ac627583cebadd6a2947d2eaf03e3789a513896f208", kill_on_drop: false }` [INFO] [stdout] f10a1ea8708545ffa6bf2ac627583cebadd6a2947d2eaf03e3789a513896f208 [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] d436f352d3b2afaf31860a1efa764aeeb3adc9cfdbb06adcbd3182093038bc06 [INFO] running `Command { std: "docker" "start" "-a" "d436f352d3b2afaf31860a1efa764aeeb3adc9cfdbb06adcbd3182093038bc06", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling zerocopy v0.8.0-alpha.6 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling miniquad v0.4.2 [INFO] [stderr] Checking bytemuck v1.16.1 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Checking glam v0.27.0 [INFO] [stderr] Checking quad-rand v0.2.1 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking fontdue v0.7.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.9.0-alpha.1 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Checking rand v0.9.0-alpha.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking macroquad v0.4.8 [INFO] [stderr] Checking Tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0428]: the name `Block` is defined multiple times [INFO] [stdout] --> src/main.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 12 | type Block = (usize, Texture2D); [INFO] [stdout] | -------------------------------- previous definition of the type `Block` here [INFO] [stdout] ... [INFO] [stdout] 90 | struct Block { [INFO] [stdout] | ^^^^^^^^^^^^ `Block` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Block` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Block` is defined multiple times [INFO] [stdout] --> src/main.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 12 | type Block = (usize, Texture2D); [INFO] [stdout] | -------------------------------- previous definition of the type `Block` here [INFO] [stdout] ... [INFO] [stdout] 90 | struct Block { [INFO] [stdout] | ^^^^^^^^^^^^ `Block` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Block` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `texture` [INFO] [stdout] --> src/main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{prelude::*, texture}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `texture` [INFO] [stdout] --> src/main.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{prelude::*, texture}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0117]: only traits defined in the current crate can be implemented for arbitrary types [INFO] [stdout] --> src/main.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ this is not defined in the current crate because tuples are always foreign [INFO] [stdout] | [INFO] [stdout] = note: impl doesn't have any local type before any uncovered type parameters [INFO] [stdout] = note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules [INFO] [stdout] = note: define and implement a trait or new type instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0117]: only traits defined in the current crate can be implemented for arbitrary types [INFO] [stdout] --> src/main.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ this is not defined in the current crate because tuples are always foreign [INFO] [stdout] | [INFO] [stdout] = note: impl doesn't have any local type before any uncovered type parameters [INFO] [stdout] = note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules [INFO] [stdout] = note: define and implement a trait or new type instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0117]: only traits defined in the current crate can be implemented for arbitrary types [INFO] [stdout] --> src/main.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ this is not defined in the current crate because tuples are always foreign [INFO] [stdout] | [INFO] [stdout] = note: impl doesn't have any local type before any uncovered type parameters [INFO] [stdout] = note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules [INFO] [stdout] = note: define and implement a trait or new type instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0117]: only traits defined in the current crate can be implemented for arbitrary types [INFO] [stdout] --> src/main.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ this is not defined in the current crate because tuples are always foreign [INFO] [stdout] | [INFO] [stdout] = note: impl doesn't have any local type before any uncovered type parameters [INFO] [stdout] = note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules [INFO] [stdout] = note: define and implement a trait or new type instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0071]: expected struct, variant or union type, found `(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | let mut block = Block { [INFO] [stdout] | ^^^^^ not a struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0071]: expected struct, variant or union type, found `(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | let mut block = Block { [INFO] [stdout] | ^^^^^ not a struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:27:54 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(grid_width: usize, grid_height: usize) -> Self { [INFO] [stdout] | --- ^^^^ expected `TetrisGame`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:27:54 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(grid_width: usize, grid_height: usize) -> Self { [INFO] [stdout] | --- ^^^^ expected `TetrisGame`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0071]: expected struct, variant or union type, found `(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone, Debug)] [INFO] [stdout] | ^ not a struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0071]: expected struct, variant or union type, found `(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone, Debug)] [INFO] [stdout] | ^ not a struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `top_left` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | top_left: Point, [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `top_left` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | top_left: Point, [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `block_type` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | block_type: BlockType, [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `texture` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | texture: Texture2D, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `direction` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | direction: Point, [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `block_type` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | block_type: BlockType, [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `rotation` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | rotation: i32, [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `block_type` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | match block.block_type { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `texture` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | texture: Texture2D, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `direction` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | direction: Point, [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `rotation` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | rotation: i32, [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `block_type` on type `&(usize, macroquad::texture::Texture2D)` [INFO] [stdout] --> src/main.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | match block.block_type { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `0`, `1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0071, E0117, E0308, E0428, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0071`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0071, E0117, E0308, E0428, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0071`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Tetris` (bin "Tetris") due to 12 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `Tetris` (bin "Tetris" test) due to 12 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "d436f352d3b2afaf31860a1efa764aeeb3adc9cfdbb06adcbd3182093038bc06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d436f352d3b2afaf31860a1efa764aeeb3adc9cfdbb06adcbd3182093038bc06", kill_on_drop: false }` [INFO] [stdout] d436f352d3b2afaf31860a1efa764aeeb3adc9cfdbb06adcbd3182093038bc06