[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] testing wmww/Rust-on-Android-test against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmww%2FRust-on-Android-test" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wmww/Rust-on-Android-test on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-3/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" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded glutin v0.16.0 [INFO] [stderr] Downloaded wayland-scanner v0.20.8 [INFO] [stderr] Downloaded wayland-sys v0.20.8 [INFO] [stderr] Downloaded wayland-commons v0.20.8 [INFO] [stderr] Downloaded wayland-client v0.20.8 [INFO] [stderr] Downloaded smithay-client-toolkit v0.2.1 [INFO] [stderr] Downloaded wayland-protocols v0.20.8 [INFO] [stderr] Downloaded winit v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61c553327285542d9f75cbc051d5400cfac696272b6cb3c769d420cd25dceea9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "61c553327285542d9f75cbc051d5400cfac696272b6cb3c769d420cd25dceea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61c553327285542d9f75cbc051d5400cfac696272b6cb3c769d420cd25dceea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61c553327285542d9f75cbc051d5400cfac696272b6cb3c769d420cd25dceea9", kill_on_drop: false }` [INFO] [stdout] 61c553327285542d9f75cbc051d5400cfac696272b6cb3c769d420cd25dceea9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e590f1ae5de607bfa316d6fbde6654c257c7d908bdc053c602ff5c0844b7dc7f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e590f1ae5de607bfa316d6fbde6654c257c7d908bdc053c602ff5c0844b7dc7f", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling cc v1.0.17 [INFO] [stderr] Compiling lazy_static v1.0.1 [INFO] [stderr] Compiling cfg-if v0.1.3 [INFO] [stderr] Compiling downcast-rs v1.0.3 [INFO] [stderr] Compiling num-traits v0.2.4 [INFO] [stderr] Compiling byteorder v1.2.3 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling linked-hash-map v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.7 [INFO] [stderr] Compiling x11-dl v2.17.5 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling stb_truetype v0.2.2 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling shared_library v0.1.8 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling wayland-scanner v0.20.8 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling tempfile v3.0.2 [INFO] [stderr] Compiling wayland-sys v0.20.8 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling ordered-float v0.5.0 [INFO] [stderr] Compiling wayland-client v0.20.8 [INFO] [stderr] Compiling wayland-protocols v0.20.8 [INFO] [stderr] Compiling parking_lot v0.5.5 [INFO] [stderr] Compiling wayland-commons v0.20.8 [INFO] [stderr] Compiling rusttype v0.5.2 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling glutin v0.16.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.2.1 [INFO] [stderr] Compiling winit v0.15.0 [INFO] [stderr] Compiling 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 the macro `attribs` (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 the macro `attribs` (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:41 [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:42 [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:43 [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:36 [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/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] = 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: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: 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] [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 1m 09s [INFO] running `Command { std: "docker" "inspect" "e590f1ae5de607bfa316d6fbde6654c257c7d908bdc053c602ff5c0844b7dc7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e590f1ae5de607bfa316d6fbde6654c257c7d908bdc053c602ff5c0844b7dc7f", kill_on_drop: false }` [INFO] [stdout] e590f1ae5de607bfa316d6fbde6654c257c7d908bdc053c602ff5c0844b7dc7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--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] f236e34967d7001c3c1efa1b21a7f085ba933afddc99100a3e803c72e8cf7f36 [INFO] running `Command { std: "docker" "start" "-a" "f236e34967d7001c3c1efa1b21a7f085ba933afddc99100a3e803c72e8cf7f36", kill_on_drop: false }` [INFO] [stderr] Compiling 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 the macro `attribs` (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 the macro `attribs` (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:41 [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:42 [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:43 [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:36 [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/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] = 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: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: 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] [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 test [unoptimized + debuginfo] target(s) in 1.71s [INFO] running `Command { std: "docker" "inspect" "f236e34967d7001c3c1efa1b21a7f085ba933afddc99100a3e803c72e8cf7f36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f236e34967d7001c3c1efa1b21a7f085ba933afddc99100a3e803c72e8cf7f36", kill_on_drop: false }` [INFO] [stdout] f236e34967d7001c3c1efa1b21a7f085ba933afddc99100a3e803c72e8cf7f36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", 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] 2227d5a040c8b50f2f02e44421a345256291f5eaa5f2ebfcba4032a733cfd3ef [INFO] running `Command { std: "docker" "start" "-a" "2227d5a040c8b50f2f02e44421a345256291f5eaa5f2ebfcba4032a733cfd3ef", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Font` [INFO] [stderr] --> src/text.rs:7:31 [INFO] [stderr] | [INFO] [stderr] 7 | use rusttype::{point, vector, Font, FontCollection, PositionedGlyph, Rect, Scale}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std` [INFO] [stderr] --> src/gl_basic/object.rs:138:21 [INFO] [stderr] | [INFO] [stderr] 138 | use std; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/text.rs:345:1 [INFO] [stderr] | [INFO] [stderr] 345 | / attribs!(pub struct Vertex { [INFO] [stderr] 346 | | pub position: Vec2, [INFO] [stderr] 347 | | pub tex_coords: Vec2, [INFO] [stderr] 348 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `attribs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `rusttype::gpu_cache::CacheBuilder` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use rusttype::gpu_cache::CacheBuilder; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Font`, `Rect`, `vector` [INFO] [stderr] --> src/main.rs:12:23 [INFO] [stderr] | [INFO] [stderr] 12 | use rusttype::{point, vector, Font, FontCollection, PositionedGlyph, Rect, Scale}; [INFO] [stderr] | ^^^^^^ ^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::mem; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ptr` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use std::ptr; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std` [INFO] [stderr] --> src/gl_basic/object.rs:138:21 [INFO] [stderr] | [INFO] [stderr] 138 | use std; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/main.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / attribs!(pub struct Vertex { [INFO] [stderr] 150 | | pub position: Vec2, [INFO] [stderr] 151 | | pub tex_coords: Vec2, [INFO] [stderr] 152 | | pub color: Vec4, [INFO] [stderr] 153 | | }); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `attribs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/gl_basic/object.rs:22:41 [INFO] [stderr] | [INFO] [stderr] 22 | let mut vertex_array = mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/gl_basic/object.rs:25:42 [INFO] [stderr] | [INFO] [stderr] 25 | let mut vertex_buffer = mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/gl_basic/object.rs:28:43 [INFO] [stderr] | [INFO] [stderr] 28 | let mut element_buffer = mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/gl_basic/texture.rs:12:36 [INFO] [stderr] | [INFO] [stderr] 12 | let mut id = std::mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `gl_basic::types::GlType` [INFO] [stderr] --> src/gl_basic/object.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use gl_basic::types::GlType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/text.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | let mut texture = match gl_basic::Texture::new() { [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/text.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | let mut cache = rusttype::gpu_cache::CacheBuilder { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/text.rs:164:13 [INFO] [stderr] | [INFO] [stderr] 164 | let mut object = match Vertex::new_object(program) { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/text.rs:169:13 [INFO] [stderr] | [INFO] [stderr] 169 | let mut cache = match GlGlyphCache::new() { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/text.rs:205:17 [INFO] [stderr] | [INFO] [stderr] 205 | let mut glyph = base_glyph.scaled(scale).positioned(caret); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:116:9 [INFO] [stderr] | [INFO] [stderr] 116 | let mut texture = match gl_basic::Texture::new() { [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/gl_basic/shader.rs:27:58 [INFO] [stderr] | [INFO] [stderr] 27 | [std::ffi::CString::new(source).unwrap().as_ptr() as *const _].as_ptr(), [INFO] [stderr] | --------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/gl_basic/object.rs:61:26 [INFO] [stderr] | [INFO] [stderr] 59 | / std::ffi::CString::new(attrib.name.clone()) [INFO] [stderr] 60 | | .unwrap() [INFO] [stderr] | |_________________________________- this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] 61 | .as_ptr() as *const _, [INFO] [stderr] | ^^^^^^ this pointer will be invalid [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `android_rust_test` (bin "android_rust_test" test) generated 20 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/android_rust_test-29f40562a60c0f4d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2227d5a040c8b50f2f02e44421a345256291f5eaa5f2ebfcba4032a733cfd3ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2227d5a040c8b50f2f02e44421a345256291f5eaa5f2ebfcba4032a733cfd3ef", kill_on_drop: false }` [INFO] [stdout] 2227d5a040c8b50f2f02e44421a345256291f5eaa5f2ebfcba4032a733cfd3ef