[INFO] cloning repository https://github.com/quigly/qpl-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quigly/qpl-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ddb855e3cc046aee5b7e1304f7d2cba038bf4c5e [INFO] checking quigly/qpl-rs against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs" "/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/quigly/qpl-rs on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/quigly/qpl-rs [INFO] finished tweaking git repo https://github.com/quigly/qpl-rs [INFO] tweaked toml for git repo https://github.com/quigly/qpl-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/quigly/qpl-rs 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `0.37.0+1.3.209` for dependency `ash` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking quigly/qpl-rs against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/quigly/qpl-rs on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/quigly/qpl-rs [INFO] finished tweaking git repo https://github.com/quigly/qpl-rs [INFO] tweaked toml for git repo https://github.com/quigly/qpl-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/quigly/qpl-rs 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `0.37.0+1.3.209` for dependency `ash` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking quigly/qpl-rs against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/quigly/qpl-rs on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/quigly/qpl-rs [INFO] finished tweaking git repo https://github.com/quigly/qpl-rs [INFO] tweaked toml for git repo https://github.com/quigly/qpl-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/quigly/qpl-rs 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: version requirement `0.37.0+1.3.209` for dependency `ash` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd65f06813a13c63f07e522d9bce0d8f79e531c9c0049bffa50d69e078c7e1b1 [INFO] running `Command { std: "docker" "start" "-a" "fd65f06813a13c63f07e522d9bce0d8f79e531c9c0049bffa50d69e078c7e1b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd65f06813a13c63f07e522d9bce0d8f79e531c9c0049bffa50d69e078c7e1b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd65f06813a13c63f07e522d9bce0d8f79e531c9c0049bffa50d69e078c7e1b1", kill_on_drop: false }` [INFO] [stdout] fd65f06813a13c63f07e522d9bce0d8f79e531c9c0049bffa50d69e078c7e1b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81b314cca9d93727a520f3404c258571068a6c9fa7d7b7e00d9e4584ff5e7cd6 [INFO] running `Command { std: "docker" "start" "-a" "81b314cca9d93727a520f3404c258571068a6c9fa7d7b7e00d9e4584ff5e7cd6", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] warning: version requirement `0.37.0+1.3.209` for dependency `ash` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Compiling ash v0.37.0+1.3.209 [INFO] [stderr] Checking libloading v0.7.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling x11 v2.20.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking qpl v0.2.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linux.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 24 | source: u32, error_type: u32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/linux.rs (2 fixes) [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/linux.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | id: u32, severity: u32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/linux.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | length: i32, message: *const i8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_param` [INFO] [stdout] --> src/linux.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | user_param: *mut libc::c_void) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn is_button_down(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn is_button_up(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn is_button_pressed(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_button_state(&self, button: GamepadButton) -> ButtonState [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/linux.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enabled` [INFO] [stdout] --> src/linux.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enabled` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fb_attribs` [INFO] [stdout] --> src/linux.rs:327:7 [INFO] [stdout] | [INFO] [stdout] 327 | let fb_attribs = [ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fb_attribs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/linux.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallba... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/linux.rs:423:54 [INFO] [stdout] | [INFO] [stdout] 423 | ...&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `allocation_callbacks` [INFO] [stdout] --> src/linux.rs:423:80 [INFO] [stdout] | [INFO] [stdout] 423 | ...ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allocation_callbacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbc` [INFO] [stdout] --> src/linux.rs:514:6 [INFO] [stdout] | [INFO] [stdout] 514 | let fbc = unsafe { glx::glXChooseFBConfig(DISPLAY, screen_id, 0 as _, &mut nelements) }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/linux.rs:516:6 [INFO] [stdout] | [INFO] [stdout] 516 | let depth = unsafe { xlib::XDefaultDepth(DISPLAY, screen_id) }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> src/linux.rs:589:14 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn delay(ms: u32) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/linux.rs:620:21 [INFO] [stdout] | [INFO] [stdout] 620 | pub fn open_gamepad(index: u32) -> Result [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `glx_context` is never read [INFO] [stdout] --> src/linux.rs:38:2 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct GLContext [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 37 | { [INFO] [stdout] 38 | glx_context: glx::GLXContext, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GLContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/linux.rs:186:2 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct Window [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 186 | resizable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 187 | mode: WindowMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | event_queue: VecDeque, [INFO] [stdout] 189 | key_modifiers: KeyModifiers, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 190 | last_mouse_x: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 191 | last_mouse_y: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 192 | mouse_tracked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | screen: *mut xlib::Screen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_window_mode` and `set_resizable` are never used [INFO] [stdout] --> src/linux.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 202 | impl Window [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/linux.rs:264:88 [INFO] [stdout] | [INFO] [stdout] 264 | let wm = CString::new("WM_DELETE_WINDOW").expect("If you see this you're fucked").as_ptr(); [INFO] [stdout] | ------------------------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linux.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 24 | source: u32, error_type: u32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/linux.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | id: u32, severity: u32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/linux.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | length: i32, message: *const i8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_param` [INFO] [stdout] --> src/linux.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | user_param: *mut libc::c_void) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn is_button_down(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn is_button_up(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn is_button_pressed(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_button_state(&self, button: GamepadButton) -> ButtonState [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/linux.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enabled` [INFO] [stdout] --> src/linux.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enabled` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fb_attribs` [INFO] [stdout] --> src/linux.rs:327:7 [INFO] [stdout] | [INFO] [stdout] 327 | let fb_attribs = [ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fb_attribs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/linux.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallba... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/linux.rs:423:54 [INFO] [stdout] | [INFO] [stdout] 423 | ...&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `allocation_callbacks` [INFO] [stdout] --> src/linux.rs:423:80 [INFO] [stdout] | [INFO] [stdout] 423 | ...ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allocation_callbacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbc` [INFO] [stdout] --> src/linux.rs:514:6 [INFO] [stdout] | [INFO] [stdout] 514 | let fbc = unsafe { glx::glXChooseFBConfig(DISPLAY, screen_id, 0 as _, &mut nelements) }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/linux.rs:516:6 [INFO] [stdout] | [INFO] [stdout] 516 | let depth = unsafe { xlib::XDefaultDepth(DISPLAY, screen_id) }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> src/linux.rs:589:14 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn delay(ms: u32) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/linux.rs:620:21 [INFO] [stdout] | [INFO] [stdout] 620 | pub fn open_gamepad(index: u32) -> Result [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `glx_context` is never read [INFO] [stdout] --> src/linux.rs:38:2 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct GLContext [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 37 | { [INFO] [stdout] 38 | glx_context: glx::GLXContext, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GLContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/linux.rs:186:2 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct Window [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 186 | resizable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 187 | mode: WindowMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | event_queue: VecDeque, [INFO] [stdout] 189 | key_modifiers: KeyModifiers, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 190 | last_mouse_x: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 191 | last_mouse_y: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 192 | mouse_tracked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | screen: *mut xlib::Screen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_window_mode` and `set_resizable` are never used [INFO] [stdout] --> src/linux.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 202 | impl Window [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/linux.rs:264:88 [INFO] [stdout] | [INFO] [stdout] 264 | let wm = CString::new("WM_DELETE_WINDOW").expect("If you see this you're fucked").as_ptr(); [INFO] [stdout] | ------------------------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.76s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] warning: version requirement `0.37.0+1.3.209` for dependency `ash` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Checking qpl v0.2.1 (/tmp/fixit) [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linux.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 24 | source: u32, error_type: u32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linux.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 24 | source: u32, error_type: u32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/linux.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | id: u32, severity: u32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/linux.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | id: u32, severity: u32, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/linux.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | length: i32, message: *const i8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/linux.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | length: i32, message: *const i8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_param` [INFO] [stdout] --> src/linux.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | user_param: *mut libc::c_void) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_param` [INFO] [stdout] --> src/linux.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | user_param: *mut libc::c_void) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn is_button_down(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn is_button_down(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn is_button_up(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn is_button_up(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn is_button_pressed(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_button_state(&self, button: GamepadButton) -> ButtonState [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn is_button_pressed(&self, button: GamepadButton) -> bool [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/linux.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_button_state(&self, button: GamepadButton) -> ButtonState [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/linux.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enabled` [INFO] [stdout] --> src/linux.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enabled` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/linux.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enabled` [INFO] [stdout] --> src/linux.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enabled` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fb_attribs` [INFO] [stdout] --> src/linux.rs:327:7 [INFO] [stdout] | [INFO] [stdout] 327 | let fb_attribs = [ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fb_attribs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fb_attribs` [INFO] [stdout] --> src/linux.rs:327:7 [INFO] [stdout] | [INFO] [stdout] 327 | let fb_attribs = [ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fb_attribs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/linux.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallba... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/linux.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallba... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/linux.rs:423:54 [INFO] [stdout] | [INFO] [stdout] 423 | ...&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/linux.rs:423:54 [INFO] [stdout] | [INFO] [stdout] 423 | ...&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `allocation_callbacks` [INFO] [stdout] --> src/linux.rs:423:80 [INFO] [stdout] | [INFO] [stdout] 423 | ...ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allocation_callbacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `allocation_callbacks` [INFO] [stdout] --> src/linux.rs:423:80 [INFO] [stdout] | [INFO] [stdout] 423 | ...ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks>) -> ash::vk::SurfaceKHR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allocation_callbacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbc` [INFO] [stdout] --> src/linux.rs:514:6 [INFO] [stdout] | [INFO] [stdout] 514 | let fbc = unsafe { glx::glXChooseFBConfig(DISPLAY, screen_id, 0 as _, &mut nelements) }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/linux.rs:516:6 [INFO] [stdout] | [INFO] [stdout] 516 | let depth = unsafe { xlib::XDefaultDepth(DISPLAY, screen_id) }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbc` [INFO] [stdout] --> src/linux.rs:514:6 [INFO] [stdout] | [INFO] [stdout] 514 | let fbc = unsafe { glx::glXChooseFBConfig(DISPLAY, screen_id, 0 as _, &mut nelements) }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/linux.rs:516:6 [INFO] [stdout] | [INFO] [stdout] 516 | let depth = unsafe { xlib::XDefaultDepth(DISPLAY, screen_id) }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> src/linux.rs:589:14 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn delay(ms: u32) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> src/linux.rs:589:14 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn delay(ms: u32) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/linux.rs:620:21 [INFO] [stdout] | [INFO] [stdout] 620 | pub fn open_gamepad(index: u32) -> Result [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/linux.rs:620:21 [INFO] [stdout] | [INFO] [stdout] 620 | pub fn open_gamepad(index: u32) -> Result [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `glx_context` is never read [INFO] [stdout] --> src/linux.rs:38:2 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct GLContext [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 37 | { [INFO] [stdout] 38 | glx_context: glx::GLXContext, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GLContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `glx_context` is never read [INFO] [stdout] --> src/linux.rs:38:2 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct GLContext [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 37 | { [INFO] [stdout] 38 | glx_context: glx::GLXContext, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GLContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/linux.rs:186:2 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct Window [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 186 | resizable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 187 | mode: WindowMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | event_queue: VecDeque, [INFO] [stdout] 189 | key_modifiers: KeyModifiers, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 190 | last_mouse_x: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 191 | last_mouse_y: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 192 | mouse_tracked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | screen: *mut xlib::Screen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/linux.rs:186:2 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct Window [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 186 | resizable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 187 | mode: WindowMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | event_queue: VecDeque, [INFO] [stdout] 189 | key_modifiers: KeyModifiers, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 190 | last_mouse_x: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 191 | last_mouse_y: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 192 | mouse_tracked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | screen: *mut xlib::Screen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_window_mode` and `set_resizable` are never used [INFO] [stdout] --> src/linux.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 202 | impl Window [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_window_mode` and `set_resizable` are never used [INFO] [stdout] --> src/linux.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 202 | impl Window [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/linux.rs:264:88 [INFO] [stdout] | [INFO] [stdout] 264 | let wm = CString::new("WM_DELETE_WINDOW").expect("If you see this you're fucked").as_ptr(); [INFO] [stdout] | ------------------------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/linux.rs:264:88 [INFO] [stdout] | [INFO] [stdout] 264 | let wm = CString::new("WM_DELETE_WINDOW").expect("If you see this you're fucked").as_ptr(); [INFO] [stdout] | ------------------------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "81b314cca9d93727a520f3404c258571068a6c9fa7d7b7e00d9e4584ff5e7cd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81b314cca9d93727a520f3404c258571068a6c9fa7d7b7e00d9e4584ff5e7cd6", kill_on_drop: false }` [INFO] [stdout] 81b314cca9d93727a520f3404c258571068a6c9fa7d7b7e00d9e4584ff5e7cd6