[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] building quigly/qpl-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquigly%2Fqpl-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/quigly/qpl-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-4-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 859bd2aba72b3e3e4f4155a18a794e9662048f830ecf5150fe3fcf938853f9fb [INFO] running `Command { std: "docker" "start" "-a" "859bd2aba72b3e3e4f4155a18a794e9662048f830ecf5150fe3fcf938853f9fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "859bd2aba72b3e3e4f4155a18a794e9662048f830ecf5150fe3fcf938853f9fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "859bd2aba72b3e3e4f4155a18a794e9662048f830ecf5150fe3fcf938853f9fb", kill_on_drop: false }` [INFO] [stdout] 859bd2aba72b3e3e4f4155a18a794e9662048f830ecf5150fe3fcf938853f9fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e83a0441e7ea7c720802edc2904e557d52a7143f9a7d7e45cc28d5cc272553b [INFO] running `Command { std: "docker" "start" "-a" "5e83a0441e7ea7c720802edc2904e557d52a7143f9a7d7e45cc28d5cc272553b", 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 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] Compiling libloading v0.7.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling x11 v2.20.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling 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 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::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:424:54 [INFO] [stdout] | [INFO] [stdout] 424 | ...&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: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: `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: 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: 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 10.91s [INFO] running `Command { std: "docker" "inspect" "5e83a0441e7ea7c720802edc2904e557d52a7143f9a7d7e45cc28d5cc272553b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e83a0441e7ea7c720802edc2904e557d52a7143f9a7d7e45cc28d5cc272553b", kill_on_drop: false }` [INFO] [stdout] 5e83a0441e7ea7c720802edc2904e557d52a7143f9a7d7e45cc28d5cc272553b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1f3399da559c1075caeaa8b173e571fe3c5948111fbc768405519c2ec018822 [INFO] running `Command { std: "docker" "start" "-a" "f1f3399da559c1075caeaa8b173e571fe3c5948111fbc768405519c2ec018822", 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 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 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::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:424:54 [INFO] [stdout] | [INFO] [stdout] 424 | ...&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: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: `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: 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: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [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: `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::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:424:54 [INFO] [stdout] | [INFO] [stdout] 424 | ...&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: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: `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: 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: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "f1f3399da559c1075caeaa8b173e571fe3c5948111fbc768405519c2ec018822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1f3399da559c1075caeaa8b173e571fe3c5948111fbc768405519c2ec018822", kill_on_drop: false }` [INFO] [stdout] f1f3399da559c1075caeaa8b173e571fe3c5948111fbc768405519c2ec018822