about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIgor Matuszewski <Xanewok@gmail.com>2019-09-13 15:36:38 +0200
committerIgor Matuszewski <Xanewok@gmail.com>2019-09-13 15:36:55 +0200
commitb4151dd3211f4a9e8f980994a094f4b85149cd46 (patch)
tree21cd1196e67c9166eccb4cd2f4106793cba411eb
parent6117faa809334136f81c90b6645ae760d50b48cd (diff)
downloadrust-b4151dd3211f4a9e8f980994a094f4b85149cd46.tar.gz
rust-b4151dd3211f4a9e8f980994a094f4b85149cd46.zip
save-analysis: Use process_bounds when processing opaque impl item type
...since the code is literally the same and does the same thing.
-rw-r--r--src/librustc_save_analysis/dump_visitor.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs
index 135f1349943..28d8e3a4296 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(_) => {}
         }