[INFO] cloning repository https://github.com/archambaultkm/Glutin_OpenGL_Demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/archambaultkm/Glutin_OpenGL_Demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farchambaultkm%2FGlutin_OpenGL_Demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farchambaultkm%2FGlutin_OpenGL_Demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eaf0d6c906ef916e11dddaa122de3164bd728ced [INFO] checking archambaultkm/Glutin_OpenGL_Demo against master#84e729a59f216cc64755788a470f165429a731f4 for pr-123737-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farchambaultkm%2FGlutin_OpenGL_Demo" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/archambaultkm/Glutin_OpenGL_Demo on toolchain 84e729a59f216cc64755788a470f165429a731f4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/archambaultkm/Glutin_OpenGL_Demo [INFO] finished tweaking git repo https://github.com/archambaultkm/Glutin_OpenGL_Demo [INFO] tweaked toml for git repo https://github.com/archambaultkm/Glutin_OpenGL_Demo written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/archambaultkm/Glutin_OpenGL_Demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded png v0.12.0 [INFO] [stderr] Downloaded cgmath v0.18.0 [INFO] [stderr] Downloaded num-rational v0.1.42 [INFO] [stderr] Downloaded image v0.19.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 865ceeee5bdc4eb5181052de1d55ba64f43eb76618574df2e65905ae47296e73 [INFO] running `Command { std: "docker" "start" "-a" "865ceeee5bdc4eb5181052de1d55ba64f43eb76618574df2e65905ae47296e73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "865ceeee5bdc4eb5181052de1d55ba64f43eb76618574df2e65905ae47296e73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "865ceeee5bdc4eb5181052de1d55ba64f43eb76618574df2e65905ae47296e73", kill_on_drop: false }` [INFO] [stdout] 865ceeee5bdc4eb5181052de1d55ba64f43eb76618574df2e65905ae47296e73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+84e729a59f216cc64755788a470f165429a731f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f20c521a699d7328daefccecf2010e07f9694c810ed8c0794b984ca2d2304bf4 [INFO] running `Command { std: "docker" "start" "-a" "f20c521a699d7328daefccecf2010e07f9694c810ed8c0794b984ca2d2304bf4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking xdg v2.5.2 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking num-iter v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking nix v0.18.0 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking parking_lot_core v0.8.6 [INFO] [stderr] Checking raw-window-handle v0.3.4 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Checking owned_ttf_parser v0.15.2 [INFO] [stderr] Checking rusttype v0.9.3 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking glutin_opengl_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ElementState`, `Event`, `KeyboardInput`, `VirtualKeyCode`, `WindowEvent` [INFO] [stdout] --> src/lib.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use glutin::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glutin::event_loop::ControlFlow` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use glutin::event_loop::ControlFlow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementState`, `Event`, `KeyboardInput`, `VirtualKeyCode`, `WindowEvent` [INFO] [stdout] --> src/lib.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use glutin::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glutin::event_loop::ControlFlow` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use glutin::event_loop::ControlFlow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Camera_Movement` should have an upper camel case name [INFO] [stdout] --> src/camera.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Camera_Movement { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CameraMovement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `load` [INFO] [stdout] --> src/texture.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{DynamicImage, GenericImage, load}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PolygonMode` [INFO] [stdout] --> src/renderer.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | use glutin_opengl_demo::{polygon_mode, PolygonMode}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Camera_Movement` should have an upper camel case name [INFO] [stdout] --> src/camera.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Camera_Movement { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CameraMovement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `load` [INFO] [stdout] --> src/texture.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{DynamicImage, GenericImage, load}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PolygonMode` [INFO] [stdout] --> src/renderer.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | use glutin_opengl_demo::{polygon_mode, PolygonMode}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cgmath::Matrix4::::look_at`: Use Matrix4::look_at_rh [INFO] [stdout] --> src/camera.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | Matrix4::look_at(self.position, self.position + self.front, self.up) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cgmath::Matrix4::::look_at`: Use Matrix4::look_at_rh [INFO] [stdout] --> src/camera.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 65 | Matrix4::look_at(self.position, self.position + self.front, self.up) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut first_mouse = true; [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 does not need to be mutable [INFO] [stdout] --> src/game_window.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut last_x: f32 = WINDOW_WIDTH as f32 / 2.0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut last_y: f32 = WINDOW_HEIGHT as f32 / 2.0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `delta_time` is never read [INFO] [stdout] --> src/game.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | delta_time = current_frame_time.duration_since(last_frame_time); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bool` and `set_float` are never used [INFO] [stdout] --> src/shader.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Shader { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub unsafe fn set_float(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event_loop` and `last_frame_time` are never read [INFO] [stdout] --> src/game_window.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct GameWindow { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | event_loop : EventLoop<()>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | last_frame_time: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/cube.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Cube { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | pub vertices : [f32; 180], [INFO] [stdout] 5 | pub position : Vector3 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/renderer.rs:95:47 [INFO] [stdout] | [INFO] [stdout] 95 | CString::new("position").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] --> src/renderer.rs:100:46 [INFO] [stdout] | [INFO] [stdout] 100 | CString::new("texture").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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut first_mouse = true; [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 does not need to be mutable [INFO] [stdout] --> src/game_window.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut last_x: f32 = WINDOW_WIDTH as f32 / 2.0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut last_y: f32 = WINDOW_HEIGHT as f32 / 2.0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `delta_time` is never read [INFO] [stdout] --> src/game.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | delta_time = current_frame_time.duration_since(last_frame_time); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bool` and `set_float` are never used [INFO] [stdout] --> src/shader.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Shader { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub unsafe fn set_float(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event_loop` and `last_frame_time` are never read [INFO] [stdout] --> src/game_window.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct GameWindow { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | event_loop : EventLoop<()>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | last_frame_time: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/cube.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Cube { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | pub vertices : [f32; 180], [INFO] [stdout] 5 | pub position : Vector3 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/renderer.rs:95:47 [INFO] [stdout] | [INFO] [stdout] 95 | CString::new("position").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] --> src/renderer.rs:100:46 [INFO] [stdout] | [INFO] [stdout] 100 | CString::new("texture").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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.55s [INFO] running `Command { std: "docker" "inspect" "f20c521a699d7328daefccecf2010e07f9694c810ed8c0794b984ca2d2304bf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f20c521a699d7328daefccecf2010e07f9694c810ed8c0794b984ca2d2304bf4", kill_on_drop: false }` [INFO] [stdout] f20c521a699d7328daefccecf2010e07f9694c810ed8c0794b984ca2d2304bf4