[INFO] cloning repository https://github.com/andreasterrius/Alexyt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andreasterrius/Alexyt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreasterrius%2FAlexyt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreasterrius%2FAlexyt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3769ebbdc01561eb831ff737f3c789a339f36d49 [INFO] testing andreasterrius/Alexyt against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreasterrius%2FAlexyt" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andreasterrius/Alexyt on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andreasterrius/Alexyt [INFO] finished tweaking git repo https://github.com/andreasterrius/Alexyt [INFO] tweaked toml for git repo https://github.com/andreasterrius/Alexyt written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/andreasterrius/Alexyt already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/bjz/glfw-rs.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded safe_arch v0.5.2 [INFO] [stderr] Downloaded bytemuck v1.7.2 [INFO] [stderr] Downloaded memoffset v0.6.4 [INFO] [stderr] Downloaded weezl v0.1.5 [INFO] [stderr] Downloaded arrayvec v0.6.1 [INFO] [stderr] Downloaded simplelog v0.7.6 [INFO] [stderr] Downloaded ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Downloaded term v0.6.1 [INFO] [stderr] Downloaded rapier3d v0.8.0 [INFO] [stderr] Downloaded gltf-derive v0.15.2 [INFO] [stderr] Downloaded bitflags v1.3.1 [INFO] [stderr] Downloaded gltf-json v0.15.2 [INFO] [stderr] Downloaded cgmath v0.17.0 [INFO] [stderr] Downloaded snowflake v1.3.0 [INFO] [stderr] Downloaded gltf v0.15.2 [INFO] [stderr] Downloaded parry3d v0.4.2 [INFO] [stderr] Downloaded wide v0.6.5 [INFO] [stderr] Downloaded glfw-sys v3.3.4 [INFO] [stderr] Downloaded hdrldr v0.1.2 [INFO] [stderr] Downloaded tiff v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", 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] 6ccff143bbd2894dc0eda03bccccec8761f098352738ca8a4067024e7ec3f2d6 [INFO] running `Command { std: "docker" "start" "-a" "6ccff143bbd2894dc0eda03bccccec8761f098352738ca8a4067024e7ec3f2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ccff143bbd2894dc0eda03bccccec8761f098352738ca8a4067024e7ec3f2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ccff143bbd2894dc0eda03bccccec8761f098352738ca8a4067024e7ec3f2d6", kill_on_drop: false }` [INFO] [stdout] 6ccff143bbd2894dc0eda03bccccec8761f098352738ca8a4067024e7ec3f2d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--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] b8063915aacd91d3ed4d3d7a6c5c87da6d38e8747b3398715258c6b3e47d0d73 [INFO] running `Command { std: "docker" "start" "-a" "b8063915aacd91d3ed4d3d7a6c5c87da6d38e8747b3398715258c6b3e47d0d73", 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] [stderr] Compiling bitflags v1.3.1 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling snowflake v1.3.0 [INFO] [stderr] Compiling hdrldr v0.1.2 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling arrayvec v0.6.1 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling ale_input v0.1.0 (/opt/rustwide/workdir/crates/ale_input) [INFO] [stderr] Compiling ale_autoid v0.1.0 (/opt/rustwide/workdir/crates/ale_autoid) [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling ale_shader v0.1.0 (/opt/rustwide/workdir/crates/ale_shader) [INFO] [stderr] Compiling wide v0.6.5 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling crossbeam v0.8.1 [INFO] [stderr] Compiling glfw-sys v3.3.4 [INFO] [stderr] Compiling term v0.6.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling simplelog v0.7.6 [INFO] [stderr] Compiling simba v0.4.0 [INFO] [stderr] Compiling glfw v0.41.0 (https://github.com/bjz/glfw-rs.git#c9d332ff) [INFO] [stderr] Compiling ale_math v0.1.0 (/opt/rustwide/workdir/crates/ale_math) [INFO] [stdout] warning: field is never read: `origin_point` [INFO] [stdout] --> crates/ale_math/src/rect.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | origin_point: OriginPoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Rect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> crates/ale_math/src/rect.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_buffer v0.1.0 (/opt/rustwide/workdir/crates/ale_buffer) [INFO] [stderr] Compiling ale_variable v0.1.0 (/opt/rustwide/workdir/crates/ale_variable) [INFO] [stderr] Compiling ale_camera v0.1.0 (/opt/rustwide/workdir/crates/ale_camera) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hash` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | Variable::F32_1(n, v) => v.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | Variable::F32_3(n, v) => format!("({}, {}, {})", v.x, v.y, v.z), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | Variable::F32_4(n, v) => format!("({}, {}, {}, {})", v.x, v.y, v.z, v.w), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | Variable::Bool(n, v) => v.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_console v0.1.0 (/opt/rustwide/workdir/crates/ale_console) [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point3` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:4:74 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{ale_quaternion_look_at, ortho, perspective, Deg, Matrix4, Point3, Quaternion, Vector3}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `recalculate_matrices` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | fn recalculate_matrices(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling ale_mesh v0.1.0 (/opt/rustwide/workdir/crates/ale_mesh) [INFO] [stdout] warning: unused import: `ale_input::Input::Key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_input::Input::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector3`, `Vector4` [INFO] [stdout] --> crates/ale_console/src/lib.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_math::{Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> crates/ale_console/src/lib.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> crates/ale_console/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> crates/ale_console/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::TryRecvError::Empty` [INFO] [stdout] --> crates/ale_console/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::mpsc::TryRecvError::Empty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scancode` [INFO] [stdout] --> crates/ale_console/src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | Input::Key(key, scancode, action, modifier) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scancode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifier` [INFO] [stdout] --> crates/ale_console/src/lib.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | Input::Key(key, scancode, action, modifier) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | Variable::F32_1(key, v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:174:25 [INFO] [stdout] | [INFO] [stdout] 174 | Variable::F32_3(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | Variable::F32_4(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:193:24 [INFO] [stdout] | [INFO] [stdout] 193 | Variable::Bool(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> crates/ale_console/src/lib.rs:223:11 [INFO] [stdout] | [INFO] [stdout] 223 | Err(err) => return Err(ArgumentsFailToParse(words[0].to_owned(), words[i].to_owned())), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::transform::AleTransform` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::transform::AleTransform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:4:62 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{Array, InnerSpace, Matrix4, Vector2, Vector3, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::iter::ale_mesh_triangle_iter_new` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iter::ale_mesh_triangle_iter_new; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::num_traits::clamp` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::num_traits::clamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_bounding_box_size` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_math::{ale_bounding_box_closest_point, ale_bounding_box_size, dot, InnerSpace, MetricSpace, Transform, Zero}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec1` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_math::{vec1, Vector3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParallelBridge`, `ParallelIterator` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use rayon::prelude::{ParallelBridge, ParallelIterator}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 238 | let size = (max - min); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - let size = (max - min); [INFO] [stdout] 238 + let size = max - min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner_start_time` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let inner_start_time = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inner_start_time` [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] --> crates/ale_mesh/src/sdf.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | let mut det = a00 * a11 - a01 * a01; [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] --> crates/ale_mesh/src/sdf.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let mut tmp0; [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] --> crates/ale_mesh/src/sdf.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut tmp1; [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] --> crates/ale_mesh/src/sdf.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut numer; [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] --> crates/ale_mesh/src/sdf.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut denom; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTEX` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const VERTEX: &str = "position"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NORMAL` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const NORMAL: &str = "normal"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UV` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const UV: &str = "uv"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BARYCENTRIC` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const BARYCENTRIC: &str = "barycentric"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `normal` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 29 | normal: [Vector3; 3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uv` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | uv: [Vector2; 3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot2` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn dot2(a: Vector3) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cross` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn cross(a: Vector3, b: Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling gltf-derive v0.15.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling ale_texture v0.1.0 (/opt/rustwide/workdir/crates/ale_texture) [INFO] [stderr] Compiling ale_font v0.1.0 (/opt/rustwide/workdir/crates/ale_font) [INFO] [stderr] Compiling ale_raymarch v0.1.0 (/opt/rustwide/workdir/crates/ale_raymarch) [INFO] [stdout] warning: unused import: `clamp_vec3` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{clamp_vec3, InnerSpace}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_texture::Texture` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | let right_step = (camera.right_dir() / x as f32 * aspect_ratio); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - let right_step = (camera.right_dir() / x as f32 * aspect_ratio); [INFO] [stdout] 40 + let right_step = camera.right_dir() / x as f32 * aspect_ratio; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_font/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector` [INFO] [stdout] --> crates/ale_font/src/lib.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use rusttype::{point, vector, Scale}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> crates/ale_font/src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | for iter in 0..5 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_pos` is never read [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | curr_pos = ale_ray_position_get(&ray, min_dist); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | let mut debug = vec![]; [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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/ale_font/src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | font_file.read_to_end(&mut font_data); [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] [INFO] [stdout] [INFO] [stderr] Compiling ale_opengl v0.1.0 (/opt/rustwide/workdir/crates/ale_opengl) [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mesh::OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::OpenGLMeshContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shader::OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shader::OpenGLShaderContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_opengl_text_render` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::text::{ale_opengl_text_render, ale_opengl_text_render_layout, OpenGLTextFontContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::texture::OpenGLTextureContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::texture::OpenGLTextureContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_math::{Matrix, Vector3, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_variable::Variable` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_variable::Variable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GLsizeiptr` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use gl::types::{GLfloat, GLsizeiptr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_font::Font` [INFO] [stdout] --> crates/ale_opengl/src/old/opengl.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ale_font::Font; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:264:15 [INFO] [stdout] | [INFO] [stdout] 264 | let d_i = (i as f64 * dx); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 264 - let d_i = (i as f64 * dx); [INFO] [stdout] 264 + let d_i = i as f64 * dx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::old::cubemap::Cubemap` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::old::cubemap::Cubemap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shader` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use ale_shader::{ale_shader_new, Shader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_texture_load` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use ale_texture::{ale_texture_load, Texture}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLTexture`, `ale_opengl_texture_new` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::texture::{ale_opengl_texture_new, OpenGLTexture, OpenGLTextureId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mesh` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_mesh::{ale_mesh_plane_new, Mesh}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{ale_opengl_mesh_new, OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_texture` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:3:74 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::raw::{bind_framebuffer, create_framebuffer_texcolor_rbodepth, create_texture, OpenGLFramebufferId}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::shader::{ale_opengl_shader_activate, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TexturePixel`, `ale_texture_new` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use ale_texture::{ale_texture_new, TexturePixel}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector3`, `Vector4` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::{Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{ale_opengl_mesh_new, OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shader::{ale_opengl_shader_new, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLTextureContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:3:88 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::texture::{ale_opengl_texture_new, ale_opengl_texture_render, OpenGLTexture, OpenGLTextureContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLShaderContext`, `OpenGLShaderId` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::shader::{OpenGLShader, OpenGLShaderContext, OpenGLShaderId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Camera` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_camera::{Camera, CameraRenderInfo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `ale_font_layout` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_font::{ale_font_layout, Font, FontTextureKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector3` [INFO] [stdout] --> crates/ale_opengl/src/wire.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::{Array, Matrix, Transform, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nalgebra v0.26.2 [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> crates/ale_opengl/src/wire.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::{Array, Matrix, Transform, Vector3}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/ale_opengl/src/old/opengl.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opengl_raymarch_context` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn ale_opengl_raymarch_render(opengl_raymarch_context: &OpenGLRaymarchContext) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opengl_raymarch_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rbo` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | let (fbo, rbo, texture) = create_framebuffer_texcolor_rbodepth(screen_size.x, screen_size.y).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_sun_solid_angle` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let k_sun_solid_angle = k_pi * k_sun_angular_radius * k_sun_angular_radius; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_sun_solid_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_length_unit_in_meters` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let k_length_unit_in_meters = 1000.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_length_unit_in_meters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_bottom_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let k_bottom_radius = 6360000.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_bottom_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_top_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let k_top_radius = 6420000.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_top_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_mie_phase_function_g` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let k_mie_phase_function_g = 0.8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_mie_phase_function_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_sun_zenith_angle` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let max_sun_zenith_angle = if use_half_precision { 102.0 } else { 180.0 } / 180.0 * k_pi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_sun_zenith_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gltf-json v0.15.2 [INFO] [stdout] warning: unused variable: `rayleigh_layer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let rayleigh_layer = DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rayleigh_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mie_layer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mie_layer = DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mie_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:148:7 [INFO] [stdout] | [INFO] [stdout] 148 | let mut draw_size = BUFFER_SIZE as u32; [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] --> crates/ale_opengl/src/debug/line.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | let mut draw_size = BUFFER_SIZE as u32; [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] --> crates/ale_opengl/src/old/sky.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut use_half_precision = true; [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] --> crates/ale_opengl/src/wire.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | for (mut transform, mesh) in meshes { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> crates/ale_opengl/src/text.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { ale_opengl_texture_new(&font_texture.texture).unwrap() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mesh` [INFO] [stdout] --> crates/ale_opengl/src/mesh.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) mesh: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `raymarch_shader` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | raymarch_shader: OpenGLShader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `plane_mesh` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | plane_mesh: OpenGLMesh, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shader` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) shader: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `text_2d_shader` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) text_2d_shader: OpenGLShader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `glyph_texture` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) glyph_texture: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line_draw_size` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | line_draw_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `point_draw_size` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | point_draw_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AtmosphereParameters` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct AtmosphereParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BrunetonSky` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct BrunetonSky {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new() -> BrunetonSky { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_texture` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn create_texture() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DensityProfileLayer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DensityProfile` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct DensityProfile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Model` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn clamp(val: f64, min: f64, max: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_cosine` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:196:4 [INFO] [stdout] | [INFO] [stdout] 196 | fn clamp_cosine(mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_distance` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn clamp_distance(d: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn clamp_radius(atmosphere: &AtmosphereParameters, r: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_sqrt` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn safe_sqrt(a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exp` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn exp(a: Vector3) -> Vector3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn distance_to_top_atmosphere_boundary(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_to_bottom_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:223:4 [INFO] [stdout] | [INFO] [stdout] 223 | fn distance_to_bottom_atmosphere_boundary(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ray_intersect_ground` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn ray_intersect_ground(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_layer_density` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_layer_density(layer: &DensityProfileLayer, altitude: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_profile_density` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn get_profile_density(profile: &DensityProfile, altitude: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_optical_length_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn compute_optical_length_to_top_atmosphere_boundary( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_transmittance_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:281:4 [INFO] [stdout] | [INFO] [stdout] 281 | fn compute_transmittance_to_top_atmosphere_boundary( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_texture_coord_from_unit_range` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn get_texture_coord_from_unit_range(x: f64, texture_size: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_unit_range_from_texture_coord` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn get_unit_range_from_texture_coord(u: f64, texture_size: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:60:85 [INFO] [stdout] | [INFO] [stdout] 60 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:65:85 [INFO] [stdout] | [INFO] [stdout] 65 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:70:85 [INFO] [stdout] | [INFO] [stdout] 70 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:75:85 [INFO] [stdout] | [INFO] [stdout] 75 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:81:64 [INFO] [stdout] | [INFO] [stdout] 81 | gl::GetUniformLocation(shader, CString::new(name).unwrap().as_ptr()), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_app v0.1.0 (/opt/rustwide/workdir/crates/ale_app) [INFO] [stderr] Compiling ale_opengl_fxaa v0.1.0 (/opt/rustwide/workdir/crates/ale_opengl_fxaa) [INFO] [stdout] warning: unused import: `RenderResources` [INFO] [stdout] --> crates/ale_app/src/lib.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_opengl::old::opengl::{RenderResources, SimpleRenderTasks}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `RwLock` [INFO] [stdout] --> crates/ale_app/src/window.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_tasks` [INFO] [stdout] --> crates/ale_app/src/lib.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut render_tasks = SimpleRenderTasks::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_tasks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConsoleEvent`, `ale_console_print_output` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | ale_console_print_output, ale_console_variable_event_handle, ale_console_variable_register, Console, ConsoleEvent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLMeshContext`, `ale_opengl_mesh_context_new` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_opengl::mesh::{ale_opengl_mesh_context_new, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLShaderContext`, `ale_opengl_shader_context_new` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_opengl::shader::{ale_opengl_shader_context_new, ale_opengl_shader_new, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Variable` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | use ale_variable::{to_variable, ToVariable, Variable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_app/src/lib.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut render_tasks = SimpleRenderTasks::new(); [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: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gltf v0.15.2 [INFO] [stderr] Compiling ale_gltf v0.1.0 (/opt/rustwide/workdir/crates/ale_gltf) [INFO] [stdout] warning: unused import: `ale_math::Matrix4` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decomposed`, `One` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{Decomposed, One, Quaternion}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::Gltf` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gltf::Gltf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | gltf::scene::Transform::Matrix { matrix } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `matrix: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sdf v0.1.0 (/opt/rustwide/workdir/examples/sdf) [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> examples/sdf/src/main.rs:10:64 [INFO] [stdout] | [INFO] [stdout] 10 | use ale_math::{ale_bounding_box_closest_point, Array, Vector3, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_mesh_sdf_find_quadrant` [INFO] [stdout] --> examples/sdf/src/main.rs:11:44 [INFO] [stdout] | [INFO] [stdout] 11 | use ale_mesh::sdf::{ale_mesh_sdf_distance, ale_mesh_sdf_find_quadrant, ale_mesh_sdf_new, MeshSDF}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_mesh_cube_new` [INFO] [stdout] --> examples/sdf/src/main.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use ale_mesh::{ale_mesh_cube_new, Mesh}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_opengl_debug_line_queue` [INFO] [stdout] --> examples/sdf/src/main.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | ale_opengl_debug_context_new, ale_opengl_debug_line_queue, ale_opengl_debug_point_queue, ale_opengl_debug_render, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RenderResources`, `SimpleRenderTasks` [INFO] [stdout] --> examples/sdf/src/main.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | use ale_opengl::old::opengl::{RenderResources, SimpleRenderTasks}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_opengl_pbr_render_debug` [INFO] [stdout] --> examples/sdf/src/main.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | ale_opengl_pbr_context_new, ale_opengl_pbr_render, ale_opengl_pbr_render_debug, ale_opengl_pbr_render_envmap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLRaymarchContext`, `ale_opengl_raymarch_context_new`, `ale_opengl_raymarch_render` [INFO] [stdout] --> examples/sdf/src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | use ale_opengl::raymarch::{ale_opengl_raymarch_context_new, ale_opengl_raymarch_render, OpenGLRaymarchContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> examples/sdf/src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `points` [INFO] [stdout] --> examples/sdf/src/main.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | let points = ale_raymarch_sdf_single( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_points` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `closest` [INFO] [stdout] --> examples/sdf/src/main.rs:103:15 [INFO] [stdout] | [INFO] [stdout] 103 | let closest = ale_bounding_box_closest_point(ray.origin, state.sphere.1.bounding_box); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> examples/sdf/src/main.rs:127:22 [INFO] [stdout] | [INFO] [stdout] 127 | fn tick(&mut self, s: &mut State) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/sdf/src/main.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let (_, mut sphere_mesh) = ale_gltf_load(&ale_app_resource_path("gltf/bakso.gltf")).remove(0); [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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parry3d v0.4.2 [INFO] [stderr] Compiling rapier3d v0.8.0 [INFO] [stderr] Compiling ale_physics v0.1.0 (/opt/rustwide/workdir/crates/ale_physics) [INFO] [stdout] warning: unused import: `RigidBody` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | BodyStatus, IntegrationParameters, JointSet, RigidBody, RigidBodyBuilder, RigidBodyHandle, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SharedShape` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | use rapier3d::geometry::{ColliderBuilder, ColliderHandle, SharedShape}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Euler`, `InnerSpace` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use ale_math::{Euler, InnerSpace}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pong v0.1.0 (/opt/rustwide/workdir/examples/pong) [INFO] [stdout] warning: unused import: `ale_camera::flycamera::FlyCamera` [INFO] [stdout] --> examples/pong/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_camera::flycamera::FlyCamera; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array`, `Deg`, `ElementWise`, `Euler`, `Matrix4`, `Quaternion`, `Rotation3`, `ale_quaternion_look_at` [INFO] [stdout] --> examples/pong/src/main.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | ale_bounding_box_size, ale_quaternion_look_at, Array, Deg, ElementWise, Euler, Matrix4, Quaternion, Rotation3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^ ^^^^^^^^^^^ ^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RenderResources`, `SimpleRenderTasks` [INFO] [stdout] --> examples/pong/src/main.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | use ale_opengl::old::opengl::{RenderResources, SimpleRenderTasks}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_opengl_clear_render` [INFO] [stdout] --> examples/pong/src/main.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | use ale_opengl::{ale_opengl_clear_render, ale_opengl_clear_render_color, ale_opengl_depth_test_enable}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RigidBodyBuilder` [INFO] [stdout] --> examples/pong/src/main.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | use ale_physics::rapier3d::dynamics::{RigidBodyBuilder, RigidBodyHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> examples/pong/src/main.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use rand::{random, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ball_collider` is assigned to, but never used [INFO] [stdout] --> examples/pong/src/main.rs:281:15 [INFO] [stdout] | [INFO] [stdout] 281 | let mut ball_collider = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_ball_collider` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ball_collider` is never read [INFO] [stdout] --> examples/pong/src/main.rs:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | ball_collider = Some(isect.collider1); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ball_collider` is never read [INFO] [stdout] --> examples/pong/src/main.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | ball_collider = Some(isect.collider2); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pong/src/main.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bb = transform [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] --> examples/pong/src/main.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let mut paddle_left = ale_create_pong_object( [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] --> examples/pong/src/main.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let mut paddle_right = ale_create_pong_object( [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] --> examples/pong/src/main.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let mut arena = vec![ [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] --> examples/pong/src/main.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | let mut ball = ale_create_pong_object( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 44s [INFO] running `Command { std: "docker" "inspect" "b8063915aacd91d3ed4d3d7a6c5c87da6d38e8747b3398715258c6b3e47d0d73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8063915aacd91d3ed4d3d7a6c5c87da6d38e8747b3398715258c6b3e47d0d73", kill_on_drop: false }` [INFO] [stdout] b8063915aacd91d3ed4d3d7a6c5c87da6d38e8747b3398715258c6b3e47d0d73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.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] 8178a907b8682ba916a5787d0bc5fc7edad16389025134c03ab9fd41c514a359 [INFO] running `Command { std: "docker" "start" "-a" "8178a907b8682ba916a5787d0bc5fc7edad16389025134c03ab9fd41c514a359", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling ale_input v0.1.0 (/opt/rustwide/workdir/crates/ale_input) [INFO] [stderr] Compiling ale_autoid v0.1.0 (/opt/rustwide/workdir/crates/ale_autoid) [INFO] [stderr] Compiling ale_shader v0.1.0 (/opt/rustwide/workdir/crates/ale_shader) [INFO] [stderr] Compiling ale_math v0.1.0 (/opt/rustwide/workdir/crates/ale_math) [INFO] [stderr] Compiling ale_camera v0.1.0 (/opt/rustwide/workdir/crates/ale_camera) [INFO] [stdout] warning: field is never read: `origin_point` [INFO] [stdout] --> crates/ale_math/src/rect.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | origin_point: OriginPoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Rect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> crates/ale_math/src/rect.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_variable v0.1.0 (/opt/rustwide/workdir/crates/ale_variable) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_buffer v0.1.0 (/opt/rustwide/workdir/crates/ale_buffer) [INFO] [stdout] warning: unused import: `Point3` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:4:74 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{ale_quaternion_look_at, ortho, perspective, Deg, Matrix4, Point3, Quaternion, Vector3}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `recalculate_matrices` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | fn recalculate_matrices(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hash` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | Variable::F32_1(n, v) => v.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | Variable::F32_3(n, v) => format!("({}, {}, {})", v.x, v.y, v.z), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | Variable::F32_4(n, v) => format!("({}, {}, {}, {})", v.x, v.y, v.z, v.w), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | Variable::Bool(n, v) => v.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::transform::AleTransform` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::transform::AleTransform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:4:62 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{Array, InnerSpace, Matrix4, Vector2, Vector3, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::iter::ale_mesh_triangle_iter_new` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iter::ale_mesh_triangle_iter_new; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::num_traits::clamp` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::num_traits::clamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_bounding_box_size` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_math::{ale_bounding_box_closest_point, ale_bounding_box_size, dot, InnerSpace, MetricSpace, Transform, Zero}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec1` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_math::{vec1, Vector3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParallelBridge`, `ParallelIterator` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use rayon::prelude::{ParallelBridge, ParallelIterator}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 238 | let size = (max - min); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - let size = (max - min); [INFO] [stdout] 238 + let size = max - min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner_start_time` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let inner_start_time = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inner_start_time` [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] --> crates/ale_mesh/src/sdf.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | let mut det = a00 * a11 - a01 * a01; [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] --> crates/ale_mesh/src/sdf.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let mut tmp0; [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] --> crates/ale_mesh/src/sdf.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut tmp1; [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] --> crates/ale_mesh/src/sdf.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut numer; [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] --> crates/ale_mesh/src/sdf.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut denom; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTEX` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const VERTEX: &str = "position"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NORMAL` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const NORMAL: &str = "normal"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UV` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const UV: &str = "uv"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BARYCENTRIC` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const BARYCENTRIC: &str = "barycentric"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `normal` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 29 | normal: [Vector3; 3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uv` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | uv: [Vector2; 3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot2` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn dot2(a: Vector3) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cross` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn cross(a: Vector3, b: Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_input::Input::Key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_input::Input::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector3`, `Vector4` [INFO] [stdout] --> crates/ale_console/src/lib.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_math::{Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> crates/ale_console/src/lib.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> crates/ale_console/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> crates/ale_console/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::TryRecvError::Empty` [INFO] [stdout] --> crates/ale_console/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::mpsc::TryRecvError::Empty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scancode` [INFO] [stdout] --> crates/ale_console/src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | Input::Key(key, scancode, action, modifier) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scancode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifier` [INFO] [stdout] --> crates/ale_console/src/lib.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | Input::Key(key, scancode, action, modifier) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | Variable::F32_1(key, v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:174:25 [INFO] [stdout] | [INFO] [stdout] 174 | Variable::F32_3(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | Variable::F32_4(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:193:24 [INFO] [stdout] | [INFO] [stdout] 193 | Variable::Bool(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> crates/ale_console/src/lib.rs:223:11 [INFO] [stdout] | [INFO] [stdout] 223 | Err(err) => return Err(ArgumentsFailToParse(words[0].to_owned(), words[i].to_owned())), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_mesh v0.1.0 (/opt/rustwide/workdir/crates/ale_mesh) [INFO] [stderr] Compiling ale_console v0.1.0 (/opt/rustwide/workdir/crates/ale_console) [INFO] [stderr] Compiling ale_physics v0.1.0 (/opt/rustwide/workdir/crates/ale_physics) [INFO] [stdout] warning: unused import: `RigidBody` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | BodyStatus, IntegrationParameters, JointSet, RigidBody, RigidBodyBuilder, RigidBodyHandle, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_texture v0.1.0 (/opt/rustwide/workdir/crates/ale_texture) [INFO] [stdout] warning: unused import: `SharedShape` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | use rapier3d::geometry::{ColliderBuilder, ColliderHandle, SharedShape}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_font v0.1.0 (/opt/rustwide/workdir/crates/ale_font) [INFO] [stdout] warning: unused imports: `Euler`, `InnerSpace` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use ale_math::{Euler, InnerSpace}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_raymarch v0.1.0 (/opt/rustwide/workdir/crates/ale_raymarch) [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_gltf v0.1.0 (/opt/rustwide/workdir/crates/ale_gltf) [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_font/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector` [INFO] [stdout] --> crates/ale_font/src/lib.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use rusttype::{point, vector, Scale}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> crates/ale_font/src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/ale_font/src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | font_file.read_to_end(&mut font_data); [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] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::Matrix4` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decomposed`, `One` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{Decomposed, One, Quaternion}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::Gltf` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gltf::Gltf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | gltf::scene::Transform::Matrix { matrix } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `matrix: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clamp_vec3` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{clamp_vec3, InnerSpace}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_texture::Texture` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | let right_step = (camera.right_dir() / x as f32 * aspect_ratio); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - let right_step = (camera.right_dir() / x as f32 * aspect_ratio); [INFO] [stdout] 40 + let right_step = camera.right_dir() / x as f32 * aspect_ratio; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | for iter in 0..5 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_pos` is never read [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | curr_pos = ale_ray_position_get(&ray, min_dist); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | let mut debug = vec![]; [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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mesh::OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::OpenGLMeshContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shader::OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shader::OpenGLShaderContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_opengl_text_render` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::text::{ale_opengl_text_render, ale_opengl_text_render_layout, OpenGLTextFontContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::texture::OpenGLTextureContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::texture::OpenGLTextureContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_math::{Matrix, Vector3, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_variable::Variable` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_variable::Variable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GLsizeiptr` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use gl::types::{GLfloat, GLsizeiptr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_font::Font` [INFO] [stdout] --> crates/ale_opengl/src/old/opengl.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ale_font::Font; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:264:15 [INFO] [stdout] | [INFO] [stdout] 264 | let d_i = (i as f64 * dx); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 264 - let d_i = (i as f64 * dx); [INFO] [stdout] 264 + let d_i = i as f64 * dx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::old::cubemap::Cubemap` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::old::cubemap::Cubemap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shader` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use ale_shader::{ale_shader_new, Shader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_texture_load` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use ale_texture::{ale_texture_load, Texture}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLTexture`, `ale_opengl_texture_new` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::texture::{ale_opengl_texture_new, OpenGLTexture, OpenGLTextureId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mesh` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_mesh::{ale_mesh_plane_new, Mesh}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{ale_opengl_mesh_new, OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_texture` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:3:74 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::raw::{bind_framebuffer, create_framebuffer_texcolor_rbodepth, create_texture, OpenGLFramebufferId}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::shader::{ale_opengl_shader_activate, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TexturePixel`, `ale_texture_new` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use ale_texture::{ale_texture_new, TexturePixel}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector3`, `Vector4` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::{Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{ale_opengl_mesh_new, OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shader::{ale_opengl_shader_new, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLTextureContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:3:88 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::texture::{ale_opengl_texture_new, ale_opengl_texture_render, OpenGLTexture, OpenGLTextureContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLShaderContext`, `OpenGLShaderId` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::shader::{OpenGLShader, OpenGLShaderContext, OpenGLShaderId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Camera` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_camera::{Camera, CameraRenderInfo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `ale_font_layout` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_font::{ale_font_layout, Font, FontTextureKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector3` [INFO] [stdout] --> crates/ale_opengl/src/wire.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::{Array, Matrix, Transform, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> crates/ale_opengl/src/wire.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::{Array, Matrix, Transform, Vector3}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/ale_opengl/src/old/opengl.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opengl_raymarch_context` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn ale_opengl_raymarch_render(opengl_raymarch_context: &OpenGLRaymarchContext) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opengl_raymarch_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rbo` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | let (fbo, rbo, texture) = create_framebuffer_texcolor_rbodepth(screen_size.x, screen_size.y).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_sun_solid_angle` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let k_sun_solid_angle = k_pi * k_sun_angular_radius * k_sun_angular_radius; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_sun_solid_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_length_unit_in_meters` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let k_length_unit_in_meters = 1000.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_length_unit_in_meters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_bottom_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let k_bottom_radius = 6360000.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_bottom_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_top_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let k_top_radius = 6420000.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_top_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_mie_phase_function_g` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let k_mie_phase_function_g = 0.8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_mie_phase_function_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_sun_zenith_angle` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let max_sun_zenith_angle = if use_half_precision { 102.0 } else { 180.0 } / 180.0 * k_pi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_sun_zenith_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rayleigh_layer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let rayleigh_layer = DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rayleigh_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mie_layer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mie_layer = DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mie_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:148:7 [INFO] [stdout] | [INFO] [stdout] 148 | let mut draw_size = BUFFER_SIZE as u32; [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] --> crates/ale_opengl/src/debug/line.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | let mut draw_size = BUFFER_SIZE as u32; [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] --> crates/ale_opengl/src/old/sky.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut use_half_precision = true; [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] --> crates/ale_opengl/src/wire.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | for (mut transform, mesh) in meshes { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> crates/ale_opengl/src/text.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { ale_opengl_texture_new(&font_texture.texture).unwrap() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mesh` [INFO] [stdout] --> crates/ale_opengl/src/mesh.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) mesh: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `raymarch_shader` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | raymarch_shader: OpenGLShader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `plane_mesh` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | plane_mesh: OpenGLMesh, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shader` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) shader: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `text_2d_shader` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) text_2d_shader: OpenGLShader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `glyph_texture` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) glyph_texture: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line_draw_size` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | line_draw_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `point_draw_size` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | point_draw_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AtmosphereParameters` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct AtmosphereParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BrunetonSky` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct BrunetonSky {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new() -> BrunetonSky { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_texture` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn create_texture() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DensityProfileLayer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DensityProfile` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct DensityProfile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Model` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn clamp(val: f64, min: f64, max: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_cosine` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:196:4 [INFO] [stdout] | [INFO] [stdout] 196 | fn clamp_cosine(mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_distance` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn clamp_distance(d: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn clamp_radius(atmosphere: &AtmosphereParameters, r: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_sqrt` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn safe_sqrt(a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exp` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn exp(a: Vector3) -> Vector3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn distance_to_top_atmosphere_boundary(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_to_bottom_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:223:4 [INFO] [stdout] | [INFO] [stdout] 223 | fn distance_to_bottom_atmosphere_boundary(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ray_intersect_ground` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn ray_intersect_ground(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_layer_density` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_layer_density(layer: &DensityProfileLayer, altitude: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_profile_density` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn get_profile_density(profile: &DensityProfile, altitude: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_optical_length_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn compute_optical_length_to_top_atmosphere_boundary( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_transmittance_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:281:4 [INFO] [stdout] | [INFO] [stdout] 281 | fn compute_transmittance_to_top_atmosphere_boundary( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_texture_coord_from_unit_range` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn get_texture_coord_from_unit_range(x: f64, texture_size: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_unit_range_from_texture_coord` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn get_unit_range_from_texture_coord(u: f64, texture_size: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:60:85 [INFO] [stdout] | [INFO] [stdout] 60 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:65:85 [INFO] [stdout] | [INFO] [stdout] 65 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:70:85 [INFO] [stdout] | [INFO] [stdout] 70 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_opengl v0.1.0 (/opt/rustwide/workdir/crates/ale_opengl) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:75:85 [INFO] [stdout] | [INFO] [stdout] 75 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ale_opengl_fxaa v0.1.0 (/opt/rustwide/workdir/crates/ale_opengl_fxaa) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:81:64 [INFO] [stdout] | [INFO] [stdout] 81 | gl::GetUniformLocation(shader, CString::new(name).unwrap().as_ptr()), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderResources` [INFO] [stdout] --> crates/ale_app/src/lib.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_opengl::old::opengl::{RenderResources, SimpleRenderTasks}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `RwLock` [INFO] [stdout] --> crates/ale_app/src/window.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_tasks` [INFO] [stdout] --> crates/ale_app/src/lib.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut render_tasks = SimpleRenderTasks::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_tasks` [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] --> crates/ale_app/src/lib.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut render_tasks = SimpleRenderTasks::new(); [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConsoleEvent`, `ale_console_print_output` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | ale_console_print_output, ale_console_variable_event_handle, ale_console_variable_register, Console, ConsoleEvent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLMeshContext`, `ale_opengl_mesh_context_new` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_opengl::mesh::{ale_opengl_mesh_context_new, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLShaderContext`, `ale_opengl_shader_context_new` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_opengl::shader::{ale_opengl_shader_context_new, ale_opengl_shader_new, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Variable` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | use ale_variable::{to_variable, ToVariable, Variable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point3` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:4:74 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{ale_quaternion_look_at, ortho, perspective, Deg, Matrix4, Point3, Quaternion, Vector3}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hash` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | Variable::F32_1(n, v) => v.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | Variable::F32_3(n, v) => format!("({}, {}, {})", v.x, v.y, v.z), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | Variable::F32_4(n, v) => format!("({}, {}, {}, {})", v.x, v.y, v.z, v.w), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> crates/ale_variable/src/lib.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | Variable::Bool(n, v) => v.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_input::Input::Key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_input::Input::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector3`, `Vector4` [INFO] [stdout] --> crates/ale_console/src/lib.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_math::{Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> crates/ale_console/src/lib.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> crates/ale_console/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> crates/ale_console/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::TryRecvError::Empty` [INFO] [stdout] --> crates/ale_console/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::mpsc::TryRecvError::Empty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `approx` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:218:7 [INFO] [stdout] | [INFO] [stdout] 218 | use approx::relative_eq; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `approx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `approx` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:258:7 [INFO] [stdout] | [INFO] [stdout] 258 | use approx::relative_eq; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `approx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `relative_eq` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:240:5 [INFO] [stdout] | [INFO] [stdout] 240 | relative_eq!(vertices[i], vertices_expected[i]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `relative_eq` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:246:5 [INFO] [stdout] | [INFO] [stdout] 246 | relative_eq!(uvs[i], uvs_expected[i]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `relative_eq` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 252 | relative_eq!(normals[i], normals_expected[i]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `relative_eq` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | relative_eq!(vertices[i], vertices_data[i]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `relative_eq` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:283:5 [INFO] [stdout] | [INFO] [stdout] 283 | relative_eq!(uvs[i], uvs_data[i]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `relative_eq` [INFO] [stdout] --> crates/ale_buffer/src/lib.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 286 | relative_eq!(normals[i], normals_data[i]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `origin_point` [INFO] [stdout] --> crates/ale_math/src/rect.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | origin_point: OriginPoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Rect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> crates/ale_math/src/rect.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `recalculate_matrices` [INFO] [stdout] --> crates/ale_camera/src/lib.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | fn recalculate_matrices(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scancode` [INFO] [stdout] --> crates/ale_console/src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | Input::Key(key, scancode, action, modifier) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scancode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifier` [INFO] [stdout] --> crates/ale_console/src/lib.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | Input::Key(key, scancode, action, modifier) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | Variable::F32_1(key, v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:174:25 [INFO] [stdout] | [INFO] [stdout] 174 | Variable::F32_3(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | Variable::F32_4(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ale_console/src/lib.rs:193:24 [INFO] [stdout] | [INFO] [stdout] 193 | Variable::Bool(key, ref mut v) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> crates/ale_console/src/lib.rs:223:11 [INFO] [stdout] | [INFO] [stdout] 223 | Err(err) => return Err(ArgumentsFailToParse(words[0].to_owned(), words[i].to_owned())), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::Matrix4` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decomposed`, `One` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{Decomposed, One, Quaternion}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::Gltf` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gltf::Gltf; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mesh::OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::OpenGLMeshContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shader::OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shader::OpenGLShaderContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_opengl_text_render` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::text::{ale_opengl_text_render, ale_opengl_text_render_layout, OpenGLTextFontContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::texture::OpenGLTextureContext` [INFO] [stdout] --> crates/ale_opengl/src/console.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::texture::OpenGLTextureContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_math::{Matrix, Vector3, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_variable::Variable` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_variable::Variable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GLsizeiptr` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use gl::types::{GLfloat, GLsizeiptr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_font::Font` [INFO] [stdout] --> crates/ale_opengl/src/old/opengl.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ale_font::Font; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:264:15 [INFO] [stdout] | [INFO] [stdout] 264 | let d_i = (i as f64 * dx); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 264 - let d_i = (i as f64 * dx); [INFO] [stdout] 264 + let d_i = i as f64 * dx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::old::cubemap::Cubemap` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::old::cubemap::Cubemap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shader` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use ale_shader::{ale_shader_new, Shader}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_texture_load` [INFO] [stdout] --> crates/ale_opengl/src/pbr.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use ale_texture::{ale_texture_load, Texture}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLTexture`, `ale_opengl_texture_new` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::texture::{ale_opengl_texture_new, OpenGLTexture, OpenGLTextureId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mesh` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_mesh::{ale_mesh_plane_new, Mesh}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{ale_opengl_mesh_new, OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clamp_vec3` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ale_math::{clamp_vec3, InnerSpace}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_texture` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:3:74 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::raw::{bind_framebuffer, create_framebuffer_texcolor_rbodepth, create_texture, OpenGLFramebufferId}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::shader::{ale_opengl_shader_activate, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_texture::Texture` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TexturePixel`, `ale_texture_new` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use ale_texture::{ale_texture_new, TexturePixel}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | let right_step = (camera.right_dir() / x as f32 * aspect_ratio); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - let right_step = (camera.right_dir() / x as f32 * aspect_ratio); [INFO] [stdout] 40 + let right_step = camera.right_dir() / x as f32 * aspect_ratio; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vector3`, `Vector4` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::{Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{ale_opengl_mesh_new, OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLShaderContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shader::{ale_opengl_shader_new, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLTextureContext` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:3:88 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::texture::{ale_opengl_texture_new, ale_opengl_texture_render, OpenGLTexture, OpenGLTextureContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_opengl/src/text.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenGLMeshContext` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mesh::{OpenGLMesh, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLShaderContext`, `OpenGLShaderId` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::shader::{OpenGLShader, OpenGLShaderContext, OpenGLShaderId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Camera` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_camera::{Camera, CameraRenderInfo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `ale_font_layout` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_font::{ale_font_layout, Font, FontTextureKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector3` [INFO] [stdout] --> crates/ale_opengl/src/wire.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::{Array, Matrix, Transform, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConsoleEvent`, `ale_console_print_output` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | ale_console_print_output, ale_console_variable_event_handle, ale_console_variable_register, Console, ConsoleEvent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLMeshContext`, `ale_opengl_mesh_context_new` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_opengl::mesh::{ale_opengl_mesh_context_new, OpenGLMeshContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenGLShaderContext`, `ale_opengl_shader_context_new` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_opengl::shader::{ale_opengl_shader_context_new, ale_opengl_shader_new, OpenGLShader, OpenGLShaderContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Variable` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | use ale_variable::{to_variable, ToVariable, Variable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> crates/ale_opengl_fxaa/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | for iter in 0..5 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_pos` is never read [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | curr_pos = ale_ray_position_get(&ray, min_dist); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_raymarch/src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | let mut debug = vec![]; [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: unused variable: `matrix` [INFO] [stdout] --> crates/ale_gltf/src/lib.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | gltf::scene::Transform::Matrix { matrix } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `matrix: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::transform::AleTransform` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::transform::AleTransform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::iter::ale_mesh_triangle_iter_new` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::iter::ale_mesh_triangle_iter_new; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::num_traits::clamp` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ale_math::num_traits::clamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_bounding_box_size` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use ale_math::{ale_bounding_box_closest_point, ale_bounding_box_size, dot, InnerSpace, MetricSpace, Transform, Zero}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec1` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use ale_math::{vec1, Vector3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParallelBridge`, `ParallelIterator` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use rayon::prelude::{ParallelBridge, ParallelIterator}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 238 | let size = (max - min); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - let size = (max - min); [INFO] [stdout] 238 + let size = max - min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `approx::relative_eq` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:273:7 [INFO] [stdout] | [INFO] [stdout] 273 | use approx::relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `approx::relative_eq` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:338:7 [INFO] [stdout] | [INFO] [stdout] 338 | use approx::relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `approx::relative_eq` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:411:7 [INFO] [stdout] | [INFO] [stdout] 411 | use approx::relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ale_math::rect::Rect` [INFO] [stdout] --> crates/ale_font/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ale_math::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector` [INFO] [stdout] --> crates/ale_font/src/lib.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use rusttype::{point, vector, Scale}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> crates/ale_font/src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/ale_font/src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | font_file.read_to_end(&mut font_data); [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RigidBody` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | BodyStatus, IntegrationParameters, JointSet, RigidBody, RigidBodyBuilder, RigidBodyHandle, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SharedShape` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | use rapier3d::geometry::{ColliderBuilder, ColliderHandle, SharedShape}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Euler`, `InnerSpace` [INFO] [stdout] --> crates/ale_physics/src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use ale_math::{Euler, InnerSpace}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ale_buffer` due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `from_data` found for struct `Texture` in the current scope [INFO] [stdout] --> crates/ale_texture/src/lib.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Texture { [INFO] [stdout] | ------------------ function or associated item `from_data` not found for this [INFO] [stdout] ... [INFO] [stdout] 145 | let _t = Texture::from_data(TexturePixel::RgbF32(k), 2, 3, 3); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_data` found for struct `Texture` in the current scope [INFO] [stdout] --> crates/ale_texture/src/lib.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Texture { [INFO] [stdout] | ------------------ function or associated item `from_data` not found for this [INFO] [stdout] ... [INFO] [stdout] 151 | let t = Texture::from_data(TexturePixel::RgbF32(k), 3, 2, 3); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner_start_time` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let inner_start_time = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inner_start_time` [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] --> crates/ale_mesh/src/sdf.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | let mut det = a00 * a11 - a01 * a01; [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] --> crates/ale_mesh/src/sdf.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let mut tmp0; [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] --> crates/ale_mesh/src/sdf.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut tmp1; [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] --> crates/ale_mesh/src/sdf.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut numer; [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] --> crates/ale_mesh/src/sdf.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut denom; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTEX` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const VERTEX: &str = "position"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NORMAL` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const NORMAL: &str = "normal"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UV` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const UV: &str = "uv"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BARYCENTRIC` [INFO] [stdout] --> crates/ale_mesh/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const BARYCENTRIC: &str = "barycentric"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot2` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn dot2(a: Vector3) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cross` [INFO] [stdout] --> crates/ale_mesh/src/sdf.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn cross(a: Vector3, b: Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> crates/ale_opengl/src/wire.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use ale_math::{Array, Matrix, Transform, Vector3}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/ale_opengl/src/old/opengl.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opengl_raymarch_context` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn ale_opengl_raymarch_render(opengl_raymarch_context: &OpenGLRaymarchContext) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opengl_raymarch_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rbo` [INFO] [stdout] --> crates/ale_opengl/src/render_frame.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | let (fbo, rbo, texture) = create_framebuffer_texcolor_rbodepth(screen_size.x, screen_size.y).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | let (r, g, b, a) = color.get_rgba(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:310:7 [INFO] [stdout] | [INFO] [stdout] 310 | let r = 10.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_sun_solid_angle` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let k_sun_solid_angle = k_pi * k_sun_angular_radius * k_sun_angular_radius; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_sun_solid_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_length_unit_in_meters` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let k_length_unit_in_meters = 1000.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_length_unit_in_meters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_bottom_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let k_bottom_radius = 6360000.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_bottom_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_top_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let k_top_radius = 6420000.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_top_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_mie_phase_function_g` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let k_mie_phase_function_g = 0.8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k_mie_phase_function_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_sun_zenith_angle` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let max_sun_zenith_angle = if use_half_precision { 102.0 } else { 180.0 } / 180.0 * k_pi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_sun_zenith_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rayleigh_layer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let rayleigh_layer = DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rayleigh_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mie_layer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mie_layer = DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mie_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:148:7 [INFO] [stdout] | [INFO] [stdout] 148 | let mut draw_size = BUFFER_SIZE as u32; [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] --> crates/ale_opengl/src/debug/line.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | let mut draw_size = BUFFER_SIZE as u32; [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] --> crates/ale_opengl/src/old/sky.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut use_half_precision = true; [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] --> crates/ale_opengl/src/wire.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | for (mut transform, mesh) in meshes { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> crates/ale_opengl/src/text.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { ale_opengl_texture_new(&font_texture.texture).unwrap() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mesh` [INFO] [stdout] --> crates/ale_opengl/src/mesh.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) mesh: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `raymarch_shader` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | raymarch_shader: OpenGLShader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `plane_mesh` [INFO] [stdout] --> crates/ale_opengl/src/raymarch.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | plane_mesh: OpenGLMesh, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shader` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) shader: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `text_2d_shader` [INFO] [stdout] --> crates/ale_opengl/src/shader.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) text_2d_shader: OpenGLShader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `glyph_texture` [INFO] [stdout] --> crates/ale_opengl/src/texture.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) glyph_texture: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line_draw_size` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | line_draw_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `point_draw_size` [INFO] [stdout] --> crates/ale_opengl/src/debug/line.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | point_draw_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AtmosphereParameters` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct AtmosphereParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BrunetonSky` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct BrunetonSky {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new() -> BrunetonSky { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_texture` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn create_texture() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DensityProfileLayer` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct DensityProfileLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DensityProfile` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct DensityProfile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Model` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn clamp(val: f64, min: f64, max: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_cosine` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:196:4 [INFO] [stdout] | [INFO] [stdout] 196 | fn clamp_cosine(mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_distance` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn clamp_distance(d: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp_radius` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn clamp_radius(atmosphere: &AtmosphereParameters, r: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_sqrt` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn safe_sqrt(a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exp` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn exp(a: Vector3) -> Vector3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn distance_to_top_atmosphere_boundary(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_to_bottom_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:223:4 [INFO] [stdout] | [INFO] [stdout] 223 | fn distance_to_bottom_atmosphere_boundary(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ray_intersect_ground` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn ray_intersect_ground(atmosphere: &AtmosphereParameters, r: f64, mu: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_layer_density` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn get_layer_density(layer: &DensityProfileLayer, altitude: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_profile_density` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn get_profile_density(profile: &DensityProfile, altitude: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_optical_length_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn compute_optical_length_to_top_atmosphere_boundary( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_transmittance_to_top_atmosphere_boundary` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:281:4 [INFO] [stdout] | [INFO] [stdout] 281 | fn compute_transmittance_to_top_atmosphere_boundary( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_unit_range_from_texture_coord` [INFO] [stdout] --> crates/ale_opengl/src/old/sky.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn get_unit_range_from_texture_coord(u: f64, texture_size: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:60:85 [INFO] [stdout] | [INFO] [stdout] 60 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:65:85 [INFO] [stdout] | [INFO] [stdout] 65 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:70:85 [INFO] [stdout] | [INFO] [stdout] 70 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:75:85 [INFO] [stdout] | [INFO] [stdout] 75 | let location = gl::GetUniformLocation(shader, CString::new(name.clone()).unwrap().as_ptr() as *const i8); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> crates/ale_opengl/src/raw.rs:81:64 [INFO] [stdout] | [INFO] [stdout] 81 | gl::GetUniformLocation(shader, CString::new(name).unwrap().as_ptr()), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8178a907b8682ba916a5787d0bc5fc7edad16389025134c03ab9fd41c514a359", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8178a907b8682ba916a5787d0bc5fc7edad16389025134c03ab9fd41c514a359", kill_on_drop: false }` [INFO] [stdout] 8178a907b8682ba916a5787d0bc5fc7edad16389025134c03ab9fd41c514a359