[INFO] cloning repository https://github.com/nikolasFreitas/snake-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nikolasFreitas/snake-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FnikolasFreitas%2Fsnake-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FnikolasFreitas%2Fsnake-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cfb0fb18bc1c98a7612cdfe0ad4938aa67816221 [INFO] checking nikolasFreitas/snake-rust against master#84e729a59f216cc64755788a470f165429a731f4 for pr-123737-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FnikolasFreitas%2Fsnake-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nikolasFreitas/snake-rust on toolchain 84e729a59f216cc64755788a470f165429a731f4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nikolasFreitas/snake-rust [INFO] finished tweaking git repo https://github.com/nikolasFreitas/snake-rust [INFO] tweaked toml for git repo https://github.com/nikolasFreitas/snake-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nikolasFreitas/snake-rust 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" "+84e729a59f216cc64755788a470f165429a731f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.126 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fddcdd07b3f5fb935458a0f029b7598b49ba7a3d0d2a1bce36f8f86573ef186f [INFO] running `Command { std: "docker" "start" "-a" "fddcdd07b3f5fb935458a0f029b7598b49ba7a3d0d2a1bce36f8f86573ef186f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fddcdd07b3f5fb935458a0f029b7598b49ba7a3d0d2a1bce36f8f86573ef186f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fddcdd07b3f5fb935458a0f029b7598b49ba7a3d0d2a1bce36f8f86573ef186f", kill_on_drop: false }` [INFO] [stdout] fddcdd07b3f5fb935458a0f029b7598b49ba7a3d0d2a1bce36f8f86573ef186f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72afbd79a7d35cf1e247a9dd0a405a287df56d55273868f50cf949fd40220709 [INFO] running `Command { std: "docker" "start" "-a" "72afbd79a7d35cf1e247a9dd0a405a287df56d55273868f50cf949fd40220709", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Checking piston-float v1.0.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking piston-graphics_api_version v1.0.0 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking spin_sleep v1.0.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking piston-viewport v1.0.0 [INFO] [stderr] Checking shader_version v0.7.0 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking piston2d-graphics v0.40.0 [INFO] [stderr] Checking nom v6.1.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Compiling wayland-scanner v0.28.5 [INFO] [stderr] Checking xcursor v0.3.3 [INFO] [stderr] Compiling wayland-client v0.28.5 [INFO] [stderr] Compiling wayland-protocols v0.28.5 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking wayland-cursor v0.28.5 [INFO] [stderr] Checking wayland-egl v0.28.5 [INFO] [stderr] Checking piston-gfx_texture v0.41.0 [INFO] [stderr] Checking piston2d-gfx_graphics v0.73.0 [INFO] [stderr] Checking pistoncore-input v1.0.0 [INFO] [stderr] Checking pistoncore-window v0.47.0 [INFO] [stderr] Checking pistoncore-event_loop v0.53.0 [INFO] [stderr] Checking piston v0.53.0 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.69.0 [INFO] [stderr] Checking piston_window v0.120.0 [INFO] [stderr] Checking snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `linked_list` [INFO] [stdout] --> src/snake.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{linked_list, LinkedList}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linked_list` [INFO] [stdout] --> src/snake.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{linked_list, LinkedList}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/snake.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn move_forward(&mut self, dir: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/snake.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn move_forward(&mut self, dir: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/draw.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const BLOCK_SIZE: f64 = 25.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_coord` is never used [INFO] [stdout] --> src/draw.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn to_coord(game_coord: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_block` is never used [INFO] [stdout] --> src/draw.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn draw_block(color: Color, x: i32, y:i32, con: &Context, g: &mut G2d) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_rectangle` is never used [INFO] [stdout] --> src/draw.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn draw_rectangle( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SNAKE_COLOR` is never used [INFO] [stdout] --> src/snake.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const SNAKE_COLOR: Color = [0.00, 0.80, 0.00, 1.0]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/snake.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `oposite` is never used [INFO] [stdout] --> src/snake.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Direction { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 17 | pub fn oposite(&self) -> Direction { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/snake.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Snake` is never constructed [INFO] [stdout] --> src/snake.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Snake { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `move_forward` are never used [INFO] [stdout] --> src/snake.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Snake { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 39 | pub fn new(x: i32, y:i32) -> Snake { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn draw(&self, con: &Context, g: &mut G2d) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn move_forward(&mut self, dir: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/draw.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const BLOCK_SIZE: f64 = 25.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_coord` is never used [INFO] [stdout] --> src/draw.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn to_coord(game_coord: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_block` is never used [INFO] [stdout] --> src/draw.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn draw_block(color: Color, x: i32, y:i32, con: &Context, g: &mut G2d) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_rectangle` is never used [INFO] [stdout] --> src/draw.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn draw_rectangle( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SNAKE_COLOR` is never used [INFO] [stdout] --> src/snake.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const SNAKE_COLOR: Color = [0.00, 0.80, 0.00, 1.0]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/snake.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `oposite` is never used [INFO] [stdout] --> src/snake.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Direction { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 17 | pub fn oposite(&self) -> Direction { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/snake.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Snake` is never constructed [INFO] [stdout] --> src/snake.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Snake { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `move_forward` are never used [INFO] [stdout] --> src/snake.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Snake { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 39 | pub fn new(x: i32, y:i32) -> Snake { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn draw(&self, con: &Context, g: &mut G2d) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn move_forward(&mut self, dir: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.02s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "72afbd79a7d35cf1e247a9dd0a405a287df56d55273868f50cf949fd40220709", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72afbd79a7d35cf1e247a9dd0a405a287df56d55273868f50cf949fd40220709", kill_on_drop: false }` [INFO] [stdout] 72afbd79a7d35cf1e247a9dd0a405a287df56d55273868f50cf949fd40220709