aboutsummaryrefslogtreecommitdiff
path: root/libc/src/switch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/switch.rs')
-rw-r--r--libc/src/switch.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/src/switch.rs b/libc/src/switch.rs
index e2d9b49..06fa203 100644
--- a/libc/src/switch.rs
+++ b/libc/src/switch.rs
@@ -38,13 +38,15 @@ pub const INT_MIN: c_int = -2147483648;
pub const INT_MAX: c_int = 2147483647;
cfg_if! {
- if #[cfg(core_cvoid)] {
- pub use core::ffi::c_void;
+ if #[cfg(libc_core_cvoid)] {
+ pub use ::ffi::c_void;
} else {
// Use repr(u8) as LLVM expects `void*` to be the same as `i8*` to help
// enable more optimization opportunities around it recognizing things
// like malloc/free.
#[repr(u8)]
+ #[allow(missing_copy_implementations)]
+ #[allow(missing_debug_implementations)]
pub enum c_void {
// Two dummy variants so the #[repr] attribute can be used.
#[doc(hidden)]