]> git.lizzy.rs Git - rust.git/commitdiff
save-analysis: fix impl functions
authorNick Cameron <ncameron@mozilla.com>
Wed, 29 Apr 2015 07:21:18 +0000 (19:21 +1200)
committerNick Cameron <ncameron@mozilla.com>
Wed, 29 Apr 2015 07:21:18 +0000 (19:21 +1200)
src/librustc_trans/save/mod.rs

index 39cfac42011aba8fe8c92d786ca9353c4aa2e15f..d80086da20315af17357c4ee927f8a7d469875d6 100644 (file)
@@ -295,6 +295,8 @@ fn process_method(&mut self, sig: &ast::MethodSig,
             return;
         }
 
+        debug!("process_method: {}:{}", id, token::get_name(name));
+
         let mut scope_id;
         // The qualname for a method is the trait name or name of the struct in an impl in
         // which the method is declared in, followed by the method's name.
@@ -704,7 +706,7 @@ fn process_impl(&mut self,
 
         self.process_generic_params(type_parameters, item.span, "", item.id);
         for impl_item in impl_items {
-            visit::walk_impl_item(self, impl_item);
+            self.visit_impl_item(impl_item);
         }
     }
 
@@ -1258,7 +1260,7 @@ fn visit_impl_item(&mut self, impl_item: &ast::ImplItem) {
         match impl_item.node {
             ast::ConstImplItem(ref ty, ref expr) => {
                 self.process_const(impl_item.id, &impl_item.ident,
-                                   impl_item.span, &*ty, &*expr);
+                                   impl_item.span, &ty, &expr);
             }
             ast::MethodImplItem(ref sig, ref body) => {
                 self.process_method(sig, Some(body), impl_item.id,