about summary refs log tree commit diff
path: root/src/librustc/middle/trans
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-02-19 22:11:45 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-02-19 23:26:40 +0200
commitefef078cfa378378201ab097579992b40751cfb4 (patch)
tree3143afeb96ff90960843bfb2b6649ca8b8d6f2fb /src/librustc/middle/trans
parent1ca1ff23d3674b2b74a23717896f5b6610493fe2 (diff)
downloadrust-efef078cfa378378201ab097579992b40751cfb4.tar.gz
rust-efef078cfa378378201ab097579992b40751cfb4.zip
Replaced method_map_entry with method_origin and cleaned up vtable checking a bit.
Diffstat (limited to 'src/librustc/middle/trans')
-rw-r--r--src/librustc/middle/trans/meth.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/librustc/middle/trans/meth.rs b/src/librustc/middle/trans/meth.rs
index 27fb9bdb0bb..7fa116cafd0 100644
--- a/src/librustc/middle/trans/meth.rs
+++ b/src/librustc/middle/trans/meth.rs
@@ -95,16 +95,15 @@ pub fn trans_method_callee<'a>(
                            bcx: &'a Block<'a>,
                            callee_id: ast::NodeId,
                            this: &ast::Expr,
-                           mentry: typeck::method_map_entry,
+                           origin: typeck::method_origin,
                            arg_cleanup_scope: cleanup::ScopeId)
                            -> Callee<'a> {
     let _icx = push_ctxt("meth::trans_method_callee");
 
-    debug!("trans_method_callee(callee_id={:?}, mentry={})",
-           callee_id,
-           mentry.repr(bcx.tcx()));
+    debug!("trans_method_callee(callee_id={:?}, origin={})",
+           callee_id, origin.repr(bcx.tcx()));
 
-    match mentry.origin {
+    match origin {
         typeck::method_static(did) => {
             Callee {
                 bcx: bcx,