[INFO] cloning repository https://github.com/RPG59/FGIN2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RPG59/FGIN2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FFGIN2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FFGIN2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] db8227f865e8d8617dc71a213b11638b69fe9adf [INFO] checking RPG59/FGIN2 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FFGIN2" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RPG59/FGIN2 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RPG59/FGIN2 [INFO] finished tweaking git repo https://github.com/RPG59/FGIN2 [INFO] tweaked toml for git repo https://github.com/RPG59/FGIN2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/RPG59/FGIN2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7923e71f51f2d471764fd363d3298728c6c5dc5afe1ff3f72d94172bdf8ebabd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7923e71f51f2d471764fd363d3298728c6c5dc5afe1ff3f72d94172bdf8ebabd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7923e71f51f2d471764fd363d3298728c6c5dc5afe1ff3f72d94172bdf8ebabd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7923e71f51f2d471764fd363d3298728c6c5dc5afe1ff3f72d94172bdf8ebabd", kill_on_drop: false }` [INFO] [stdout] 7923e71f51f2d471764fd363d3298728c6c5dc5afe1ff3f72d94172bdf8ebabd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d70da2a98fdfc260cb8305425b21b231d95fd4be753d7be61ad3e8b4a1a5c576 [INFO] running `Command { std: "docker" "start" "-a" "d70da2a98fdfc260cb8305425b21b231d95fd4be753d7be61ad3e8b4a1a5c576", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.69 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.69 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Checking futures v0.1.30 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.69 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.69 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.69 [INFO] [stderr] Checking js-sys v0.3.46 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking web-sys v0.3.46 [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking wasm-bindgen-test v0.2.50 [INFO] [stderr] Checking rust-webpack-template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `wasm_bindgen::JsCast` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen::JsCast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HtmlCanvasElement`, `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader` [INFO] [stdout] --> src/lib.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::{WebGlProgram, WebGl2RenderingContext, WebGlShader, HtmlCanvasElement}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader` [INFO] [stdout] --> src/core/mod.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use web_sys::{WebGlProgram, WebGl2RenderingContext, WebGlShader}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/core/EngineCore.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebGlProgram`, `WebGlShader`, `WebGlUniformLocation` [INFO] [stdout] --> src/core/EngineCore.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::{HtmlCanvasElement, WebGlProgram, WebGlShader, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/core/EngineCore.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::type_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core/EngineCore.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::real::Real` [INFO] [stdout] --> src/core/EngineCore.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use cgmath::num_traits::real::Real; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `default` should have an upper camel case name [INFO] [stdout] --> src/core/EngineCore.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | default = 0x01, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `transparent` should have an upper camel case name [INFO] [stdout] --> src/core/EngineCore.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | transparent = 0x02, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Transparent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix3`, `Quaternion` [INFO] [stdout] --> src/core/Camera.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use cgmath::{Matrix4, Quaternion, Vector3, Matrix3}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::perspective` [INFO] [stdout] --> src/core/Camera.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cgmath::perspective; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::std::fs::copy` [INFO] [stdout] --> src/core/Camera.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use wasm_bindgen::__rt::std::fs::copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4x4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type float4x4 = Matrix4; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4x4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3x3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type float3x3 = Matrix3; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type float4 = Vector4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type float3 = Vector3; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `qut` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type qut = Quaternion; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Qut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::Shader::Shader` [INFO] [stdout] --> src/core/Mesh.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::Shader::Shader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Matrix4` [INFO] [stdout] --> src/core/Mesh.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use cgmath::{Matrix4}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebGlUniformLocation` [INFO] [stdout] --> src/core/Shader.rs:1:66 [INFO] [stdout] | [INFO] [stdout] 1 | use web_sys::{WebGlShader, WebGlProgram, WebGl2RenderingContext, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core/Shader.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/core/Shader.rs:25:52 [INFO] [stdout] | [INFO] [stdout] 25 | let data = fs::read_to_string(path).expect(("ERROR: [get_shader_source]: ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::JsCast` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen::JsCast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HtmlCanvasElement`, `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader` [INFO] [stdout] --> src/lib.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::{WebGlProgram, WebGl2RenderingContext, WebGlShader, HtmlCanvasElement}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader` [INFO] [stdout] --> src/core/mod.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use web_sys::{WebGlProgram, WebGl2RenderingContext, WebGlShader}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/core/EngineCore.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebGlProgram`, `WebGlShader`, `WebGlUniformLocation` [INFO] [stdout] --> src/core/EngineCore.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::{HtmlCanvasElement, WebGlProgram, WebGlShader, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/core/EngineCore.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::type_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core/EngineCore.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::num_traits::real::Real` [INFO] [stdout] --> src/core/EngineCore.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use cgmath::num_traits::real::Real; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `default` should have an upper camel case name [INFO] [stdout] --> src/core/EngineCore.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | default = 0x01, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `transparent` should have an upper camel case name [INFO] [stdout] --> src/core/EngineCore.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | transparent = 0x02, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Transparent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix3`, `Quaternion` [INFO] [stdout] --> src/core/Camera.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use cgmath::{Matrix4, Quaternion, Vector3, Matrix3}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::perspective` [INFO] [stdout] --> src/core/Camera.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cgmath::perspective; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::std::fs::copy` [INFO] [stdout] --> src/core/Camera.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use wasm_bindgen::__rt::std::fs::copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4x4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type float4x4 = Matrix4; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4x4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3x3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type float3x3 = Matrix3; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type float4 = Vector4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type float3 = Vector3; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `qut` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type qut = Quaternion; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Qut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::Shader::Shader` [INFO] [stdout] --> src/core/Mesh.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::Shader::Shader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Matrix4` [INFO] [stdout] --> src/core/Mesh.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use cgmath::{Matrix4}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebGlUniformLocation` [INFO] [stdout] --> src/core/Shader.rs:1:66 [INFO] [stdout] | [INFO] [stdout] 1 | use web_sys::{WebGlShader, WebGlProgram, WebGl2RenderingContext, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core/Shader.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/core/Shader.rs:25:52 [INFO] [stdout] | [INFO] [stdout] 25 | let data = fs::read_to_string(path).expect(("ERROR: [get_shader_source]: ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/core/Camera.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let foo = float3x3::from(self.rotation); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/core/Mesh.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(gl: &GL, vertices: &[f32], indices: &[u32], objectType: u8) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/core/IndexBuffer.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(gl: &GL, data: &[u32], usage: u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usage` [INFO] [stdout] --> src/core/IndexBuffer.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(gl: &GL, data: &[u32], usage: u32) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_usage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/core/IndexBuffer.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | fn set_data(&self, data: &[u32], usage: u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usage` [INFO] [stdout] --> src/core/IndexBuffer.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | fn set_data(&self, data: &[u32], usage: u32) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_usage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log` [INFO] [stdout] --> src/core/Shader.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let log = gl.get_shader_info_log(&shader).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut camera = Camera::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: variant is never constructed: `transparent` [INFO] [stdout] --> src/core/EngineCore.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | transparent = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/core/EngineCore.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/core/EngineCore.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/core/EngineCore.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation` [INFO] [stdout] --> src/core/Camera.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation: qut, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `translation` [INFO] [stdout] --> src/core/Camera.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | translation: float3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `vertical_fov_rad` [INFO] [stdout] --> src/core/Camera.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | vertical_fov_rad: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `aspect_ratio` [INFO] [stdout] --> src/core/Camera.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | aspect_ratio: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `near_z_clip` [INFO] [stdout] --> src/core/Camera.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | near_z_clip: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `far_z_clip` [INFO] [stdout] --> src/core/Camera.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | far_z_clip: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/core/Camera.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setPerspectiveMatrix` [INFO] [stdout] --> src/core/Camera.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn setPerspectiveMatrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_proj_matrix` [INFO] [stdout] --> src/core/Camera.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn update_proj_matrix(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `float3x3` [INFO] [stdout] --> src/core/Types.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type float3x3 = Matrix3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `float4` [INFO] [stdout] --> src/core/Types.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub type float4 = Vector4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IndexBuffer` [INFO] [stdout] --> src/core/IndexBuffer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexBuffer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/IndexBuffer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(gl: &GL, data: &[u32], usage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bind` [INFO] [stdout] --> src/core/IndexBuffer.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unbind` [INFO] [stdout] --> src/core/IndexBuffer.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn unbind(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_data` [INFO] [stdout] --> src/core/IndexBuffer.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn set_data(&self, data: &[u32], usage: u32) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shader_source` [INFO] [stdout] --> src/core/Shader.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_shader_source(path: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `engineCore` should have a snake case name [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut engineCore = EngineCore::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `engine_core` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `EngineCore` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod EngineCore; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `engine_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Camera` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod Camera; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Types` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod Types; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Math` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod Math; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `math` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Mesh` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod Mesh; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `mesh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `VertexBuffer` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod VertexBuffer; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `vertex_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IndexBuffer` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod IndexBuffer; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `index_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Scene` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub mod Scene; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Shader` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod Shader; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Utils` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod Utils; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `utils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `glRef` should have a snake case name [INFO] [stdout] --> src/core/EngineCore.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let glRef = gl.clone(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `gl_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_defaultShader` should have a snake case name [INFO] [stdout] --> src/core/EngineCore.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn get_defaultShader(gl: &GL) -> Shader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_default_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationMatrix` should have a snake case name [INFO] [stdout] --> src/core/Camera.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let rotationMatrix = float3x3::from(self.rotation); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setPerspectiveMatrix` should have a snake case name [INFO] [stdout] --> src/core/Camera.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn setPerspectiveMatrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_perspective_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `objectType` should have a snake case name [INFO] [stdout] --> src/core/Mesh.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub objectType: u8, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `object_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `modelMatrix` should have a snake case name [INFO] [stdout] --> src/core/Mesh.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub modelMatrix: float4x4, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `model_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `objectType` should have a snake case name [INFO] [stdout] --> src/core/Mesh.rs:18:60 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(gl: &GL, vertices: &[f32], indices: &[u32], objectType: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `object_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `creteProgram` should have a snake case name [INFO] [stdout] --> src/core/Shader.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn creteProgram(gl: &GL, vs_shader: &WebGlShader, fs_shader: &WebGlShader) -> WebGlProgram { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `crete_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/core/Camera.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let foo = float3x3::from(self.rotation); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/core/Mesh.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(gl: &GL, vertices: &[f32], indices: &[u32], objectType: u8) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/core/IndexBuffer.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(gl: &GL, data: &[u32], usage: u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usage` [INFO] [stdout] --> src/core/IndexBuffer.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(gl: &GL, data: &[u32], usage: u32) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_usage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/core/IndexBuffer.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | fn set_data(&self, data: &[u32], usage: u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usage` [INFO] [stdout] --> src/core/IndexBuffer.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | fn set_data(&self, data: &[u32], usage: u32) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_usage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log` [INFO] [stdout] --> src/core/Shader.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let log = gl.get_shader_info_log(&shader).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut camera = Camera::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: variant is never constructed: `transparent` [INFO] [stdout] --> src/core/EngineCore.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | transparent = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/core/EngineCore.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/core/EngineCore.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/core/EngineCore.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation` [INFO] [stdout] --> src/core/Camera.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation: qut, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `translation` [INFO] [stdout] --> src/core/Camera.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | translation: float3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `vertical_fov_rad` [INFO] [stdout] --> src/core/Camera.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | vertical_fov_rad: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `aspect_ratio` [INFO] [stdout] --> src/core/Camera.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | aspect_ratio: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `near_z_clip` [INFO] [stdout] --> src/core/Camera.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | near_z_clip: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `far_z_clip` [INFO] [stdout] --> src/core/Camera.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | far_z_clip: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/core/Camera.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setPerspectiveMatrix` [INFO] [stdout] --> src/core/Camera.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn setPerspectiveMatrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_proj_matrix` [INFO] [stdout] --> src/core/Camera.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn update_proj_matrix(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `float3x3` [INFO] [stdout] --> src/core/Types.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type float3x3 = Matrix3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `float4` [INFO] [stdout] --> src/core/Types.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub type float4 = Vector4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IndexBuffer` [INFO] [stdout] --> src/core/IndexBuffer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexBuffer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/IndexBuffer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(gl: &GL, data: &[u32], usage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bind` [INFO] [stdout] --> src/core/IndexBuffer.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unbind` [INFO] [stdout] --> src/core/IndexBuffer.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn unbind(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_data` [INFO] [stdout] --> src/core/IndexBuffer.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn set_data(&self, data: &[u32], usage: u32) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shader_source` [INFO] [stdout] --> src/core/Shader.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_shader_source(path: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `engineCore` should have a snake case name [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut engineCore = EngineCore::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `engine_core` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `EngineCore` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod EngineCore; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `engine_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Camera` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod Camera; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Types` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod Types; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Math` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod Math; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `math` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Mesh` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod Mesh; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `mesh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `VertexBuffer` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod VertexBuffer; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `vertex_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IndexBuffer` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod IndexBuffer; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `index_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Scene` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub mod Scene; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Shader` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod Shader; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Utils` should have a snake case name [INFO] [stdout] --> src/core/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod Utils; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `utils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `glRef` should have a snake case name [INFO] [stdout] --> src/core/EngineCore.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let glRef = gl.clone(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `gl_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_defaultShader` should have a snake case name [INFO] [stdout] --> src/core/EngineCore.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn get_defaultShader(gl: &GL) -> Shader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_default_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationMatrix` should have a snake case name [INFO] [stdout] --> src/core/Camera.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let rotationMatrix = float3x3::from(self.rotation); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setPerspectiveMatrix` should have a snake case name [INFO] [stdout] --> src/core/Camera.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn setPerspectiveMatrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_perspective_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `objectType` should have a snake case name [INFO] [stdout] --> src/core/Mesh.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub objectType: u8, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `object_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `modelMatrix` should have a snake case name [INFO] [stdout] --> src/core/Mesh.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub modelMatrix: float4x4, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `model_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `objectType` should have a snake case name [INFO] [stdout] --> src/core/Mesh.rs:18:60 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(gl: &GL, vertices: &[f32], indices: &[u32], objectType: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `object_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `creteProgram` should have a snake case name [INFO] [stdout] --> src/core/Shader.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn creteProgram(gl: &GL, vs_shader: &WebGlShader, fs_shader: &WebGlShader) -> WebGlProgram { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `crete_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 00s [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d70da2a98fdfc260cb8305425b21b231d95fd4be753d7be61ad3e8b4a1a5c576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d70da2a98fdfc260cb8305425b21b231d95fd4be753d7be61ad3e8b4a1a5c576", kill_on_drop: false }` [INFO] [stdout] d70da2a98fdfc260cb8305425b21b231d95fd4be753d7be61ad3e8b4a1a5c576