Skip to content

Commit

Permalink
save-analysis: Use process_bounds when processing opaque impl item type
Browse files Browse the repository at this point in the history
...since the code is literally the same and does the same thing.
  • Loading branch information
Xanewok committed Sep 13, 2019
1 parent 6117faa commit b4151dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/librustc_save_analysis/dump_visitor.rs
Expand Up @@ -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(_) => {}
}
Expand Down

0 comments on commit b4151dd

Please sign in to comment.