save-analysis: Use process_bounds when processing opaque impl item type

...since the code is literally the same and does the same thing.
This commit is contained in:
Igor Matuszewski 2019-09-13 15:36:38 +02:00
parent 6117faa809
commit b4151dd321

View file

@ -1109,11 +1109,7 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
// FIXME: uses of the assoc type should ideally point to this
// 'def' and the name here should be a ref to the def in the
// trait.
for bound in bounds.iter() {
if let ast::GenericBound::Trait(trait_ref, _) = bound {
self.process_path(trait_ref.trait_ref.ref_id, &trait_ref.trait_ref.path)
}
}
self.process_bounds(&bounds);
}
ast::ImplItemKind::Macro(_) => {}
}