-
Notifications
You must be signed in to change notification settings - Fork 13k
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
supertrait methods should be callable on object types #4100
Comments
Bumping to 0.6 |
Reproduced as of eed2ca6 |
Not critical for 0.6, de-milestoning |
catamorphism, are you actively working on this one, or do you mind if I take a crack at it? |
@Sodel-the-Vociferous I'm not actively working on it, so please do! Ask on IRC if you have any questions :-) |
Problems found so far:
Also, by analogy to the method_origins "method_self" and "method_super", I'm going to split "method_trait" into "method_trait" and "method_trait_super". We might as well be explicit when we're trying to use trait inheritance with dynamic dispatch. |
Objects need some refactoring first. Waiting on #5762. |
Nominating for milestone 5, production-ready |
accepted for feature-complete milestone |
@msullivan has been doing work in this area recently, maybe he has some light to shed? |
Yeah, I'll take this. |
It works, but casting
Maybe the compiler can do something like this automatically? |
@vi indeed, adding more general upcasts is definitely something we'd like to do soon-ish. It's a touch tricky when you dig into the details. |
…c-v650 bump rustfmt 1x to rustc-ap v651
Bound type parameters can call supertrait methods, objects should be able to as well.
The text was updated successfully, but these errors were encountered: