[INFO] cloning repository https://github.com/northbytruth/snake_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/northbytruth/snake_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ef5587191e0d92dca63f8319a0923bc62bafc1a5 [INFO] checking northbytruth/snake_game against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/northbytruth/snake_game on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/northbytruth/snake_game [INFO] finished tweaking git repo https://github.com/northbytruth/snake_game [INFO] tweaked toml for git repo https://github.com/northbytruth/snake_game written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/northbytruth/snake_game already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b2a53ad74f8fde8e9535cccf316b582a1ea662894afc79f2c3477a7d4b65cfe [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" "5b2a53ad74f8fde8e9535cccf316b582a1ea662894afc79f2c3477a7d4b65cfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b2a53ad74f8fde8e9535cccf316b582a1ea662894afc79f2c3477a7d4b65cfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b2a53ad74f8fde8e9535cccf316b582a1ea662894afc79f2c3477a7d4b65cfe", kill_on_drop: false }` [INFO] [stdout] 5b2a53ad74f8fde8e9535cccf316b582a1ea662894afc79f2c3477a7d4b65cfe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52cff217b4ec062c4ee30741e9ea82e7b6be241e76709961738e4d57eecc3790 [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" "52cff217b4ec062c4ee30741e9ea82e7b6be241e76709961738e4d57eecc3790", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rand_core v0.1.0-pre.0 [INFO] [stderr] Compiling ncurses v5.91.0 [INFO] [stderr] Checking rand v0.5.0-pre.0 [INFO] [stderr] Checking pancurses v0.15.0 [INFO] [stderr] Checking snake_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | if(key_in == "s"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | if(key_in == "s"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:7 [INFO] [stdout] | [INFO] [stdout] 126 | if(key_in == "w"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:7 [INFO] [stdout] | [INFO] [stdout] 126 | if(key_in == "w"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | if(key_in == "d"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | if(key_in == "d"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | if(key_in == "a"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:253:15 [INFO] [stdout] | [INFO] [stdout] 253 | if(ret == 0){ [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | if(key_in == "a"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:253:15 [INFO] [stdout] | [INFO] [stdout] 253 | if(ret == 0){ [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snake` [INFO] [stdout] --> src/main.rs:33:36 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_snake` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food` [INFO] [stdout] --> src/main.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut s = "\n\n\n".to_string(); [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: unused variable: `screen` [INFO] [stdout] --> src/main.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snake` [INFO] [stdout] --> src/main.rs:33:36 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_snake` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food` [INFO] [stdout] --> src/main.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `startGame` should have a snake case name [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `start_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addIntroToScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_intro_to_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterateScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn iterateScreen(screen :&mut Screen, content :&mut Vec, key_in : &String, snake : &mut Snake, food :&mut Point, direction :&mut ... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iterate_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn gameOver(content: &mut Vec, snake: &Snake){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drawScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn drawScreen(content :&mut Vec, window :&Window){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `draw_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameRunning` should have a snake case name [INFO] [stdout] --> src/main.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut gameRunning: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `game_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastKey` should have a snake case name [INFO] [stdout] --> src/main.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut lastKey = "".to_string(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `last_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut s = "\n\n\n".to_string(); [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: function `startGame` should have a snake case name [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `start_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addIntroToScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_intro_to_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterateScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn iterateScreen(screen :&mut Screen, content :&mut Vec, key_in : &String, snake : &mut Snake, food :&mut Point, direction :&mut ... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iterate_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn gameOver(content: &mut Vec, snake: &Snake){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drawScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn drawScreen(content :&mut Vec, window :&Window){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `draw_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameRunning` should have a snake case name [INFO] [stdout] --> src/main.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut gameRunning: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `game_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastKey` should have a snake case name [INFO] [stdout] --> src/main.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut lastKey = "".to_string(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `last_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.17s [INFO] running `Command { std: "docker" "inspect" "52cff217b4ec062c4ee30741e9ea82e7b6be241e76709961738e4d57eecc3790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52cff217b4ec062c4ee30741e9ea82e7b6be241e76709961738e4d57eecc3790", kill_on_drop: false }` [INFO] [stdout] 52cff217b4ec062c4ee30741e9ea82e7b6be241e76709961738e4d57eecc3790