From b4151dd3211f4a9e8f980994a094f4b85149cd46 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Fri, 13 Sep 2019 15:36:38 +0200 Subject: [PATCH] save-analysis: Use process_bounds when processing opaque impl item type ...since the code is literally the same and does the same thing. --- src/librustc_save_analysis/dump_visitor.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index 135f13499436..28d8e3a4296a 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -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(_) => {} }