[INFO] cloning repository https://github.com/kfdykme/keydown_library_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kfdykme/keydown_library_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkfdykme%2Fkeydown_library_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkfdykme%2Fkeydown_library_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a198efb9ef7d0c1f8206eec47b8558925ca7788 [INFO] testing kfdykme/keydown_library_rust against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkfdykme%2Fkeydown_library_rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kfdykme/keydown_library_rust [INFO] finished tweaking git repo https://github.com/kfdykme/keydown_library_rust [INFO] tweaked toml for git repo https://github.com/kfdykme/keydown_library_rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kfdykme/keydown_library_rust on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kfdykme/keydown_library_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file `/workspace/builds/worker-0-tc2/source/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `libkeydown` [INFO] [stderr] * `bin` target `keydown` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tauri-hotkey-sys v0.1.2 [INFO] [stderr] Downloaded tauri-hotkey v0.1.2 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d096fc3c28371b24a1570ae3f99477e8e98edba341cdef4cd852511fd929c5fe [INFO] running `Command { std: "docker" "start" "-a" "d096fc3c28371b24a1570ae3f99477e8e98edba341cdef4cd852511fd929c5fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d096fc3c28371b24a1570ae3f99477e8e98edba341cdef4cd852511fd929c5fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d096fc3c28371b24a1570ae3f99477e8e98edba341cdef4cd852511fd929c5fe", kill_on_drop: false }` [INFO] [stdout] d096fc3c28371b24a1570ae3f99477e8e98edba341cdef4cd852511fd929c5fe [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 780aa76f440f8df12bf73e0faecf288ee35502f3a6128b78e4c12df32e0b1e0b [INFO] running `Command { std: "docker" "start" "-a" "780aa76f440f8df12bf73e0faecf288ee35502f3a6128b78e4c12df32e0b1e0b", kill_on_drop: false }` [INFO] [stderr] warning: file `/opt/rustwide/workdir/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `libkeydown` [INFO] [stderr] * `bin` target `keydown` [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tauri-hotkey-sys v0.1.2 [INFO] [stderr] Compiling hotkey-soundboard v0.0.3 (/opt/rustwide/workdir/extern/hotkey-rs) [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling strum v0.20.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling strum v0.24.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling strum_macros v0.20.1 [INFO] [stderr] Compiling strum_macros v0.24.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> extern/hotkey-rs/src/linux.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | RegisterHotkey(ListenerId, u32, u32), [INFO] [stdout] | -------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 79 - RegisterHotkey(ListenerId, u32, u32), [INFO] [stdout] 79 + RegisterHotkey((), u32, u32), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ulid v0.5.0 [INFO] [stderr] Compiling tauri-hotkey v0.1.2 [INFO] [stderr] Compiling keydown v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `_init_invoke_callback` [INFO] [stdout] --> src/main.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use keydown::{_inner_register_key, _init_invoke_callback, _init_invoke_rust_callback}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NonNull`, `null_mut`, and `null` [INFO] [stdout] --> src/keydown.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{sync::Arc, ptr::{null_mut, null, NonNull}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hotkey::Key` [INFO] [stdout] --> src/keydown.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::hotkey::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | static mut CALLBACK_HODLER: Option = Option::None; [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:40:36 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn _init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | let callback: extern fn(i32) = CALLBACK_HODLER.unwrap(); [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 108 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 117 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `_init_invoke_callback` [INFO] [stdout] --> src/main.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use keydown::{_inner_register_key, _init_invoke_callback, _init_invoke_rust_callback}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NonNull`, `null_mut`, and `null` [INFO] [stdout] --> src/keydown.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{sync::Arc, ptr::{null_mut, null, NonNull}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub extern fn register_key(hotkey: * const i8, callback_id: i32) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hotkey::Key` [INFO] [stdout] --> src/keydown.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::hotkey::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn keydown_stop_keyevent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub extern fn keydown_resume_keyenvent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | static mut CALLBACK_HODLER: Option = Option::None; [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:40:36 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn _init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | let callback: extern fn(i32) = CALLBACK_HODLER.unwrap(); [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 108 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 117 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub extern fn register_key(hotkey: * const i8, callback_id: i32) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn keydown_stop_keyevent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub extern fn keydown_resume_keyenvent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/keydown.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | fn format_json_error(err: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/keydown.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | fn format_json_error(err: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback_id` [INFO] [stdout] --> src/keydown.rs:91:49 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn _inner_unregister_key(hokey_str: String, callback_id: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback_id` [INFO] [stdout] --> src/keydown.rs:91:49 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn _inner_unregister_key(hokey_str: String, callback_id: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `callback` is never used [INFO] [stdout] --> src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn callback(callback_id: i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IS_LOG_OPEN` is never used [INFO] [stdout] --> src/keydown.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | static mut IS_LOG_OPEN: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_log_status` is never used [INFO] [stdout] --> src/keydown.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn set_log_status(is_open: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/keydown.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | CALLBACK_INFO_LIST.push(keyevent_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | if !CALLBACK_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | if !CALLBACK_RUST_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IS_LOG_OPEN` is never used [INFO] [stdout] --> src/keydown.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | static mut IS_LOG_OPEN: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_log_status` is never used [INFO] [stdout] --> src/keydown.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn set_log_status(is_open: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/keydown.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | CALLBACK_INFO_LIST.push(keyevent_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | if !CALLBACK_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | if !CALLBACK_RUST_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.17s [INFO] running `Command { std: "docker" "inspect" "780aa76f440f8df12bf73e0faecf288ee35502f3a6128b78e4c12df32e0b1e0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "780aa76f440f8df12bf73e0faecf288ee35502f3a6128b78e4c12df32e0b1e0b", kill_on_drop: false }` [INFO] [stdout] 780aa76f440f8df12bf73e0faecf288ee35502f3a6128b78e4c12df32e0b1e0b [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61f809f62243471d3113778ac526c038af3da9dd38cf60e69b31f6e213a6da83 [INFO] running `Command { std: "docker" "start" "-a" "61f809f62243471d3113778ac526c038af3da9dd38cf60e69b31f6e213a6da83", kill_on_drop: false }` [INFO] [stderr] warning: file `/opt/rustwide/workdir/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `libkeydown` [INFO] [stderr] * `bin` target `keydown` [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> extern/hotkey-rs/src/linux.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | RegisterHotkey(ListenerId, u32, u32), [INFO] [stdout] | -------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 79 - RegisterHotkey(ListenerId, u32, u32), [INFO] [stdout] 79 + RegisterHotkey((), u32, u32), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling keydown v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `_init_invoke_callback` [INFO] [stdout] --> src/main.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use keydown::{_inner_register_key, _init_invoke_callback, _init_invoke_rust_callback}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NonNull`, `null_mut`, and `null` [INFO] [stdout] --> src/keydown.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{sync::Arc, ptr::{null_mut, null, NonNull}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hotkey::Key` [INFO] [stdout] --> src/keydown.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::hotkey::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | static mut CALLBACK_HODLER: Option = Option::None; [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:40:36 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn _init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | let callback: extern fn(i32) = CALLBACK_HODLER.unwrap(); [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 108 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 117 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub extern fn register_key(hotkey: * const i8, callback_id: i32) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn keydown_stop_keyevent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub extern fn keydown_resume_keyenvent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `_init_invoke_callback` [INFO] [stdout] --> src/main.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use keydown::{_inner_register_key, _init_invoke_callback, _init_invoke_rust_callback}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NonNull`, `null_mut`, and `null` [INFO] [stdout] --> src/keydown.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{sync::Arc, ptr::{null_mut, null, NonNull}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hotkey::Key` [INFO] [stdout] --> src/keydown.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::hotkey::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | static mut CALLBACK_HODLER: Option = Option::None; [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:40:36 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn _init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/keydown.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | let callback: extern fn(i32) = CALLBACK_HODLER.unwrap(); [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 108 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/keydown.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] 117 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub extern fn register_key(hotkey: * const i8, callback_id: i32) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn keydown_stop_keyevent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub extern fn keydown_resume_keyenvent() { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/keydown.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | fn format_json_error(err: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/keydown.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | fn format_json_error(err: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback_id` [INFO] [stdout] --> src/keydown.rs:91:49 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn _inner_unregister_key(hokey_str: String, callback_id: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback_id` [INFO] [stdout] --> src/keydown.rs:91:49 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn _inner_unregister_key(hokey_str: String, callback_id: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IS_LOG_OPEN` is never used [INFO] [stdout] --> src/keydown.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | static mut IS_LOG_OPEN: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_log_status` is never used [INFO] [stdout] --> src/keydown.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn set_log_status(is_open: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/keydown.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | CALLBACK_INFO_LIST.push(keyevent_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | if !CALLBACK_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | if !CALLBACK_RUST_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IS_LOG_OPEN` is never used [INFO] [stdout] --> src/keydown.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | static mut IS_LOG_OPEN: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_log_status` is never used [INFO] [stdout] --> src/keydown.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn set_log_status(is_open: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/keydown.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | CALLBACK_INFO_LIST.push(keyevent_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | if !CALLBACK_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | if !CALLBACK_RUST_HODLER.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/keydown.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "61f809f62243471d3113778ac526c038af3da9dd38cf60e69b31f6e213a6da83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61f809f62243471d3113778ac526c038af3da9dd38cf60e69b31f6e213a6da83", kill_on_drop: false }` [INFO] [stdout] 61f809f62243471d3113778ac526c038af3da9dd38cf60e69b31f6e213a6da83 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 47b9313ac55ecbd30e98b383c4b526592bad5f62c1bbef3716c11dce61a40153 [INFO] running `Command { std: "docker" "start" "-a" "47b9313ac55ecbd30e98b383c4b526592bad5f62c1bbef3716c11dce61a40153", kill_on_drop: false }` [INFO] [stderr] warning: file `/opt/rustwide/workdir/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `libkeydown` [INFO] [stderr] * `bin` target `keydown` [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> extern/hotkey-rs/src/linux.rs:79:20 [INFO] [stderr] | [INFO] [stderr] 79 | RegisterHotkey(ListenerId, u32, u32), [INFO] [stderr] | -------------- ^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 79 - RegisterHotkey(ListenerId, u32, u32), [INFO] [stderr] 79 + RegisterHotkey((), u32, u32), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `hotkey-soundboard` (lib) generated 1 warning [INFO] [stderr] warning: found module declaration for lib.rs [INFO] [stderr] --> src/main.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | mod lib; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lib.rs is the root of this crate's library target [INFO] [stderr] = help: to refer to it from other targets, use the library's name as the path [INFO] [stderr] = note: `#[warn(special_module_name)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `_init_invoke_callback` [INFO] [stderr] --> src/main.rs:1:36 [INFO] [stderr] | [INFO] [stderr] 1 | use keydown::{_inner_register_key, _init_invoke_callback, _init_invoke_rust_callback}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `NonNull`, `null_mut`, and `null` [INFO] [stderr] --> src/keydown.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{sync::Arc, ptr::{null_mut, null, NonNull}}; [INFO] [stderr] | ^^^^^^^^ ^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::hotkey::Key` [INFO] [stderr] --> src/keydown.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::hotkey::Key; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/keydown.rs:21:36 [INFO] [stderr] | [INFO] [stderr] 21 | static mut CALLBACK_HODLER: Option = Option::None; [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(missing_abi)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/keydown.rs:40:36 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn _init_invoke_callback(func: extern fn(i32)) { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/keydown.rs:73:31 [INFO] [stderr] | [INFO] [stderr] 73 | let callback: extern fn(i32) = CALLBACK_HODLER.unwrap(); [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around pattern [INFO] [stderr] --> src/keydown.rs:108:13 [INFO] [stderr] | [INFO] [stderr] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 108 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] 108 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around pattern [INFO] [stderr] --> src/keydown.rs:117:13 [INFO] [stderr] | [INFO] [stderr] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 117 - for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] 117 + for keyevent_info in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/lib.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub extern fn register_key(hotkey: * const i8, callback_id: i32) { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/lib.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub extern fn keydown_stop_keyevent() { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/lib.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub extern fn keydown_resume_keyenvent() { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/lib.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/lib.rs:32:42 [INFO] [stderr] | [INFO] [stderr] 32 | pub extern fn init_invoke_callback(func: extern fn(i32)) { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] [INFO] [stderr] warning: denote infinite loops with `loop { ... }` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | while true { [INFO] [stderr] | ^^^^^^^^^^ help: use `loop` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(while_true)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/keydown.rs:13:44 [INFO] [stderr] | [INFO] [stderr] 13 | fn format_json_error(err: T) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `callback_id` [INFO] [stderr] --> src/keydown.rs:91:49 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn _inner_unregister_key(hokey_str: String, callback_id: i32) { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback_id` [INFO] [stderr] [INFO] [stderr] warning: static `IS_LOG_OPEN` is never used [INFO] [stderr] --> src/keydown.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | static mut IS_LOG_OPEN: bool = false; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `set_log_status` is never used [INFO] [stderr] --> src/keydown.rs:33:8 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn set_log_status(is_open: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/keydown.rs:58:13 [INFO] [stderr] | [INFO] [stderr] 58 | CALLBACK_INFO_LIST.push(keyevent_info); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/keydown.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | if !CALLBACK_HODLER.is_none() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/keydown.rs:77:17 [INFO] [stderr] | [INFO] [stderr] 77 | if !CALLBACK_RUST_HODLER.is_none() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/keydown.rs:108:32 [INFO] [stderr] | [INFO] [stderr] 108 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/keydown.rs:117:32 [INFO] [stderr] | [INFO] [stderr] 117 | for (keyevent_info) in CALLBACK_INFO_LIST.iter() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: `keydown` (lib test) generated 24 warnings (run `cargo fix --lib -p keydown --tests` to apply 14 suggestions) [INFO] [stderr] warning: `keydown` (bin "keydown" test) generated 24 warnings (24 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/libkeydown-686f9d79fc15b672) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test hotkey::tests::hotkey_parse ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/keydown-deaecf77b9f14bb0) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test hotkey::tests::hotkey_parse ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "47b9313ac55ecbd30e98b383c4b526592bad5f62c1bbef3716c11dce61a40153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47b9313ac55ecbd30e98b383c4b526592bad5f62c1bbef3716c11dce61a40153", kill_on_drop: false }` [INFO] [stdout] 47b9313ac55ecbd30e98b383c4b526592bad5f62c1bbef3716c11dce61a40153