[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] testing archambaultkm/Glutin_OpenGL_Demo/eaf0d6c906ef916e11dddaa122de3164bd728ced against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farchambaultkm%2FGlutin_OpenGL_Demo" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/archambaultkm/Glutin_OpenGL_Demo on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "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-7-tc2/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" "+beta-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a623cc949e6c9fe5862c9e11a8a16680cc9a2ddf1b063dace4d6bafbfbbcc74 [INFO] running `Command { std: "docker" "start" "-a" "2a623cc949e6c9fe5862c9e11a8a16680cc9a2ddf1b063dace4d6bafbfbbcc74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a623cc949e6c9fe5862c9e11a8a16680cc9a2ddf1b063dace4d6bafbfbbcc74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a623cc949e6c9fe5862c9e11a8a16680cc9a2ddf1b063dace4d6bafbfbbcc74", kill_on_drop: false }` [INFO] [stdout] 2a623cc949e6c9fe5862c9e11a8a16680cc9a2ddf1b063dace4d6bafbfbbcc74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7de984b7926d48dd3cac31ed1128f1f2fc741ec41d949fd00726c5674a4033b6 [INFO] running `Command { std: "docker" "start" "-a" "7de984b7926d48dd3cac31ed1128f1f2fc741ec41d949fd00726c5674a4033b6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling libloading v0.8.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling owned_ttf_parser v0.15.2 [INFO] [stderr] Compiling rusttype v0.9.3 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling xdg v2.5.2 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling rayon v1.8.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling raw-window-handle v0.3.4 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling wayland-egl v0.28.6 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling image v0.19.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling glutin_opengl_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ElementState`, `Event`, `KeyboardInput`, `VirtualKeyCode`, and `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: 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` and `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: 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 1m 01s [INFO] running `Command { std: "docker" "inspect" "7de984b7926d48dd3cac31ed1128f1f2fc741ec41d949fd00726c5674a4033b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7de984b7926d48dd3cac31ed1128f1f2fc741ec41d949fd00726c5674a4033b6", kill_on_drop: false }` [INFO] [stdout] 7de984b7926d48dd3cac31ed1128f1f2fc741ec41d949fd00726c5674a4033b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2808b7c8dc800e36bb0e9376a3d883dd1064b95ce227037c87427a1e448e1304 [INFO] running `Command { std: "docker" "start" "-a" "2808b7c8dc800e36bb0e9376a3d883dd1064b95ce227037c87427a1e448e1304", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `ElementState`, `Event`, `KeyboardInput`, `VirtualKeyCode`, and `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] [stderr] Compiling glutin_opengl_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ElementState`, `Event`, `KeyboardInput`, `VirtualKeyCode`, and `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: 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` and `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: 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "2808b7c8dc800e36bb0e9376a3d883dd1064b95ce227037c87427a1e448e1304", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2808b7c8dc800e36bb0e9376a3d883dd1064b95ce227037c87427a1e448e1304", kill_on_drop: false }` [INFO] [stdout] 2808b7c8dc800e36bb0e9376a3d883dd1064b95ce227037c87427a1e448e1304 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 06387fc3597075a99d39e5e0052d35e85f51515c4f2be5c6c4ac09882af3dd63 [INFO] running `Command { std: "docker" "start" "-a" "06387fc3597075a99d39e5e0052d35e85f51515c4f2be5c6c4ac09882af3dd63", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ElementState`, `Event`, `KeyboardInput`, `VirtualKeyCode`, and `WindowEvent` [INFO] [stderr] --> src/lib.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use glutin::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `glutin::event_loop::ControlFlow` [INFO] [stderr] --> src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use glutin::event_loop::ControlFlow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `glutin_opengl_demo` (lib) generated 2 warnings (run `cargo fix --lib -p glutin_opengl_demo` to apply 2 suggestions) [INFO] [stderr] warning: `glutin_opengl_demo` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] warning: type `Camera_Movement` should have an upper camel case name [INFO] [stderr] --> src/camera.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | pub enum Camera_Movement { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CameraMovement` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DynamicImage` and `load` [INFO] [stderr] --> src/texture.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use image::{DynamicImage, GenericImage, load}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `PolygonMode` [INFO] [stderr] --> src/renderer.rs:5:40 [INFO] [stderr] | [INFO] [stderr] 5 | use glutin_opengl_demo::{polygon_mode, PolygonMode}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `cgmath::Matrix4::::look_at`: Use Matrix4::look_at_rh [INFO] [stderr] --> src/camera.rs:65:18 [INFO] [stderr] | [INFO] [stderr] 65 | Matrix4::look_at(self.position, self.position + self.front, self.up) [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/game_window.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | let mut first_mouse = true; [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/game_window.rs:41:13 [INFO] [stderr] | [INFO] [stderr] 41 | let mut last_x: f32 = WINDOW_WIDTH as f32 / 2.0; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/game_window.rs:42:13 [INFO] [stderr] | [INFO] [stderr] 42 | let mut last_y: f32 = WINDOW_HEIGHT as f32 / 2.0; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: value captured by `delta_time` is never read [INFO] [stderr] --> src/game.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | delta_time = current_frame_time.duration_since(last_frame_time); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `set_bool` and `set_float` are never used [INFO] [stderr] --> src/shader.rs:28:19 [INFO] [stderr] | [INFO] [stderr] 12 | impl Shader { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 28 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub unsafe fn set_float(&self, name: &CStr, value: f32) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `event_loop` and `last_frame_time` are never read [INFO] [stderr] --> src/game_window.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct GameWindow { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 11 | event_loop : EventLoop<()>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | last_frame_time: std::time::Instant, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `position` is never read [INFO] [stderr] --> src/cube.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Cube { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] 4 | pub vertices : [f32; 180], [INFO] [stderr] 5 | pub position : Vector3 [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/renderer.rs:95:47 [INFO] [stderr] | [INFO] [stderr] 95 | CString::new("position").unwrap().as_ptr() [INFO] [stderr] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/renderer.rs:100:46 [INFO] [stderr] | [INFO] [stderr] 100 | CString::new("texture").unwrap().as_ptr() [INFO] [stderr] | -------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `glutin_opengl_demo` (bin "glutin_opengl_demo" test) generated 13 warnings (run `cargo fix --bin "glutin_opengl_demo" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/glutin_opengl_demo-434dabdd96af3e3e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/glutin_opengl_demo-5b9dc02eeeb6b7f5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests glutin_opengl_demo [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "06387fc3597075a99d39e5e0052d35e85f51515c4f2be5c6c4ac09882af3dd63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06387fc3597075a99d39e5e0052d35e85f51515c4f2be5c6c4ac09882af3dd63", kill_on_drop: false }` [INFO] [stdout] 06387fc3597075a99d39e5e0052d35e85f51515c4f2be5c6c4ac09882af3dd63