[INFO] cloning repository https://github.com/SarmadSA/OpenGL-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SarmadSA/OpenGL-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSarmadSA%2FOpenGL-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSarmadSA%2FOpenGL-1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8032abf8e820959be629a578e4a4ba7e543f5f14 [INFO] checking SarmadSA/OpenGL-1 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSarmadSA%2FOpenGL-1" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SarmadSA/OpenGL-1 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SarmadSA/OpenGL-1 [INFO] finished tweaking git repo https://github.com/SarmadSA/OpenGL-1 [INFO] tweaked toml for git repo https://github.com/SarmadSA/OpenGL-1 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/SarmadSA/OpenGL-1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded paste-impl v0.1.18 [INFO] [stderr] Downloaded glutin_emscripten_sys v0.1.1 [INFO] [stderr] Downloaded glutin_egl_sys v0.1.4 [INFO] [stderr] Downloaded gl_generator v0.13.1 [INFO] [stderr] Downloaded cgl v0.3.2 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded ndk-macro v0.1.0 [INFO] [stderr] Downloaded glutin_glx_sys v0.1.6 [INFO] [stderr] Downloaded ndk-glue v0.1.1 [INFO] [stderr] Downloaded glutin_wgl_sys v0.1.4 [INFO] [stderr] Downloaded gl_generator v0.14.0 [INFO] [stderr] Downloaded image v0.23.8 [INFO] [stderr] Downloaded simba v0.1.5 [INFO] [stderr] Downloaded rayon v1.3.1 [INFO] [stderr] Downloaded glutin v0.24.1 [INFO] [stderr] Downloaded tobj v2.0.2 [INFO] [stderr] Downloaded ndk v0.1.1 [INFO] [stderr] Downloaded ndk-sys v0.1.1 [INFO] [stderr] Downloaded syn v1.0.36 [INFO] [stderr] Downloaded nalgebra v0.21.1 [INFO] [stderr] Downloaded khronos_api v3.1.0 [INFO] [stderr] Downloaded bytemuck v1.3.1 [INFO] [stderr] Downloaded glutin_gles2_sys v0.1.4 [INFO] [stderr] Downloaded nalgebra-glm v0.7.0 [INFO] [stderr] Downloaded paste v0.1.18 [INFO] [stderr] Downloaded rayon-core v1.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9017ac539f603f01cd6fe426e388b462d0028c7d44322d5c2cb6fc13b855e8e5 [INFO] running `Command { std: "docker" "start" "-a" "9017ac539f603f01cd6fe426e388b462d0028c7d44322d5c2cb6fc13b855e8e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9017ac539f603f01cd6fe426e388b462d0028c7d44322d5c2cb6fc13b855e8e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9017ac539f603f01cd6fe426e388b462d0028c7d44322d5c2cb6fc13b855e8e5", kill_on_drop: false }` [INFO] [stdout] 9017ac539f603f01cd6fe426e388b462d0028c7d44322d5c2cb6fc13b855e8e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4e3b908ff5f0f14a1670070a6963d1b872fd71ef604b4031d9612a08070f5cd [INFO] running `Command { std: "docker" "start" "-a" "a4e3b908ff5f0f14a1670070a6963d1b872fd71ef604b4031d9612a08070f5cd", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Checking smallvec v1.4.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking bytemuck v1.3.1 [INFO] [stderr] Checking tobj v2.0.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking tiff v0.5.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking rayon-core v1.7.1 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking wayland-commons v0.23.6 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking wayland-client v0.23.6 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking num-rational v0.2.4 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking simba v0.1.5 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking image v0.23.8 [INFO] [stderr] Checking nalgebra v0.21.1 [INFO] [stderr] Checking wayland-protocols v0.23.6 [INFO] [stderr] Checking smithay-client-toolkit v0.6.6 [INFO] [stderr] Checking winit v0.22.2 [INFO] [stderr] Checking glutin v0.24.1 [INFO] [stderr] Checking nalgebra-glm v0.7.0 [INFO] [stderr] Checking gloom-rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (3 fixes) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | / /** [INFO] [stdout] 126 | | * I have to first move the rotor to the origin, then apply the rotation, and then move it back to where it was. Movement to the orig... [INFO] [stdout] 127 | | * My problem was that I don’t know the function in rust that returns the invers of a point. So it is not rotating about the referenc... [INFO] [stdout] 128 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 129 | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ---------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | / /** [INFO] [stdout] 126 | | * I have to first move the rotor to the origin, then apply the rotation, and then move it back to where it was. Movement to the orig... [INFO] [stdout] 127 | | * My problem was that I don’t know the function in rust that returns the invers of a point. So it is not rotating about the referenc... [INFO] [stdout] 128 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 129 | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ---------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_uniform_location` [INFO] [stdout] --> src/shader.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub unsafe fn get_uniform_location(&self, name: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `activate` [INFO] [stdout] --> src/shader.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub unsafe fn activate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `size_of` [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn size_of() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `offset` [INFO] [stdout] --> src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn offset(n: u32) -> *const c_void { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:30:98 [INFO] [stdout] | [INFO] [stdout] 30 | gl::GetUniformLocation(self.program_id, CString::new(name).expect("CString::new failed").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: `#[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: variable `bufferID` should have a snake case name [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bufferID: u32 = 0; //Here the ID of the buffer (VBO) will be stored [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `buffer_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID2` should have a snake case name [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bufferID2: u32 = 0; //Soter the ID of the buffer [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID3` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut bufferID3: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID4` should have a snake case name [INFO] [stdout] --> src/main.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufferID4: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `translationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let translationMatrix: glm::Mat4 = glm::translation(&root.position); //This is the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `translation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let transposeTranslation: glm::Mat4 = glm::transpose(&translationMatrix); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let rotationX: glm::Mat4 = glm::rotation(root.rotation[0], &glm::vec3(root.reference_point[0],0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let rotationY: glm::Mat4 = glm::rotation(root.rotation[1], &glm::vec3(0.0,root.reference_point[1],0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationZ` should have a snake case name [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let rotationZ: glm::Mat4 = glm::rotation(root.rotation[2], &glm::vec3(0.0,0.0,root.reference_point[2])); //Rotate about the z-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let rotationMatrix: glm::Mat4 = rotationX * rotationY * rotationZ; //Calculate total rotation [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:392:21 [INFO] [stdout] | [INFO] [stdout] 392 | let transposeTranslation: glm::Mat4 = glm::transpose(&translation); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let rotationX: glm::Mat4 = glm::rotation(rot_x, &glm::vec3(1.0,0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:396:21 [INFO] [stdout] | [INFO] [stdout] 396 | let rotationY: glm::Mat4 = glm::rotation(rot_y, &glm::vec3(0.0,1.0,0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | let transposeRotationX: glm::Mat4 = glm::transpose(&rotationX); //Transpose rotationX matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | let transposeRotationY: glm::Mat4 = glm::transpose(&rotationY); //Transpose rotationY matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationCombo` should have a snake case name [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | ... let transformationCombo: glm::Mat4 = transposeRotationX * transposeRotationY * transposeTranslation * projection * identity; //Mul... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_combo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_uniform_location` [INFO] [stdout] --> src/shader.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub unsafe fn get_uniform_location(&self, name: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `activate` [INFO] [stdout] --> src/shader.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub unsafe fn activate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `size_of` [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn size_of() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `offset` [INFO] [stdout] --> src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn offset(n: u32) -> *const c_void { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:30:98 [INFO] [stdout] | [INFO] [stdout] 30 | gl::GetUniformLocation(self.program_id, CString::new(name).expect("CString::new failed").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: `#[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: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID` should have a snake case name [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bufferID: u32 = 0; //Here the ID of the buffer (VBO) will be stored [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `buffer_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID2` should have a snake case name [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bufferID2: u32 = 0; //Soter the ID of the buffer [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID3` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut bufferID3: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID4` should have a snake case name [INFO] [stdout] --> src/main.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufferID4: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `translationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let translationMatrix: glm::Mat4 = glm::translation(&root.position); //This is the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `translation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let transposeTranslation: glm::Mat4 = glm::transpose(&translationMatrix); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let rotationX: glm::Mat4 = glm::rotation(root.rotation[0], &glm::vec3(root.reference_point[0],0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let rotationY: glm::Mat4 = glm::rotation(root.rotation[1], &glm::vec3(0.0,root.reference_point[1],0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationZ` should have a snake case name [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let rotationZ: glm::Mat4 = glm::rotation(root.rotation[2], &glm::vec3(0.0,0.0,root.reference_point[2])); //Rotate about the z-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let rotationMatrix: glm::Mat4 = rotationX * rotationY * rotationZ; //Calculate total rotation [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:392:21 [INFO] [stdout] | [INFO] [stdout] 392 | let transposeTranslation: glm::Mat4 = glm::transpose(&translation); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let rotationX: glm::Mat4 = glm::rotation(rot_x, &glm::vec3(1.0,0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:396:21 [INFO] [stdout] | [INFO] [stdout] 396 | let rotationY: glm::Mat4 = glm::rotation(rot_y, &glm::vec3(0.0,1.0,0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | let transposeRotationX: glm::Mat4 = glm::transpose(&rotationX); //Transpose rotationX matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | let transposeRotationY: glm::Mat4 = glm::transpose(&rotationY); //Transpose rotationY matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationCombo` should have a snake case name [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | ... let transformationCombo: glm::Mat4 = transposeRotationX * transposeRotationY * transposeTranslation * projection * identity; //Mul... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_combo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.43s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking gloom-rs v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | / /** [INFO] [stdout] 126 | | * I have to first move the rotor to the origin, then apply the rotation, and then move it back to where it was. Movement to the orig... [INFO] [stdout] 127 | | * My problem was that I don’t know the function in rust that returns the invers of a point. So it is not rotating about the referenc... [INFO] [stdout] 128 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 129 | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ---------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | / /** [INFO] [stdout] 126 | | * I have to first move the rotor to the origin, then apply the rotation, and then move it back to where it was. Movement to the orig... [INFO] [stdout] 127 | | * My problem was that I don’t know the function in rust that returns the invers of a point. So it is not rotating about the referenc... [INFO] [stdout] 128 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 129 | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ---------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_uniform_location` [INFO] [stdout] --> src/shader.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub unsafe fn get_uniform_location(&self, name: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `activate` [INFO] [stdout] --> src/shader.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub unsafe fn activate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `size_of` [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn size_of() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `offset` [INFO] [stdout] --> src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn offset(n: u32) -> *const c_void { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:30:98 [INFO] [stdout] | [INFO] [stdout] 30 | gl::GetUniformLocation(self.program_id, CString::new(name).expect("CString::new failed").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: `#[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: variable `bufferID` should have a snake case name [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bufferID: u32 = 0; //Here the ID of the buffer (VBO) will be stored [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `buffer_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID2` should have a snake case name [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bufferID2: u32 = 0; //Soter the ID of the buffer [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID3` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut bufferID3: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID4` should have a snake case name [INFO] [stdout] --> src/main.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufferID4: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `translationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let translationMatrix: glm::Mat4 = glm::translation(&root.position); //This is the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `translation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let transposeTranslation: glm::Mat4 = glm::transpose(&translationMatrix); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let rotationX: glm::Mat4 = glm::rotation(root.rotation[0], &glm::vec3(root.reference_point[0],0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let rotationY: glm::Mat4 = glm::rotation(root.rotation[1], &glm::vec3(0.0,root.reference_point[1],0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationZ` should have a snake case name [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let rotationZ: glm::Mat4 = glm::rotation(root.rotation[2], &glm::vec3(0.0,0.0,root.reference_point[2])); //Rotate about the z-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let rotationMatrix: glm::Mat4 = rotationX * rotationY * rotationZ; //Calculate total rotation [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:392:21 [INFO] [stdout] | [INFO] [stdout] 392 | let transposeTranslation: glm::Mat4 = glm::transpose(&translation); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let rotationX: glm::Mat4 = glm::rotation(rot_x, &glm::vec3(1.0,0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:396:21 [INFO] [stdout] | [INFO] [stdout] 396 | let rotationY: glm::Mat4 = glm::rotation(rot_y, &glm::vec3(0.0,1.0,0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | let transposeRotationX: glm::Mat4 = glm::transpose(&rotationX); //Transpose rotationX matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | let transposeRotationY: glm::Mat4 = glm::transpose(&rotationY); //Transpose rotationY matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationCombo` should have a snake case name [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | ... let transformationCombo: glm::Mat4 = transposeRotationX * transposeRotationY * transposeTranslation * projection * identity; //Mul... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_combo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_uniform_location` [INFO] [stdout] --> src/shader.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub unsafe fn get_uniform_location(&self, name: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `activate` [INFO] [stdout] --> src/shader.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub unsafe fn activate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `size_of` [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn size_of() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `offset` [INFO] [stdout] --> src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn offset(n: u32) -> *const c_void { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:30:98 [INFO] [stdout] | [INFO] [stdout] 30 | gl::GetUniformLocation(self.program_id, CString::new(name).expect("CString::new failed").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: `#[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: variable `bufferID` should have a snake case name [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bufferID: u32 = 0; //Here the ID of the buffer (VBO) will be stored [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `buffer_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID2` should have a snake case name [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bufferID2: u32 = 0; //Soter the ID of the buffer [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID3` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut bufferID3: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufferID4` should have a snake case name [INFO] [stdout] --> src/main.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufferID4: u32 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `buffer_id4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `translationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let translationMatrix: glm::Mat4 = glm::translation(&root.position); //This is the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `translation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let transposeTranslation: glm::Mat4 = glm::transpose(&translationMatrix); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let rotationX: glm::Mat4 = glm::rotation(root.rotation[0], &glm::vec3(root.reference_point[0],0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let rotationY: glm::Mat4 = glm::rotation(root.rotation[1], &glm::vec3(0.0,root.reference_point[1],0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationZ` should have a snake case name [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let rotationZ: glm::Mat4 = glm::rotation(root.rotation[2], &glm::vec3(0.0,0.0,root.reference_point[2])); //Rotate about the z-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let rotationMatrix: glm::Mat4 = rotationX * rotationY * rotationZ; //Calculate total rotation [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationMatrix` should have a snake case name [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let transformationMatrix: glm::Mat4 = rotationMatrix * transposeTranslation; //Calculate total transformation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeTranslation` should have a snake case name [INFO] [stdout] --> src/main.rs:392:21 [INFO] [stdout] | [INFO] [stdout] 392 | let transposeTranslation: glm::Mat4 = glm::transpose(&translation); //Transpose the translation matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let rotationX: glm::Mat4 = glm::rotation(rot_x, &glm::vec3(1.0,0.0,0.0)); //Rotate about the x-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:396:21 [INFO] [stdout] | [INFO] [stdout] 396 | let rotationY: glm::Mat4 = glm::rotation(rot_y, &glm::vec3(0.0,1.0,0.0)); //Rotate about the y-axis [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationX` should have a snake case name [INFO] [stdout] --> src/main.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | let transposeRotationX: glm::Mat4 = glm::transpose(&rotationX); //Transpose rotationX matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transposeRotationY` should have a snake case name [INFO] [stdout] --> src/main.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | let transposeRotationY: glm::Mat4 = glm::transpose(&rotationY); //Transpose rotationY matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transpose_rotation_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `transformationCombo` should have a snake case name [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | ... let transformationCombo: glm::Mat4 = transposeRotationX * transposeRotationY * transposeTranslation * projection * identity; //Mul... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `transformation_combo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "a4e3b908ff5f0f14a1670070a6963d1b872fd71ef604b4031d9612a08070f5cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4e3b908ff5f0f14a1670070a6963d1b872fd71ef604b4031d9612a08070f5cd", kill_on_drop: false }` [INFO] [stdout] a4e3b908ff5f0f14a1670070a6963d1b872fd71ef604b4031d9612a08070f5cd