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

Situationally gen Eq/Ord/Hash glue for tag unions #5742

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

rtfeldman
Copy link
Contributor

Previously, we were unconditionally generating impls like Eq, Ord, and Hash for tag unions, but that's invalid if the tag union (for example) contains floats. Now we do the same check we do for derive before doing these.

@folkertdev folkertdev merged commit 2bd998a into main Aug 10, 2023
10 checks passed
@folkertdev folkertdev deleted the improve-rust-glue branch August 10, 2023 18:10
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