[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] building kfdykme/keydown_library_rust against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkfdykme%2Fkeydown_library_rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kfdykme/keydown_library_rust on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc1/source/Cargo.toml [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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file `/workspace/builds/worker-1-tc1/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 unicode-xid v0.2.2 [INFO] [stderr] Downloaded rand_core v0.6.3 [INFO] [stderr] Downloaded ulid v0.5.0 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.80 [INFO] [stderr] Downloaded strum v0.20.0 [INFO] [stderr] Downloaded strum v0.24.0 [INFO] [stderr] Downloaded redox_syscall v0.2.13 [INFO] [stderr] Downloaded tauri-hotkey-sys v0.1.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.30 [INFO] [stderr] Downloaded thiserror v1.0.30 [INFO] [stderr] Downloaded smallvec v1.8.0 [INFO] [stderr] Downloaded time v0.1.43 [INFO] [stderr] Downloaded wasi v0.10.2+wasi-snapshot-preview1 [INFO] [stderr] Downloaded anyhow v1.0.56 [INFO] [stderr] Downloaded memchr v2.4.1 [INFO] [stderr] Downloaded cc v1.0.73 [INFO] [stderr] Downloaded js-sys v0.3.57 [INFO] [stderr] Downloaded bumpalo v3.9.1 [INFO] [stderr] Downloaded aho-corasick v0.7.18 [INFO] [stderr] Downloaded chrono v0.4.19 [INFO] [stderr] Downloaded wasm-bindgen v0.2.80 [INFO] [stderr] Downloaded x11-dl v2.19.1 [INFO] [stderr] Downloaded serde_derive v1.0.136 [INFO] [stderr] Downloaded syn v1.0.91 [INFO] [stderr] Downloaded regex v1.5.5 [INFO] [stderr] Downloaded serde v1.0.136 [INFO] [stderr] Downloaded regex-syntax v0.6.25 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.80 [INFO] [stderr] Downloaded getrandom v0.2.6 [INFO] [stderr] Downloaded parking_lot_core v0.9.2 [INFO] [stderr] Downloaded parking_lot v0.12.0 [INFO] [stderr] Downloaded once_cell v1.10.0 [INFO] [stderr] Downloaded log v0.4.16 [INFO] [stderr] Downloaded proc-macro2 v1.0.37 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.80 [INFO] [stderr] Downloaded quote v1.0.18 [INFO] [stderr] Downloaded heck v0.4.0 [INFO] [stderr] Downloaded rustversion v1.0.6 [INFO] [stderr] Downloaded strum_macros v0.24.0 [INFO] [stderr] Downloaded libc v0.2.122 [INFO] [stderr] Downloaded strum_macros v0.20.1 [INFO] [stderr] Downloaded pkg-config v0.3.25 [INFO] [stderr] Downloaded tauri-hotkey v0.1.2 [INFO] [stderr] Downloaded ppv-lite86 v0.2.16 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.34.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.34.0 [INFO] [stderr] Downloaded windows_i686_gnu v0.34.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.34.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.34.0 [INFO] [stderr] Downloaded windows-sys v0.34.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9677c1b43ca8b6753f22fbff2b2893a9032b8cc8221e81fdf443422d3100f36 [INFO] running `Command { std: "docker" "start" "-a" "a9677c1b43ca8b6753f22fbff2b2893a9032b8cc8221e81fdf443422d3100f36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9677c1b43ca8b6753f22fbff2b2893a9032b8cc8221e81fdf443422d3100f36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9677c1b43ca8b6753f22fbff2b2893a9032b8cc8221e81fdf443422d3100f36", kill_on_drop: false }` [INFO] [stdout] a9677c1b43ca8b6753f22fbff2b2893a9032b8cc8221e81fdf443422d3100f36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 740d01dc823fd9ae94d084906d1a824a2ea016199a421f36b09d7417ab8a69b9 [INFO] running `Command { std: "docker" "start" "-a" "740d01dc823fd9ae94d084906d1a824a2ea016199a421f36b09d7417ab8a69b9", 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 syn v1.0.91 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling tauri-hotkey-sys v0.1.2 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling hotkey-soundboard v0.0.3 (/opt/rustwide/workdir/extern/hotkey-rs) [INFO] [stderr] Compiling anyhow v1.0.56 [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 rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling strum v0.20.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling strum v0.24.0 [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 regex v1.5.5 [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: 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: 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: 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: 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: 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: 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: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: 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 34.64s [INFO] running `Command { std: "docker" "inspect" "740d01dc823fd9ae94d084906d1a824a2ea016199a421f36b09d7417ab8a69b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "740d01dc823fd9ae94d084906d1a824a2ea016199a421f36b09d7417ab8a69b9", kill_on_drop: false }` [INFO] [stdout] 740d01dc823fd9ae94d084906d1a824a2ea016199a421f36b09d7417ab8a69b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a654c2f80f85c49060fd8d9b651bc2a6029a6e4d1de0b3f1f556bb8fdb346097 [INFO] running `Command { std: "docker" "start" "-a" "a654c2f80f85c49060fd8d9b651bc2a6029a6e4d1de0b3f1f556bb8fdb346097", 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 keydown v0.1.0 (/opt/rustwide/workdir) [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] [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: `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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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: 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: 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 2.43s [INFO] running `Command { std: "docker" "inspect" "a654c2f80f85c49060fd8d9b651bc2a6029a6e4d1de0b3f1f556bb8fdb346097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a654c2f80f85c49060fd8d9b651bc2a6029a6e4d1de0b3f1f556bb8fdb346097", kill_on_drop: false }` [INFO] [stdout] a654c2f80f85c49060fd8d9b651bc2a6029a6e4d1de0b3f1f556bb8fdb346097