[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 master#84e729a59f216cc64755788a470f165429a731f4 for pr-123737-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSarmadSA%2FOpenGL-1" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SarmadSA/OpenGL-1 on toolchain 84e729a59f216cc64755788a470f165429a731f4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "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-7-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded paste v0.1.18 [INFO] [stderr] Downloaded num-complex v0.2.4 [INFO] [stderr] Downloaded paste-impl v0.1.18 [INFO] [stderr] Downloaded proc-macro-hack v0.5.18 [INFO] [stderr] Downloaded simba v0.1.5 [INFO] [stderr] Downloaded nalgebra-glm v0.7.0 [INFO] [stderr] Downloaded tobj v2.0.2 [INFO] [stderr] Downloaded ndk-macro v0.1.0 [INFO] [stderr] Downloaded ndk-glue v0.1.1 [INFO] [stderr] Downloaded lzw v0.10.0 [INFO] [stderr] Downloaded bytemuck v1.3.1 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded smallvec v1.4.1 [INFO] [stderr] Downloaded rayon-core v1.7.1 [INFO] [stderr] Downloaded syn v1.0.36 [INFO] [stderr] Downloaded ndk-sys v0.1.1 [INFO] [stderr] Downloaded image v0.23.8 [INFO] [stderr] Downloaded nalgebra v0.21.1 [INFO] [stderr] Downloaded rayon v1.3.1 [INFO] [stderr] Downloaded jpeg-decoder v0.1.20 [INFO] [stderr] Downloaded rand_distr v0.2.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.20 [INFO] [stderr] Downloaded thiserror v1.0.20 [INFO] [stderr] Downloaded ndk v0.1.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.19 [INFO] [stderr] Downloaded gif v0.10.3 [INFO] [stderr] Downloaded num-rational v0.3.0 [INFO] [stderr] Downloaded tiff v0.5.0 [INFO] [stderr] Downloaded generic-array v0.13.2 [INFO] [stderr] Downloaded crossbeam-deque v0.7.3 [INFO] [stderr] Downloaded matrixmultiply v0.2.3 [INFO] [stderr] Downloaded typenum v1.12.0 [INFO] [stderr] Downloaded color_quant v1.0.1 [INFO] [stderr] Downloaded libm v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f1f356424dfe412a696046418c9f8dd3cd0294d183f668ac41e46170c76307f [INFO] running `Command { std: "docker" "start" "-a" "2f1f356424dfe412a696046418c9f8dd3cd0294d183f668ac41e46170c76307f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f1f356424dfe412a696046418c9f8dd3cd0294d183f668ac41e46170c76307f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f1f356424dfe412a696046418c9f8dd3cd0294d183f668ac41e46170c76307f", kill_on_drop: false }` [INFO] [stdout] 2f1f356424dfe412a696046418c9f8dd3cd0294d183f668ac41e46170c76307f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62881711cee319ac4a0dea4fdb47d6c67981070af09ef3d43249296a784ca594 [INFO] running `Command { std: "docker" "start" "-a" "62881711cee319ac4a0dea4fdb47d6c67981070af09ef3d43249296a784ca594", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Checking smallvec v1.4.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking bytemuck v1.3.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking wayland-sys v0.23.6 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Compiling num-rational 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] Checking deflate v0.8.6 [INFO] [stderr] Checking tiff v0.5.0 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking tobj v2.0.2 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking x11-dl v2.18.5 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking simba v0.1.5 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking nalgebra v0.21.1 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking wayland-commons v0.23.6 [INFO] [stderr] Checking image v0.23.8 [INFO] [stderr] Checking wayland-client v0.23.6 [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 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:97:7 [INFO] [stdout] | [INFO] [stdout] 97 | if(root.index_count > -1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if(root.index_count > -1){ [INFO] [stdout] 97 + if root.index_count > -1 { [INFO] [stdout] | [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] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:97:7 [INFO] [stdout] | [INFO] [stdout] 97 | if(root.index_count > -1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if(root.index_count > -1){ [INFO] [stdout] 97 + if root.index_count > -1 { [INFO] [stdout] | [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] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | for x in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | ... let mut heli_door_node = scene_graph::SceneNode::from_vao(heli_door_vao, heli_mesh.door.index_count);//Generate a scene node for th... [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: function `size_of` is never used [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn size_of() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `offset` is never used [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: methods `get_uniform_location` and `activate` are never used [INFO] [stdout] --> src/shader.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl Shader { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 28 | // Make sure the shader is active before calling this [INFO] [stdout] 29 | pub unsafe fn get_uniform_location(&self, name: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub unsafe fn activate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scale` is never read [INFO] [stdout] --> src/scene_graph.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SceneNode { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub scale: glm::Vec3, [INFO] [stdout] | ^^^^^ [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: unused variable: `x` [INFO] [stdout] --> src/main.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | for x in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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: 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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | ... let mut heli_door_node = scene_graph::SceneNode::from_vao(heli_door_vao, heli_mesh.door.index_count);//Generate a scene node for th... [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: function `size_of` is never used [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn size_of() -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `offset` is never used [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: methods `get_uniform_location` and `activate` are never used [INFO] [stdout] --> src/shader.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl Shader { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 28 | // Make sure the shader is active before calling this [INFO] [stdout] 29 | pub unsafe fn get_uniform_location(&self, name: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub unsafe fn activate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scale` is never read [INFO] [stdout] --> src/scene_graph.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SceneNode { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub scale: glm::Vec3, [INFO] [stdout] | ^^^^^ [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: 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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.83s [INFO] running `Command { std: "docker" "inspect" "62881711cee319ac4a0dea4fdb47d6c67981070af09ef3d43249296a784ca594", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62881711cee319ac4a0dea4fdb47d6c67981070af09ef3d43249296a784ca594", kill_on_drop: false }` [INFO] [stdout] 62881711cee319ac4a0dea4fdb47d6c67981070af09ef3d43249296a784ca594