[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#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [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-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/quigly/qpl-rs on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "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] Downloading crates ... [INFO] [stderr] Downloaded x11 v2.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61ba79c24d62310f970b7473a94f9dd5f937013843df9556b6a94e760adc39c4 [INFO] running `Command { std: "docker" "start" "-a" "61ba79c24d62310f970b7473a94f9dd5f937013843df9556b6a94e760adc39c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61ba79c24d62310f970b7473a94f9dd5f937013843df9556b6a94e760adc39c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61ba79c24d62310f970b7473a94f9dd5f937013843df9556b6a94e760adc39c4", kill_on_drop: false }` [INFO] [stdout] 61ba79c24d62310f970b7473a94f9dd5f937013843df9556b6a94e760adc39c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eead0d18ca16d4efe9ed1fdd3e9dbc3bc67504f5c6a8ba30081db4ce163ffb29 [INFO] running `Command { std: "docker" "start" "-a" "eead0d18ca16d4efe9ed1fdd3e9dbc3bc67504f5c6a8ba30081db4ce163ffb29", 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] 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 libc v0.2.135 [INFO] [stderr] Compiling pkg-config v0.3.25 [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 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `XKeycodeToKeysym` [INFO] [stdout] --> src/linux.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use x11::{*, xlib::{XKeycodeToKeysym, XkbKeycodeToKeysym}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/linux.rs:5:2 [INFO] [stdout] | [INFO] [stdout] 5 | mem, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `XKeycodeToKeysym` [INFO] [stdout] --> src/linux.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use x11::{*, xlib::{XKeycodeToKeysym, XkbKeycodeToKeysym}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/linux.rs:5:2 [INFO] [stdout] | [INFO] [stdout] 5 | mem, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linux.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | 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:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | 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:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | 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:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | 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:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | 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:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | 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:72:34 [INFO] [stdout] | [INFO] [stdout] 72 | 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:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | 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: `source` [INFO] [stdout] --> src/linux.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | 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:26:2 [INFO] [stdout] | [INFO] [stdout] 26 | 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:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | 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:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | 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:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | 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:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | 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:72:34 [INFO] [stdout] | [INFO] [stdout] 72 | 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:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | 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:301:32 [INFO] [stdout] | [INFO] [stdout] 301 | 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:306:30 [INFO] [stdout] | [INFO] [stdout] 306 | 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:328:7 [INFO] [stdout] | [INFO] [stdout] 328 | 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:424:34 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks... [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:424:54 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks... [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:424:80 [INFO] [stdout] | [INFO] [stdout] 424 | ...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:515:6 [INFO] [stdout] | [INFO] [stdout] 515 | 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:517:6 [INFO] [stdout] | [INFO] [stdout] 517 | 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: `mode` [INFO] [stdout] --> src/linux.rs:301:32 [INFO] [stdout] | [INFO] [stdout] 301 | 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:306:30 [INFO] [stdout] | [INFO] [stdout] 306 | 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:328:7 [INFO] [stdout] | [INFO] [stdout] 328 | 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: `ms` [INFO] [stdout] --> src/linux.rs:590:14 [INFO] [stdout] | [INFO] [stdout] 590 | 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: `entry` [INFO] [stdout] --> src/linux.rs:424:34 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks... [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:424:54 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn vk_create_surface(&self, entry: &ash::Entry, instance: &ash::Instance, allocation_callbacks: Option<&ash::vk::AllocationCallbacks... [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:424:80 [INFO] [stdout] | [INFO] [stdout] 424 | ...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: `index` [INFO] [stdout] --> src/linux.rs:621:21 [INFO] [stdout] | [INFO] [stdout] 621 | 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: `fbc` [INFO] [stdout] --> src/linux.rs:515:6 [INFO] [stdout] | [INFO] [stdout] 515 | 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:517:6 [INFO] [stdout] | [INFO] [stdout] 517 | 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:590:14 [INFO] [stdout] | [INFO] [stdout] 590 | 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:621:21 [INFO] [stdout] | [INFO] [stdout] 621 | 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:39:2 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct GLContext [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 38 | { [INFO] [stdout] 39 | 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:187:2 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Window [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 187 | resizable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 188 | mode: WindowMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 189 | event_queue: VecDeque, [INFO] [stdout] 190 | key_modifiers: KeyModifiers, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 191 | last_mouse_x: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 192 | last_mouse_y: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 193 | mouse_tracked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | 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:301:5 [INFO] [stdout] | [INFO] [stdout] 203 | impl Window [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 301 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `glx_context` is never read [INFO] [stdout] --> src/linux.rs:39:2 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct GLContext [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 38 | { [INFO] [stdout] 39 | 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:187:2 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Window [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 187 | resizable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 188 | mode: WindowMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 189 | event_queue: VecDeque, [INFO] [stdout] 190 | key_modifiers: KeyModifiers, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 191 | last_mouse_x: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 192 | last_mouse_y: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 193 | mouse_tracked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | 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:301:5 [INFO] [stdout] | [INFO] [stdout] 203 | impl Window [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 301 | fn set_window_mode(&mut self, mode: WindowMode) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | fn set_resizable(&mut self, enabled: bool) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/linux.rs:265:88 [INFO] [stdout] | [INFO] [stdout] 265 | let wm = CString::new("WM_DELETE_WINDOW").expect("If you see this you're fucked").as_ptr(); [INFO] [stdout] | ------------------------------------------------------------------------ ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/linux.rs:265:88 [INFO] [stdout] | [INFO] [stdout] 265 | let wm = CString::new("WM_DELETE_WINDOW").expect("If you see this you're fucked").as_ptr(); [INFO] [stdout] | ------------------------------------------------------------------------ ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.37s [INFO] running `Command { std: "docker" "inspect" "eead0d18ca16d4efe9ed1fdd3e9dbc3bc67504f5c6a8ba30081db4ce163ffb29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eead0d18ca16d4efe9ed1fdd3e9dbc3bc67504f5c6a8ba30081db4ce163ffb29", kill_on_drop: false }` [INFO] [stdout] eead0d18ca16d4efe9ed1fdd3e9dbc3bc67504f5c6a8ba30081db4ce163ffb29