[INFO] cloning repository https://github.com/quixotrykd/Snake-AI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quixotrykd/Snake-AI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquixotrykd%2FSnake-AI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquixotrykd%2FSnake-AI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96c2da95ce4acfecd9c6b1988c91c74d721d5a62 [INFO] checking quixotrykd/Snake-AI against try#3e22d1f9053c0fc87629b3c6d5d9567856368e5d for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquixotrykd%2FSnake-AI" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/quixotrykd/Snake-AI on toolchain 3e22d1f9053c0fc87629b3c6d5d9567856368e5d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/quixotrykd/Snake-AI [INFO] finished tweaking git repo https://github.com/quixotrykd/Snake-AI [INFO] tweaked toml for git repo https://github.com/quixotrykd/Snake-AI written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/quixotrykd/Snake-AI already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.34.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a22818809a4c36bad23836ac54458be0b5f3c580488ee89ead9e1b1b0cad55e4 [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" "a22818809a4c36bad23836ac54458be0b5f3c580488ee89ead9e1b1b0cad55e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a22818809a4c36bad23836ac54458be0b5f3c580488ee89ead9e1b1b0cad55e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a22818809a4c36bad23836ac54458be0b5f3c580488ee89ead9e1b1b0cad55e4", kill_on_drop: false }` [INFO] [stdout] a22818809a4c36bad23836ac54458be0b5f3c580488ee89ead9e1b1b0cad55e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29a27c6d0725c41ac92f1afc30664c32b2034779275538b465ae92b8127b70a1 [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" "29a27c6d0725c41ac92f1afc30664c32b2034779275538b465ae92b8127b70a1", kill_on_drop: false }` [INFO] [stderr] Compiling sdl2 v0.34.2 [INFO] [stderr] Compiling sdl2-sys v0.34.2 [INFO] [stderr] Checking neural v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/snake.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::rect::{Point,Rect}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/snake.rs:123:33 [INFO] [stdout] | [INFO] [stdout] 123 | let food_here = (self.food_loc == curr_loc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::Network` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::network::Network; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/snake.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::rect::{Point,Rect}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/snake.rs:123:33 [INFO] [stdout] | [INFO] [stdout] 123 | let food_here = (self.food_loc == curr_loc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::network::Network` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::network::Network; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 52 | / loop { [INFO] [stdout] 53 | | population = population.breed(); [INFO] [stdout] 54 | | let (best, best_score) = population.get_best(); [INFO] [stdout] 55 | | println!("Best score of generation {}: {}", generation, best_score); [INFO] [stdout] ... | [INFO] [stdout] 66 | | generation += 1; [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 68 | [INFO] [stdout] 69 | return; [INFO] [stdout] | ^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 52 | / loop { [INFO] [stdout] 53 | | population = population.breed(); [INFO] [stdout] 54 | | let (best, best_score) = population.get_best(); [INFO] [stdout] 55 | | println!("Best score of generation {}: {}", generation, best_score); [INFO] [stdout] ... | [INFO] [stdout] 66 | | generation += 1; [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 68 | [INFO] [stdout] 69 | return; [INFO] [stdout] | ^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut game = Game::new(GAME_WIDTH, GAME_HEIGHT, GAME_SCALE); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut i = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selected_value` [INFO] [stdout] --> src/agent.rs:122:31 [INFO] [stdout] | [INFO] [stdout] 122 | let (selected_choice, selected_value) = network_result.iter().copied() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/agent.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | for step in 0..Snake::SNAKE_STEPS { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/population.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | .map(|&(agent_ref, val): &(&T, f64)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/snake.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let head = self.snake.last().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut game = Game::new(GAME_WIDTH, GAME_HEIGHT, GAME_SCALE); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut i = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selected_value` [INFO] [stdout] --> src/agent.rs:122:31 [INFO] [stdout] | [INFO] [stdout] 122 | let (selected_choice, selected_value) = network_result.iter().copied() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/agent.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | for step in 0..Snake::SNAKE_STEPS { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/population.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | .map(|&(agent_ref, val): &(&T, f64)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/snake.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let head = self.snake.last().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut game = Game::new(GAME_WIDTH, GAME_HEIGHT, GAME_SCALE); [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:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut game = Game::new(GAME_WIDTH, GAME_HEIGHT, GAME_SCALE); [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: associated function is never used: `new` [INFO] [stdout] --> src/agent.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(len: usize, mutation_prob: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `LINE_COLOR` [INFO] [stdout] --> src/snake.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | const LINE_COLOR: Color = Color::RGB(0, 0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NODE_COLOR` [INFO] [stdout] --> src/network.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | const NODE_COLOR: Color = Color::RGB(255, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `CONNECTION_COLOR` [INFO] [stdout] --> src/network.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | const CONNECTION_COLOR: Color = Color::RGB(0, 255, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shape` [INFO] [stdout] --> src/network.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_shape(&self) -> &[usize] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> src/network.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn render(&self, canvas: &mut Canvas, scale: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NETWORK_SCALE` [INFO] [stdout] --> src/main.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const NETWORK_SCALE: u16 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/agent.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(len: usize, mutation_prob: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `LINE_COLOR` [INFO] [stdout] --> src/snake.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | const LINE_COLOR: Color = Color::RGB(0, 0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NODE_COLOR` [INFO] [stdout] --> src/network.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | const NODE_COLOR: Color = Color::RGB(255, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `CONNECTION_COLOR` [INFO] [stdout] --> src/network.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | const CONNECTION_COLOR: Color = Color::RGB(0, 255, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shape` [INFO] [stdout] --> src/network.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn get_shape(&self) -> &[usize] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> src/network.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn render(&self, canvas: &mut Canvas, scale: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NETWORK_SCALE` [INFO] [stdout] --> src/main.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const NETWORK_SCALE: u16 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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 7.34s [INFO] running `Command { std: "docker" "inspect" "29a27c6d0725c41ac92f1afc30664c32b2034779275538b465ae92b8127b70a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29a27c6d0725c41ac92f1afc30664c32b2034779275538b465ae92b8127b70a1", kill_on_drop: false }` [INFO] [stdout] 29a27c6d0725c41ac92f1afc30664c32b2034779275538b465ae92b8127b70a1