[INFO] fetching crate x11-dl 2.21.0... [INFO] checking x11-dl-2.21.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-2 [INFO] extracting crate x11-dl 2.21.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate x11-dl 2.21.0 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 crates.io crate x11-dl 2.21.0 [INFO] finished tweaking crates.io crate x11-dl 2.21.0 [INFO] tweaked toml for crates.io crate x11-dl 2.21.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate x11-dl 2.21.0 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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad60dd755f411b7dd6feea38a5a918f58d767c714dda291117058052eea21f0c [INFO] running `Command { std: "docker" "start" "-a" "ad60dd755f411b7dd6feea38a5a918f58d767c714dda291117058052eea21f0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad60dd755f411b7dd6feea38a5a918f58d767c714dda291117058052eea21f0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad60dd755f411b7dd6feea38a5a918f58d767c714dda291117058052eea21f0c", kill_on_drop: false }` [INFO] [stdout] ad60dd755f411b7dd6feea38a5a918f58d767c714dda291117058052eea21f0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a8e75582c4e11fe81e2b6f1aa8267dc59b9be0919d8bf2989e4923d48cd877d [INFO] running `Command { std: "docker" "start" "-a" "3a8e75582c4e11fe81e2b6f1aa8267dc59b9be0919d8bf2989e4923d48cd877d", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Checking once_cell v1.17.0 [INFO] [stderr] Compiling x11-dl v2.21.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` fn uses type `XEventQueueOwner`, which is not FFI-safe [INFO] [stdout] --> src/link.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | $(pub $fn_name: unsafe extern "C" fn ($($param_type),*) -> $ret_type,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] ::: src/xlib_xcb.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2, [INFO] [stdout] 5 | | pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t, [INFO] [stdout] 6 | | pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (), [INFO] [stdout] 7 | | variadic: [INFO] [stdout] 8 | | globals: [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/xlib_xcb.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum XEventQueueOwner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `x11_link` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `XSetWindowAttributes` does not permit being left uninitialized [INFO] [stdout] --> examples/hello-world-dl.rs:30:58 [INFO] [stdout] | [INFO] [stdout] 30 | let mut attributes: xlib::XSetWindowAttributes = mem::MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `XEventQueueOwner`, which is not FFI-safe [INFO] [stdout] --> src/link.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | $(pub $fn_name: unsafe extern "C" fn ($($param_type),*) -> $ret_type,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] ::: src/xlib_xcb.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2, [INFO] [stdout] 5 | | pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t, [INFO] [stdout] 6 | | pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (), [INFO] [stdout] 7 | | variadic: [INFO] [stdout] 8 | | globals: [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/xlib_xcb.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum XEventQueueOwner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `x11_link` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.55s [INFO] running `Command { std: "docker" "inspect" "3a8e75582c4e11fe81e2b6f1aa8267dc59b9be0919d8bf2989e4923d48cd877d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a8e75582c4e11fe81e2b6f1aa8267dc59b9be0919d8bf2989e4923d48cd877d", kill_on_drop: false }` [INFO] [stdout] 3a8e75582c4e11fe81e2b6f1aa8267dc59b9be0919d8bf2989e4923d48cd877d [INFO] checking x11-dl-2.21.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-2 [INFO] extracting crate x11-dl 2.21.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate x11-dl 2.21.0 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 crates.io crate x11-dl 2.21.0 [INFO] finished tweaking crates.io crate x11-dl 2.21.0 [INFO] tweaked toml for crates.io crate x11-dl 2.21.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate x11-dl 2.21.0 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cc72ef9318b0f1acd46372d5345b5e11a3389aa9a8057df9b8cfef0ebf2e9bb [INFO] running `Command { std: "docker" "start" "-a" "0cc72ef9318b0f1acd46372d5345b5e11a3389aa9a8057df9b8cfef0ebf2e9bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cc72ef9318b0f1acd46372d5345b5e11a3389aa9a8057df9b8cfef0ebf2e9bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cc72ef9318b0f1acd46372d5345b5e11a3389aa9a8057df9b8cfef0ebf2e9bb", kill_on_drop: false }` [INFO] [stdout] 0cc72ef9318b0f1acd46372d5345b5e11a3389aa9a8057df9b8cfef0ebf2e9bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 980e3ff88323dff3b8181693fd2250d2c05d8fcee4d73041bd295b8d039df04b [INFO] running `Command { std: "docker" "start" "-a" "980e3ff88323dff3b8181693fd2250d2c05d8fcee4d73041bd295b8d039df04b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Checking once_cell v1.17.0 [INFO] [stderr] Compiling x11-dl v2.21.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/internal.rs (2 fixes) [INFO] [stderr] Fixed src/xinput2.rs (5 fixes) [INFO] [stdout] warning: `extern` fn uses type `XEventQueueOwner`, which is not FFI-safe [INFO] [stdout] --> src/link.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | $(pub $fn_name: unsafe extern "C" fn ($($param_type),*) -> $ret_type,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] ::: src/xlib_xcb.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2, [INFO] [stdout] 5 | | pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t, [INFO] [stdout] 6 | | pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (), [INFO] [stdout] 7 | | variadic: [INFO] [stdout] 8 | | globals: [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/xlib_xcb.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum XEventQueueOwner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `x11_link` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/hello-world-dl.rs from 2021 edition to 2024 [INFO] [stdout] warning: `extern` fn uses type `XEventQueueOwner`, which is not FFI-safe [INFO] [stdout] --> src/link.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | $(pub $fn_name: unsafe extern "C" fn ($($param_type),*) -> $ret_type,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] ::: src/xlib_xcb.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2, [INFO] [stdout] 5 | | pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t, [INFO] [stdout] 6 | | pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (), [INFO] [stdout] 7 | | variadic: [INFO] [stdout] 8 | | globals: [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/xlib_xcb.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum XEventQueueOwner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `x11_link` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `XSetWindowAttributes` does not permit being left uninitialized [INFO] [stdout] --> examples/hello-world-dl.rs:30:58 [INFO] [stdout] | [INFO] [stdout] 30 | let mut attributes: xlib::XSetWindowAttributes = mem::MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.15s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling x11-dl v2.21.0 (/tmp/fixit) [INFO] [stdout] warning: `extern` fn uses type `XEventQueueOwner`, which is not FFI-safe [INFO] [stdout] --> src/link.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | $(pub $fn_name: unsafe extern "C" fn ($($param_type),*) -> $ret_type,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] ::: src/xlib_xcb.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2, [INFO] [stdout] 5 | | pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t, [INFO] [stdout] 6 | | pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (), [INFO] [stdout] 7 | | variadic: [INFO] [stdout] 8 | | globals: [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/xlib_xcb.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum XEventQueueOwner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `x11_link` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `XEventQueueOwner`, which is not FFI-safe [INFO] [stdout] --> src/link.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | $(pub $fn_name: unsafe extern "C" fn ($($param_type),*) -> $ret_type,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] ::: src/xlib_xcb.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2, [INFO] [stdout] 5 | | pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t, [INFO] [stdout] 6 | | pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (), [INFO] [stdout] 7 | | variadic: [INFO] [stdout] 8 | | globals: [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/xlib_xcb.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum XEventQueueOwner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `x11_link` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `XSetWindowAttributes` does not permit being left uninitialized [INFO] [stdout] --> examples/hello-world-dl.rs:30:58 [INFO] [stdout] | [INFO] [stdout] 30 | let mut attributes: xlib::XSetWindowAttributes = mem::MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.54s [INFO] running `Command { std: "docker" "inspect" "980e3ff88323dff3b8181693fd2250d2c05d8fcee4d73041bd295b8d039df04b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "980e3ff88323dff3b8181693fd2250d2c05d8fcee4d73041bd295b8d039df04b", kill_on_drop: false }` [INFO] [stdout] 980e3ff88323dff3b8181693fd2250d2c05d8fcee4d73041bd295b8d039df04b