-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Refactor typeck code handling self
and type parameters
#4678
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
Add a new method_super origin for supertrait methods. Also make coherence create a table that maps pairs of trait IDs and self types to impl IDs, so that it's possible to check a supertrait method knowing only its index in its trait's methods (without knowing all supertraits for a given trait). r=nmatsakis and graydon -- with hope, we'll revamp all of this code as per #4678, but for now this fixes the bug. Closes #3979
I'm working on it. Moved up to 0.6 -- it doesn't look too hard (famous last words...) |
I need to talk to @nikomatsakis about this. |
Not critical for 0.6; removing milestone |
Nominating for milestone 5, production-ready |
just a bug, removing milestone/nomination. |
Visiting for triage; sounds like something that @msullivan might know something about. |
Sadly, I never got around to this. @nikomatsakis , have you perhaps already done this as part of another patch? |
triage bump. There's still work to be done here. I think @eddyb did something already. |
@nick29581 Can this issue be superseded by the planned work on UFCS (re: the |
Even with the UFCS work, self is still treated a bit specially in the compiler. It shouldn't be. So I think this issue is still relevant (maybe even more so) post-UFCS. |
I think this issue is basically done. We now have vectors-of-vectors ( |
I'm about to land my patch for #3979, but @nikomatsakis suggested refactoring the code related to it more thoroughly in the future, in order to:
self
specially, but rather, treat it like any other type parameterThe text was updated successfully, but these errors were encountered: