save-analysis: fix impl functions

This commit is contained in:
Nick Cameron
2015-04-29 19:21:18 +12:00
parent d4cedea80a
commit de2a4c0113
+4 -2
View 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,