mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 11:58:04 +03:00
save-analysis: fix impl functions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user