Skip to content

Lots of default method and trait fixes #8015

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

Closed
wants to merge 12 commits into from

Conversation

msullivan
Copy link
Contributor

Lots of changes to vtable resolution, handling of super/self method calls in default methods. Fix a lot of trait inheritance bugs.

r? @nikomatsakis

msullivan added 11 commits July 23, 2013 17:06
Improve vtable resolution in a handful of ways.  First, if we don't
find a vtable for a self/param type, do a regular vtable search.  This
could find impls of the form "impl for A". Second, we don't require
that types be fully resolved before looking up subtables, and we
process tables in reverse order. This allows us to gain more
information about early type parameters based on how they are used by
the impls used to resolve later params.

Closes rust-lang#6967, I believe.
…data.

Partially rework how vtables are handled in default method calls.
Closes rust-lang#7460.
Eliminates method_super, method_self, and vtable_self, merging all of
them into the param cases.
Cloes rust-lang#4396. Closes rust-lang#7301.
@nikomatsakis
Copy link
Contributor

Exciting.

bors added a commit that referenced this pull request Jul 25, 2013
Lots of changes to vtable resolution, handling of super/self method calls in default methods. Fix a lot of trait inheritance bugs.

r? @nikomatsakis
@bors bors closed this Jul 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants