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

mem::Discriminant does not imply Send (even for types that are Send) #45254

Closed
archshift opened this issue Oct 13, 2017 · 1 comment
Closed

Comments

@archshift
Copy link
Contributor

Since the Discriminant of an enum variant is just an integer that represents its underlying index, it not implementing Send seems like a gap in the API.

Is there any underlying reason for it not doing so (aside from the PhantomData present inside)?

@kennytm
Copy link
Member

kennytm commented Oct 13, 2017

This has been fixed by #45095.

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

3 participants