[INFO] fetching crate android_ffi 0.1.0...
[INFO] testing android_ffi-0.1.0 against 1.75.0 for beta-1.76-1
[INFO] extracting crate android_ffi 0.1.0 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate android_ffi 0.1.0 on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate android_ffi 0.1.0
[INFO] finished tweaking crates.io crate android_ffi 0.1.0
[INFO] tweaked toml for crates.io crate android_ffi 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] facab513590865624fabb5ece97c053e8e4a0344691ad3abe703cb6c4580341c
[INFO] running `Command { std: "docker" "start" "-a" "facab513590865624fabb5ece97c053e8e4a0344691ad3abe703cb6c4580341c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "facab513590865624fabb5ece97c053e8e4a0344691ad3abe703cb6c4580341c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "facab513590865624fabb5ece97c053e8e4a0344691ad3abe703cb6c4580341c", kill_on_drop: false }`
[INFO] [stdout] facab513590865624fabb5ece97c053e8e4a0344691ad3abe703cb6c4580341c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0b68d3b559104beddc8224f6aed268ae7bffa7aa5af06988521ffe56bc845d3d
[INFO] running `Command { std: "docker" "start" "-a" "0b68d3b559104beddc8224f6aed268ae7bffa7aa5af06988521ffe56bc845d3d", kill_on_drop: false }`
[INFO] [stderr]    Compiling android_ffi v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/lib.rs:9:55
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel};
[INFO] [stdout]   |                                                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type pthread_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadT`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_mutexattr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub type pthread_mutexattr_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadMutexattrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_attr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub type pthread_attr_t = c_void;       // FIXME: wrong
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadAttrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> src/lib.rs:294:35
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = 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/lib.rs:344:35
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = 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/lib.rs:345:66
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/lib.rs:580:17
[INFO] [stdout]     |
[INFO] [stdout] 580 |         thread::sleep_ms(10);
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:97:41
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<SyncEventHandler>>>,
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<dyn SyncEventHandler>>>,
[INFO] [stdout]    |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:530:44
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<SyncEventHandler>) {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<dyn SyncEventHandler>) {
[INFO] [stdout]     |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:536:50
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const SyncEventHandler) {
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const dyn SyncEventHandler) {
[INFO] [stdout]     |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<dyn SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:51:29
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const dyn SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/lib.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |     app.userData = unsafe { &context as *const Context as *mut Context as *mut _ };
[INFO] [stdout]     |                    ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `g_mainthread_boxed` should have an upper case name
[INFO] [stdout]    --> src/lib.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout] 161 | static mut g_mainthread_boxed: Option<*mut Receiver<()>> = Option::None;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_MAINTHREAD_BOXED`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i64` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:294:30
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout]     = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i32` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `*mut android_poll_source` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:345:61
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             this code causes undefined behavior when executed
[INFO] [stdout]     |                                                             help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 19 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.49s
[INFO] running `Command { std: "docker" "inspect" "0b68d3b559104beddc8224f6aed268ae7bffa7aa5af06988521ffe56bc845d3d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0b68d3b559104beddc8224f6aed268ae7bffa7aa5af06988521ffe56bc845d3d", kill_on_drop: false }`
[INFO] [stdout] 0b68d3b559104beddc8224f6aed268ae7bffa7aa5af06988521ffe56bc845d3d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3cf9aed6b52bdc4dad2054404febbbd31ced66e2d9ccbbb299146af79576cfe7
[INFO] running `Command { std: "docker" "start" "-a" "3cf9aed6b52bdc4dad2054404febbbd31ced66e2d9ccbbb299146af79576cfe7", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/lib.rs:9:55
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel};
[INFO] [stdout]   |                                                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type pthread_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadT`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_mutexattr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub type pthread_mutexattr_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadMutexattrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_attr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub type pthread_attr_t = c_void;       // FIXME: wrong
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadAttrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> src/lib.rs:294:35
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = 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/lib.rs:344:35
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = 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/lib.rs:345:66
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/lib.rs:580:17
[INFO] [stdout]     |
[INFO] [stdout] 580 |         thread::sleep_ms(10);
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:97:41
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<SyncEventHandler>>>,
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<dyn SyncEventHandler>>>,
[INFO] [stdout]    |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling android_ffi v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:530:44
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<SyncEventHandler>) {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<dyn SyncEventHandler>) {
[INFO] [stdout]     |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:536:50
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const SyncEventHandler) {
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const dyn SyncEventHandler) {
[INFO] [stdout]     |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<dyn SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:51:29
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const dyn SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/lib.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |     app.userData = unsafe { &context as *const Context as *mut Context as *mut _ };
[INFO] [stdout]     |                    ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `g_mainthread_boxed` should have an upper case name
[INFO] [stdout]    --> src/lib.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout] 161 | static mut g_mainthread_boxed: Option<*mut Receiver<()>> = Option::None;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_MAINTHREAD_BOXED`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i64` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:294:30
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout]     = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i32` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `*mut android_poll_source` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:345:61
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             this code causes undefined behavior when executed
[INFO] [stdout]     |                                                             help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 19 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/lib.rs:9:55
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel};
[INFO] [stdout]   |                                                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type pthread_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadT`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_mutexattr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub type pthread_mutexattr_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadMutexattrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_attr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub type pthread_attr_t = c_void;       // FIXME: wrong
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadAttrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> src/lib.rs:294:35
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = 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/lib.rs:344:35
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = 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/lib.rs:345:66
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/lib.rs:580:17
[INFO] [stdout]     |
[INFO] [stdout] 580 |         thread::sleep_ms(10);
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:97:41
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<SyncEventHandler>>>,
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<dyn SyncEventHandler>>>,
[INFO] [stdout]    |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:530:44
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<SyncEventHandler>) {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<dyn SyncEventHandler>) {
[INFO] [stdout]     |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:536:50
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const SyncEventHandler) {
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const dyn SyncEventHandler) {
[INFO] [stdout]     |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<dyn SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:51:29
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const dyn SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/lib.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |     app.userData = unsafe { &context as *const Context as *mut Context as *mut _ };
[INFO] [stdout]     |                    ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `g_mainthread_boxed` should have an upper case name
[INFO] [stdout]    --> src/lib.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout] 161 | static mut g_mainthread_boxed: Option<*mut Receiver<()>> = Option::None;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_MAINTHREAD_BOXED`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i64` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:294:30
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout]     = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i32` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `*mut android_poll_source` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:345:61
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             this code causes undefined behavior when executed
[INFO] [stdout]     |                                                             help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcH8lGrU/symbols.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.android_ffi.a4355b02bb75af2c-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185.3t5zb5dy6o36utbk.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-llog" "-landroid" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-3df1bed8075ce1de.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-2076fd86b325cb5d.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-caa7152ee70c190f.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-04e6425e07f02a3c.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-90f6ddbf82de36ec.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-480c41e9d4e1f677.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-db744c0ca03eed1d.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-8ba652dc7d4b285a.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d5f4520a9ebc0d58.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-4ad84de58f0cb463.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-0d10aae2e0f38735.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-0c17cff739e6745b.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-b29e17139dde1aa8.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-1f975299829cc7bd.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-86bae3bc3079f89b.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-321b82c30dffdf5f.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-3dd8a6810a0bdfef.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-eb39a61c0c879984.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-aa769569f91c3548.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-510a192a50a983ed.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-0577018320f99037.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-193cf992125ccd4c.rlib" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-8e138eaf26ebb4a8.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.75.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/android_ffi-df87aeb7173b2185" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
[INFO] [stdout]   = note: /usr/bin/ld: cannot find -llog: No such file or directory
[INFO] [stdout]           /usr/bin/ld: cannot find -landroid: No such file or directory
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 19 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `android_ffi` (lib test) due to 2 previous errors; 19 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "3cf9aed6b52bdc4dad2054404febbbd31ced66e2d9ccbbb299146af79576cfe7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3cf9aed6b52bdc4dad2054404febbbd31ced66e2d9ccbbb299146af79576cfe7", kill_on_drop: false }`
[INFO] [stdout] 3cf9aed6b52bdc4dad2054404febbbd31ced66e2d9ccbbb299146af79576cfe7
[INFO] testing android_ffi-0.1.0 against beta-2023-12-22 for beta-1.76-1
[INFO] extracting crate android_ffi 0.1.0 into /workspace/builds/worker-0-tc2/source
[INFO] validating manifest of crates.io crate android_ffi 0.1.0 on toolchain beta-2023-12-22
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate android_ffi 0.1.0
[INFO] finished tweaking crates.io crate android_ffi 0.1.0
[INFO] tweaked toml for crates.io crate android_ffi 0.1.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+beta-2023-12-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8a07a5df8cb7ef0fb52e3caa2b156f04ac962666420df528316eac89c1c8fd08
[INFO] running `Command { std: "docker" "start" "-a" "8a07a5df8cb7ef0fb52e3caa2b156f04ac962666420df528316eac89c1c8fd08", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8a07a5df8cb7ef0fb52e3caa2b156f04ac962666420df528316eac89c1c8fd08", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8a07a5df8cb7ef0fb52e3caa2b156f04ac962666420df528316eac89c1c8fd08", kill_on_drop: false }`
[INFO] [stdout] 8a07a5df8cb7ef0fb52e3caa2b156f04ac962666420df528316eac89c1c8fd08
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7987da0d20a59d3428db39f693d727ebf63d8c7a9f428afe20bc5b34db113eb0
[INFO] running `Command { std: "docker" "start" "-a" "7987da0d20a59d3428db39f693d727ebf63d8c7a9f428afe20bc5b34db113eb0", kill_on_drop: false }`
[INFO] [stderr]    Compiling android_ffi v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/lib.rs:9:55
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel};
[INFO] [stdout]   |                                                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type pthread_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadT`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_mutexattr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub type pthread_mutexattr_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadMutexattrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_attr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub type pthread_attr_t = c_void;       // FIXME: wrong
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadAttrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> src/lib.rs:294:35
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = 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/lib.rs:344:35
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = 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/lib.rs:345:66
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/lib.rs:580:17
[INFO] [stdout]     |
[INFO] [stdout] 580 |         thread::sleep_ms(10);
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:97:41
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<SyncEventHandler>>>,
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<dyn SyncEventHandler>>>,
[INFO] [stdout]    |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:530:44
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<SyncEventHandler>) {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<dyn SyncEventHandler>) {
[INFO] [stdout]     |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:536:50
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const SyncEventHandler) {
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const dyn SyncEventHandler) {
[INFO] [stdout]     |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<dyn SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:51:29
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const dyn SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/lib.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |     app.userData = unsafe { &context as *const Context as *mut Context as *mut _ };
[INFO] [stdout]     |                    ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `g_mainthread_boxed` should have an upper case name
[INFO] [stdout]    --> src/lib.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout] 161 | static mut g_mainthread_boxed: Option<*mut Receiver<()>> = Option::None;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_MAINTHREAD_BOXED`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i64` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:294:30
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout]     = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i32` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `*mut android_poll_source` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:345:61
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             this code causes undefined behavior when executed
[INFO] [stdout]     |                                                             help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected
[INFO] [stdout]    --> src/lib.rs:538:29
[INFO] [stdout]     |
[INFO] [stdout] 538 |     handlers.retain(|ref b| b.as_ref() as *const _ != handler);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default
[INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses
[INFO] [stdout]     |
[INFO] [stdout] 538 |     handlers.retain(|ref b| !std::ptr::addr_eq(b.as_ref() as *const _, handler));
[INFO] [stdout]     |                             +++++++++++++++++++                      ~        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.53s
[INFO] running `Command { std: "docker" "inspect" "7987da0d20a59d3428db39f693d727ebf63d8c7a9f428afe20bc5b34db113eb0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7987da0d20a59d3428db39f693d727ebf63d8c7a9f428afe20bc5b34db113eb0", kill_on_drop: false }`
[INFO] [stdout] 7987da0d20a59d3428db39f693d727ebf63d8c7a9f428afe20bc5b34db113eb0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 75febf024c4b6567dcffc838291dcc94076b1aca9a38fb77dc4eaa6406c1a46d
[INFO] running `Command { std: "docker" "start" "-a" "75febf024c4b6567dcffc838291dcc94076b1aca9a38fb77dc4eaa6406c1a46d", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/lib.rs:9:55
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel};
[INFO] [stdout]   |                                                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type pthread_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadT`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_mutexattr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub type pthread_mutexattr_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadMutexattrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_attr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub type pthread_attr_t = c_void;       // FIXME: wrong
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadAttrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> src/lib.rs:294:35
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = 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/lib.rs:344:35
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = 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/lib.rs:345:66
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/lib.rs:580:17
[INFO] [stdout]     |
[INFO] [stdout] 580 |         thread::sleep_ms(10);
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:97:41
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<SyncEventHandler>>>,
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<dyn SyncEventHandler>>>,
[INFO] [stdout]    |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:530:44
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<SyncEventHandler>) {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<dyn SyncEventHandler>) {
[INFO] [stdout]     |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:536:50
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const SyncEventHandler) {
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const dyn SyncEventHandler) {
[INFO] [stdout]     |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<dyn SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:51:29
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const dyn SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/lib.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |     app.userData = unsafe { &context as *const Context as *mut Context as *mut _ };
[INFO] [stdout]     |                    ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `g_mainthread_boxed` should have an upper case name
[INFO] [stdout]    --> src/lib.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout] 161 | static mut g_mainthread_boxed: Option<*mut Receiver<()>> = Option::None;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_MAINTHREAD_BOXED`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i64` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:294:30
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout]     = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i32` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `*mut android_poll_source` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:345:61
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             this code causes undefined behavior when executed
[INFO] [stdout]     |                                                             help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected
[INFO] [stdout]    --> src/lib.rs:538:29
[INFO] [stdout]     |
[INFO] [stdout] 538 |     handlers.retain(|ref b| b.as_ref() as *const _ != handler);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default
[INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses
[INFO] [stdout]     |
[INFO] [stdout] 538 |     handlers.retain(|ref b| !std::ptr::addr_eq(b.as_ref() as *const _, handler));
[INFO] [stdout]     |                             +++++++++++++++++++                      ~        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling android_ffi v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]  --> src/lib.rs:9:55
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel};
[INFO] [stdout]   |                                                       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type pthread_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadT`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_mutexattr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub type pthread_mutexattr_t = c_long;
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadMutexattrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `pthread_attr_t` should have an upper camel case name
[INFO] [stdout]   --> src/lib.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub type pthread_attr_t = c_void;       // FIXME: wrong
[INFO] [stdout]    |          ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PthreadAttrT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> src/lib.rs:294:35
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = 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/lib.rs:344:35
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = 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/lib.rs:345:66
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/lib.rs:580:17
[INFO] [stdout]     |
[INFO] [stdout] 580 |         thread::sleep_ms(10);
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:97:41
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<SyncEventHandler>>>,
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 97 |     sync_event_handlers:  Mutex<Vec<Box<dyn SyncEventHandler>>>,
[INFO] [stdout]    |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:530:44
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<SyncEventHandler>) {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 530 | pub fn add_sync_event_handler(handler: Box<dyn SyncEventHandler>) {
[INFO] [stdout]     |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:536:50
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const SyncEventHandler) {
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 536 | pub fn remove_sync_event_handler(handler: *const dyn SyncEventHandler) {
[INFO] [stdout]     |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let handler: Box<Box<dyn SyncEventHandler>> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:51:29
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let handler: Box<*const dyn SyncEventHandler> = Box::from_raw(handler as *mut _);
[INFO] [stdout]    |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/lib.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |     app.userData = unsafe { &context as *const Context as *mut Context as *mut _ };
[INFO] [stdout]     |                    ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `g_mainthread_boxed` should have an upper case name
[INFO] [stdout]    --> src/lib.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout] 161 | static mut g_mainthread_boxed: Option<*mut Receiver<()>> = Option::None;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_MAINTHREAD_BOXED`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i64` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:294:30
[INFO] [stdout]     |
[INFO] [stdout] 294 |             let mut thread = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout]     = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `i32` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 |             let mut events = mem::uninitialized();
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              this code causes undefined behavior when executed
[INFO] [stdout]     |                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: integers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `*mut android_poll_source` does not permit being left uninitialized
[INFO] [stdout]    --> src/lib.rs:345:61
[INFO] [stdout]     |
[INFO] [stdout] 345 |             let mut source: *mut ffi::android_poll_source = mem::uninitialized();
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             this code causes undefined behavior when executed
[INFO] [stdout]     |                                                             help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers must be initialized
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected
[INFO] [stdout]    --> src/lib.rs:538:29
[INFO] [stdout]     |
[INFO] [stdout] 538 |     handlers.retain(|ref b| b.as_ref() as *const _ != handler);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default
[INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses
[INFO] [stdout]     |
[INFO] [stdout] 538 |     handlers.retain(|ref b| !std::ptr::addr_eq(b.as_ref() as *const _, handler));
[INFO] [stdout]     |                             +++++++++++++++++++                      ~        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcNS8Pex/symbols.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.android_ffi.782d04490cc5fbe5-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e.2x5ndkdkx6hyyclv.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-llog" "-landroid" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-cbab71697df97b00.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-2a2cf8f16c536007.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-c5f3cc3cceaf9070.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-a31324ec815b09db.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-0672489a78b613de.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-7eb3ffc34a49f675.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-6478a9daa4bee8e2.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-0c75d871a5c3923d.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d163ef63ad37bb71.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-8a3fd810a85b9f4c.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-462a2cde8c5dfc10.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-cb06ac9f54713f71.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-f20bfd1f8e59b393.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-1ef460949b49da4b.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-2cb0c0ffe4f87514.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-58d841eb322a11a2.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-aa2ae0b0a9d11533.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-23874e15830ed336.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-e47cddc003bce885.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c22b13b48a8f128e.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-e46bc3da6d7c462f.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8d1ac131d3cb2645.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a1b43df8c6899c1f.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2023-12-22-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/android_ffi-4e47282e37bac85e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
[INFO] [stdout]   = note: /usr/bin/ld: cannot find -llog: No such file or directory
[INFO] [stdout]           /usr/bin/ld: cannot find -landroid: No such file or directory
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 20 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `android_ffi` (lib test) due to 2 previous errors; 20 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "75febf024c4b6567dcffc838291dcc94076b1aca9a38fb77dc4eaa6406c1a46d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "75febf024c4b6567dcffc838291dcc94076b1aca9a38fb77dc4eaa6406c1a46d", kill_on_drop: false }`
[INFO] [stdout] 75febf024c4b6567dcffc838291dcc94076b1aca9a38fb77dc4eaa6406c1a46d
