Skip to content

migrate to native types #7669

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

Closed
wants to merge 2 commits into from
Closed

migrate to native types #7669

wants to merge 2 commits into from

Conversation

thestinger
Copy link
Contributor

This removes some redundant libc types where a native Rust type already exists.

Rust already has these as primitives, no need for more names.
@brson
Copy link
Contributor

brson commented Jul 9, 2013

r- For C interop we prefer using the C types.

@thestinger
Copy link
Contributor Author

@brson: well, it doesn't really make sense to me why we'd be using them when there are Rust types that are always the same representation

@thestinger
Copy link
Contributor Author

I could just make c_void into a type alias of Void instead, that was the annoyance I actually ran into

@brson
Copy link
Contributor

brson commented Jul 10, 2013

I do think c_void should be an alias of Void

@thestinger thestinger closed this Jul 10, 2013
@thestinger thestinger deleted the libc branch July 10, 2013 00:05
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 28, 2021
New lint `if_then_panic`

changelog: add the new lint [`if_then_panic`]
fix rust-lang#7645
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants