diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-08-11 13:44:26 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-08-11 14:01:23 -0400 |
| commit | 1bceb98084b0e1010d123f48785a89bc7ad7e40f (patch) | |
| tree | 8444ffe600298b3fccebdf4134b84c1668c6b7a6 /src/libsyntax/parse | |
| parent | 006c6b6be4499fd999ef3f52996b944263baa220 (diff) | |
| download | rust-1bceb98084b0e1010d123f48785a89bc7ad7e40f.tar.gz rust-1bceb98084b0e1010d123f48785a89bc7ad7e40f.zip | |
typeck: Modify method resolution to use new object adjustments, and
to favor inherent methods over extension methods.
The reason to favor inherent methods is that otherwise an impl
like
impl Foo for @Foo { fn method(&self) { self.method() } }
causes infinite recursion. The current change to favor inherent methods is
rather hacky; the method resolution code is in need of a refactoring.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
