summaryrefslogtreecommitdiff
path: root/src/cloudabi/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cloudabi/mod.rs')
-rw-r--r--src/cloudabi/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cloudabi/mod.rs b/src/cloudabi/mod.rs
index 51859cb40b..e5027b935b 100644
--- a/src/cloudabi/mod.rs
+++ b/src/cloudabi/mod.rs
@@ -316,14 +316,15 @@ cfg_if! {
}
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)]