[INFO] cloning repository https://github.com/zeruslord/swingyships [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zeruslord/swingyships" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeruslord%2Fswingyships", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeruslord%2Fswingyships'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d449bf03446e5786738739354dea519a4480867a [INFO] checking zeruslord/swingyships against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeruslord%2Fswingyships" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zeruslord/swingyships on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zeruslord/swingyships [INFO] finished tweaking git repo https://github.com/zeruslord/swingyships [INFO] tweaked toml for git repo https://github.com/zeruslord/swingyships written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/zeruslord/swingyships already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f43a171667c75f352035303799530e4039dbf18963b02d1b8ed59ec987c1ddf5 [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" "f43a171667c75f352035303799530e4039dbf18963b02d1b8ed59ec987c1ddf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f43a171667c75f352035303799530e4039dbf18963b02d1b8ed59ec987c1ddf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f43a171667c75f352035303799530e4039dbf18963b02d1b8ed59ec987c1ddf5", kill_on_drop: false }` [INFO] [stdout] f43a171667c75f352035303799530e4039dbf18963b02d1b8ed59ec987c1ddf5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74b74934687cb776ba1e586c8cdf4cc601347b94fe8bcd6d045db0a31a27cb68 [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" "74b74934687cb776ba1e586c8cdf4cc601347b94fe8bcd6d045db0a31a27cb68", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.39 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling khronos_api v2.1.0 [INFO] [stderr] Checking num-traits v0.2.1 [INFO] [stderr] Checking nodrop v0.1.12 [INFO] [stderr] Checking piston-float v0.3.0 [INFO] [stderr] Compiling libloading v0.4.3 [INFO] [stderr] Checking serde v1.0.29 [INFO] [stderr] Checking token_store v0.1.2 [INFO] [stderr] Compiling rayon-core v1.4.0 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Checking adler32 v1.0.2 [INFO] [stderr] Compiling either v1.4.0 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking shader_version v0.3.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking piston-texture v0.6.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking interpolation v0.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.7 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Checking piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Checking smallvec v0.6.0 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking slotmap v0.3.0 [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking stb_truetype v0.2.2 [INFO] [stderr] Compiling cmake v0.1.35 [INFO] [stderr] Checking unreachable v0.1.1 [INFO] [stderr] Compiling x11-dl v2.17.3 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling itertools v0.5.10 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Checking piston-viewport v0.3.0 [INFO] [stderr] Checking vecmath v0.3.1 [INFO] [stderr] Checking deflate v0.7.17 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling syn v0.10.8 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking memmap v0.6.2 [INFO] [stderr] Checking shared_library v0.1.8 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking num-integer v0.1.36 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Checking crossbeam-epoch v0.3.0 [INFO] [stderr] Checking backtrace-sys v0.1.16 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking ordered-float v0.5.0 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Compiling wrapped2d v0.4.0 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Checking num-iter v0.1.35 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking backtrace v0.3.5 [INFO] [stderr] Checking dlib v0.4.0 [INFO] [stderr] Compiling syn v0.12.14 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking rusttype v0.4.1 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Checking wayland-sys v0.12.5 [INFO] [stderr] Checking tempfile v2.2.0 [INFO] [stderr] Checking uuid v0.1.18 [INFO] [stderr] Checking piston2d-graphics v0.26.0 [INFO] [stderr] Checking rayon v1.0.0 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Compiling glium v0.23.0 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling gfx_gl v0.5.0 [INFO] [stderr] Compiling serde_derive_internals v0.20.0 [INFO] [stderr] Compiling glutin v0.12.2 [INFO] [stderr] Compiling glium v0.20.0 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking jpeg-decoder v0.1.14 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Compiling serde_derive v1.0.29 [INFO] [stderr] Compiling derivative v1.0.0 [INFO] [stderr] Checking wayland-kbd v0.13.1 [INFO] [stderr] Checking wayland-window v0.13.2 [INFO] [stderr] Checking gfx_core v0.8.2 [INFO] [stderr] Checking winit v0.10.0 [INFO] [stderr] Checking pistoncore-input v0.20.0 [INFO] [stderr] Checking gfx v0.17.1 [INFO] [stderr] Checking gfx_device_gl v0.15.1 [INFO] [stderr] Checking pistoncore-window v0.31.0 [INFO] [stderr] Checking piston-ai_behavior v0.22.0 [INFO] [stderr] Checking piston-gfx_texture v0.31.0 [INFO] [stderr] Checking piston2d-gfx_graphics v0.50.0 [INFO] [stderr] Checking pistoncore-event_loop v0.36.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.45.2 [INFO] [stderr] Checking piston v0.36.0 [INFO] [stderr] Checking piston2d-sprite v0.43.0 [INFO] [stderr] Checking piston_window v0.77.0 [INFO] [stderr] Checking piston2d-glium_graphics v0.48.0 [INFO] [stderr] Checking swingyships v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MouseCursorEvent`, `PressEvent` [INFO] [stdout] --> src/swingyships/game.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use piston_window::{Event, PressEvent, MouseCursorEvent, MouseRelativeEvent, RenderEvent, AdvancedWindow}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `Sequence`, `WaitForever`, `Wait`, `While` [INFO] [stdout] --> src/swingyships/game.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Action, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | Sequence, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | WaitForever, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/swingyships/game.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/swingyships/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/swingyships/game.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | if (magnitude > 2000.) { [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 imports: `Sequence`, `WaitForever`, `Wait`, `While` [INFO] [stdout] --> src/swingyships/objects.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | Sequence, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | WaitForever, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/swingyships/objects.rs:144:44 [INFO] [stdout] | [INFO] [stdout] 144 | length: f32) -> Option>{ [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn b2::Joint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/swingyships/objects.rs:159:51 [INFO] [stdout] | [INFO] [stdout] 159 | root_pos: b2::Vec2) -> Option> { [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn b2::Joint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wrapped2d::handle::TypedHandle` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use wrapped2d::handle::TypedHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WaitForever`, `Wait`, `While` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | WaitForever, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DirEntry`, `File`, `ReadDir` [INFO] [stdout] --> src/main.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | use std::fs::{File, ReadDir, DirEntry}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MouseCursorEvent`, `PressEvent` [INFO] [stdout] --> src/swingyships/game.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use piston_window::{Event, PressEvent, MouseCursorEvent, MouseRelativeEvent, RenderEvent, AdvancedWindow}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `Sequence`, `WaitForever`, `Wait`, `While` [INFO] [stdout] --> src/swingyships/game.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Action, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | Sequence, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | WaitForever, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/swingyships/game.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `MouseCursorEvent`, `MouseRelativeEvent` [INFO] [stdout] --> src/main.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | use piston_window::{Event, PressEvent, MouseCursorEvent, MouseRelativeEvent, RenderEvent, AdvancedWindow}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/swingyships/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/swingyships/game.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | if (magnitude > 2000.) { [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: `piston::event_loop::EventLoop` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use piston::event_loop::EventLoop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sequence`, `WaitForever`, `Wait`, `While` [INFO] [stdout] --> src/swingyships/objects.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | Sequence, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | WaitForever, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/swingyships/objects.rs:144:44 [INFO] [stdout] | [INFO] [stdout] 144 | length: f32) -> Option>{ [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn b2::Joint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glutin_window::GlutinWindow` [INFO] [stdout] --> src/main.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use glutin_window::GlutinWindow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/swingyships/objects.rs:159:51 [INFO] [stdout] | [INFO] [stdout] 159 | root_pos: b2::Vec2) -> Option> { [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn b2::Joint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | if(to_destroy.len() > 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wrapped2d::handle::TypedHandle` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use wrapped2d::handle::TypedHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WaitForever`, `Wait`, `While` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | Wait, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | WaitForever, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DirEntry`, `File`, `ReadDir` [INFO] [stdout] --> src/main.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | use std::fs::{File, ReadDir, DirEntry}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `MouseCursorEvent`, `MouseRelativeEvent` [INFO] [stdout] --> src/main.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | use piston_window::{Event, PressEvent, MouseCursorEvent, MouseRelativeEvent, RenderEvent, AdvancedWindow}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `piston::event_loop::EventLoop` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use piston::event_loop::EventLoop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glutin_window::GlutinWindow` [INFO] [stdout] --> src/main.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use glutin_window::GlutinWindow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | if(to_destroy.len() > 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AdvancedWindow` [INFO] [stdout] --> src/swingyships/game.rs:11:91 [INFO] [stdout] | [INFO] [stdout] 11 | use piston_window::{Event, PressEvent, MouseCursorEvent, MouseRelativeEvent, RenderEvent, AdvancedWindow}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/swingyships/game.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn update(&mut self, e: &Event) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/swingyships/objects.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/swingyships/objects.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/swingyships/objects.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/swingyships/objects.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | for i in 0 .. def.length { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chaser` [INFO] [stdout] --> src/swingyships/level_loader.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let chaser = make_chaser(game, &tex.chaser, chaser_def, &chasers.props); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_chaser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `access` [INFO] [stdout] --> src/swingyships/physics.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | fn end_contact(&mut self, access:ContactAccess) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_access` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `access` [INFO] [stdout] --> src/swingyships/physics.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | fn pre_solve(&mut self, access:ContactAccess, _: &Manifold) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_access` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let mut walls_def = b2::BodyDef { [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/swingyships/objects.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut sprite = Sprite::from_texture(tex.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut sprite = Sprite::from_texture(tex.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut sprite = Sprite::from_texture(tex.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let mut sprite = Sprite::from_texture(tex); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AdvancedWindow` [INFO] [stdout] --> src/swingyships/game.rs:11:91 [INFO] [stdout] | [INFO] [stdout] 11 | use piston_window::{Event, PressEvent, MouseCursorEvent, MouseRelativeEvent, RenderEvent, AdvancedWindow}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/main.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/swingyships/game.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn update(&mut self, e: &Event) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/swingyships/objects.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/swingyships/objects.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/swingyships/objects.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let handle = body.create_fixture(&shape, &mut fixture_def); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/swingyships/objects.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | for i in 0 .. def.length { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chaser` [INFO] [stdout] --> src/swingyships/level_loader.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let chaser = make_chaser(game, &tex.chaser, chaser_def, &chasers.props); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_chaser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `access` [INFO] [stdout] --> src/swingyships/physics.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | fn end_contact(&mut self, access:ContactAccess) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_access` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `access` [INFO] [stdout] --> src/swingyships/physics.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | fn pre_solve(&mut self, access:ContactAccess, _: &Manifold) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_access` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let mut walls_def = b2::BodyDef { [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/swingyships/objects.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut sprite = Sprite::from_texture(tex.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut sprite = Sprite::from_texture(tex.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut sprite = Sprite::from_texture(tex.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let mut sprite = Sprite::from_texture(tex); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/swingyships/objects.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | let mut def = b2::BodyDef { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sprite_type` [INFO] [stdout] --> src/swingyships/game.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn sprite_type(&self, key: SpriteKey) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sprite_type` [INFO] [stdout] --> src/swingyships/game.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn sprite_type(&self, key: SpriteKey) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 43s [INFO] running `Command { std: "docker" "inspect" "74b74934687cb776ba1e586c8cdf4cc601347b94fe8bcd6d045db0a31a27cb68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74b74934687cb776ba1e586c8cdf4cc601347b94fe8bcd6d045db0a31a27cb68", kill_on_drop: false }` [INFO] [stdout] 74b74934687cb776ba1e586c8cdf4cc601347b94fe8bcd6d045db0a31a27cb68