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

FFI niche counting #2793

Closed
appetrosyan opened this issue Sep 27, 2022 · 1 comment
Closed

FFI niche counting #2793

appetrosyan opened this issue Sep 27, 2022 · 1 comment

Comments

@appetrosyan
Copy link
Contributor

    So only case when enum does't have niche is when it has number of variants equal to `ffi_type::MAX - ffi_type::MIN`, we could check this condition during macro expansion.

Then we could do the following to find niche value, we can't find niche during expansion because discriminant is expression.

Originally posted by @Erigara in #2625 (comment)

@mversic
Copy link
Contributor

mversic commented Sep 27, 2022

Closed in favor of #2794

@mversic mversic closed this as completed Sep 27, 2022
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

No branches or pull requests

2 participants