[INFO] cloning repository https://github.com/lamaboy2018/glrotate [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lamaboy2018/glrotate" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamaboy2018%2Fglrotate", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamaboy2018%2Fglrotate'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9741a2bf59a4b4685c3856fa395958a05cc53a2b [INFO] testing lamaboy2018/glrotate against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamaboy2018%2Fglrotate" "/workspace/builds/worker-20/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-20/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lamaboy2018/glrotate on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lamaboy2018/glrotate [INFO] finished tweaking git repo https://github.com/lamaboy2018/glrotate [INFO] tweaked toml for git repo https://github.com/lamaboy2018/glrotate written to /workspace/builds/worker-20/source/Cargo.toml [INFO] crate git repo https://github.com/lamaboy2018/glrotate already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quickcheck v0.2.27 [INFO] [stderr] Downloaded cgmath v0.12.0 [INFO] [stderr] Downloaded glm v0.2.3 [INFO] [stderr] Downloaded cmake v0.1.20 [INFO] [stderr] Downloaded glfw-sys v3.2.1 [INFO] [stderr] Downloaded glfw v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7edd096f71153c7d2de0d2f463cf04329ceba02329d72650250da50c8fa642af [INFO] running `Command { std: "docker" "start" "-a" "7edd096f71153c7d2de0d2f463cf04329ceba02329d72650250da50c8fa642af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7edd096f71153c7d2de0d2f463cf04329ceba02329d72650250da50c8fa642af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7edd096f71153c7d2de0d2f463cf04329ceba02329d72650250da50c8fa642af", kill_on_drop: false }` [INFO] [stdout] 7edd096f71153c7d2de0d2f463cf04329ceba02329d72650250da50c8fa642af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c23e83a62063750595b336dfacca18c9f295b45b01d2f947c2a036f7a4d6f419 [INFO] running `Command { std: "docker" "start" "-a" "c23e83a62063750595b336dfacca18c9f295b45b01d2f947c2a036f7a4d6f419", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.18 [INFO] [stderr] Compiling num-traits v0.1.36 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling rustc-serialize v0.3.22 [INFO] [stderr] Compiling log v0.3.6 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling gcc v0.3.41 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling khronos_api v1.0.0 [INFO] [stderr] Compiling nom v1.2.4 [INFO] [stderr] Compiling approx v0.1.1 [INFO] [stderr] Compiling xml-rs v0.3.5 [INFO] [stderr] Compiling cmake v0.1.20 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling semver v0.2.3 [INFO] [stderr] Compiling num-integer v0.1.32 [INFO] [stderr] Compiling glfw-sys v3.2.1 [INFO] [stderr] Compiling num-iter v0.1.32 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling gl_generator v0.5.2 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling glText v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling num-bigint v0.1.35 [INFO] [stderr] Compiling num-complex v0.1.35 [INFO] [stderr] Compiling cgmath v0.12.0 [INFO] [stdout] warning: unused imports: `Api`, `Fallbacks`, `GlobalGenerator`, `Profile`, `Registry` [INFO] [stdout] --> build/build.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use gl_generator::{Registry, Fallbacks, GlobalGenerator, Api, Profile}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> build/build.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> build/build.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> build/build.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling num-rational v0.1.35 [INFO] [stderr] Compiling env_logger v0.3.5 [INFO] [stderr] Compiling num v0.1.36 [INFO] [stderr] Compiling quickcheck v0.2.27 [INFO] [stderr] Compiling enum_primitive v0.1.0 [INFO] [stderr] Compiling glm v0.2.3 [INFO] [stderr] Compiling glfw v0.11.0 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gl31/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gles32/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gles31/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gles30/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gl45/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color_attr` is never read [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut color_attr : GLint =0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mMVPMatrixHandle` is never read [INFO] [stdout] --> src/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | let mut mMVPMatrixHandle :GLint =0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mMLookAtHandle` is never read [INFO] [stdout] --> src/main.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let mut mMLookAtHandle : GLint =0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mone` [INFO] [stdout] --> src/main.rs:293:14 [INFO] [stdout] | [INFO] [stdout] 293 | let mut mone : [GLfloat;16] =[ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `defmat` is assigned to, but never used [INFO] [stdout] --> src/main.rs:299:14 [INFO] [stdout] | [INFO] [stdout] 299 | let mut defmat : Matrix4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_defmat` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `defmat` is never read [INFO] [stdout] --> src/main.rs:301:6 [INFO] [stdout] | [INFO] [stdout] 301 | defmat = camera::camera::roatoz(posx,posy,posz); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `la` [INFO] [stdout] --> src/main.rs:332:17 [INFO] [stdout] | [INFO] [stdout] 332 | let la= camera::camera::lookAt(Point3::new(posx,posy,posz),Point3::new( 0.0, 0.0, 0.0),Vector3::new(0.0,1.0,0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_la` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/glx/gl31/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles32/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles31/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles30/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gl45/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/camera.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut matx :Matrix4 ; [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/camera.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut maty :Matrix4 ; [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/camera.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut matz :Matrix4 ; [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/main.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | let mut xyz : [GLfloat; 54] = [ [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/main.rs:286:10 [INFO] [stdout] | [INFO] [stdout] 286 | let mut mViewMatrix : [GLfloat;16] =[ [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/main.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | let mut mone : [GLfloat;16] =[ [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/main.rs:299:10 [INFO] [stdout] | [INFO] [stdout] 299 | let mut defmat : Matrix4; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:266:81 [INFO] [stdout] | [INFO] [stdout] 266 | gl::BindFragDataLocation(program, 0, CString::new("out_color").unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:267:85 [INFO] [stdout] | [INFO] [stdout] 267 | color_attr = gl::GetUniformLocation(program,CString::new("vColor").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:268:95 [INFO] [stdout] | [INFO] [stdout] 268 | mMVPMatrixHandle = gl::GetUniformLocation(program,CString::new("uMVPMatrix").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:271:91 [INFO] [stdout] | [INFO] [stdout] 271 | mMLookAtHandle = gl::GetUniformLocation(program,CString::new("uMLookAt").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:277:92 [INFO] [stdout] | [INFO] [stdout] 277 | let pos_attr = gl::GetAttribLocation(program, 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] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.91s [INFO] running `Command { std: "docker" "inspect" "c23e83a62063750595b336dfacca18c9f295b45b01d2f947c2a036f7a4d6f419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c23e83a62063750595b336dfacca18c9f295b45b01d2f947c2a036f7a4d6f419", kill_on_drop: false }` [INFO] [stdout] c23e83a62063750595b336dfacca18c9f295b45b01d2f947c2a036f7a4d6f419 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22773bf6a54c9794fd189ce0c13eee558f13e9c6de561afaadfd4718ac41cffa [INFO] running `Command { std: "docker" "start" "-a" "22773bf6a54c9794fd189ce0c13eee558f13e9c6de561afaadfd4718ac41cffa", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Api`, `Fallbacks`, `GlobalGenerator`, `Profile`, `Registry` [INFO] [stdout] --> build/build.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use gl_generator::{Registry, Fallbacks, GlobalGenerator, Api, Profile}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling glText v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> build/build.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> build/build.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> build/build.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gl31/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gles32/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gles31/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gles30/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/glx/gl45/mod.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color_attr` is never read [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut color_attr : GLint =0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mMVPMatrixHandle` is never read [INFO] [stdout] --> src/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | let mut mMVPMatrixHandle :GLint =0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mMLookAtHandle` is never read [INFO] [stdout] --> src/main.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let mut mMLookAtHandle : GLint =0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mone` [INFO] [stdout] --> src/main.rs:293:14 [INFO] [stdout] | [INFO] [stdout] 293 | let mut mone : [GLfloat;16] =[ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `defmat` is assigned to, but never used [INFO] [stdout] --> src/main.rs:299:14 [INFO] [stdout] | [INFO] [stdout] 299 | let mut defmat : Matrix4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_defmat` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `defmat` is never read [INFO] [stdout] --> src/main.rs:301:6 [INFO] [stdout] | [INFO] [stdout] 301 | defmat = camera::camera::roatoz(posx,posy,posz); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `la` [INFO] [stdout] --> src/main.rs:332:17 [INFO] [stdout] | [INFO] [stdout] 332 | let la= camera::camera::lookAt(Point3::new(posx,posy,posz),Point3::new( 0.0, 0.0, 0.0),Vector3::new(0.0,1.0,0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_la` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/glx/gl31/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles32/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles31/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles30/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gl45/mod.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/camera.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut matx :Matrix4 ; [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/camera.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut maty :Matrix4 ; [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/camera.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut matz :Matrix4 ; [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/main.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | let mut xyz : [GLfloat; 54] = [ [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/main.rs:286:10 [INFO] [stdout] | [INFO] [stdout] 286 | let mut mViewMatrix : [GLfloat;16] =[ [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/main.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | let mut mone : [GLfloat;16] =[ [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/main.rs:299:10 [INFO] [stdout] | [INFO] [stdout] 299 | let mut defmat : Matrix4; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:266:81 [INFO] [stdout] | [INFO] [stdout] 266 | gl::BindFragDataLocation(program, 0, CString::new("out_color").unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:267:85 [INFO] [stdout] | [INFO] [stdout] 267 | color_attr = gl::GetUniformLocation(program,CString::new("vColor").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:268:95 [INFO] [stdout] | [INFO] [stdout] 268 | mMVPMatrixHandle = gl::GetUniformLocation(program,CString::new("uMVPMatrix").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:271:91 [INFO] [stdout] | [INFO] [stdout] 271 | mMLookAtHandle = gl::GetUniformLocation(program,CString::new("uMLookAt").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:277:92 [INFO] [stdout] | [INFO] [stdout] 277 | let pos_attr = gl::GetAttribLocation(program, 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] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.16s [INFO] running `Command { std: "docker" "inspect" "22773bf6a54c9794fd189ce0c13eee558f13e9c6de561afaadfd4718ac41cffa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22773bf6a54c9794fd189ce0c13eee558f13e9c6de561afaadfd4718ac41cffa", kill_on_drop: false }` [INFO] [stdout] 22773bf6a54c9794fd189ce0c13eee558f13e9c6de561afaadfd4718ac41cffa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fd416dea787e5728b14fe4478694ad9c117dd2fc7a52ccb4735d43fbff40ee2f [INFO] running `Command { std: "docker" "start" "-a" "fd416dea787e5728b14fe4478694ad9c117dd2fc7a52ccb4735d43fbff40ee2f", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Api`, `Fallbacks`, `GlobalGenerator`, `Profile`, `Registry` [INFO] [stderr] --> build/build.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | use gl_generator::{Registry, Fallbacks, GlobalGenerator, Api, Profile}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> build/build.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> build/build.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> build/build.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `glText` (build script) generated 4 warnings [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/glx/gl31/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/glx/gles32/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/glx/gles31/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/glx/gles30/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/glx/gl45/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: value assigned to `color_attr` is never read [INFO] [stderr] --> src/main.rs:248:13 [INFO] [stderr] | [INFO] [stderr] 248 | let mut color_attr : GLint =0; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `mMVPMatrixHandle` is never read [INFO] [stderr] --> src/main.rs:249:13 [INFO] [stderr] | [INFO] [stderr] 249 | let mut mMVPMatrixHandle :GLint =0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `mMLookAtHandle` is never read [INFO] [stderr] --> src/main.rs:250:13 [INFO] [stderr] | [INFO] [stderr] 250 | let mut mMLookAtHandle : GLint =0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mone` [INFO] [stderr] --> src/main.rs:293:14 [INFO] [stderr] | [INFO] [stderr] 293 | let mut mone : [GLfloat;16] =[ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mone` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `defmat` is assigned to, but never used [INFO] [stderr] --> src/main.rs:299:14 [INFO] [stderr] | [INFO] [stderr] 299 | let mut defmat : Matrix4; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_defmat` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `defmat` is never read [INFO] [stderr] --> src/main.rs:301:6 [INFO] [stderr] | [INFO] [stderr] 301 | defmat = camera::camera::roatoz(posx,posy,posz); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `la` [INFO] [stderr] --> src/main.rs:332:17 [INFO] [stderr] | [INFO] [stderr] 332 | let la= camera::camera::lookAt(Point3::new(posx,posy,posz),Point3::new( 0.0, 0.0, 0.0),Vector3::new(0.0,1.0,0.0)); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_la` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/glx/gl31/mod.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles32/mod.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles31/mod.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gles30/mod.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/glx/gl45/mod.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [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/camera.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | let mut matx :Matrix4 ; [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/camera.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | let mut maty :Matrix4 ; [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/camera.rs:32:13 [INFO] [stderr] | [INFO] [stderr] 32 | let mut matz :Matrix4 ; [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/main.rs:196:10 [INFO] [stderr] | [INFO] [stderr] 196 | let mut xyz : [GLfloat; 54] = [ [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/main.rs:286:10 [INFO] [stderr] | [INFO] [stderr] 286 | let mut mViewMatrix : [GLfloat;16] =[ [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/main.rs:293:10 [INFO] [stderr] | [INFO] [stderr] 293 | let mut mone : [GLfloat;16] =[ [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/main.rs:299:10 [INFO] [stderr] | [INFO] [stderr] 299 | let mut defmat : Matrix4; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:266:81 [INFO] [stderr] | [INFO] [stderr] 266 | gl::BindFragDataLocation(program, 0, CString::new("out_color").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: `#[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:267:85 [INFO] [stderr] | [INFO] [stderr] 267 | color_attr = gl::GetUniformLocation(program,CString::new("vColor").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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:268:95 [INFO] [stderr] | [INFO] [stderr] 268 | mMVPMatrixHandle = gl::GetUniformLocation(program,CString::new("uMVPMatrix").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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:271:91 [INFO] [stderr] | [INFO] [stderr] 271 | mMLookAtHandle = gl::GetUniformLocation(program,CString::new("uMLookAt").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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:277:92 [INFO] [stderr] | [INFO] [stderr] 277 | let pos_attr = gl::GetAttribLocation(program, 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] [INFO] [stderr] warning: `glText` (bin "glText" test) generated 29 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/glText-84f0ee2972a3d32d) [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" "fd416dea787e5728b14fe4478694ad9c117dd2fc7a52ccb4735d43fbff40ee2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd416dea787e5728b14fe4478694ad9c117dd2fc7a52ccb4735d43fbff40ee2f", kill_on_drop: false }` [INFO] [stdout] fd416dea787e5728b14fe4478694ad9c117dd2fc7a52ccb4735d43fbff40ee2f