about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-06 05:19:16 +0000
committerbors <bors@rust-lang.org>2015-08-06 05:19:16 +0000
commitb81ab8a04002f226b1821f5e62f90a685dc640c9 (patch)
tree2a6cff0365a10f5b1d8a14353bd53c90bd23132e /src/libstd
parent4278b5f03bbc5808a7b611ae8353db6817c58792 (diff)
parent05a814279b12beaf80aa636667199a80824d5f62 (diff)
downloadrust-b81ab8a04002f226b1821f5e62f90a685dc640c9.tar.gz
rust-b81ab8a04002f226b1821f5e62f90a685dc640c9.zip
Auto merge of #27548 - tamird:opaque-ctypes, r=alexcrichton
r? @alexcrichton 
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rand/os.rs4
-rw-r--r--src/libstd/rt/unwind/seh64_gnu.rs4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index 9ae9455848e..bd31fe08421 100644
--- a/src/libstd/rand/os.rs
+++ b/src/libstd/rand/os.rs
@@ -205,9 +205,7 @@ mod imp {
         _dummy: (),
     }
 
-    // Fake definition; this is actually a struct, but we don't use the
-    // contents here.
-    type SecRandom = c_void;
+    enum SecRandom {}
 
     #[allow(non_upper_case_globals)]
     const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
diff --git a/src/libstd/rt/unwind/seh64_gnu.rs b/src/libstd/rt/unwind/seh64_gnu.rs
index 6a061a55fc2..847ba47ff72 100644
--- a/src/libstd/rt/unwind/seh64_gnu.rs
+++ b/src/libstd/rt/unwind/seh64_gnu.rs
@@ -60,8 +60,8 @@ pub struct EXCEPTION_RECORD {
     ExceptionInformation: [ULONG_PTR; 15],
 }
 
-pub type CONTEXT = c_void;
-pub type UNWIND_HISTORY_TABLE = c_void;
+pub enum CONTEXT {}
+pub enum UNWIND_HISTORY_TABLE {}
 
 #[repr(C)]
 pub struct RUNTIME_FUNCTION {