about summary refs log tree commit diff
path: root/src/librustc/util
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-20 13:32:00 -0700
committerbors <bors@rust-lang.org>2013-08-20 13:32:00 -0700
commit293660d44347967cbb724d1ff94b90d635c2c64f (patch)
treefec2b59fd77e8b1d1d791976673a186e031ae7d6 /src/librustc/util
parenta8c3fe45c6138cd1f4d143fdb0e843ee2d4759b2 (diff)
parent6a6d3b600fbd5c0076281d737fa4673e254ce313 (diff)
downloadrust-293660d44347967cbb724d1ff94b90d635c2c64f.tar.gz
rust-293660d44347967cbb724d1ff94b90d635c2c64f.zip
auto merge of #8519 : msullivan/rust/objects, r=catamorphism
r?
Diffstat (limited to 'src/librustc/util')
-rw-r--r--src/librustc/util/ppaux.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/librustc/util/ppaux.rs b/src/librustc/util/ppaux.rs
index 5ba52326579..0fdcac26ac8 100644
--- a/src/librustc/util/ppaux.rs
+++ b/src/librustc/util/ppaux.rs
@@ -747,8 +747,8 @@ impl Repr for typeck::method_origin {
             &typeck::method_param(ref p) => {
                 p.repr(tcx)
             }
-            &typeck::method_trait(def_id, n) => {
-                fmt!("method_trait(%s, %?)", def_id.repr(tcx), n)
+            &typeck::method_object(ref p) => {
+                p.repr(tcx)
             }
         }
     }
@@ -764,6 +764,16 @@ impl Repr for typeck::method_param {
     }
 }
 
+impl Repr for typeck::method_object {
+    fn repr(&self, tcx: ctxt) -> ~str {
+        fmt!("method_object(%s,%?,%?)",
+             self.trait_id.repr(tcx),
+             self.method_num,
+             self.real_index)
+    }
+}
+
+
 impl Repr for ty::RegionVid {
     fn repr(&self, _tcx: ctxt) -> ~str {
         fmt!("%?", *self)