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

Avoid deriving Eq for structs containing floating point type parameters #3255

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

kennykerr
Copy link
Collaborator

Previously such structs were only detected when the field, or some nested type, contained a floating-point type. This update extends that to generic types.

Fixes: #3220

@kennykerr kennykerr changed the title Avoid deriving Eq for structs containing floating point fields Avoid deriving Eq for structs containing floating point type parameters Sep 5, 2024
@mattico
Copy link

mattico commented Sep 5, 2024

I tested this and can confirm it fixed the issue on my code, thanks!

@kennykerr kennykerr merged commit f3c2576 into master Sep 6, 2024
78 checks passed
@kennykerr kennykerr deleted the test_reference_float branch September 6, 2024 12:35
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.

windows-bindgen: derive Eq incorrectly emitted for struct containing IReference to struct containing float
2 participants