-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Refactor typeck code handling self
and type parameters
#4678
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: