[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-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminalear%2Frustgltest" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/minalear/rustgltest on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-4/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-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossbeam-epoch v0.9.0 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded bytemuck v1.4.1 [INFO] [stderr] Downloaded libloading v0.6.5 [INFO] [stderr] Downloaded png v0.16.7 [INFO] [stderr] Downloaded cgmath v0.17.0 [INFO] [stderr] Downloaded weezl v0.1.2 [INFO] [stderr] Downloaded const_fn v0.4.2 [INFO] [stderr] Downloaded num-rational v0.3.1 [INFO] [stderr] Downloaded renderdoc-sys v0.7.1 [INFO] [stderr] Downloaded float-cmp v0.8.0 [INFO] [stderr] Downloaded renderdoc v0.9.1 [INFO] [stderr] Downloaded version-compare v0.0.10 [INFO] [stderr] Downloaded sdl2 v0.34.3 [INFO] [stderr] Downloaded image v0.23.11 [INFO] [stderr] Downloaded sdl2-sys v0.34.3 [INFO] [stderr] Downloaded tiff v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 00a05acddff74dd5daba213d6f1c7c52edb003ebde695c9eb2962d566c01ac0d [INFO] running `Command { std: "docker" "start" "-a" "00a05acddff74dd5daba213d6f1c7c52edb003ebde695c9eb2962d566c01ac0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00a05acddff74dd5daba213d6f1c7c52edb003ebde695c9eb2962d566c01ac0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00a05acddff74dd5daba213d6f1c7c52edb003ebde695c9eb2962d566c01ac0d", kill_on_drop: false }` [INFO] [stdout] 00a05acddff74dd5daba213d6f1c7c52edb003ebde695c9eb2962d566c01ac0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3f9369a1953d351e63120b423b8bf9bf5387f99afa3e3e612122e4e5f2cedcd8 [INFO] running `Command { std: "docker" "start" "-a" "3f9369a1953d351e63120b423b8bf9bf5387f99afa3e3e612122e4e5f2cedcd8", kill_on_drop: false }` [INFO] [stderr] Compiling weezl v0.1.2 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling gltest v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling num-rational v0.3.1 [INFO] [stderr] Compiling libloading v0.6.5 [INFO] [stderr] Compiling rand_os v0.1.3 [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 rayon-core v1.9.0 [INFO] [stderr] Compiling renderdoc v0.9.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling rayon v1.5.0 [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 43.42s [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3f9369a1953d351e63120b423b8bf9bf5387f99afa3e3e612122e4e5f2cedcd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f9369a1953d351e63120b423b8bf9bf5387f99afa3e3e612122e4e5f2cedcd8", kill_on_drop: false }` [INFO] [stdout] 3f9369a1953d351e63120b423b8bf9bf5387f99afa3e3e612122e4e5f2cedcd8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c02b68e297043b2f592b605a99a55d0cac84c9340376ae49823d11b30eda2c7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2c02b68e297043b2f592b605a99a55d0cac84c9340376ae49823d11b30eda2c7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 1.49s [INFO] running `Command { std: "docker" "inspect" "2c02b68e297043b2f592b605a99a55d0cac84c9340376ae49823d11b30eda2c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c02b68e297043b2f592b605a99a55d0cac84c9340376ae49823d11b30eda2c7", kill_on_drop: false }` [INFO] [stdout] 2c02b68e297043b2f592b605a99a55d0cac84c9340376ae49823d11b30eda2c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] be181bebde4f5a5c8c3a22d813395ef90ecbd84e98ed3dacb5005f52527824fb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "be181bebde4f5a5c8c3a22d813395ef90ecbd84e98ed3dacb5005f52527824fb", 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.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/gltest-c716b4565deef5fd) [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" "be181bebde4f5a5c8c3a22d813395ef90ecbd84e98ed3dacb5005f52527824fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be181bebde4f5a5c8c3a22d813395ef90ecbd84e98ed3dacb5005f52527824fb", kill_on_drop: false }` [INFO] [stdout] be181bebde4f5a5c8c3a22d813395ef90ecbd84e98ed3dacb5005f52527824fb