Skip to content

Commit 05a8142

Browse files
committed
Better FFI discipline
1 parent 430a9fd commit 05a8142

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/libstd/rand/os.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ mod imp {
205205
_dummy: (),
206206
}
207207

208-
// Fake definition; this is actually a struct, but we don't use the
209-
// contents here.
210-
type SecRandom = c_void;
208+
enum SecRandom {}
211209

212210
#[allow(non_upper_case_globals)]
213211
const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;

src/libstd/rt/unwind/seh64_gnu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ pub struct EXCEPTION_RECORD {
6060
ExceptionInformation: [ULONG_PTR; 15],
6161
}
6262

63-
pub type CONTEXT = c_void;
64-
pub type UNWIND_HISTORY_TABLE = c_void;
63+
pub enum CONTEXT {}
64+
pub enum UNWIND_HISTORY_TABLE {}
6565

6666
#[repr(C)]
6767
pub struct RUNTIME_FUNCTION {

0 commit comments

Comments
 (0)