Skip to content

Commit b4151dd

Browse files
committed
save-analysis: Use process_bounds when processing opaque impl item type
...since the code is literally the same and does the same thing.
1 parent 6117faa commit b4151dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustc_save_analysis/dump_visitor.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1109,11 +1109,7 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
11091109
// FIXME: uses of the assoc type should ideally point to this
11101110
// 'def' and the name here should be a ref to the def in the
11111111
// trait.
1112-
for bound in bounds.iter() {
1113-
if let ast::GenericBound::Trait(trait_ref, _) = bound {
1114-
self.process_path(trait_ref.trait_ref.ref_id, &trait_ref.trait_ref.path)
1115-
}
1116-
}
1112+
self.process_bounds(&bounds);
11171113
}
11181114
ast::ImplItemKind::Macro(_) => {}
11191115
}

0 commit comments

Comments
 (0)