[INFO] cloning repository https://github.com/Tobyeus/Learn-OpenGL-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tobyeus/Learn-OpenGL-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTobyeus%2FLearn-OpenGL-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTobyeus%2FLearn-OpenGL-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51e91211580caf16c2c0785aa227e683d2bfa567 [INFO] checking Tobyeus/Learn-OpenGL-Rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTobyeus%2FLearn-OpenGL-Rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tobyeus/Learn-OpenGL-Rust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tobyeus/Learn-OpenGL-Rust [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/Tobyeus/Learn-OpenGL-Rust [INFO] tweaked toml for git repo https://github.com/Tobyeus/Learn-OpenGL-Rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Tobyeus/Learn-OpenGL-Rust 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tobj v0.1.12 [INFO] [stderr] Downloaded png v0.12.0 [INFO] [stderr] Downloaded gl v0.10.0 [INFO] [stderr] Downloaded image v0.19.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c31aaf166058bb3a9dbaa074162eee1233461dbf486a0292b6b4ccc1ca49724 [INFO] running `Command { std: "docker" "start" "-a" "6c31aaf166058bb3a9dbaa074162eee1233461dbf486a0292b6b4ccc1ca49724", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c31aaf166058bb3a9dbaa074162eee1233461dbf486a0292b6b4ccc1ca49724", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c31aaf166058bb3a9dbaa074162eee1233461dbf486a0292b6b4ccc1ca49724", kill_on_drop: false }` [INFO] [stdout] 6c31aaf166058bb3a9dbaa074162eee1233461dbf486a0292b6b4ccc1ca49724 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13837d09d50ded926fa66af2fcaa7a30da533af7cb6fd4ca28f65fed3dd9655d [INFO] running `Command { std: "docker" "start" "-a" "13837d09d50ded926fa66af2fcaa7a30da533af7cb6fd4ca28f65fed3dd9655d", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling crossbeam-utils v0.8.17 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking crossbeam-epoch v0.9.16 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking crossbeam-deque v0.8.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking rayon-core v1.12.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking approx v0.1.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking tobj v0.1.12 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking glfw v0.54.0 [INFO] [stderr] Checking learn_opengl_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/mesh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/model.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/model.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tobj` is imported redundantly [INFO] [stdout] --> src/model.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tobj; [INFO] [stdout] | ^^^^ the item `tobj` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/mesh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/model.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/model.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tobj` is imported redundantly [INFO] [stdout] --> src/model.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tobj; [INFO] [stdout] | ^^^^ the item `tobj` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHADER_BASE_DIR` is never used [INFO] [stdout] --> src/shader.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const SHADER_BASE_DIR: &str = "./src/shaders/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:88:97 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value as i32); } [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:92:97 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:96:97 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { gl::Uniform1f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:100:97 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector_x, vector_y, vector_z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:104:97 [INFO] [stdout] | [INFO] [stdout] 104 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector.x, vector.y, vector.z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:108:104 [INFO] [stdout] | [INFO] [stdout] 108 | ...v(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), 1, gl::FALSE, matrix.as_ptr()); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHADER_BASE_DIR` is never used [INFO] [stdout] --> src/shader.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const SHADER_BASE_DIR: &str = "./src/shaders/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:88:97 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value as i32); } [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:92:97 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:96:97 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { gl::Uniform1f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:100:97 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector_x, vector_y, vector_z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:104:97 [INFO] [stdout] | [INFO] [stdout] 104 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector.x, vector.y, vector.z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:108:104 [INFO] [stdout] | [INFO] [stdout] 108 | ...v(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), 1, gl::FALSE, matrix.as_ptr()); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | example_command.status(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = example_command.status(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/2_ambient_diffuse_specular.rs:274:11 [INFO] [stdout] | [INFO] [stdout] 274 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/4_phong_exercise_1.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | example_command.status(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = example_command.status(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/5_phong_material_light.rs:249:4 [INFO] [stdout] | [INFO] [stdout] 249 | fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{ffi::{c_void, CString}, ptr, mem, path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_at_mat` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let look_at_mat = Matrix4::look_at(camera_pos, camera_pos + camera_front, camera_up); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_at_mat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:214:109 [INFO] [stdout] | [INFO] [stdout] 214 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:240:107 [INFO] [stdout] | [INFO] [stdout] 240 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:257:109 [INFO] [stdout] | [INFO] [stdout] 257 | let model_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `Rad`, `SquareMatrix`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad, perspective, Deg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/1_colors.rs:219:11 [INFO] [stdout] | [INFO] [stdout] 219 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:152:108 [INFO] [stdout] | [INFO] [stdout] 152 | let proj_mat_location = gl::GetUniformLocation(shader.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:193:108 [INFO] [stdout] | [INFO] [stdout] 193 | let model_location = gl::GetUniformLocation(shader.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/3_phong_lighting.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `Rad`, `SquareMatrix`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad, perspective, Deg, InnerSpace}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `EBO` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_EBO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `SquareMatrix`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad, perspective, Deg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertices_3D` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertices_3D` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:212:105 [INFO] [stdout] | [INFO] [stdout] 212 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:215:103 [INFO] [stdout] | [INFO] [stdout] 215 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:218:109 [INFO] [stdout] | [INFO] [stdout] 218 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:244:109 [INFO] [stdout] | [INFO] [stdout] 244 | let model_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:212:105 [INFO] [stdout] | [INFO] [stdout] 212 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:215:103 [INFO] [stdout] | [INFO] [stdout] 215 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:218:109 [INFO] [stdout] | [INFO] [stdout] 218 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `EBO` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_EBO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:199:105 [INFO] [stdout] | [INFO] [stdout] 199 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:202:103 [INFO] [stdout] | [INFO] [stdout] 202 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:205:109 [INFO] [stdout] | [INFO] [stdout] 205 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:221:109 [INFO] [stdout] | [INFO] [stdout] 221 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `identity` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | let identity: Matrix4 = Matrix4::identity(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `translation_rotation_mat` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | let translation_rotation_mat = rotation_translation_mat * translation_mat2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_translation_rotation_mat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:211:108 [INFO] [stdout] | [INFO] [stdout] 211 | let transform_loc = gl::GetUniformLocation(shaders.program, CString::new("transform").unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transform` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:9:78 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector3, Matrix, perspective, Deg, InnerSpace, Point3, Transform}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_at_mat` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | let look_at_mat = Matrix4::look_at_dir( Point3::new(0.0, 0.0, 3.0), camera_direction, camera_up); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_at_mat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:222:109 [INFO] [stdout] | [INFO] [stdout] 222 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:244:107 [INFO] [stdout] | [INFO] [stdout] 244 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:261:109 [INFO] [stdout] | [INFO] [stdout] 261 | let model_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.63s [INFO] running `Command { std: "docker" "inspect" "13837d09d50ded926fa66af2fcaa7a30da533af7cb6fd4ca28f65fed3dd9655d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13837d09d50ded926fa66af2fcaa7a30da533af7cb6fd4ca28f65fed3dd9655d", kill_on_drop: false }` [INFO] [stdout] 13837d09d50ded926fa66af2fcaa7a30da533af7cb6fd4ca28f65fed3dd9655d [INFO] checking Tobyeus/Learn-OpenGL-Rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTobyeus%2FLearn-OpenGL-Rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tobyeus/Learn-OpenGL-Rust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tobyeus/Learn-OpenGL-Rust [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/Tobyeus/Learn-OpenGL-Rust [INFO] tweaked toml for git repo https://github.com/Tobyeus/Learn-OpenGL-Rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Tobyeus/Learn-OpenGL-Rust 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f7f605c6fcb2c2e91e834c3ce082e3543e578e2a0d176ce47b8d12d94ed0821 [INFO] running `Command { std: "docker" "start" "-a" "6f7f605c6fcb2c2e91e834c3ce082e3543e578e2a0d176ce47b8d12d94ed0821", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f7f605c6fcb2c2e91e834c3ce082e3543e578e2a0d176ce47b8d12d94ed0821", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f7f605c6fcb2c2e91e834c3ce082e3543e578e2a0d176ce47b8d12d94ed0821", kill_on_drop: false }` [INFO] [stdout] 6f7f605c6fcb2c2e91e834c3ce082e3543e578e2a0d176ce47b8d12d94ed0821 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c6ec483e764350b53c5a3f2b0def70dc23a96b84b8bb237f8814d7efa47d362 [INFO] running `Command { std: "docker" "start" "-a" "8c6ec483e764350b53c5a3f2b0def70dc23a96b84b8bb237f8814d7efa47d362", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.17 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.16 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking crossbeam-deque v0.8.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking rayon-core v1.12.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking approx v0.1.1 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Compiling glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking tobj v0.1.12 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking glfw v0.54.0 [INFO] [stderr] Checking learn_opengl_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/mesh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/model.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/model.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tobj` is imported redundantly [INFO] [stdout] --> src/model.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tobj; [INFO] [stdout] | ^^^^ the item `tobj` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/mesh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gl` is imported redundantly [INFO] [stdout] --> src/model.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gl; [INFO] [stdout] | ^^ the item `gl` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/model.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tobj` is imported redundantly [INFO] [stdout] --> src/model.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tobj; [INFO] [stdout] | ^^^^ the item `tobj` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHADER_BASE_DIR` is never used [INFO] [stdout] --> src/shader.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const SHADER_BASE_DIR: &str = "./src/shaders/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:88:97 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value as i32); } [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:92:97 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:96:97 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { gl::Uniform1f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:100:97 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector_x, vector_y, vector_z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:104:97 [INFO] [stdout] | [INFO] [stdout] 104 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector.x, vector.y, vector.z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:108:104 [INFO] [stdout] | [INFO] [stdout] 108 | ...v(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), 1, gl::FALSE, matrix.as_ptr()); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHADER_BASE_DIR` is never used [INFO] [stdout] --> src/shader.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const SHADER_BASE_DIR: &str = "./src/shaders/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:88:97 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value as i32); } [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:92:97 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { gl::Uniform1i(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:96:97 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { gl::Uniform1f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), value); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:100:97 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector_x, vector_y, vector_z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:104:97 [INFO] [stdout] | [INFO] [stdout] 104 | unsafe { gl::Uniform3f(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), vector.x, vector.y, vector.z); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:108:104 [INFO] [stdout] | [INFO] [stdout] 108 | ...v(gl::GetUniformLocation(self.program, CString::new(name).unwrap().as_ptr()), 1, gl::FALSE, matrix.as_ptr()); } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `Rad`, `SquareMatrix`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad, perspective, Deg, InnerSpace}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{ffi::{c_void, CString}, ptr, mem, path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transform` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:9:78 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector3, Matrix, perspective, Deg, InnerSpace, Point3, Transform}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_at_mat` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | let look_at_mat = Matrix4::look_at_dir( Point3::new(0.0, 0.0, 3.0), camera_direction, camera_up); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_at_mat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `EBO` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_EBO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/5_phong_material_light.rs:249:4 [INFO] [stdout] | [INFO] [stdout] 249 | fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/2_ambient_diffuse_specular.rs:274:11 [INFO] [stdout] | [INFO] [stdout] 274 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:222:109 [INFO] [stdout] | [INFO] [stdout] 222 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:244:107 [INFO] [stdout] | [INFO] [stdout] 244 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/14_camera_circle.rs:261:109 [INFO] [stdout] | [INFO] [stdout] 261 | let model_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:212:105 [INFO] [stdout] | [INFO] [stdout] 212 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:215:103 [INFO] [stdout] | [INFO] [stdout] 215 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:218:109 [INFO] [stdout] | [INFO] [stdout] 218 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/13_multiple_cubes.rs:244:109 [INFO] [stdout] | [INFO] [stdout] 244 | let model_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:152:108 [INFO] [stdout] | [INFO] [stdout] 152 | let proj_mat_location = gl::GetUniformLocation(shader.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/16_camera_system.rs:193:108 [INFO] [stdout] | [INFO] [stdout] 193 | let model_location = gl::GetUniformLocation(shader.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `SquareMatrix`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad, perspective, Deg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `identity` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | let identity: Matrix4 = Matrix4::identity(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `translation_rotation_mat` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | let translation_rotation_mat = rotation_translation_mat * translation_mat2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_translation_rotation_mat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `EBO` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_EBO` [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] --> examples/1_getting_started/12_cube_3d.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/10_transformations.rs:211:108 [INFO] [stdout] | [INFO] [stdout] 211 | let transform_loc = gl::GetUniformLocation(shaders.program, CString::new("transform").unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/1_colors.rs:219:11 [INFO] [stdout] | [INFO] [stdout] 219 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:199:105 [INFO] [stdout] | [INFO] [stdout] 199 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:202:103 [INFO] [stdout] | [INFO] [stdout] 202 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:205:109 [INFO] [stdout] | [INFO] [stdout] 205 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/12_cube_3d.rs:221:109 [INFO] [stdout] | [INFO] [stdout] 221 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | example_command.status(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = example_command.status(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DynamicImage` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use image::{DynamicImage, GenericImage}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseFloat`, `Rad`, `SquareMatrix`, `Vector4` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix4, Vector4, BaseFloat, SquareMatrix, Vector3, Matrix, Rad, perspective, Deg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_at_mat` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let look_at_mat = Matrix4::look_at(camera_pos, camera_pos + camera_front, camera_up); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_at_mat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | let (mut VBO, mut VAO) = (0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:214:109 [INFO] [stdout] | [INFO] [stdout] 214 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:240:107 [INFO] [stdout] | [INFO] [stdout] 240 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/15_camera_movement.rs:257:109 [INFO] [stdout] | [INFO] [stdout] 257 | let model_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | example_command.status(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 24 | let _ = example_command.status(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertices_3D` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertices_3D` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertices_3D` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let vertices_3D: [f32; 180] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vertices_3_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:212:105 [INFO] [stdout] | [INFO] [stdout] 212 | let model_mat_location = gl::GetUniformLocation(shaders.program, CString::new("model").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:215:103 [INFO] [stdout] | [INFO] [stdout] 215 | let view_mat_location = gl::GetUniformLocation(shaders.program, CString::new("view").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/1_getting_started/11_coord_system.rs:218:109 [INFO] [stdout] | [INFO] [stdout] 218 | let proj_mat_location = gl::GetUniformLocation(shaders.program, CString::new("projection").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/4_phong_exercise_1.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_texture` is never used [INFO] [stdout] --> examples/2_lighting/3_phong_lighting.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | unsafe fn load_texture(path: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vbo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EBO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | let (mut VBO, mut VAO, mut EBO) = (0,0,0); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ebo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> examples/1_getting_started/9_multi_tex.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | let (VAO, texture1, texture2) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.82s [INFO] running `Command { std: "docker" "inspect" "8c6ec483e764350b53c5a3f2b0def70dc23a96b84b8bb237f8814d7efa47d362", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c6ec483e764350b53c5a3f2b0def70dc23a96b84b8bb237f8814d7efa47d362", kill_on_drop: false }` [INFO] [stdout] 8c6ec483e764350b53c5a3f2b0def70dc23a96b84b8bb237f8814d7efa47d362