[INFO] cloning repository https://github.com/wmww/Rust-on-Android-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wmww/Rust-on-Android-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmww%2FRust-on-Android-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmww%2FRust-on-Android-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0fea157162df88c7cb7c0a086f78e32d67e2ab29 [INFO] checking wmww/Rust-on-Android-test against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmww%2FRust-on-Android-test" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wmww/Rust-on-Android-test on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wmww/Rust-on-Android-test [INFO] finished tweaking git repo https://github.com/wmww/Rust-on-Android-test [INFO] tweaked toml for git repo https://github.com/wmww/Rust-on-Android-test written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/wmww/Rust-on-Android-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--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 objc v0.2.2 [INFO] [stderr] Downloaded stb_truetype v0.2.2 [INFO] [stderr] Downloaded cgl v0.2.2 [INFO] [stderr] Downloaded gleam v0.5.1 [INFO] [stderr] Downloaded core-foundation v0.6.0 [INFO] [stderr] Downloaded rusttype v0.5.2 [INFO] [stderr] Downloaded glutin v0.16.0 [INFO] [stderr] Downloaded cocoa v0.15.0 [INFO] [stderr] Downloaded core-foundation-sys v0.6.0 [INFO] [stderr] Downloaded core-graphics v0.14.0 [INFO] [stderr] Downloaded x11-dl v2.17.5 [INFO] [stderr] Downloaded tempfile v3.0.2 [INFO] [stderr] Downloaded smithay-client-toolkit v0.2.1 [INFO] [stderr] Downloaded wayland-commons v0.20.8 [INFO] [stderr] Downloaded winit v0.15.0 [INFO] [stderr] Downloaded wayland-scanner v0.20.8 [INFO] [stderr] Downloaded wayland-sys v0.20.8 [INFO] [stderr] Downloaded wayland-client v0.20.8 [INFO] [stderr] Downloaded wayland-protocols v0.20.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] f05dc968e5df436505ca1dd0f993ebaf7bccfb2b9d19578216fbc74e6dad85f9 [INFO] running `Command { std: "docker" "start" "-a" "f05dc968e5df436505ca1dd0f993ebaf7bccfb2b9d19578216fbc74e6dad85f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f05dc968e5df436505ca1dd0f993ebaf7bccfb2b9d19578216fbc74e6dad85f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f05dc968e5df436505ca1dd0f993ebaf7bccfb2b9d19578216fbc74e6dad85f9", kill_on_drop: false }` [INFO] [stdout] f05dc968e5df436505ca1dd0f993ebaf7bccfb2b9d19578216fbc74e6dad85f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] 5a1aea1a5461772b2b7046b7066414b447d87128f7833ec1d32d5c544cd7c965 [INFO] running `Command { std: "docker" "start" "-a" "5a1aea1a5461772b2b7046b7066414b447d87128f7833ec1d32d5c544cd7c965", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Compiling cc v1.0.17 [INFO] [stderr] Checking lazy_static v1.0.1 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Checking downcast-rs v1.0.3 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling x11-dl v2.17.5 [INFO] [stderr] Checking unreachable v0.1.1 [INFO] [stderr] Checking stb_truetype v0.2.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Checking ordered-float v0.5.0 [INFO] [stderr] Checking rusttype v0.5.2 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking memmap v0.6.2 [INFO] [stderr] Checking shared_library v0.1.8 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling wayland-scanner v0.20.8 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Checking tempfile v3.0.2 [INFO] [stderr] Checking parking_lot_core v0.2.14 [INFO] [stderr] Checking parking_lot v0.5.5 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Compiling wayland-client v0.20.8 [INFO] [stderr] Compiling wayland-protocols v0.20.8 [INFO] [stderr] Checking wayland-sys v0.20.8 [INFO] [stderr] Compiling glutin v0.16.0 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking wayland-commons v0.20.8 [INFO] [stderr] Checking smithay-client-toolkit v0.2.1 [INFO] [stderr] Checking winit v0.15.0 [INFO] [stderr] Checking android_rust_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Font` [INFO] [stdout] --> src/text.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use rusttype::{point, vector, Font, FontCollection, PositionedGlyph, Rect, Scale}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/gl_basic/object.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/text.rs:345:1 [INFO] [stdout] | [INFO] [stdout] 345 | / attribs!(pub struct Vertex { [INFO] [stdout] 346 | | pub position: Vec2, [INFO] [stdout] 347 | | pub tex_coords: Vec2, [INFO] [stdout] 348 | | }); [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusttype::gpu_cache::CacheBuilder` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rusttype::gpu_cache::CacheBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `Rect`, `vector` [INFO] [stdout] --> src/main.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | use rusttype::{point, vector, Font, FontCollection, PositionedGlyph, Rect, Scale}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/gl_basic/object.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / attribs!(pub struct Vertex { [INFO] [stdout] 150 | | pub position: Vec2, [INFO] [stdout] 151 | | pub tex_coords: Vec2, [INFO] [stdout] 152 | | pub color: Vec4, [INFO] [stdout] 153 | | }); [INFO] [stdout] | |_______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/object.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | let mut vertex_array = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/object.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vertex_buffer = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/object.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | let mut element_buffer = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/texture.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | let mut id = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Font` [INFO] [stdout] --> src/text.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use rusttype::{point, vector, Font, FontCollection, PositionedGlyph, Rect, Scale}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/gl_basic/object.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/text.rs:345:1 [INFO] [stdout] | [INFO] [stdout] 345 | / attribs!(pub struct Vertex { [INFO] [stdout] 346 | | pub position: Vec2, [INFO] [stdout] 347 | | pub tex_coords: Vec2, [INFO] [stdout] 348 | | }); [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusttype::gpu_cache::CacheBuilder` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rusttype::gpu_cache::CacheBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font`, `Rect`, `vector` [INFO] [stdout] --> src/main.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | use rusttype::{point, vector, Font, FontCollection, PositionedGlyph, Rect, Scale}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/gl_basic/object.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / attribs!(pub struct Vertex { [INFO] [stdout] 150 | | pub position: Vec2, [INFO] [stdout] 151 | | pub tex_coords: Vec2, [INFO] [stdout] 152 | | pub color: Vec4, [INFO] [stdout] 153 | | }); [INFO] [stdout] | |_______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/object.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | let mut vertex_array = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/object.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vertex_buffer = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/object.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | let mut element_buffer = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/gl_basic/texture.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | let mut id = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gl_basic::types::GlType` [INFO] [stdout] --> src/gl_basic/object.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gl_basic::types::GlType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut texture = match gl_basic::Texture::new() { [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/text.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut texture = match gl_basic::Texture::new() { [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/text.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cache = rusttype::gpu_cache::CacheBuilder { [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/text.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut object = match Vertex::new_object(program) { [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/text.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut cache = match GlGlyphCache::new() { [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/text.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | let mut glyph = base_glyph.scaled(scale).positioned(caret); [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/gl_basic/shader.rs:27:58 [INFO] [stdout] | [INFO] [stdout] 27 | [std::ffi::CString::new(source).unwrap().as_ptr() as *const _].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/gl_basic/object.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 59 | / std::ffi::CString::new(attrib.name.clone()) [INFO] [stdout] 60 | | .unwrap() [INFO] [stdout] | |_________________________________- this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] 61 | .as_ptr() as *const _, [INFO] [stdout] | ^^^^^^ this pointer will be invalid [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: unused import: `gl_basic::types::GlType` [INFO] [stdout] --> src/gl_basic/object.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gl_basic::types::GlType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut texture = match gl_basic::Texture::new() { [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/text.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut texture = match gl_basic::Texture::new() { [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/text.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cache = rusttype::gpu_cache::CacheBuilder { [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/text.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut object = match Vertex::new_object(program) { [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/text.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut cache = match GlGlyphCache::new() { [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/text.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | let mut glyph = base_glyph.scaled(scale).positioned(caret); [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/gl_basic/shader.rs:27:58 [INFO] [stdout] | [INFO] [stdout] 27 | [std::ffi::CString::new(source).unwrap().as_ptr() as *const _].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/gl_basic/object.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 59 | / std::ffi::CString::new(attrib.name.clone()) [INFO] [stdout] 60 | | .unwrap() [INFO] [stdout] | |_________________________________- this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] 61 | .as_ptr() as *const _, [INFO] [stdout] | ^^^^^^ this pointer will be invalid [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: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 42.40s [INFO] running `Command { std: "docker" "inspect" "5a1aea1a5461772b2b7046b7066414b447d87128f7833ec1d32d5c544cd7c965", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a1aea1a5461772b2b7046b7066414b447d87128f7833ec1d32d5c544cd7c965", kill_on_drop: false }` [INFO] [stdout] 5a1aea1a5461772b2b7046b7066414b447d87128f7833ec1d32d5c544cd7c965