-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Determine trait inheritance hierarchies for core and std traits #3950
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
Comments
It's been raised a number of times on IRC, but it'd be really handy if we had:
|
Regarding the |
I believe that pcwalton has to implement 'kind inheritance' before we can inherit
|
Blocked on #3984 |
I don't think that we're in as bad as a situation as we were when this was opened, but this is also kind of a vague issue. @bstrie, do you know of any existing specific locations which could use improvement. I think that @bjz has been tracking all the numeric-related things in another issue, so I'm tempted to close this due to lack of actionable work unless there are things left to take care of. |
This was mostly a call-to-action for getting people thinking about our trait hierarchies (and numeric traits in particular), and I'd say it's served its purpose. Closing. Feel free to file more specific issues as they arise. |
…em, r=RalfJung,saethlin,oli-obk remove -Zmiri-panic-on-unsupported flag Fixes rust-lang/miri#3952, see that issue for discussion.
Lines like
fn map_reduce<K1: Copy Send, K2: Hash IterBytes Eq Const Copy Send, V: Copy Send>
can probably be compressed a bit with the aid of trait inheritance. Figure out the places where trait inheritance would be useful and determine the appropriate hierarchies.The text was updated successfully, but these errors were encountered: