[INFO] cloning repository https://github.com/boleaczek/TacticalSquares [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/boleaczek/TacticalSquares" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboleaczek%2FTacticalSquares", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboleaczek%2FTacticalSquares'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1964f3dfe374f58a89b5bcbd6e4ff4f29f39894e [INFO] building boleaczek/TacticalSquares against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboleaczek%2FTacticalSquares" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/boleaczek/TacticalSquares [INFO] finished tweaking git repo https://github.com/boleaczek/TacticalSquares [INFO] tweaked toml for git repo https://github.com/boleaczek/TacticalSquares written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/boleaczek/TacticalSquares on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/boleaczek/TacticalSquares 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rusttype v0.8.2 [INFO] [stderr] Downloaded serde v1.0.103 [INFO] [stderr] Downloaded cc v1.0.48 [INFO] [stderr] Downloaded lock_api v0.3.2 [INFO] [stderr] Downloaded crossbeam-queue v0.2.0 [INFO] [stderr] Downloaded num-traits v0.2.10 [INFO] [stderr] Downloaded png v0.15.2 [INFO] [stderr] Downloaded serde_derive v1.0.103 [INFO] [stderr] Downloaded rayon-core v1.6.1 [INFO] [stderr] Downloaded rayon v1.2.1 [INFO] [stderr] Downloaded syn v1.0.11 [INFO] [stderr] Downloaded libc v0.2.66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f04fa77cc6d9ab387fea5a586c1234b07c563d92de9e121d327edd805b97038 [INFO] running `Command { std: "docker" "start" "-a" "1f04fa77cc6d9ab387fea5a586c1234b07c563d92de9e121d327edd805b97038", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f04fa77cc6d9ab387fea5a586c1234b07c563d92de9e121d327edd805b97038", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f04fa77cc6d9ab387fea5a586c1234b07c563d92de9e121d327edd805b97038", kill_on_drop: false }` [INFO] [stdout] 1f04fa77cc6d9ab387fea5a586c1234b07c563d92de9e121d327edd805b97038 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dde886acbe8be7506498149758c634460be890dc6e175302c8c95ebd5d28a7ab [INFO] running `Command { std: "docker" "start" "-a" "dde886acbe8be7506498149758c634460be890dc6e175302c8c95ebd5d28a7ab", kill_on_drop: false }` [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling cc v1.0.48 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling arrayvec v0.5.1 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling x11-dl v2.18.4 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling downcast-rs v1.1.1 [INFO] [stderr] Compiling rayon-core v1.6.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling same-file v1.0.5 [INFO] [stderr] Compiling piston-graphics_api_version v0.2.0 [INFO] [stderr] Compiling walkdir v2.2.9 [INFO] [stderr] Compiling crossbeam-queue v0.2.0 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling lock_api v0.3.2 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling shader_version v0.6.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling num_cpus v1.11.1 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling rusttype v0.8.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling png v0.15.2 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rayon v1.2.1 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling piston2d-graphics v0.35.0 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling jpeg-decoder v0.1.16 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling tiff v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.103 [INFO] [stderr] Compiling image v0.22.3 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.70.0 [INFO] [stderr] Compiling pistoncore-input v0.28.0 [INFO] [stderr] Compiling pistoncore-window v0.44.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.49.0 [INFO] [stderr] Compiling piston v0.49.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling glutin v0.21.2 [INFO] [stderr] Compiling pistoncore-glutin_window v0.63.0 [INFO] [stderr] Compiling tactical_squares v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `EventLoop` [INFO] [stdout] --> src/main.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use piston::event_loop::{Events, EventSettings, EventLoop}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Size` [INFO] [stdout] --> src/game_controller/game_managers.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::algebra_basics::{Coordinates, Size}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LineEquation` and `Size` [INFO] [stdout] --> src/game_controller/movement_manager.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::algebra_basics::{Coordinates, Size, Vector, LineEquation}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_data::gameboard::Gameboard` [INFO] [stdout] --> src/game_controller/movement_manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game_data::gameboard::Gameboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameObjectType` and `GameObject` [INFO] [stdout] --> src/game_controller/movement_manager.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game_data::game_object::{GameObject, GameObjectType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RectangleLineEquations`, `Size`, and `Vector` [INFO] [stdout] --> src/game_controller/movement_manager.rs:53:56 [INFO] [stdout] | [INFO] [stdout] 53 | use crate::algebra_basics::{Coordinates, LineEquation, Vector, Size, RectangleLineEquations}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `graphics::types::Color` [INFO] [stdout] --> src/gameboard_view.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use graphics::types::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/game_data/gameboard.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> src/game_data/gameboard.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_data::game_object` [INFO] [stdout] --> src/game_data/gameboard.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::game_data::game_object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_data::game_object::GameObjectType` [INFO] [stdout] --> src/game_data/gameboard.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game_data::game_object::GameObjectType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Size` [INFO] [stdout] --> src/game_data/gameboard.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra_basics::{Coordinates, Size}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/debug_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/debug_utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/debug_utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_controller/game_managers.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut basic_state = state.get_basic_state(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_equation` [INFO] [stdout] --> src/game_controller/movement_manager.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let line_equation = LineEquation::get_line_equation(start, destination); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_equation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/game_controller/movement_manager.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | for object in game_objects { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_equation` [INFO] [stdout] --> src/game_controller/movement_manager.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | fn check_if_object_is_an_obstacle(line_equation: &LineEquation, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_equation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction_x` [INFO] [stdout] --> src/game_controller/movement_manager.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | direction_x: &MovementDirection, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction_y` [INFO] [stdout] --> src/game_controller/movement_manager.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | direction_y: &MovementDirection, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/game_controller/movement_manager.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | object: &GameObject) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/testing.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut gameboard = setup_gameboard_with_selectable_object(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MovementDirection` is never used [INFO] [stdout] --> src/game_controller/movement_manager.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | enum MovementDirection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/game_controller/movement_manager.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl MovementDirection { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 65 | fn get(a: f64, b: f64) -> MovementDirection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_if_object_is_an_obstacle` is never used [INFO] [stdout] --> src/game_controller/movement_manager.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn check_if_object_is_an_obstacle(line_equation: &LineEquation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/algebra_basics.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 176 | impl RectangleIntersectionPoints { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 177 | fn get(line_equation: &LineEquation, rectangle_line_equations: &RectangleLineEquations) -> RectangleIntersectionPoints { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "dde886acbe8be7506498149758c634460be890dc6e175302c8c95ebd5d28a7ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dde886acbe8be7506498149758c634460be890dc6e175302c8c95ebd5d28a7ab", kill_on_drop: false }` [INFO] [stdout] dde886acbe8be7506498149758c634460be890dc6e175302c8c95ebd5d28a7ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c899665cbfd2d3ed07ce178421aba413f87eb186d902a5447e8597b3f35876e [INFO] running `Command { std: "docker" "start" "-a" "2c899665cbfd2d3ed07ce178421aba413f87eb186d902a5447e8597b3f35876e", kill_on_drop: false }` [INFO] [stderr] Compiling tactical_squares v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `EventLoop` [INFO] [stdout] --> src/main.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use piston::event_loop::{Events, EventSettings, EventLoop}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Size` [INFO] [stdout] --> src/game_controller/game_managers.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::algebra_basics::{Coordinates, Size}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LineEquation` and `Size` [INFO] [stdout] --> src/game_controller/movement_manager.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::algebra_basics::{Coordinates, Size, Vector, LineEquation}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_data::gameboard::Gameboard` [INFO] [stdout] --> src/game_controller/movement_manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game_data::gameboard::Gameboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameObjectType` and `GameObject` [INFO] [stdout] --> src/game_controller/movement_manager.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game_data::game_object::{GameObject, GameObjectType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector` [INFO] [stdout] --> src/game_controller/movement_manager.rs:53:56 [INFO] [stdout] | [INFO] [stdout] 53 | use crate::algebra_basics::{Coordinates, LineEquation, Vector, Size, RectangleLineEquations}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `graphics::types::Color` [INFO] [stdout] --> src/gameboard_view.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use graphics::types::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/game_data/gameboard.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> src/game_data/gameboard.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_data::game_object` [INFO] [stdout] --> src/game_data/gameboard.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::game_data::game_object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_data::game_object::GameObjectType` [INFO] [stdout] --> src/game_data/gameboard.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game_data::game_object::GameObjectType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Size` [INFO] [stdout] --> src/game_data/gameboard.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra_basics::{Coordinates, Size}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/debug_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/debug_utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/debug_utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_controller/game_managers.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut basic_state = state.get_basic_state(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_equation` [INFO] [stdout] --> src/game_controller/movement_manager.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let line_equation = LineEquation::get_line_equation(start, destination); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_equation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/game_controller/movement_manager.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | for object in game_objects { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_equation` [INFO] [stdout] --> src/game_controller/movement_manager.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | fn check_if_object_is_an_obstacle(line_equation: &LineEquation, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_equation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction_x` [INFO] [stdout] --> src/game_controller/movement_manager.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | direction_x: &MovementDirection, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction_y` [INFO] [stdout] --> src/game_controller/movement_manager.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | direction_y: &MovementDirection, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/game_controller/movement_manager.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | object: &GameObject) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/testing.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut gameboard = setup_gameboard_with_selectable_object(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_rectangle_line_equations` is never used [INFO] [stdout] --> src/game_controller/movement_manager.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | fn setup_rectangle_line_equations() -> RectangleLineEquations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/algebra_basics.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 176 | impl RectangleIntersectionPoints { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 177 | fn get(line_equation: &LineEquation, rectangle_line_equations: &RectangleLineEquations) -> RectangleIntersectionPoints { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.71s [INFO] running `Command { std: "docker" "inspect" "2c899665cbfd2d3ed07ce178421aba413f87eb186d902a5447e8597b3f35876e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c899665cbfd2d3ed07ce178421aba413f87eb186d902a5447e8597b3f35876e", kill_on_drop: false }` [INFO] [stdout] 2c899665cbfd2d3ed07ce178421aba413f87eb186d902a5447e8597b3f35876e