-
-
Notifications
You must be signed in to change notification settings - Fork 779
Auto implement Group Traits #2663
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
Auto implement group traits if the underlying object has all of the sub traits requires by the group trait. This means that all of the implementors don't have to implmenent an empty group trait. Change-Id: I2336a2d1df92bb2956935b15fab253b885c97138
Auto implement group traits if the underlying object has all of the sub traits requires by the group trait. This means that all of the implementors don't have to implmenent an empty group trait. Change-Id: Ie775268b1fe4e8da44a06ea1c61dd481bf314b2b
Auto implement group trait if the underlying object has all of the sub traits requires by the group trait. This means that all of the implementors don't have to implmenent an empty group trait. Change-Id: Ifae400a5458bfadc00cda41b5f5302c82e3b0cc9
Auto implement group trait if the underlying object has all of the sub traits requires by the group trait. This means that all of the implementors don't have to implmenent an empty group trait. Change-Id: Iebe0a33b8929f7cbf00615f6049985a5f9989002
Auto implement group trait if the underlying object has all of the sub traits requires by the group trait. This means that all of the implementors don't have to implmenent an empty group trait. Change-Id: I073b898993a3263e94db51bee1bccfddbc93502a
|
This is great! The only thing which this would effectively prevent is that implementers of these HILs can't opt out of certain marker traits. I don't think that's an issue, but want to mention it nonetheless. |
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.
This seems like a net good thing.
I agree. We should only do this for convenience group traits, not marker traits. That is actually why I didn't implement this for the |
|
bors r+ |
Pull Request Overview
Instead of each object providing an empty implementation for a group trait, auto implement the group trait if the object has all of the necessary sub-traits.
Testing Strategy
cargo checkon each CLDocumentation Updated
Formatting
make prepush.