Skip to content

Better FFI discipline #27548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/libstd/rand/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/rt/unwind/seh64_gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down