Skip to content

Improve traits coverage for "interesting" structs #656

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
kennykerr opened this issue Mar 29, 2021 · 2 comments
Closed

Improve traits coverage for "interesting" structs #656

kennykerr opened this issue Mar 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@kennykerr
Copy link
Collaborator

Struct that are or contain unions, include complex arrays, are packed or contain nested packed structs, are all very limited in that they don't receive various trait implementations like PartialEq, Eq, Default, and Debug. Some of these are reasonable, but others just need a bit more help. For example, this warning just started firing in nightly builds and needed a workaround for Windows to build cleanly:

rust-lang/rust#82523

Fortunately, the issue mentions a simple way to support it.

@kennykerr
Copy link
Collaborator Author

PROPVARIANT is a good example of such an "interesting" struct. #417 (comment)

@valarauca
Copy link

Sounds good. I managed to work around it by Creating a vector, and extracting the vector element.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants