Skip to content
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

Use structs to represent objects instead of uninhabited enums #7

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Aug 31, 2021

Having pointers to uninhabited enums is probably undefined behaviour, so to make sure we should use opaque structs instead, while waiting for extern type.

Replaces SSheldon/rust-objc-exception#9.

Having pointers to uninhabited enums is maybe undefined behaviour, and dereferencing them definitely is.
@madsmtm madsmtm added the bug Something isn't working label Aug 31, 2021
@madsmtm madsmtm merged commit d9cb5c2 into master Aug 31, 2021
@madsmtm madsmtm deleted the no-uninhabited-enum branch August 31, 2021 21:09
@madsmtm madsmtm mentioned this pull request Sep 5, 2021
80 tasks
@madsmtm madsmtm added this to the objc2 v0.3 milestone Apr 2, 2022
@madsmtm madsmtm added the I-unsound A soundness hole label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I-unsound A soundness hole
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant