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

Emit FSA error for unions with manually drop fields #149

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

jacob-hughes
Copy link
Collaborator

For reasons that are not quite clear to me, trying to monomorphize a manually droppable union field causes an internal compile error in rustc. I think for now the best way to deal with this is to throw an error and require the user to manually mark such types as finalizer safe or not depending on their use-case.

Ideally we could improve on this at a later date as there is no reason in theory why we shouldn't be able to support union types.

For reasons that are not quite clear to me, trying to monomorphize a
manually droppable union field causes an internal compile error in
rustc. I think for now the best way to deal with this is to throw an
error and require the user to manually mark such types as finalizer safe
or not depending on their use-case.

Ideally we could improve on this at a later date as there is no reason
in theory why we shouldn't be able to support union types.
@ltratt ltratt added this pull request to the merge queue Nov 26, 2024
Merged via the queue into softdevteam:master with commit b9ee8dd Nov 26, 2024
2 checks passed
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