[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#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSarmadSA%2FOpenGL-1" "/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/SarmadSA/OpenGL-1 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-1/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rayon-core v1.7.1 [INFO] [stderr] Downloaded syn v1.0.36 [INFO] [stderr] Downloaded rayon v1.3.1 [INFO] [stderr] Downloaded nalgebra v0.21.1 [INFO] [stderr] Downloaded ndk v0.1.1 [INFO] [stderr] Downloaded tobj v2.0.2 [INFO] [stderr] Downloaded ndk-sys v0.1.1 [INFO] [stderr] Downloaded ndk-macro v0.1.0 [INFO] [stderr] Downloaded ndk-glue v0.1.1 [INFO] [stderr] Downloaded nalgebra-glm v0.7.0 [INFO] [stderr] Downloaded bytemuck v1.3.1 [INFO] [stderr] Downloaded simba v0.1.5 [INFO] [stderr] Downloaded gl v0.14.0 [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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a2acbab4f9baa0d2cc93f781258b2351ff12560c4d92e3e3be030c8868cde8f [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" "2a2acbab4f9baa0d2cc93f781258b2351ff12560c4d92e3e3be030c8868cde8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a2acbab4f9baa0d2cc93f781258b2351ff12560c4d92e3e3be030c8868cde8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a2acbab4f9baa0d2cc93f781258b2351ff12560c4d92e3e3be030c8868cde8f", kill_on_drop: false }` [INFO] [stdout] 2a2acbab4f9baa0d2cc93f781258b2351ff12560c4d92e3e3be030c8868cde8f [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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34a92ca2beb33524570554b1ce3533630d73cd53b25cdab9d00593eef88a74d9 [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" "34a92ca2beb33524570554b1ce3533630d73cd53b25cdab9d00593eef88a74d9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Checking smallvec v1.4.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking bytemuck v1.3.1 [INFO] [stderr] Checking tobj v2.0.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking wayland-sys v0.23.6 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking tiff v0.5.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot_core v0.7.2 [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] Compiling wayland-scanner v0.23.6 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [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 crossbeam-deque v0.7.3 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking simba v0.1.5 [INFO] [stderr] Checking nalgebra v0.21.1 [INFO] [stderr] Compiling wayland-client v0.23.6 [INFO] [stderr] Compiling wayland-protocols v0.23.6 [INFO] [stderr] Checking wayland-commons v0.23.6 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking image v0.23.8 [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] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] [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] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] [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: 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: 26 warnings emitted [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: 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: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "34a92ca2beb33524570554b1ce3533630d73cd53b25cdab9d00593eef88a74d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34a92ca2beb33524570554b1ce3533630d73cd53b25cdab9d00593eef88a74d9", kill_on_drop: false }` [INFO] [stdout] 34a92ca2beb33524570554b1ce3533630d73cd53b25cdab9d00593eef88a74d9