From fb2eccb8a130769e2bc83492253ac49d31d39ea3 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Thu, 13 Aug 2026 22:27:07 -0400 Subject: [PATCH] Remove `Debug` impl for `c_void` `c_void` should never be used by reference (only raw pointer), so this impl is effectively uncallable. --- cglue/src/trait_group.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/cglue/src/trait_group.rs b/cglue/src/trait_group.rs index 9a58a6c..b43457b 100644 --- a/cglue/src/trait_group.rs +++ b/cglue/src/trait_group.rs @@ -15,7 +15,6 @@ pub type c_void = (); #[cfg(not(any(feature = "rust_void", miri)))] #[allow(non_camel_case_types)] #[repr(transparent)] -#[derive(Debug)] #[cfg_attr(feature = "abi_stable", derive(::abi_stable::StableAbi))] #[cfg_attr(feature = "abi_stable", sabi(unsafe_opaque_fields))] pub struct c_void(core::ffi::c_void);