[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] checking LeelooE/Tetris against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeelooE%2FTetris" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LeelooE/Tetris on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-10/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2acfcd5dac9ab7d010a3950e89b16cda59e0fbf74f4892029042ab888d5bb60d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2acfcd5dac9ab7d010a3950e89b16cda59e0fbf74f4892029042ab888d5bb60d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2acfcd5dac9ab7d010a3950e89b16cda59e0fbf74f4892029042ab888d5bb60d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2acfcd5dac9ab7d010a3950e89b16cda59e0fbf74f4892029042ab888d5bb60d", kill_on_drop: false }` [INFO] [stdout] 2acfcd5dac9ab7d010a3950e89b16cda59e0fbf74f4892029042ab888d5bb60d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81d5a1e07f7389a08b3a6dde759f9d7ec0cc4399460a109267a032d9cbf4825b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "81d5a1e07f7389a08b3a6dde759f9d7ec0cc4399460a109267a032d9cbf4825b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling sdl2-sys v0.32.6 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling sdl2 v0.32.2 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking getrandom v0.1.7 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking rand_core v0.5.0 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.0 [INFO] [stderr] Checking tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: invalid suffix `as` for integer 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 integral types (`u32`, `isize`, etc) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `as` for integer 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 integral types (`u32`, `isize`, 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] 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] 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] 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] 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] 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] 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; 3 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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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; 3 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: build failed [INFO] running `Command { std: "docker" "inspect" "81d5a1e07f7389a08b3a6dde759f9d7ec0cc4399460a109267a032d9cbf4825b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81d5a1e07f7389a08b3a6dde759f9d7ec0cc4399460a109267a032d9cbf4825b", kill_on_drop: false }` [INFO] [stdout] 81d5a1e07f7389a08b3a6dde759f9d7ec0cc4399460a109267a032d9cbf4825b