[INFO] cloning repository https://github.com/Tarnadas/switch-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tarnadas/switch-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarnadas%2Fswitch-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarnadas%2Fswitch-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c4232b84a4b95c294e0c84a06cd4fdfc741ff59 [INFO] checking Tarnadas/switch-app against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarnadas%2Fswitch-app" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tarnadas/switch-app 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] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/Tarnadas/switch-app [INFO] finished tweaking git repo https://github.com/Tarnadas/switch-app [INFO] tweaked toml for git repo https://github.com/Tarnadas/switch-app written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Tarnadas/switch-app 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] Updating git repository `https://github.com/skyline-rs/getrandom` [INFO] [stderr] Updating git repository `https://github.com/ArjunNair/egui_sdl2_gl.git` [INFO] [stderr] warning: Patch `getrandom v0.2.0 (https://github.com/skyline-rs/getrandom#c8f353e9)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded atomic_refcell v0.1.7 [INFO] [stderr] Downloaded emath v0.10.0 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded sdl2 v0.34.5 [INFO] [stderr] Downloaded ahash v0.7.4 [INFO] [stderr] Downloaded egui v0.10.0 [INFO] [stderr] Downloaded sdl2-sys v0.34.5 [INFO] [stderr] Downloaded epaint v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] d4e57ded0e295240954c77dc4184a84e61db905994704f65ae7c7b41a379396e [INFO] running `Command { std: "docker" "start" "-a" "d4e57ded0e295240954c77dc4184a84e61db905994704f65ae7c7b41a379396e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4e57ded0e295240954c77dc4184a84e61db905994704f65ae7c7b41a379396e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4e57ded0e295240954c77dc4184a84e61db905994704f65ae7c7b41a379396e", kill_on_drop: false }` [INFO] [stdout] d4e57ded0e295240954c77dc4184a84e61db905994704f65ae7c7b41a379396e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] e93c83aa9727f6022a643aba6f72966a0d355ab74e57bc350d1e3ca2f6c333a9 [INFO] running `Command { std: "docker" "start" "-a" "e93c83aa9727f6022a643aba6f72966a0d355ab74e57bc350d1e3ca2f6c333a9", kill_on_drop: false }` [INFO] [stderr] warning: Patch `getrandom v0.2.0 (https://github.com/skyline-rs/getrandom#c8f353e9)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Checking atomic_refcell v0.1.7 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking emath v0.10.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking epaint v0.10.0 [INFO] [stderr] Checking egui v0.10.0 [INFO] [stderr] Checking egui_sdl2_gl v0.10.1 (https://github.com/ArjunNair/egui_sdl2_gl.git?branch=main#d808b19d) [INFO] [stderr] Checking switch-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `egui_output` [INFO] [stdout] --> src/main.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (egui_output, paint_cmds) = egui_ctx.end_frame(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egui_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `egui_output` [INFO] [stdout] --> src/main.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (egui_output, paint_cmds) = egui_ctx.end_frame(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egui_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:139:90 [INFO] [stdout] | [INFO] [stdout] 139 | gl::BindFragDataLocation(self.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: 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:143:87 [INFO] [stdout] | [INFO] [stdout] 143 | gl::GetAttribLocation(self.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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:139:90 [INFO] [stdout] | [INFO] [stdout] 139 | gl::BindFragDataLocation(self.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: 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:143:87 [INFO] [stdout] | [INFO] [stdout] 143 | gl::GetAttribLocation(self.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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.98s [INFO] running `Command { std: "docker" "inspect" "e93c83aa9727f6022a643aba6f72966a0d355ab74e57bc350d1e3ca2f6c333a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e93c83aa9727f6022a643aba6f72966a0d355ab74e57bc350d1e3ca2f6c333a9", kill_on_drop: false }` [INFO] [stdout] e93c83aa9727f6022a643aba6f72966a0d355ab74e57bc350d1e3ca2f6c333a9 [INFO] checking Tarnadas/switch-app against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarnadas%2Fswitch-app" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tarnadas/switch-app 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] removed /workspace/builds/worker-3-tc2/source/.cargo/config [INFO] started tweaking git repo https://github.com/Tarnadas/switch-app [INFO] finished tweaking git repo https://github.com/Tarnadas/switch-app [INFO] tweaked toml for git repo https://github.com/Tarnadas/switch-app written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Tarnadas/switch-app 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] [stderr] warning: Patch `getrandom v0.2.0 (https://github.com/skyline-rs/getrandom#c8f353e9)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 48f8956fed48a530edc52e33e4bf82e5b62ade22309ddf607b8caccd1b493f76 [INFO] running `Command { std: "docker" "start" "-a" "48f8956fed48a530edc52e33e4bf82e5b62ade22309ddf607b8caccd1b493f76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48f8956fed48a530edc52e33e4bf82e5b62ade22309ddf607b8caccd1b493f76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f8956fed48a530edc52e33e4bf82e5b62ade22309ddf607b8caccd1b493f76", kill_on_drop: false }` [INFO] [stdout] 48f8956fed48a530edc52e33e4bf82e5b62ade22309ddf607b8caccd1b493f76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 9998b8752b310d77f15bac89bf61c17b6db79b6746c0f136d6fc3e67b61dd25c [INFO] running `Command { std: "docker" "start" "-a" "9998b8752b310d77f15bac89bf61c17b6db79b6746c0f136d6fc3e67b61dd25c", kill_on_drop: false }` [INFO] [stderr] warning: Patch `getrandom v0.2.0 (https://github.com/skyline-rs/getrandom#c8f353e9)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Checking emath v0.10.0 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking atomic_refcell v0.1.7 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Checking epaint v0.10.0 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking egui v0.10.0 [INFO] [stderr] Checking egui_sdl2_gl v0.10.1 (https://github.com/ArjunNair/egui_sdl2_gl.git?branch=main#d808b19d) [INFO] [stderr] Checking switch-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `egui_output` [INFO] [stdout] --> src/main.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (egui_output, paint_cmds) = egui_ctx.end_frame(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egui_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `egui_output` [INFO] [stdout] --> src/main.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (egui_output, paint_cmds) = egui_ctx.end_frame(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egui_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:139:90 [INFO] [stdout] | [INFO] [stdout] 139 | gl::BindFragDataLocation(self.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: 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:143:87 [INFO] [stdout] | [INFO] [stdout] 143 | gl::GetAttribLocation(self.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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:139:90 [INFO] [stdout] | [INFO] [stdout] 139 | gl::BindFragDataLocation(self.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: 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/triangle.rs:143:87 [INFO] [stdout] | [INFO] [stdout] 143 | gl::GetAttribLocation(self.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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.10s [INFO] running `Command { std: "docker" "inspect" "9998b8752b310d77f15bac89bf61c17b6db79b6746c0f136d6fc3e67b61dd25c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9998b8752b310d77f15bac89bf61c17b6db79b6746c0f136d6fc3e67b61dd25c", kill_on_drop: false }` [INFO] [stdout] 9998b8752b310d77f15bac89bf61c17b6db79b6746c0f136d6fc3e67b61dd25c