-
Notifications
You must be signed in to change notification settings - Fork 13.3k
supertrait methods should be callable on object types #4100
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
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: