[INFO] cloning repository https://github.com/minalear/rustgltest [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/minalear/rustgltest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminalear%2Frustgltest", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminalear%2Frustgltest'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6596865dc7c6cee1723764200182415511e8a605 [INFO] testing minalear/rustgltest against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminalear%2Frustgltest" "/workspace/builds/worker-16/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-16/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/minalear/rustgltest on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/minalear/rustgltest [INFO] finished tweaking git repo https://github.com/minalear/rustgltest [INFO] tweaked toml for git repo https://github.com/minalear/rustgltest written to /workspace/builds/worker-16/source/Cargo.toml [INFO] crate git repo https://github.com/minalear/rustgltest already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cb0905c3d56a38e30852015c9785933f438655b41cda949b56b795efefff7ee [INFO] running `Command { std: "docker" "start" "-a" "5cb0905c3d56a38e30852015c9785933f438655b41cda949b56b795efefff7ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cb0905c3d56a38e30852015c9785933f438655b41cda949b56b795efefff7ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cb0905c3d56a38e30852015c9785933f438655b41cda949b56b795efefff7ee", kill_on_drop: false }` [INFO] [stdout] 5cb0905c3d56a38e30852015c9785933f438655b41cda949b56b795efefff7ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d412d310e90beb76407e417e21d7fefe97a5a7fd24dd0a7014ff7943b25a33c [INFO] running `Command { std: "docker" "start" "-a" "9d412d310e90beb76407e417e21d7fefe97a5a7fd24dd0a7014ff7943b25a33c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling weezl v0.1.2 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Compiling bytemuck v1.4.1 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling gltest v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.1 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling libloading v0.6.5 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling sdl2-sys v0.34.3 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling renderdoc v0.9.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling tiff v0.6.0 [INFO] [stderr] Compiling image v0.23.11 [INFO] [stdout] warning: unused import: `GenericImage` [INFO] [stdout] --> src/texture_2d.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use image::{ GenericImage, GenericImageView }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector::Vec3` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use vector::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ortho` [INFO] [stdout] --> src/main.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use cgmath::{ Matrix4, Ortho }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `V100` [INFO] [stdout] --> src/main.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | use renderdoc::{ RenderDoc, V100, V110 }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `patch` [INFO] [stdout] --> src/main.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | let (major, minor, patch) = rd.get_api_version(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_patch` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let image = match Texture2D::from_file("./target/debug/content/Carl.png") { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut rd: RenderDoc = RenderDoc::new().expect("Unable to connect to RenderDoc"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `disable_attribute` [INFO] [stdout] --> src/vertex_array.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn disable_attribute(&self, id: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `xyz` [INFO] [stdout] --> src/vector.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | xyz: [f32; 3] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Vec3` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/vector.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/vector.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(x: f32, y: f32, z: f32) -> Vec3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/vector.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn x(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/vector.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn y(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/vector.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn z(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/vector.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn set(&mut self, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_x` [INFO] [stdout] --> src/vector.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn set_x(&mut self, x: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_y` [INFO] [stdout] --> src/vector.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_z` [INFO] [stdout] --> src/vector.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_z(&mut self, z: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/texture_2d.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | id: u32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:115:115 [INFO] [stdout] | [INFO] [stdout] 115 | let model_loc = gl::GetUniformLocation(program.program_id, CString::new("model").expect("C-String Error").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/main.rs:118:113 [INFO] [stdout] | [INFO] [stdout] 118 | let view_loc = gl::GetUniformLocation(program.program_id, CString::new("view").expect("C-String Error").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] --> src/main.rs:121:113 [INFO] [stdout] | [INFO] [stdout] 121 | let proj_loc = gl::GetUniformLocation(program.program_id, CString::new("proj").expect("C-String Error").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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.03s [INFO] running `Command { std: "docker" "inspect" "9d412d310e90beb76407e417e21d7fefe97a5a7fd24dd0a7014ff7943b25a33c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d412d310e90beb76407e417e21d7fefe97a5a7fd24dd0a7014ff7943b25a33c", kill_on_drop: false }` [INFO] [stdout] 9d412d310e90beb76407e417e21d7fefe97a5a7fd24dd0a7014ff7943b25a33c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d88149aa0b12313a66e9ba31559073d6d1bb90cfa2c0a5235e51452828ac5883 [INFO] running `Command { std: "docker" "start" "-a" "d88149aa0b12313a66e9ba31559073d6d1bb90cfa2c0a5235e51452828ac5883", kill_on_drop: false }` [INFO] [stderr] Compiling gltest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GenericImage` [INFO] [stdout] --> src/texture_2d.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use image::{ GenericImage, GenericImageView }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector::Vec3` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use vector::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ortho` [INFO] [stdout] --> src/main.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use cgmath::{ Matrix4, Ortho }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `V100` [INFO] [stdout] --> src/main.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | use renderdoc::{ RenderDoc, V100, V110 }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `patch` [INFO] [stdout] --> src/main.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | let (major, minor, patch) = rd.get_api_version(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_patch` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let image = match Texture2D::from_file("./target/debug/content/Carl.png") { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut rd: RenderDoc = RenderDoc::new().expect("Unable to connect to RenderDoc"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `disable_attribute` [INFO] [stdout] --> src/vertex_array.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn disable_attribute(&self, id: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `xyz` [INFO] [stdout] --> src/vector.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | xyz: [f32; 3] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Vec3` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/vector.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/vector.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(x: f32, y: f32, z: f32) -> Vec3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/vector.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn x(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/vector.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn y(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/vector.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn z(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/vector.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn set(&mut self, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_x` [INFO] [stdout] --> src/vector.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn set_x(&mut self, x: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_y` [INFO] [stdout] --> src/vector.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_z` [INFO] [stdout] --> src/vector.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_z(&mut self, z: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/texture_2d.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | id: u32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:115:115 [INFO] [stdout] | [INFO] [stdout] 115 | let model_loc = gl::GetUniformLocation(program.program_id, CString::new("model").expect("C-String Error").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/main.rs:118:113 [INFO] [stdout] | [INFO] [stdout] 118 | let view_loc = gl::GetUniformLocation(program.program_id, CString::new("view").expect("C-String Error").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] --> src/main.rs:121:113 [INFO] [stdout] | [INFO] [stdout] 121 | let proj_loc = gl::GetUniformLocation(program.program_id, CString::new("proj").expect("C-String Error").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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.46s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/gltest-c716b4565deef5fd) [INFO] running `Command { std: "docker" "inspect" "d88149aa0b12313a66e9ba31559073d6d1bb90cfa2c0a5235e51452828ac5883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d88149aa0b12313a66e9ba31559073d6d1bb90cfa2c0a5235e51452828ac5883", kill_on_drop: false }` [INFO] [stdout] d88149aa0b12313a66e9ba31559073d6d1bb90cfa2c0a5235e51452828ac5883 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cca3d572ac3eb044e5305d521756c6724896a22e67bf7d862e59a0011c49fa65 [INFO] running `Command { std: "docker" "start" "-a" "cca3d572ac3eb044e5305d521756c6724896a22e67bf7d862e59a0011c49fa65", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `GenericImage` [INFO] [stderr] --> src/texture_2d.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | use image::{ GenericImage, GenericImageView }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `vector::Vec3` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use vector::Vec3; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Ortho` [INFO] [stderr] --> src/main.rs:15:24 [INFO] [stderr] | [INFO] [stderr] 15 | use cgmath::{ Matrix4, Ortho }; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `V100` [INFO] [stderr] --> src/main.rs:24:29 [INFO] [stderr] | [INFO] [stderr] 24 | use renderdoc::{ RenderDoc, V100, V110 }; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `patch` [INFO] [stderr] --> src/main.rs:63:24 [INFO] [stderr] | [INFO] [stderr] 63 | let (major, minor, patch) = rd.get_api_version(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_patch` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `image` [INFO] [stderr] --> src/main.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | let image = match Texture2D::from_file("./target/debug/content/Carl.png") { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 62 | let mut rd: RenderDoc = RenderDoc::new().expect("Unable to connect to RenderDoc"); [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: associated function is never used: `disable_attribute` [INFO] [stderr] --> src/vertex_array.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn disable_attribute(&self, id: u32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `xyz` [INFO] [stderr] --> src/vector.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | xyz: [f32; 3] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Vec3` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/vector.rs:1:16 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/vector.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn new(x: f32, y: f32, z: f32) -> Vec3 { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `x` [INFO] [stderr] --> src/vector.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn x(&self) -> f32 { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `y` [INFO] [stderr] --> src/vector.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn y(&self) -> f32 { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `z` [INFO] [stderr] --> src/vector.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn z(&self) -> f32 { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set` [INFO] [stderr] --> src/vector.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn set(&mut self, x: f32, y: f32, z: f32) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_x` [INFO] [stderr] --> src/vector.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn set_x(&mut self, x: f32) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_y` [INFO] [stderr] --> src/vector.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn set_y(&mut self, y: f32) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_z` [INFO] [stderr] --> src/vector.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn set_z(&mut self, z: f32) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `id` [INFO] [stderr] --> src/texture_2d.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | id: u32 [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:115:115 [INFO] [stderr] | [INFO] [stderr] 115 | let model_loc = gl::GetUniformLocation(program.program_id, CString::new("model").expect("C-String Error").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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:118:113 [INFO] [stderr] | [INFO] [stderr] 118 | let view_loc = gl::GetUniformLocation(program.program_id, CString::new("view").expect("C-String Error").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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:121:113 [INFO] [stderr] | [INFO] [stderr] 121 | let proj_loc = gl::GetUniformLocation(program.program_id, CString::new("proj").expect("C-String Error").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: `gltest` (bin "gltest" test) generated 21 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gltest-c716b4565deef5fd) [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" "cca3d572ac3eb044e5305d521756c6724896a22e67bf7d862e59a0011c49fa65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cca3d572ac3eb044e5305d521756c6724896a22e67bf7d862e59a0011c49fa65", kill_on_drop: false }` [INFO] [stdout] cca3d572ac3eb044e5305d521756c6724896a22e67bf7d862e59a0011c49fa65