[INFO] cloning repository https://github.com/UnGast/rust-opengl-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UnGast/rust-opengl-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnGast%2Frust-opengl-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnGast%2Frust-opengl-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 182a2dccc753474805521cf35d8707b96b1ed01a [INFO] checking UnGast/rust-opengl-example against try#82acd1d76add2232e19c1f0feb250d2a19ec6efe for pr-81213 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnGast%2Frust-opengl-example" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/UnGast/rust-opengl-example on toolchain 82acd1d76add2232e19c1f0feb250d2a19ec6efe [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+82acd1d76add2232e19c1f0feb250d2a19ec6efe" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/UnGast/rust-opengl-example [INFO] finished tweaking git repo https://github.com/UnGast/rust-opengl-example [INFO] tweaked toml for git repo https://github.com/UnGast/rust-opengl-example written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/UnGast/rust-opengl-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+82acd1d76add2232e19c1f0feb250d2a19ec6efe" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded glfw v0.41.0 [INFO] [stderr] Downloaded glfw-sys v3.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+82acd1d76add2232e19c1f0feb250d2a19ec6efe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e966d202601495b28e5635d473e7433fba919911cfdca564c0a983a9e7cd4c1c [INFO] running `Command { std: "docker" "start" "-a" "e966d202601495b28e5635d473e7433fba919911cfdca564c0a983a9e7cd4c1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e966d202601495b28e5635d473e7433fba919911cfdca564c0a983a9e7cd4c1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e966d202601495b28e5635d473e7433fba919911cfdca564c0a983a9e7cd4c1c", kill_on_drop: false }` [INFO] [stdout] e966d202601495b28e5635d473e7433fba919911cfdca564c0a983a9e7cd4c1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+82acd1d76add2232e19c1f0feb250d2a19ec6efe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f1e624706f1afb81b75124c27de396aa52891cac56e27f842f83c0267037848a [INFO] running `Command { std: "docker" "start" "-a" "f1e624706f1afb81b75124c27de396aa52891cac56e27f842f83c0267037848a", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.13 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Compiling glfw-sys v3.3.2 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking glfw v0.41.0 [INFO] [stderr] Checking rust_opengl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `events` [INFO] [stdout] --> src/main.rs:117:22 [INFO] [stdout] | [INFO] [stdout] 117 | let (mut window, events) = glfw.create_window(500, 500, "OpenGL", glfw::WindowMode::Windowed) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shaderProgram` [INFO] [stdout] --> src/main.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shaderProgram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `VAO` [INFO] [stdout] --> src/main.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_VAO` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fragment_shader` [INFO] [stdout] --> src/main.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let fragment_shader = gl::CreateShader(gl::FRAGMENT_SHADER); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fragment_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FRAGMENT_SHADER_SOURCE` [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / const FRAGMENT_SHADER_SOURCE: &str = r#" [INFO] [stdout] 15 | | #version 330 core; [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | out vec4 outFragmentColor; [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | "#; [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ShaderType` [INFO] [stdout] --> src/main.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | enum ShaderType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gl_id` [INFO] [stdout] --> src/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn gl_id(&self) -> GLuint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Shader` [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Shader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn new(shader_type: ShaderType, source: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ShaderProgram` [INFO] [stdout] --> src/main.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct ShaderProgram { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn new(vertex_shader_source_: String, fragment_shader_source_: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:55:63 [INFO] [stdout] | [INFO] [stdout] 55 | let c_str_src = CString::new(source.clone()).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:126:70 [INFO] [stdout] | [INFO] [stdout] 126 | let c_str_vert = CString::new(VERTEX_SHADER_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: variable `infoLog` should have a snake case name [INFO] [stdout] --> src/main.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | let mut infoLog = Vec::with_capacity(512); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `info_log` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shaderProgram` should have a snake case name [INFO] [stdout] --> src/main.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `shader_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> src/main.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `events` [INFO] [stdout] --> src/main.rs:117:22 [INFO] [stdout] | [INFO] [stdout] 117 | let (mut window, events) = glfw.create_window(500, 500, "OpenGL", glfw::WindowMode::Windowed) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shaderProgram` [INFO] [stdout] --> src/main.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shaderProgram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `VAO` [INFO] [stdout] --> src/main.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_VAO` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fragment_shader` [INFO] [stdout] --> src/main.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let fragment_shader = gl::CreateShader(gl::FRAGMENT_SHADER); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fragment_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FRAGMENT_SHADER_SOURCE` [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / const FRAGMENT_SHADER_SOURCE: &str = r#" [INFO] [stdout] 15 | | #version 330 core; [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | out vec4 outFragmentColor; [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | "#; [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ShaderType` [INFO] [stdout] --> src/main.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | enum ShaderType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gl_id` [INFO] [stdout] --> src/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn gl_id(&self) -> GLuint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Shader` [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Shader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn new(shader_type: ShaderType, source: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ShaderProgram` [INFO] [stdout] --> src/main.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct ShaderProgram { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn new(vertex_shader_source_: String, fragment_shader_source_: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:55:63 [INFO] [stdout] | [INFO] [stdout] 55 | let c_str_src = CString::new(source.clone()).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:126:70 [INFO] [stdout] | [INFO] [stdout] 126 | let c_str_vert = CString::new(VERTEX_SHADER_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: variable `infoLog` should have a snake case name [INFO] [stdout] --> src/main.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | let mut infoLog = Vec::with_capacity(512); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `info_log` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shaderProgram` should have a snake case name [INFO] [stdout] --> src/main.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `shader_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAO` should have a snake case name [INFO] [stdout] --> src/main.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let (shaderProgram, VAO) = unsafe { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `vao` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.47s [INFO] running `Command { std: "docker" "inspect" "f1e624706f1afb81b75124c27de396aa52891cac56e27f842f83c0267037848a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1e624706f1afb81b75124c27de396aa52891cac56e27f842f83c0267037848a", kill_on_drop: false }` [INFO] [stdout] f1e624706f1afb81b75124c27de396aa52891cac56e27f842f83c0267037848a