diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-16 16:49:11 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-16 17:06:15 -0700 |
| commit | 154a3fdf4427ad3de7dc7a5a1a1fe7ee737dc99c (patch) | |
| tree | 53c0d1ef30a3cf754bd8662816b777becce28458 /src/rustc | |
| parent | 3445454e792bc4b770a99e227fc18b5c90f8ed8a (diff) | |
| download | rust-154a3fdf4427ad3de7dc7a5a1a1fe7ee737dc99c.tar.gz rust-154a3fdf4427ad3de7dc7a5a1a1fe7ee737dc99c.zip | |
rustc: Unify impl self types in the opposite order so variance is correct
Diffstat (limited to 'src/rustc')
| -rw-r--r-- | src/rustc/middle/typeck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/middle/typeck.rs b/src/rustc/middle/typeck.rs index 1754625d5c9..cc52283dc07 100644 --- a/src/rustc/middle/typeck.rs +++ b/src/rustc/middle/typeck.rs @@ -1909,7 +1909,7 @@ fn lookup_method_inner(fcx: @fn_ctxt, expr: @ast::expr, let ty = universally_quantify_regions(tcx, ty); - alt unify::unify(fcx, ty, self_ty) { + alt unify::unify(fcx, self_ty, ty) { result::ok(_) { if option::is_some(result) { // FIXME[impl] score specificity to resolve ambiguity? |
