[INFO] cloning repository https://github.com/Robaire/rust-text [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Robaire/rust-text" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRobaire%2Frust-text", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRobaire%2Frust-text'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20cc2781cb671289e4e2939279d6f59574b1a9e4 [INFO] checking Robaire/rust-text against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRobaire%2Frust-text" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Robaire/rust-text on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Robaire/rust-text [INFO] finished tweaking git repo https://github.com/Robaire/rust-text [INFO] tweaked toml for git repo https://github.com/Robaire/rust-text written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Robaire/rust-text already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.34.3 [INFO] [stderr] Downloaded simba v0.3.1 [INFO] [stderr] Downloaded sdl2-sys v0.34.3 [INFO] [stderr] Downloaded cmake v0.1.45 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded rand_distr v0.3.0 [INFO] [stderr] Downloaded paste v1.0.4 [INFO] [stderr] Downloaded nalgebra v0.24.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 866f3498ca3b35f41994dec3be7254da2575b03f9348f691835a6f341f21daea [INFO] running `Command { std: "docker" "start" "-a" "866f3498ca3b35f41994dec3be7254da2575b03f9348f691835a6f341f21daea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "866f3498ca3b35f41994dec3be7254da2575b03f9348f691835a6f341f21daea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "866f3498ca3b35f41994dec3be7254da2575b03f9348f691835a6f341f21daea", kill_on_drop: false }` [INFO] [stdout] 866f3498ca3b35f41994dec3be7254da2575b03f9348f691835a6f341f21daea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4288dd3717820bb7a6d5f20bab9ed11681eaa7e8fdc8e441ddb1c2c075e96f2 [INFO] running `Command { std: "docker" "start" "-a" "e4288dd3717820bb7a6d5f20bab9ed11681eaa7e8fdc8e441ddb1c2c075e96f2", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling sdl2-sys v0.34.3 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling paste v1.0.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking freetype-rs v0.26.0 [INFO] [stderr] Checking simba v0.3.1 [INFO] [stderr] Checking rand_distr v0.3.0 [INFO] [stderr] Checking nalgebra v0.24.1 [INFO] [stderr] Checking rust-font v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `GLchar`, `GLenum`, `GLint` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use gl::types::{GLchar, GLenum, GLint, GLuint}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::GLProfile` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::video::GLProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Matrix4` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nalgebra::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GLchar`, `GLenum`, `GLint` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use gl::types::{GLchar, GLenum, GLint, GLuint}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::GLProfile` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::video::GLProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Matrix4` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nalgebra::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | let text = "Hello World!"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | let text = "Hello World!"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/shader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Shader { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | id: GLuint, [INFO] [stdout] 10 | kind: GLenum, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:205:40 [INFO] [stdout] | [INFO] [stdout] 205 | Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 205 - Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] 205 + Err(message) => panic!("Failed to create vertex shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 211 - Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] 211 + Err(message) => panic!("Failed to create fragment shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:221:36 [INFO] [stdout] | [INFO] [stdout] 221 | Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 221 - Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] 221 + Err(message) => panic!("Failed to create shader program: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:234:49 [INFO] [stdout] | [INFO] [stdout] 234 | CString::new("projection").unwrap().as_ptr(), [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/shader.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] 31 + Err(message) => panic!("Shader creation failed: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:42:48 [INFO] [stdout] | [INFO] [stdout] 42 | &CString::new(source).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/gl_util.rs:132:87 [INFO] [stdout] | [INFO] [stdout] 132 | let location = gl::GetUniformLocation(program, CString::new(uniform).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/gl_util.rs:144:87 [INFO] [stdout] | [INFO] [stdout] 144 | let location = gl::GetUniformLocation(program, CString::new(uniform).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/shader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Shader { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | id: GLuint, [INFO] [stdout] 10 | kind: GLenum, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:205:40 [INFO] [stdout] | [INFO] [stdout] 205 | Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 205 - Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] 205 + Err(message) => panic!("Failed to create vertex shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 211 - Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] 211 + Err(message) => panic!("Failed to create fragment shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:221:36 [INFO] [stdout] | [INFO] [stdout] 221 | Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 221 - Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] 221 + Err(message) => panic!("Failed to create shader program: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:234:49 [INFO] [stdout] | [INFO] [stdout] 234 | CString::new("projection").unwrap().as_ptr(), [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/shader.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] 31 + Err(message) => panic!("Shader creation failed: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:42:48 [INFO] [stdout] | [INFO] [stdout] 42 | &CString::new(source).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/gl_util.rs:132:87 [INFO] [stdout] | [INFO] [stdout] 132 | let location = gl::GetUniformLocation(program, CString::new(uniform).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/gl_util.rs:144:87 [INFO] [stdout] | [INFO] [stdout] 144 | let location = gl::GetUniformLocation(program, CString::new(uniform).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.86s [INFO] running `Command { std: "docker" "inspect" "e4288dd3717820bb7a6d5f20bab9ed11681eaa7e8fdc8e441ddb1c2c075e96f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4288dd3717820bb7a6d5f20bab9ed11681eaa7e8fdc8e441ddb1c2c075e96f2", kill_on_drop: false }` [INFO] [stdout] e4288dd3717820bb7a6d5f20bab9ed11681eaa7e8fdc8e441ddb1c2c075e96f2 [INFO] checking Robaire/rust-text against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRobaire%2Frust-text" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Robaire/rust-text on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Robaire/rust-text [INFO] finished tweaking git repo https://github.com/Robaire/rust-text [INFO] tweaked toml for git repo https://github.com/Robaire/rust-text written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Robaire/rust-text already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5faf59bc2889eaf9b6d1f870cf2acc7af2cd0f7da21b5d4514136646316e32b2 [INFO] running `Command { std: "docker" "start" "-a" "5faf59bc2889eaf9b6d1f870cf2acc7af2cd0f7da21b5d4514136646316e32b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5faf59bc2889eaf9b6d1f870cf2acc7af2cd0f7da21b5d4514136646316e32b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5faf59bc2889eaf9b6d1f870cf2acc7af2cd0f7da21b5d4514136646316e32b2", kill_on_drop: false }` [INFO] [stdout] 5faf59bc2889eaf9b6d1f870cf2acc7af2cd0f7da21b5d4514136646316e32b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac671d9114d133ec3af25788c6616f93e8fa54b1ededbd3c2709e26aa22f77dd [INFO] running `Command { std: "docker" "start" "-a" "ac671d9114d133ec3af25788c6616f93e8fa54b1ededbd3c2709e26aa22f77dd", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling sdl2-sys v0.34.3 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling paste v1.0.4 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking rand_distr v0.3.0 [INFO] [stderr] Checking freetype-rs v0.26.0 [INFO] [stderr] Checking simba v0.3.1 [INFO] [stderr] Checking nalgebra v0.24.1 [INFO] [stderr] Checking rust-font v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `GLchar`, `GLenum`, `GLint` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use gl::types::{GLchar, GLenum, GLint, GLuint}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GLchar`, `GLenum`, `GLint` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use gl::types::{GLchar, GLenum, GLint, GLuint}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::GLProfile` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::video::GLProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::GLProfile` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::video::GLProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Matrix4` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nalgebra::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Matrix4` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nalgebra::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | let text = "Hello World!"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | let text = "Hello World!"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/shader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Shader { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | id: GLuint, [INFO] [stdout] 10 | kind: GLenum, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:205:40 [INFO] [stdout] | [INFO] [stdout] 205 | Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 205 - Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] 205 + Err(message) => panic!("Failed to create vertex shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/shader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Shader { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | id: GLuint, [INFO] [stdout] 10 | kind: GLenum, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 211 - Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] 211 + Err(message) => panic!("Failed to create fragment shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:221:36 [INFO] [stdout] | [INFO] [stdout] 221 | Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 221 - Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] 221 + Err(message) => panic!("Failed to create shader program: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:234:49 [INFO] [stdout] | [INFO] [stdout] 234 | CString::new("projection").unwrap().as_ptr(), [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/shader.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] 31 + Err(message) => panic!("Shader creation failed: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:42:48 [INFO] [stdout] | [INFO] [stdout] 42 | &CString::new(source).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/gl_util.rs:132:87 [INFO] [stdout] | [INFO] [stdout] 132 | let location = gl::GetUniformLocation(program, CString::new(uniform).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/gl_util.rs:144:87 [INFO] [stdout] | [INFO] [stdout] 144 | let location = gl::GetUniformLocation(program, CString::new(uniform).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: panic message is not a string literal [INFO] [stdout] --> src/main.rs:205:40 [INFO] [stdout] | [INFO] [stdout] 205 | Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 205 - Err(message) => panic!(format!("Failed to create vertex shader: {}", message)), [INFO] [stdout] 205 + Err(message) => panic!("Failed to create vertex shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 211 - Err(message) => panic!(format!("Failed to create fragment shader: {}", message)), [INFO] [stdout] 211 + Err(message) => panic!("Failed to create fragment shader: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:221:36 [INFO] [stdout] | [INFO] [stdout] 221 | Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 221 - Err(message) => panic!(format!("Failed to create shader program: {}", message)), [INFO] [stdout] 221 + Err(message) => panic!("Failed to create shader program: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:234:49 [INFO] [stdout] | [INFO] [stdout] 234 | CString::new("projection").unwrap().as_ptr(), [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/shader.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - Err(message) => panic!(format!("Shader creation failed: {}", message)), [INFO] [stdout] 31 + Err(message) => panic!("Shader creation failed: {}", message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/shader.rs:42:48 [INFO] [stdout] | [INFO] [stdout] 42 | &CString::new(source).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/gl_util.rs:132:87 [INFO] [stdout] | [INFO] [stdout] 132 | let location = gl::GetUniformLocation(program, CString::new(uniform).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/gl_util.rs:144:87 [INFO] [stdout] | [INFO] [stdout] 144 | let location = gl::GetUniformLocation(program, CString::new(uniform).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.86s [INFO] running `Command { std: "docker" "inspect" "ac671d9114d133ec3af25788c6616f93e8fa54b1ededbd3c2709e26aa22f77dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac671d9114d133ec3af25788c6616f93e8fa54b1ededbd3c2709e26aa22f77dd", kill_on_drop: false }` [INFO] [stdout] ac671d9114d133ec3af25788c6616f93e8fa54b1ededbd3c2709e26aa22f77dd