diff options
| author | bors <bors@rust-lang.org> | 2015-08-23 09:32:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-23 09:32:47 +0000 |
| commit | 2375743037fdfcb624917ebf87d8d9a142c3e395 (patch) | |
| tree | b4217a543ca95aaba112c5c0b93f11eb28455658 /src/liblibc | |
| parent | 54b2eced630655290d4d74f3da16cdac7ec67abe (diff) | |
| parent | 6ef0570a1e0cd074927ce23b875d79fb135babd2 (diff) | |
Auto merge of #27931 - tbu-:pr_liblibc_void, r=alexcrichton
Diffstat (limited to 'src/liblibc')
| -rw-r--r-- | src/liblibc/lib.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 6273c1214ec..5903cc055a7 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -192,14 +192,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, } |
