Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make supertrait methods callable on object types.
This requires changes to method search and to codegen. We now emit a vtable for objects that includes methods from all supertraits. Closes #4100. Also, actually populate the cache for vtables, and also key it by type so that it actually works.
- Loading branch information
Showing
10 changed files
with
225 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6a6d3b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from catamorphism
at msullivan@6a6d3b6
6a6d3b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging msullivan/rust/objects = 6a6d3b6 into auto
6a6d3b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msullivan/rust/objects = 6a6d3b6 merged ok, testing candidate = 293660d
6a6d3b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/999
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1002
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/108
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1017
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1017
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/190
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1002
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/108
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/108
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/788
6a6d3b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 293660d