-
Notifications
You must be signed in to change notification settings - Fork 28
Trait bounds for generic compact types #69
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
Conversation
|
@ascjones CI is angry about |
|
In the absence of better solutions, let's just add that fix to the CI script with a small PR into |
Robbepop
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arg my review never got sent ...
|
How about also implement manual custom trait bounds for derived code to resolve this problem? |
Use std HashSet
I think we should make the derive as easy to use as possible. Adding these bounds manually requires users to have a firm grasp of both this crate and |
|
I think this can be closed in favor of our custom trait bounds implementation, right? |
It looks like it, @dvdplm can close if he agrees. |
|
Closing as stale. |
If a type param is used in a compact field, don't add
TypeInfo + 'staticbound (just'static)If a type param is used in a compact field, call
meta_type::<<$ty as HasCompact>::Type>()instead ofmeta_type::<$ty>()in the implementation ofTypeInfo.Avoid adding duplicate bounds.