[INFO] fetching crate x11-dl 2.21.0... [INFO] checking x11-dl-2.21.0 against master#35936c4839dd272646394779d151e060d0f6b3ac for pr-122960-1 [INFO] extracting crate x11-dl 2.21.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate x11-dl 2.21.0 on toolchain 35936c4839dd272646394779d151e060d0f6b3ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "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-1-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" "+35936c4839dd272646394779d151e060d0f6b3ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pkg-config v0.3.26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfcf321b334dd12ad258e0a1112bc8e90c76ebfaba1f92623754eff1054a1198 [INFO] running `Command { std: "docker" "start" "-a" "cfcf321b334dd12ad258e0a1112bc8e90c76ebfaba1f92623754eff1054a1198", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfcf321b334dd12ad258e0a1112bc8e90c76ebfaba1f92623754eff1054a1198", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfcf321b334dd12ad258e0a1112bc8e90c76ebfaba1f92623754eff1054a1198", kill_on_drop: false }` [INFO] [stdout] cfcf321b334dd12ad258e0a1112bc8e90c76ebfaba1f92623754eff1054a1198 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1224b1aac9fce2eef16ae371413e037e5043a32cc91d81213e904e483e5f32f7 [INFO] running `Command { std: "docker" "start" "-a" "1224b1aac9fce2eef16ae371413e037e5043a32cc91d81213e904e483e5f32f7", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling libc v0.2.139 [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: `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 8.80s [INFO] running `Command { std: "docker" "inspect" "1224b1aac9fce2eef16ae371413e037e5043a32cc91d81213e904e483e5f32f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1224b1aac9fce2eef16ae371413e037e5043a32cc91d81213e904e483e5f32f7", kill_on_drop: false }` [INFO] [stdout] 1224b1aac9fce2eef16ae371413e037e5043a32cc91d81213e904e483e5f32f7 [INFO] checking x11-dl-2.21.0 against try#9ae1860851f3fbc1435a1698e572252c0076f413 for pr-122960-1 [INFO] extracting crate x11-dl 2.21.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate x11-dl 2.21.0 on toolchain 9ae1860851f3fbc1435a1698e572252c0076f413 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "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-1-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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 10e4f5c94bb5e043c8c56e5778f3e758e8ad417322d2dd901ba037da63211624 [INFO] running `Command { std: "docker" "start" "-a" "10e4f5c94bb5e043c8c56e5778f3e758e8ad417322d2dd901ba037da63211624", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10e4f5c94bb5e043c8c56e5778f3e758e8ad417322d2dd901ba037da63211624", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10e4f5c94bb5e043c8c56e5778f3e758e8ad417322d2dd901ba037da63211624", kill_on_drop: false }` [INFO] [stdout] 10e4f5c94bb5e043c8c56e5778f3e758e8ad417322d2dd901ba037da63211624 [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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b486eed529fe51e2b42a3f48ef23772a7c074783418e1948909ae84eff188a2 [INFO] running `Command { std: "docker" "start" "-a" "7b486eed529fe51e2b42a3f48ef23772a7c074783418e1948909ae84eff188a2", 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] Compiling libc v0.2.139 [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] [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.00s [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] 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 7.25s [INFO] running `Command { std: "docker" "inspect" "7b486eed529fe51e2b42a3f48ef23772a7c074783418e1948909ae84eff188a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b486eed529fe51e2b42a3f48ef23772a7c074783418e1948909ae84eff188a2", kill_on_drop: false }` [INFO] [stdout] 7b486eed529fe51e2b42a3f48ef23772a7c074783418e1948909ae84eff188a2