[INFO] cloning repository https://github.com/tlent/learn-opengl-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tlent/learn-opengl-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlent%2Flearn-opengl-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlent%2Flearn-opengl-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a44054a501f642062946f1377ee3b18abf60f7a4 [INFO] checking tlent/learn-opengl-rs against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlent%2Flearn-opengl-rs" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tlent/learn-opengl-rs on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tlent/learn-opengl-rs [INFO] finished tweaking git repo https://github.com/tlent/learn-opengl-rs [INFO] tweaked toml for git repo https://github.com/tlent/learn-opengl-rs written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/tlent/learn-opengl-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tobj v2.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2aa17a7d55857b86a5dcc314ecca75ef4a32c6ebb9ca697d3cb7d9e7ce1852de [INFO] running `Command { std: "docker" "start" "-a" "2aa17a7d55857b86a5dcc314ecca75ef4a32c6ebb9ca697d3cb7d9e7ce1852de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2aa17a7d55857b86a5dcc314ecca75ef4a32c6ebb9ca697d3cb7d9e7ce1852de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2aa17a7d55857b86a5dcc314ecca75ef4a32c6ebb9ca697d3cb7d9e7ce1852de", kill_on_drop: false }` [INFO] [stdout] 2aa17a7d55857b86a5dcc314ecca75ef4a32c6ebb9ca697d3cb7d9e7ce1852de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9b95697c89fcc69b5a369d1968515b738cae717ccc2fe1899079166ae9e64d3 [INFO] running `Command { std: "docker" "start" "-a" "a9b95697c89fcc69b5a369d1968515b738cae717ccc2fe1899079166ae9e64d3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Checking downcast-rs v1.1.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking instant v0.1.4 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Checking bytemuck v1.2.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking tobj v2.0.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking wayland-sys v0.23.6 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking deflate v0.8.4 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking tiff v0.4.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Checking png v0.16.4 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wayland-scanner v0.23.6 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking crossbeam-queue v0.2.2 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Compiling wayland-client v0.23.6 [INFO] [stderr] Compiling wayland-protocols v0.23.6 [INFO] [stderr] Checking jpeg-decoder v0.1.19 [INFO] [stderr] Checking wayland-commons v0.23.6 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking image v0.23.4 [INFO] [stderr] Compiling paste-impl v0.1.16 [INFO] [stderr] Checking paste v0.1.16 [INFO] [stderr] Checking simba v0.1.2 [INFO] [stderr] Checking nalgebra v0.21.0 [INFO] [stderr] Checking smithay-client-toolkit v0.6.6 [INFO] [stderr] Checking winit v0.22.2 [INFO] [stderr] Checking glutin v0.24.1 [INFO] [stderr] Checking nalgebra-glm v0.7.0 [INFO] [stderr] Checking learn-opengl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value captured by `delta_time` is never read [INFO] [stdout] --> src/main.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | delta_time = (now - prev_frame_time).as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `delta_time` is never read [INFO] [stdout] --> src/main.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | delta_time = (now - prev_frame_time).as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/main.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | time += delta_time; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/main.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | time += delta_time; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> src/model.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | offset_of!(Vertex, position) as *const c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unaligned_references)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = note: this warning originates in the macro `raw_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> src/model.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | offset_of!(Vertex, normal) as *const c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = note: this warning originates in the macro `raw_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> src/model.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | offset_of!(Vertex, position) as *const c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unaligned_references)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = note: this warning originates in the macro `raw_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> src/model.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | offset_of!(Vertex, texture_coordinate) as *const c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = note: this warning originates in the macro `raw_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> src/model.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | offset_of!(Vertex, normal) as *const c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = note: this warning originates in the macro `raw_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> src/model.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | offset_of!(Vertex, texture_coordinate) as *const c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = note: this warning originates in the macro `raw_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fov` [INFO] [stdout] --> src/camera.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn fov(&self) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fov` [INFO] [stdout] --> src/camera.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn fov(&self) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `position` [INFO] [stdout] --> src/camera.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn position(&self) -> glm::Vec3 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `front` [INFO] [stdout] --> src/camera.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn front(&self) -> glm::Vec3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/shader_program.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn id(&self) -> u32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_uniform_bool` [INFO] [stdout] --> src/shader_program.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | pub unsafe fn set_uniform_bool(&self, name: &str, value: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `position` [INFO] [stdout] --> src/camera.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn position(&self) -> glm::Vec3 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `front` [INFO] [stdout] --> src/camera.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn front(&self) -> glm::Vec3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_uniform_float` [INFO] [stdout] --> src/shader_program.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn set_uniform_float(&self, name: &str, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/shader_program.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn id(&self) -> u32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_uniform_bool` [INFO] [stdout] --> src/shader_program.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | pub unsafe fn set_uniform_bool(&self, name: &str, value: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_uniform_float` [INFO] [stdout] --> src/shader_program.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn set_uniform_float(&self, name: &str, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_uniform_vec3f` [INFO] [stdout] --> src/shader_program.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | pub unsafe fn set_uniform_vec3f(&self, name: &str, value: glm::Vec3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_uniform_vec3f` [INFO] [stdout] --> src/shader_program.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | pub unsafe fn set_uniform_vec3f(&self, name: &str, value: glm::Vec3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_wrap` [INFO] [stdout] --> src/texture.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | pub unsafe fn set_wrap(&self, wrap_s: gl::types::GLenum, wrap_t: gl::types::GLenum) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_wrap` [INFO] [stdout] --> src/texture.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | pub unsafe fn set_wrap(&self, wrap_s: gl::types::GLenum, wrap_t: gl::types::GLenum) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader_program.rs:128:69 [INFO] [stdout] | [INFO] [stdout] 128 | gl::GetUniformLocation(self.id, CString::new(name).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: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader_program.rs:128:69 [INFO] [stdout] | [INFO] [stdout] 128 | gl::GetUniformLocation(self.id, CString::new(name).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: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.97s [INFO] running `Command { std: "docker" "inspect" "a9b95697c89fcc69b5a369d1968515b738cae717ccc2fe1899079166ae9e64d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9b95697c89fcc69b5a369d1968515b738cae717ccc2fe1899079166ae9e64d3", kill_on_drop: false }` [INFO] [stdout] a9b95697c89fcc69b5a369d1968515b738cae717ccc2fe1899079166ae9e64d3