From 6ef0570a1e0cd074927ce23b875d79fb135babd2 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Fri, 21 Aug 2015 13:16:52 +0200 Subject: [PATCH] Remove outdated comment and hide variants of `c_void` --- src/liblibc/lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 08f0b2aa895..5d65dec89be 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -191,14 +191,15 @@ pub mod types { /// C. Use the unit type `()` or omit the return type instead. /// /// For LLVM to recognize the void pointer type and by extension - /// functions like malloc(), we need to have it represented as i8* in - /// LLVM bitcode. The enum used here ensures this and prevents misuse - /// of the "raw" type by only having private variants.. We need two - /// variants, because the compiler complains about the repr attribute - /// otherwise. + /// functions like malloc(), we need to have it represented as i8* + /// in LLVM bitcode. The enum used here ensures this. We need two + /// variants, because the compiler complains about the `repr` + /// attribute otherwise. #[repr(u8)] pub enum c_void { + #[doc(hidden)] __variant1, + #[doc(hidden)] __variant2, }