[INFO] cloning repository https://github.com/LeelooE/Tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LeelooE/Tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeelooE%2FTetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeelooE%2FTetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] baeabb3adcb33d27849da13403e978c7d11a2443 [INFO] testing LeelooE/Tetris against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeelooE%2FTetris" "/workspace/builds/worker-106/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-106/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LeelooE/Tetris on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LeelooE/Tetris [INFO] finished tweaking git repo https://github.com/LeelooE/Tetris [INFO] tweaked toml for git repo https://github.com/LeelooE/Tetris written to /workspace/builds/worker-106/source/Cargo.toml [INFO] crate git repo https://github.com/LeelooE/Tetris already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 710f0345270319908907d82b09d8d19672fef261f507aee1c0bb1ee4cfefbaa7 [INFO] running `Command { std: "docker" "start" "-a" "710f0345270319908907d82b09d8d19672fef261f507aee1c0bb1ee4cfefbaa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "710f0345270319908907d82b09d8d19672fef261f507aee1c0bb1ee4cfefbaa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "710f0345270319908907d82b09d8d19672fef261f507aee1c0bb1ee4cfefbaa7", kill_on_drop: false }` [INFO] [stdout] 710f0345270319908907d82b09d8d19672fef261f507aee1c0bb1ee4cfefbaa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b07ff80121b2f25f64c4d19ac7728ce8602beed3467e603048e2b6f1daaa6475 [INFO] running `Command { std: "docker" "start" "-a" "b07ff80121b2f25f64c4d19ac7728ce8602beed3467e603048e2b6f1daaa6475", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling sdl2 v0.32.2 [INFO] [stderr] Compiling sdl2-sys v0.32.6 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling getrandom v0.1.7 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_core v0.5.0 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: invalid suffix `as` for number literal [INFO] [stdout] --> src/main.rs:196:53 [INFO] [stdout] | [INFO] [stdout] 196 | let window = video_subsystem.window("Tetris", 160, 224as) [INFO] [stdout] | ^^^^^ invalid suffix `as` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,`, found `input` [INFO] [stdout] --> src/main.rs:228:38 [INFO] [stdout] | [INFO] [stdout] 228 | println!("Let the game begin! {}," input); [INFO] [stdout] | ^^^^^ expected `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/main.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Uniform` [INFO] [stdout] --> src/main.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::distributions::{Distribution, Standard, Uniform}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:76:3 [INFO] [stdout] | [INFO] [stdout] 76 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:84:3 [INFO] [stdout] | [INFO] [stdout] 84 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait [INFO] [stdout] --> src/main.rs:227:6 [INFO] [stdout] | [INFO] [stdout] 227 | io::stdin::().read_line(&mut input).ok().expect("error: unable to read user input"); [INFO] [stdout] | ^^^^^^^^^ only `Fn` traits may use parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_line` found for fn item `fn() -> Stdin {stdin}` in the current scope [INFO] [stdout] --> src/main.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 227 | io::stdin::().read_line(&mut input).ok().expect("error: unable to read user input"); [INFO] [stdout] | ^^^^^^^^^ method not found in `fn() -> Stdin {stdin}` [INFO] [stdout] | [INFO] [stdout] = note: `io::stdin::()` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | map.remove(y); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&{integer}`, found `i32` [INFO] [stdout] | help: consider borrowing here: `&y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:267:18 [INFO] [stdout] | [INFO] [stdout] 267 | map.remove(y); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&i32`, found `i32` [INFO] [stdout] | help: consider borrowing here: `&y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:280:18 [INFO] [stdout] | [INFO] [stdout] 280 | map.remove(y); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&i32`, found `i32` [INFO] [stdout] | help: consider borrowing here: `&y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0214, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0214`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tetris` due to 8 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b07ff80121b2f25f64c4d19ac7728ce8602beed3467e603048e2b6f1daaa6475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b07ff80121b2f25f64c4d19ac7728ce8602beed3467e603048e2b6f1daaa6475", kill_on_drop: false }` [INFO] [stdout] b07ff80121b2f25f64c4d19ac7728ce8602beed3467e603048e2b6f1daaa6475