[INFO] cloning repository https://github.com/Griffone/RustyGame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Griffone/RustyGame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGriffone%2FRustyGame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGriffone%2FRustyGame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 44a4271d61d34f72ef7b1c9e2a86908e69a0dde3 [INFO] testing Griffone/RustyGame against 1.55.0 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGriffone%2FRustyGame" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Griffone/RustyGame on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Griffone/RustyGame [INFO] finished tweaking git repo https://github.com/Griffone/RustyGame [INFO] tweaked toml for git repo https://github.com/Griffone/RustyGame written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f6d0f3ac1dd5d1b88b98f3285afdf3a4ff6877cde98eadcaaf7641277a3e873a [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" "f6d0f3ac1dd5d1b88b98f3285afdf3a4ff6877cde98eadcaaf7641277a3e873a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6d0f3ac1dd5d1b88b98f3285afdf3a4ff6877cde98eadcaaf7641277a3e873a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6d0f3ac1dd5d1b88b98f3285afdf3a4ff6877cde98eadcaaf7641277a3e873a", kill_on_drop: false }` [INFO] [stdout] f6d0f3ac1dd5d1b88b98f3285afdf3a4ff6877cde98eadcaaf7641277a3e873a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0667daac3fcfdcd664f4dbbb32bc6060b86df2ec1642ba0a4e068e68d137753 [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" "a0667daac3fcfdcd664f4dbbb32bc6060b86df2ec1642ba0a4e068e68d137753", kill_on_drop: false }` [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling wayland-scanner v0.20.12 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling serde_yaml v0.8.21 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling wayland-sys v0.20.12 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling wayland-commons v0.20.12 [INFO] [stderr] Compiling wayland-client v0.20.12 [INFO] [stderr] Compiling wayland-protocols v0.20.12 [INFO] [stderr] Compiling image v0.20.1 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling glutin v0.17.0 [INFO] [stderr] Compiling glium v0.22.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.2.6 [INFO] [stderr] Compiling winit v0.16.2 [INFO] [stderr] Compiling rusty_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/graphics.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition. [INFO] [stdout] --> src/input.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | fn from_state(&glium::glutin::ModifiersState) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &glium::glutin::ModifiersState` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/graphics/graphics.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/graphics/graphics.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/graphics/instance.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | implement_vertex!(PerInstance, i_translation, i_z_theta, i_scale, i_color_lit, i_color_unlit, i_texture_lit, i_texture_unlit); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/input.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn load_from_file(path: &std::path::Path) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | let mut count: i8 = 3; [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: `set_debug_mode` [INFO] [stdout] --> src/config.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn set_debug_mode(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_window_position` [INFO] [stdout] --> src/config.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn reset_window_position(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_window_size` [INFO] [stdout] --> src/config.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reset_window_size(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `short_angle_distance` [INFO] [stdout] --> src/graphics/math.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn short_angle_distance(a: f32, b: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lerp_angle` [INFO] [stdout] --> src/graphics/math.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn lerp_angle(a: f32, b: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bounds` [INFO] [stdout] --> src/graphics/math.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn from_bounds(points: &Bounds) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `grow_to_fit` [INFO] [stdout] --> src/graphics/math.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn grow_to_fit(&mut self, point: &Point) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min` [INFO] [stdout] --> src/graphics/math.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn min(&self) -> [f32; 2] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max` [INFO] [stdout] --> src/graphics/math.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn max(&self) -> [f32; 2] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_x` [INFO] [stdout] --> src/graphics/math.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn max_x(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_y` [INFO] [stdout] --> src/graphics/math.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn max_y(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/graphics/math.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn size(&self) -> Point { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FORMAT` [INFO] [stdout] --> src/graphics/texture.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_FORMAT: GLTextureFormat = GLTextureFormat::S3tcDxt1Alpha; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `USED_MIPMAP` [INFO] [stdout] --> src/graphics/texture.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const USED_MIPMAP: glium::texture::CompressedMipmapsOption = glium::texture::CompressedMipmapsOption::NoMipmap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/instance.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unlit` [INFO] [stdout] --> src/graphics/instance.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | fn unlit(transform: Transform, color: [f32; 4], texture: &Texture) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_rotation` [INFO] [stdout] --> src/graphics/transform.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn set_rotation(&mut self, angle: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/graphics/transform.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn translate(&mut self, delta: [f32; 2]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_position` [INFO] [stdout] --> src/graphics/transform.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn set_position(&mut self, position: [f32; 2]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_scale` [INFO] [stdout] --> src/graphics/transform.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_scale(&mut self, scale: [f32; 2]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_texture_collection` [INFO] [stdout] --> src/graphics/scene.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn free_texture_collection(self) -> TextureCollection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouse_wheel` [INFO] [stdout] --> src/input.rs:84:2 [INFO] [stdout] | [INFO] [stdout] 84 | mouse_wheel: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_from_file` [INFO] [stdout] --> src/input.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn load_from_file(path: &std::path::Path) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_on_key_down` [INFO] [stdout] --> src/input.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn set_on_key_down(&mut self, key: Key, action: Action) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_on_button_down` [INFO] [stdout] --> src/input.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn set_on_button_down(&mut self, button: Button, action: Action) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_on_button_up` [INFO] [stdout] --> src/input.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_on_button_up(&mut self, button: Button, action: Action) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_key` [INFO] [stdout] --> src/input.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn clear_key(&mut self, key: Key) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_button` [INFO] [stdout] --> src/input.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn clear_button(&mut self, button: Button) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_wheel_delta` [INFO] [stdout] --> src/input.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | pub fn clear_wheel_delta(&mut self, modifiers: KeyModifiers) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `absolute_mouse_position` [INFO] [stdout] --> src/input.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn absolute_mouse_position(&self) -> (f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mouse_wheel` [INFO] [stdout] --> src/input.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | pub fn mouse_wheel(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FONT_PREFIX` [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | const FONT_PREFIX: &str = "data/fonts/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | write!(f, "(IO)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | write!(f, "(Program)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | write!(f, "(VertexBuffer)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | write!(f, "(IndexBuffer)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "a0667daac3fcfdcd664f4dbbb32bc6060b86df2ec1642ba0a4e068e68d137753", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0667daac3fcfdcd664f4dbbb32bc6060b86df2ec1642ba0a4e068e68d137753", kill_on_drop: false }` [INFO] [stdout] a0667daac3fcfdcd664f4dbbb32bc6060b86df2ec1642ba0a4e068e68d137753 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2c5604f15a0d7dd77523a59a111eefffa890271e9c09454f222b5c2de788563b [INFO] running `Command { std: "docker" "start" "-a" "2c5604f15a0d7dd77523a59a111eefffa890271e9c09454f222b5c2de788563b", kill_on_drop: false }` [INFO] [stderr] Compiling rusty_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/graphics.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition. [INFO] [stdout] --> src/input.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | fn from_state(&glium::glutin::ModifiersState) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &glium::glutin::ModifiersState` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/graphics/graphics.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/graphics/graphics.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/graphics/instance.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | implement_vertex!(PerInstance, i_translation, i_z_theta, i_scale, i_color_lit, i_color_unlit, i_texture_lit, i_texture_unlit); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/input.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn load_from_file(path: &std::path::Path) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | let mut count: i8 = 3; [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: `set_debug_mode` [INFO] [stdout] --> src/config.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn set_debug_mode(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_window_position` [INFO] [stdout] --> src/config.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn reset_window_position(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_window_size` [INFO] [stdout] --> src/config.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reset_window_size(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `short_angle_distance` [INFO] [stdout] --> src/graphics/math.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn short_angle_distance(a: f32, b: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lerp_angle` [INFO] [stdout] --> src/graphics/math.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn lerp_angle(a: f32, b: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bounds` [INFO] [stdout] --> src/graphics/math.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn from_bounds(points: &Bounds) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `grow_to_fit` [INFO] [stdout] --> src/graphics/math.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn grow_to_fit(&mut self, point: &Point) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min` [INFO] [stdout] --> src/graphics/math.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn min(&self) -> [f32; 2] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max` [INFO] [stdout] --> src/graphics/math.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn max(&self) -> [f32; 2] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_x` [INFO] [stdout] --> src/graphics/math.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn max_x(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_y` [INFO] [stdout] --> src/graphics/math.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn max_y(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/graphics/math.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn size(&self) -> Point { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FORMAT` [INFO] [stdout] --> src/graphics/texture.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_FORMAT: GLTextureFormat = GLTextureFormat::S3tcDxt1Alpha; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `USED_MIPMAP` [INFO] [stdout] --> src/graphics/texture.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const USED_MIPMAP: glium::texture::CompressedMipmapsOption = glium::texture::CompressedMipmapsOption::NoMipmap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/instance.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unlit` [INFO] [stdout] --> src/graphics/instance.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | fn unlit(transform: Transform, color: [f32; 4], texture: &Texture) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_rotation` [INFO] [stdout] --> src/graphics/transform.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn set_rotation(&mut self, angle: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/graphics/transform.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn translate(&mut self, delta: [f32; 2]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_position` [INFO] [stdout] --> src/graphics/transform.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn set_position(&mut self, position: [f32; 2]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_scale` [INFO] [stdout] --> src/graphics/transform.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_scale(&mut self, scale: [f32; 2]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_texture_collection` [INFO] [stdout] --> src/graphics/scene.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn free_texture_collection(self) -> TextureCollection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouse_wheel` [INFO] [stdout] --> src/input.rs:84:2 [INFO] [stdout] | [INFO] [stdout] 84 | mouse_wheel: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_from_file` [INFO] [stdout] --> src/input.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn load_from_file(path: &std::path::Path) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_on_key_down` [INFO] [stdout] --> src/input.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn set_on_key_down(&mut self, key: Key, action: Action) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_on_button_down` [INFO] [stdout] --> src/input.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn set_on_button_down(&mut self, button: Button, action: Action) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_on_button_up` [INFO] [stdout] --> src/input.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_on_button_up(&mut self, button: Button, action: Action) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_key` [INFO] [stdout] --> src/input.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn clear_key(&mut self, key: Key) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_button` [INFO] [stdout] --> src/input.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn clear_button(&mut self, button: Button) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_wheel_delta` [INFO] [stdout] --> src/input.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | pub fn clear_wheel_delta(&mut self, modifiers: KeyModifiers) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `absolute_mouse_position` [INFO] [stdout] --> src/input.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn absolute_mouse_position(&self) -> (f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mouse_wheel` [INFO] [stdout] --> src/input.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | pub fn mouse_wheel(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FONT_PREFIX` [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | const FONT_PREFIX: &str = "data/fonts/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | write!(f, "(IO)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | write!(f, "(Program)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | write!(f, "(VertexBuffer)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/graphics/graphics.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | write!(f, "(IndexBuffer)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "2c5604f15a0d7dd77523a59a111eefffa890271e9c09454f222b5c2de788563b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c5604f15a0d7dd77523a59a111eefffa890271e9c09454f222b5c2de788563b", kill_on_drop: false }` [INFO] [stdout] 2c5604f15a0d7dd77523a59a111eefffa890271e9c09454f222b5c2de788563b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cf7447178884a2a33e93d6c85508cb057489692d3569741c700cc4eb5f71c15f [INFO] running `Command { std: "docker" "start" "-a" "cf7447178884a2a33e93d6c85508cb057489692d3569741c700cc4eb5f71c15f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/config.rs:113:22 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 113 | ) -> Result<(), Box> { [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see issue #80165 [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/graphics/graphics.rs:190:29 [INFO] [stderr] | [INFO] [stderr] 190 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::error::Error` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see issue #80165 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition. [INFO] [stderr] --> src/input.rs:136:16 [INFO] [stderr] | [INFO] [stderr] 136 | fn from_state(&glium::glutin::ModifiersState) -> Self; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &glium::glutin::ModifiersState` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/graphics/graphics.rs:229:1 [INFO] [stderr] | [INFO] [stderr] 229 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/graphics/graphics.rs:229:1 [INFO] [stderr] | [INFO] [stderr] 229 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/graphics/instance.rs:76:1 [INFO] [stderr] | [INFO] [stderr] 76 | implement_vertex!(PerInstance, i_translation, i_z_theta, i_scale, i_color_lit, i_color_unlit, i_texture_lit, i_texture_unlit); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/input.rs:189:24 [INFO] [stderr] | [INFO] [stderr] 189 | pub fn load_from_file(path: &std::path::Path) -> Self { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:59:7 [INFO] [stderr] | [INFO] [stderr] 59 | let mut count: i8 = 3; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_debug_mode` [INFO] [stderr] --> src/config.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn set_debug_mode(&mut self, enabled: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset_window_position` [INFO] [stderr] --> src/config.rs:95:9 [INFO] [stderr] | [INFO] [stderr] 95 | pub fn reset_window_position(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset_window_size` [INFO] [stderr] --> src/config.rs:105:9 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn reset_window_size(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `short_angle_distance` [INFO] [stderr] --> src/graphics/math.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn short_angle_distance(a: f32, b: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `lerp_angle` [INFO] [stderr] --> src/graphics/math.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn lerp_angle(a: f32, b: f32, t: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_bounds` [INFO] [stderr] --> src/graphics/math.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn from_bounds(points: &Bounds) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `grow_to_fit` [INFO] [stderr] --> src/graphics/math.rs:72:9 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn grow_to_fit(&mut self, point: &Point) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `min` [INFO] [stderr] --> src/graphics/math.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn min(&self) -> [f32; 2] { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `max` [INFO] [stderr] --> src/graphics/math.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn max(&self) -> [f32; 2] { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `max_x` [INFO] [stderr] --> src/graphics/math.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn max_x(&self) -> f32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `max_y` [INFO] [stderr] --> src/graphics/math.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | pub fn max_y(&self) -> f32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `size` [INFO] [stderr] --> src/graphics/math.rs:128:9 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn size(&self) -> Point { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `DEFAULT_FORMAT` [INFO] [stderr] --> src/graphics/texture.rs:22:1 [INFO] [stderr] | [INFO] [stderr] 22 | const DEFAULT_FORMAT: GLTextureFormat = GLTextureFormat::S3tcDxt1Alpha; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `USED_MIPMAP` [INFO] [stderr] --> src/graphics/texture.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | const USED_MIPMAP: glium::texture::CompressedMipmapsOption = glium::texture::CompressedMipmapsOption::NoMipmap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/graphics/instance.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unlit` [INFO] [stderr] --> src/graphics/instance.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | fn unlit(transform: Transform, color: [f32; 4], texture: &Texture) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_rotation` [INFO] [stderr] --> src/graphics/transform.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn set_rotation(&mut self, angle: f32) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `translate` [INFO] [stderr] --> src/graphics/transform.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn translate(&mut self, delta: [f32; 2]) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_position` [INFO] [stderr] --> src/graphics/transform.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn set_position(&mut self, position: [f32; 2]) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_scale` [INFO] [stderr] --> src/graphics/transform.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn set_scale(&mut self, scale: [f32; 2]) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `free_texture_collection` [INFO] [stderr] --> src/graphics/scene.rs:129:9 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn free_texture_collection(self) -> TextureCollection { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mouse_wheel` [INFO] [stderr] --> src/input.rs:84:2 [INFO] [stderr] | [INFO] [stderr] 84 | mouse_wheel: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `load_from_file` [INFO] [stderr] --> src/input.rs:189:9 [INFO] [stderr] | [INFO] [stderr] 189 | pub fn load_from_file(path: &std::path::Path) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_on_key_down` [INFO] [stderr] --> src/input.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | pub fn set_on_key_down(&mut self, key: Key, action: Action) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_on_button_down` [INFO] [stderr] --> src/input.rs:227:9 [INFO] [stderr] | [INFO] [stderr] 227 | pub fn set_on_button_down(&mut self, button: Button, action: Action) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_on_button_up` [INFO] [stderr] --> src/input.rs:259:9 [INFO] [stderr] | [INFO] [stderr] 259 | pub fn set_on_button_up(&mut self, button: Button, action: Action) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `clear_key` [INFO] [stderr] --> src/input.rs:279:9 [INFO] [stderr] | [INFO] [stderr] 279 | pub fn clear_key(&mut self, key: Key) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `clear_button` [INFO] [stderr] --> src/input.rs:283:9 [INFO] [stderr] | [INFO] [stderr] 283 | pub fn clear_button(&mut self, button: Button) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `clear_wheel_delta` [INFO] [stderr] --> src/input.rs:287:9 [INFO] [stderr] | [INFO] [stderr] 287 | pub fn clear_wheel_delta(&mut self, modifiers: KeyModifiers) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `absolute_mouse_position` [INFO] [stderr] --> src/input.rs:380:9 [INFO] [stderr] | [INFO] [stderr] 380 | pub fn absolute_mouse_position(&self) -> (f32, f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mouse_wheel` [INFO] [stderr] --> src/input.rs:393:9 [INFO] [stderr] | [INFO] [stderr] 393 | pub fn mouse_wheel(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `FONT_PREFIX` [INFO] [stderr] --> src/main.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | const FONT_PREFIX: &str = "data/fonts/"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/graphics/graphics.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | write!(f, "(IO)"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/graphics/graphics.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 170 | write!(f, "(Program)"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/graphics/graphics.rs:174:5 [INFO] [stderr] | [INFO] [stderr] 174 | write!(f, "(VertexBuffer)"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/graphics/graphics.rs:178:5 [INFO] [stderr] | [INFO] [stderr] 178 | write!(f, "(IndexBuffer)"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rusty_game` (bin "rusty_game" test) generated 44 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.52s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rusty_game-a27455405069ab92) [INFO] running `Command { std: "docker" "inspect" "cf7447178884a2a33e93d6c85508cb057489692d3569741c700cc4eb5f71c15f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf7447178884a2a33e93d6c85508cb057489692d3569741c700cc4eb5f71c15f", kill_on_drop: false }` [INFO] [stdout] cf7447178884a2a33e93d6c85508cb057489692d3569741c700cc4eb5f71c15f